import java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;public class GreenTop { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int N = Integer.parseInt(br.readLine()); int result = (int) Math.pow(2, N); System.out.println(result); }}