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

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


Today in the Indian town of Old Goa celebrate the Day of St. Francis Xavier. 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
Enter two natural numbers – year of birth and year of death. Numbers are separated by spaces. Both numbers do not exceed 2000.
Imprint
The program should  determine how many times the peasant could touch the holy relics,  and output the answer - a single number.
 
Examples
# Input Output
1 1610 1640 3
2 1615 1645 3