Century From Year
Submit solution
Points:
1
Time limit:
2.0s
Memory limit:
256M
Problem types
Allowed languages
Python
Write a program that reads a year and prints the century that the year belongs to.
For example:
- years 1 to 100 are in the 1st century
- years 101 to 200 are in the 2nd century
- years 1901 to 2000 are in the 20th century
- years 2001 to 2100 are in the 21st century
Input
The input contains one positive integer, year.
Output
Output the century number.
Sample Input
1705
Sample Output
18
Comments