codeforces#P290A. Mysterious strings

Mysterious strings

Description

The input contains a single integer a (1 ≤ a ≤ 40).

Output a single string.

Input

The input contains a single integer a (1 ≤ a ≤ 40).

Output

Output a single string.

Samples

2

Adams

8

Van Buren

29

Harding