Beautiful Yekaterinburg

No attempts yetTime limit1sMemory limit128 MB

Problem

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.

Input

A single line that contains an integer DD indicating the position of the digit you must compute. (1D41 \le D \le 4)

Output

Print a line with the digit at position DD of the year Yekaterinburg was founded.