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:
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */


import java.util.Scanner;

/**
 *
 * @author Admin
 */
public class SimpleTes {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        Scanner scan = new Scanner(System.in);
        int x = scan.nextInt();
        double y = 0;
        if (x <= 12) y = Math.pow(2,x);
        else y = 8092 * Math.pow(2,(x-13));
        long a = (long) y;
        System.out.format("%d\n",a);
    }
    
}