Problem: 

Input

The input contains a single integer a (0 ≤ a ≤ 35).

Output

Output a single integer.

Examples

Input

3


Output

8


Input

10


Output

1024

Solution (in JAVA):

Solution:
import java.io.PrintWriter;
import java.util.*;

public class c {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out, true);
        int n = in.nextInt();
        long a = 1;
        for (int i = 0; i < Math.min(12, n); i++) {
            a *= 2;
        }
        if (n < 13)
            out.print(a);
        else {
            n -= 13;
            a = a * 2 - 100;
            for (int i = 0; i < n; i++) {
                a *= 2;
            }
            out.print(a);
        }
        out.close();
    }
}