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.awt.Point;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Scanner;
/*

2
0.444444 -

*/
public class d {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		long[] res = new long[36];
		res[0] = 1;
		for(int i=1;i<res.length;i++) {
			res[i] = res[i-1] * 2;
			if(res[i] == 8192)
				res[i] = 8092;
		}
		System.out.println(res[in.nextInt()]);
	}
}