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

Beautiful Yekaterinburg

Beautiful Yekaterinburg

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 \textbf{1} and \textbf{4}, from the most significant to the least significant. As an example, for the year \textbf{2013} digit \textbf{1} is "\textbf{2}", digit \textbf{2} is "\textbf{0}", digit \textbf{3} is "\textbf{1}" and digit \textbf{4 }is "\textbf{3}". In case you failed to bring an encyclopedia with you, information about Yekaterinburg may be obtained via a clarification. \InputFile A single line that contains an integer \textbf{D} (\textbf{1} ≤ \textbf{D} ≤ \textbf{4}) indicating the position of the digit you must calculate. \OutputFile Output a line with an integer representing the digit at position \textbf{D} of the year Yekaterinburg was founded.
Лимит времени 1 секунда
Лимит использования памяти 64 MiB
Входные данные #1
1
Выходные данные #1
1
Источник ACM ICPC Regional Latino America 2013, Warmup Session