import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Main main = new Main();
		Scanner sc = new Scanner(System.in);
		main.solve(sc);
		sc.close();
	}

	void solve(Scanner sc) {
		int N = sc.nextInt();
		int k = 0;
		if (N == 0) {
			System.out.println(0);
		} else if (N == 1) {
			System.out.println(1);

		} else if (N > 1 && N <= 3) {
			System.out.println(2);

		} else if (N > 3 && N <= 7) {
			System.out.println(4);

		} else if (N > 7 && N <= 15) {
			System.out.println(8);

		} else if (N > 15 && N <= 31) {
			System.out.println(16);

		} else if (N > 31 && N <= 63) {
			System.out.println(32);

		} else if (N > 63 && N <= 100) {
			System.out.println(64);

		}
	}

	// void solve(Scanner sc) {
	// int N = sc.nextInt();
	// int k = 0;
	//
	// for (double i = 1;; i++) {
	// k = (int) Math.pow(2, i);
	// N /= k;
	// if (N == 0) {
	// break;
	// }
	// }
	// System.out.println(k);
	// }
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Main main = new Main();
		Scanner sc = new Scanner(System.in);
		main.solve(sc);
		sc.close();
	}

	void solve(Scanner sc) {
		int N = sc.nextInt();
		int k = 0;
		if (N == 0) {
			System.out.println(0);
		} else if (N == 1) {
			System.out.println(1);

		} else if (N > 1 && N <= 3) {
			System.out.println(2);

		} else if (N > 3 && N <= 7) {
			System.out.println(4);

		} else if (N > 7 && N <= 15) {
			System.out.println(8);

		} else if (N > 15 && N <= 31) {
			System.out.println(16);

		} else if (N > 31 && N <= 63) {
			System.out.println(32);

		} else if (N > 63 && N <= 100) {
			System.out.println(64);

		}
	}

	// void solve(Scanner sc) {
	// int N = sc.nextInt();
	// int k = 0;
	//
	// for (double i = 1;; i++) {
	// k = (int) Math.pow(2, i);
	// N /= k;
	// if (N == 0) {
	// break;
	// }
	// }
	// System.out.println(k);
	// }
} Main public static void main(String[] args) {
		Main main = new Main();
		Scanner sc = new Scanner(System.in);
		main.solve(sc);
		sc.close();
	} main {
		Main main = new Main();
		Scanner sc = new Scanner(System.in);
		main.solve(sc);
		sc.close();
	} Main main = new Main(); main new Main() Scanner sc = new Scanner(System.in); sc new Scanner(System.in) main.solve(sc) main.solve main sc sc.close() sc.close sc String[] args args void solve(Scanner sc) {
		int N = sc.nextInt();
		int k = 0;
		if (N == 0) {
			System.out.println(0);
		} else if (N == 1) {
			System.out.println(1);

		} else if (N > 1 && N <= 3) {
			System.out.println(2);

		} else if (N > 3 && N <= 7) {
			System.out.println(4);

		} else if (N > 7 && N <= 15) {
			System.out.println(8);

		} else if (N > 15 && N <= 31) {
			System.out.println(16);

		} else if (N > 31 && N <= 63) {
			System.out.println(32);

		} else if (N > 63 && N <= 100) {
			System.out.println(64);

		}
	} solve {
		int N = sc.nextInt();
		int k = 0;
		if (N == 0) {
			System.out.println(0);
		} else if (N == 1) {
			System.out.println(1);

		} else if (N > 1 && N <= 3) {
			System.out.println(2);

		} else if (N > 3 && N <= 7) {
			System.out.println(4);

		} else if (N > 7 && N <= 15) {
			System.out.println(8);

		} else if (N > 15 && N <= 31) {
			System.out.println(16);

		} else if (N > 31 && N <= 63) {
			System.out.println(32);

		} else if (N > 63 && N <= 100) {
			System.out.println(64);

		}
	} int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int k = 0; k 0 if (N == 0) {
			System.out.println(0);
		} else if (N == 1) {
			System.out.println(1);

		} else if (N > 1 && N <= 3) {
			System.out.println(2);

		} else if (N > 3 && N <= 7) {
			System.out.println(4);

		} else if (N > 7 && N <= 15) {
			System.out.println(8);

		} else if (N > 15 && N <= 31) {
			System.out.println(16);

		} else if (N > 31 && N <= 63) {
			System.out.println(32);

		} else if (N > 63 && N <= 100) {
			System.out.println(64);

		} N == 0 N 0 {
			System.out.println(0);
		} System.out.println(0) System.out.println System.out System System.out 0 if (N == 1) {
			System.out.println(1);

		} else if (N > 1 && N <= 3) {
			System.out.println(2);

		} else if (N > 3 && N <= 7) {
			System.out.println(4);

		} else if (N > 7 && N <= 15) {
			System.out.println(8);

		} else if (N > 15 && N <= 31) {
			System.out.println(16);

		} else if (N > 31 && N <= 63) {
			System.out.println(32);

		} else if (N > 63 && N <= 100) {
			System.out.println(64);

		} N == 1 N 1 {
			System.out.println(1);

		} System.out.println(1) System.out.println System.out System System.out 1 if (N > 1 && N <= 3) {
			System.out.println(2);

		} else if (N > 3 && N <= 7) {
			System.out.println(4);

		} else if (N > 7 && N <= 15) {
			System.out.println(8);

		} else if (N > 15 && N <= 31) {
			System.out.println(16);

		} else if (N > 31 && N <= 63) {
			System.out.println(32);

		} else if (N > 63 && N <= 100) {
			System.out.println(64);

		} N > 1 && N <= 3 N > 1 N 1 N <= 3 N 3 {
			System.out.println(2);

		} System.out.println(2) System.out.println System.out System System.out 2 if (N > 3 && N <= 7) {
			System.out.println(4);

		} else if (N > 7 && N <= 15) {
			System.out.println(8);

		} else if (N > 15 && N <= 31) {
			System.out.println(16);

		} else if (N > 31 && N <= 63) {
			System.out.println(32);

		} else if (N > 63 && N <= 100) {
			System.out.println(64);

		} N > 3 && N <= 7 N > 3 N 3 N <= 7 N 7 {
			System.out.println(4);

		} System.out.println(4) System.out.println System.out System System.out 4 if (N > 7 && N <= 15) {
			System.out.println(8);

		} else if (N > 15 && N <= 31) {
			System.out.println(16);

		} else if (N > 31 && N <= 63) {
			System.out.println(32);

		} else if (N > 63 && N <= 100) {
			System.out.println(64);

		} N > 7 && N <= 15 N > 7 N 7 N <= 15 N 15 {
			System.out.println(8);

		} System.out.println(8) System.out.println System.out System System.out 8 if (N > 15 && N <= 31) {
			System.out.println(16);

		} else if (N > 31 && N <= 63) {
			System.out.println(32);

		} else if (N > 63 && N <= 100) {
			System.out.println(64);

		} N > 15 && N <= 31 N > 15 N 15 N <= 31 N 31 {
			System.out.println(16);

		} System.out.println(16) System.out.println System.out System System.out 16 if (N > 31 && N <= 63) {
			System.out.println(32);

		} else if (N > 63 && N <= 100) {
			System.out.println(64);

		} N > 31 && N <= 63 N > 31 N 31 N <= 63 N 63 {
			System.out.println(32);

		} System.out.println(32) System.out.println System.out System System.out 32 if (N > 63 && N <= 100) {
			System.out.println(64);

		} N > 63 && N <= 100 N > 63 N 63 N <= 100 N 100 {
			System.out.println(64);

		} System.out.println(64) System.out.println System.out System System.out 64 Scanner sc sc public class Main {
	public static void main(String[] args) {
		Main main = new Main();
		Scanner sc = new Scanner(System.in);
		main.solve(sc);
		sc.close();
	}

	void solve(Scanner sc) {
		int N = sc.nextInt();
		int k = 0;
		if (N == 0) {
			System.out.println(0);
		} else if (N == 1) {
			System.out.println(1);

		} else if (N > 1 && N <= 3) {
			System.out.println(2);

		} else if (N > 3 && N <= 7) {
			System.out.println(4);

		} else if (N > 7 && N <= 15) {
			System.out.println(8);

		} else if (N > 15 && N <= 31) {
			System.out.println(16);

		} else if (N > 31 && N <= 63) {
			System.out.println(32);

		} else if (N > 63 && N <= 100) {
			System.out.println(64);

		}
	}

	// void solve(Scanner sc) {
	// int N = sc.nextInt();
	// int k = 0;
	//
	// for (double i = 1;; i++) {
	// k = (int) Math.pow(2, i);
	// N /= k;
	// if (N == 0) {
	// break;
	// }
	// }
	// System.out.println(k);
	// }
} public class Main {
	public static void main(String[] args) {
		Main main = new Main();
		Scanner sc = new Scanner(System.in);
		main.solve(sc);
		sc.close();
	}

	void solve(Scanner sc) {
		int N = sc.nextInt();
		int k = 0;
		if (N == 0) {
			System.out.println(0);
		} else if (N == 1) {
			System.out.println(1);

		} else if (N > 1 && N <= 3) {
			System.out.println(2);

		} else if (N > 3 && N <= 7) {
			System.out.println(4);

		} else if (N > 7 && N <= 15) {
			System.out.println(8);

		} else if (N > 15 && N <= 31) {
			System.out.println(16);

		} else if (N > 31 && N <= 63) {
			System.out.println(32);

		} else if (N > 63 && N <= 100) {
			System.out.println(64);

		}
	}

	// void solve(Scanner sc) {
	// int N = sc.nextInt();
	// int k = 0;
	//
	// for (double i = 1;; i++) {
	// k = (int) Math.pow(2, i);
	// N /= k;
	// if (N == 0) {
	// break;
	// }
	// }
	// System.out.println(k);
	// }
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Main main = new Main();
		Scanner sc = new Scanner(System.in);
		main.solve(sc);
		sc.close();
	}

	void solve(Scanner sc) {
		int N = sc.nextInt();
		int k = 0;
		if (N == 0) {
			System.out.println(0);
		} else if (N == 1) {
			System.out.println(1);

		} else if (N > 1 && N <= 3) {
			System.out.println(2);

		} else if (N > 3 && N <= 7) {
			System.out.println(4);

		} else if (N > 7 && N <= 15) {
			System.out.println(8);

		} else if (N > 15 && N <= 31) {
			System.out.println(16);

		} else if (N > 31 && N <= 63) {
			System.out.println(32);

		} else if (N > 63 && N <= 100) {
			System.out.println(64);

		}
	}

	// void solve(Scanner sc) {
	// int N = sc.nextInt();
	// int k = 0;
	//
	// for (double i = 1;; i++) {
	// k = (int) Math.pow(2, i);
	// N /= k;
	// if (N == 0) {
	// break;
	// }
	// }
	// System.out.println(k);
	// }
}
