IUE and Einstein survey of late-type giant and supergiant stars and the dividing line