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.util.*;
public class Vaci
{
  
  public void run()
  {
   Scanner in= new Scanner(System.in);
   long n = in.nextLong();
   if(n<13)
   {
   long ans= (long)Math.pow(2,n);
   System.out.println(ans);
   }
   else
   {
     long s = (long)Math.pow(2,n-13);
	 long ans = 8092*s;
	 System.out.println(ans);
	} 
  }	
 public static void main(String args[])
  {
    new Vaci().run();
   }
}