MathDB
SAMO 2013 Senior Round 3 Problem 1

Source:

September 13, 2013

Problem Statement

2013 is the first year since the Middle Ages that consists of four consecutive digits. How many such years are there still to come after 2013 (and before 10000)?