eolymp
bolt
Try our new interface for solving problems
Problems

Beautiful Yekaterinburg

Beautiful Yekaterinburg

Time limit 1 second
Memory limit 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.

Input data

A single line that contains an integer D (1D4) indicating the position of the digit you must calculate.

Output data

Output a line with an integer representing the digit at position D of the year Yekaterinburg was founded.

Examples

Input example #1
1
Output example #1
1
Source ACM ICPC Regional Latino America 2013, Warmup Session