Integer30. Given is the number of a certain year (a positive integer). Determine the corresponding number of the century, given that, for example, the beginning of the 20th century was 1901.

Solution in Python 3:

import random

Y = random.randint(1,3000)
#Y = 1901
print("Год:",Y)

s = int((Y-1)/100)+1
print("Century:",s)