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.*;
import java.math.BigInteger;
import java.util.*;

public class a1 {
	static BufferedReader br;
	static StringTokenizer in;
	PrintWriter out;

	public static String nextToken() throws IOException {
		while (in == null || !in.hasMoreTokens()) {
			in = new StringTokenizer(br.readLine());
		}
		return in.nextToken();
	}

	public int nextInt() throws IOException {
		return Integer.parseInt(nextToken());
	}

	public double nextDouble() throws IOException {
		return Double.parseDouble(nextToken());
	}

	public long nextLong() throws IOException {
		return Long.parseLong(nextToken());
	}

	public static void main(String[] args) throws IOException {
		new a1().run();
	}
	
	public void solve() throws IOException {
		int n = nextInt();
		
		if (n >= 13){
			long answ = 8092;
			
			for (int i = 0; i < n - 13; i++) {
				answ = 1l * answ * 2;
			}
			
			out.println(answ);
		}	
		else{
			BigInteger ans = BigInteger.ONE;
			
			for (int i = 0; i < n; i++) {
				ans = ans.multiply(BigInteger.valueOf(2));
			}
			
			out.println(ans);
		}
	}

	public void run() {
		try {
			br = new BufferedReader(new InputStreamReader(System.in));
			out = new PrintWriter(System.out);

			solve();

			out.close();
		} catch (IOException e) {
			e.printStackTrace();
			System.exit(1);
		}
	}
}