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.util.*;

public class test
{	
    private static Scanner sc = new Scanner(System.in);
	private static String abc[] = {"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"};
	
	
	
	public static void main(String[] args)
    {	
	
		int a = sc.nextInt();
		
		System.out.println(a%2);

		
		

		
		
		
				
		
	}
}


/*
1
2
3
4
5
6
7


6  8
7  9
8  9
9  20
10 18
11 46
12 67
13 69

14 68
15 75
*/