Spectroscopic and photometric observations of supernova 1987A. VII. Days 793 to 1770.