|시간 제한||메모리 제한||제출||정답||맞은 사람||정답 비율|
|1 초||128 MB||10||7||7||70.000%|
Yekaterinburg is a beautiful city founded in the eighteenth century. Your task in this problem is to give us information about the precise year of its foundation.
To make the task less overwhelming, you are only asked to calculate one of the four digits of the year. To indicate the position of the digit you must calculate, digits are numbered between 1 and 4, from the most significant to the least significant. As an example, for the year 2013 digit 1 is “2”, digit 2 is “0”, digit 3 is “1” and digit 4 is “3”.
In case you failed to bring an encyclopedia with you, information about Yekaterinburg may be obtained via a clarification.
A single line that contains an integer D (1 ≤ D ≤ 4) indicating the position of the digit you must calculate.
Output a line with an integer representing the digit at position D of the year Yekaterinburg was founded.