import java.math.BigInteger; import java.util.Scanner; public class DoubleUp_JPB { public static final int SIZE = 1000; public static int[][] table = new int[SIZE][SIZE+1]; public static void main(String[] args) { Scanner in = new Scanner(System.in); int n = in.nextInt(); double ln2 = Math.log(2.0); for(int i=0; i best) best = table[i][j]+1; } } table[i][len] = best; } } // System.out.println(table[0][n]); BigInteger b = new BigInteger("2"); b = b.pow(table[0][n]); System.out.println(b); } }