Yekaterinburg is a beautiful city founded in the eighteenth century. Your task in this problem is to tell us the exact year of its foundation.
To make the task lighter, you only have to compute one of the four digits of the year. The position of the digit you must compute is numbered from 1 to 4, from the most significant digit to the least significant one. For the year 2013, digit 1 is 2, digit 2 is 0, digit 3 is 1, and digit 4 is 3.
If you failed to bring an encyclopedia with you, the year Yekaterinburg was founded can be looked up in a history reference.
A single line that contains an integer D indicating the position of the digit you must compute. (1≤D≤4)
Print a line with the digit at position D of the year Yekaterinburg was founded.