Олимпиадный тренинг

Задача 37538. Saint Francis Xavier's Day


Today, the Indian town of Old Goa celebrates St. Francis Xavier's Day. Saint Francis Xavier – missionary, member of the Jesuit order, considered the greatest Catholic missionary of modern times.
Relics of Saint Francis Xavier – spiritual patron of Indian Christians – rest in Old Goa in the famous Catholic church – Basilica of Bom Jesus. Since the construction of the temple in 1605, once every ten years, the relics of the saint are exhibited for public viewing.
Indian peasant Virmaram  – a very pious man, he did not miss the opportunity to touch the holy relics. Knowing the years of his life, determine how many times he could touch the holy relics (it is believed that in the year of his birth he could not do this, but in the year of his death – he could).

Input: Two natural numbers – year of birth and year of death. Numbers are separated by spaces. Both numbers do not exceed 2000.
Output: The program must  determine how many times the peasant could touch the holy relics  and display the answer - one number.

Examples
# Input Output
1 1610 1640 3
2 1615 1645 3

 


Запрещенные операторы:while;for;do;until