eolymp
bolt
Спробуйте наш новий інтерфейс для відправки розв'язків
Задачі

Beautiful Yekaterinburg

Beautiful Yekaterinburg

Ліміт часу 1 секунда
Ліміт використання пам'яті 64 MiB

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 (1D4) 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.

Приклад

Вхідні дані #1
1
Вихідні дані #1
1
Джерело ACM ICPC Regional Latino America 2013, Warmup Session