Task: Question Answering
Input (English): Passage: Massenet was a prolific composer; he put this down to his way of working, rising early and composing from four o'clock in the morning until midday, a practice he maintained all his life. In general he worked fluently, seldom revising, although Le roi de Lahore, his nearest approach to a traditional grand opera, took him several years to complete to his own satisfaction. It was finished in 1877 and was one of the first new works to be staged at the Palais Garnier, opened two years previously. The opera, with a story taken from the Mahabharata, was an immense success and was quickly taken up by the opera houses of eight Italian cities. It was also performed at the Hungarian State Opera House, the Bavarian State Opera, the Semperoper, Dresden, the Teatro Real in Madrid, and the Royal Opera House, Covent Garden, in London. After the first Covent Garden performance, The Times summed the piece up in a way that was frequently to be applied to the composer's operas: "M. Massenet's opera, although not a work of genius proper, is one of more than common merit, and contains all the elements of at least temporary success."This period was an early high point in Massenet's career. He had been made a chevalier of the Legion of Honour in 1876, and in 1878 he was appointed professor of counterpoint, fugue and composition at the Conservatoire under Thomas, who was now the director. In the same year he was elected to the Institut de France, a prestigious honour, rare for a man in his thirties. Camille Saint-Saëns, whom Massenet beat in the election for the vacancy, was resentful at being passed over for a younger composer. When the result of the election was announced, Massenet sent Saint-Saëns a courteous telegram: "My dear colleague: the Institut has just committed a great injustice". Saint-Saëns cabled back, "I quite agree." He was elected three years later, but his relations with Massenet remained cool.Massenet was a popular and respected teacher at the Conservatoire. His pupils included Bruneau, Charpentier, Chausson, Hahn, Leroux, Pierné, Rabaud and Vidal. He was known for the care he took in drawing out his pupils' ideas, never trying to impose his own. One of his last students, Charles Koechlin, recalled Massenet as a voluble professor, dispensing "a teaching active, living, vibrant, and moreover comprehensive". According to some writers, Massenet's influence extended beyond his own students. In the view of the critic Rodney Milnes, "In word-setting alone, all French musicians profited from the freedom he won from earlier restrictions." Romain Rolland and Francis Poulenc have both considered Massenet an influence on Debussy's Pelléas et Mélisande; Debussy was a student at the Conservatoire during Massenet's professorship but did not study under him. 
Question: What was Massenet elected to that was a prestigious honor?
Output (English): the Institut de France.