#P290A. Mysterious strings

    ID: 8423 Type: RemoteJudge 2000ms 256MiB Tried: 0 Accepted: 0 Difficulty: 4 Uploaded By: Tags>*special problemimplementation*1400

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.

2

8

29

Adams

Van Buren

Harding