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.math.BigDecimal;
import java.util.Scanner;

/**
 * Created by u3 on 16-4-2.
 */
public class pa {
    public BigDecimal p(float n){
        BigDecimal bigDecimal =  new BigDecimal(2);
        bigDecimal =  bigDecimal.pow((int)n);
        return bigDecimal;
    }
    public static void main(String[] args){

        Scanner scanner = new Scanner(System.in);
        pa p = new pa();
        int a = 0;
        while(scanner.hasNextInt()){
            a = scanner.nextInt();
            if(a >= 13){
                a -= 13;
             System.out.println(p.p(a).multiply(new BigDecimal(8092)));
            }else
            System.out.println(p.p(a));
        }
    }
}