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:
// package codeforces;

import java.util.Scanner;

/**
 * Created by songlin on 3/30/17.
 */
public class Main {
    public static void main(String[] args) {
        Scanner stdin = new Scanner(System.in);
        int a = stdin.nextInt();
        if (a >= 13) {
            System.out.println(8092L << (a - 13));
        } else {
            System.out.println((1L << a));
        }
    }
}