Task: Question Answering
Input (English): Passage: Elgin Cathedral is a historic ruin in Elgin, Moray, north-east Scotland. The cathedral—dedicated to the Holy Trinity—was established in 1224 on land granted by King Alexander II outside the burgh of Elgin and close to the River Lossie. It replaced the cathedral at Spynie, 3 kilometres (1.9 mi) to the north, that was served by a small chapter of eight clerics. The new and bigger cathedral was staffed with 18 canons in 1226 and then increased to 23 by 1242. After a damaging fire in 1270, a rebuilding programme greatly enlarged the building. It was unaffected by the Wars of Scottish Independence but again suffered extensive fire damage in 1390 following an attack by Robert III's brother Alexander Stewart, Earl of Buchan, also known as the Wolf of Badenoch. In 1402 the cathedral precinct again suffered an incendiary attack by the followers of the Lord of the Isles. The number of clerics required to staff the cathedral continued to grow, as did the number of craftsmen needed to maintain the buildings and surrounds.
The cathedral went through periods of enlargement and renovation following the fires of 1270 and 1390 that included the doubling in length of the choir, the provision of outer aisles to the northern and southern walls of both the nave and choir. Today, these walls are at full height in places and at foundation level in others yet the overall cruciform shape is still discernible. A mostly intact octagonal chapter house dates from the major enlargement after the fire of 1270. The gable wall above the double door entrance that links the west towers is nearly complete and was rebuilt following the fire of 1390. It accommodates a large window opening that now only contains stub tracery work and fragments of a large rose window. Recessed and chest tombs in both transepts and in the south aisle of the choir contain effigies of bishops and knights, and large flat slabs in the now grass-covered floor of the cathedral mark the positions of early graves. The homes of the dignitaries and canons, or manses, stood in the chanonry and were destroyed by fire on three occasions: in 1270, 1390 and 1402. The two towers of the west front are mostly complete and were part of the first phase of construction. Only the precentor's manse is substantially intact; two others have been incorporated into private buildings. A protective wall of massive proportions surrounded the cathedral precinct, but only a small section has survived. The wall had four access gates, one of which—the Pans Port—still exists. 
Question: What were the three years that the homes of the dignitaries and canons were destroyed by fire?
Output (English): 1402.