import java.util.*;
import java.util.Arrays;
import java.util.Set;
public class Main{
    public static void main(String[]args){
        Scanner sc=new Scanner(System.in);
        int N=sc.nextInt();
        if(N==1){
            System.out.println(1);
        }
        if((N>1)&&(N<4)){
            System.out.println(2);
        }
        if((N>3)&&(N<8)){
            System.out.println(4);
        }
        if((N>7)&&(N<16)){
            System.out.println(8);
        }
        if((N>15)&&(N<32)){
            System.out.println(16);
        }
        if((N>31)&&(N<64)){
            System.out.println(32);
        }if(N>63){
            System.out.println(64);
        }
        }
        
        
    } import java.util.*; util.* java import java.util.Arrays; Arrays java.util import java.util.Set; Set java.util public class Main{
    public static void main(String[]args){
        Scanner sc=new Scanner(System.in);
        int N=sc.nextInt();
        if(N==1){
            System.out.println(1);
        }
        if((N>1)&&(N<4)){
            System.out.println(2);
        }
        if((N>3)&&(N<8)){
            System.out.println(4);
        }
        if((N>7)&&(N<16)){
            System.out.println(8);
        }
        if((N>15)&&(N<32)){
            System.out.println(16);
        }
        if((N>31)&&(N<64)){
            System.out.println(32);
        }if(N>63){
            System.out.println(64);
        }
        }
        
        
    } Main public static void main(String[]args){
        Scanner sc=new Scanner(System.in);
        int N=sc.nextInt();
        if(N==1){
            System.out.println(1);
        }
        if((N>1)&&(N<4)){
            System.out.println(2);
        }
        if((N>3)&&(N<8)){
            System.out.println(4);
        }
        if((N>7)&&(N<16)){
            System.out.println(8);
        }
        if((N>15)&&(N<32)){
            System.out.println(16);
        }
        if((N>31)&&(N<64)){
            System.out.println(32);
        }if(N>63){
            System.out.println(64);
        }
        } main {
        Scanner sc=new Scanner(System.in);
        int N=sc.nextInt();
        if(N==1){
            System.out.println(1);
        }
        if((N>1)&&(N<4)){
            System.out.println(2);
        }
        if((N>3)&&(N<8)){
            System.out.println(4);
        }
        if((N>7)&&(N<16)){
            System.out.println(8);
        }
        if((N>15)&&(N<32)){
            System.out.println(16);
        }
        if((N>31)&&(N<64)){
            System.out.println(32);
        }if(N>63){
            System.out.println(64);
        }
        } Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int N=sc.nextInt(); N sc.nextInt() sc.nextInt sc if(N==1){
            System.out.println(1);
        } 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<4)){
            System.out.println(2);
        } (N>1)&&(N<4) (N>1) N 1 (N<4) N 4 {
            System.out.println(2);
        } System.out.println(2) System.out.println System.out System System.out 2 if((N>3)&&(N<8)){
            System.out.println(4);
        } (N>3)&&(N<8) (N>3) N 3 (N<8) N 8 {
            System.out.println(4);
        } System.out.println(4) System.out.println System.out System System.out 4 if((N>7)&&(N<16)){
            System.out.println(8);
        } (N>7)&&(N<16) (N>7) N 7 (N<16) N 16 {
            System.out.println(8);
        } System.out.println(8) System.out.println System.out System System.out 8 if((N>15)&&(N<32)){
            System.out.println(16);
        } (N>15)&&(N<32) (N>15) N 15 (N<32) N 32 {
            System.out.println(16);
        } System.out.println(16) System.out.println System.out System System.out 16 if((N>31)&&(N<64)){
            System.out.println(32);
        } (N>31)&&(N<64) (N>31) N 31 (N<64) N 64 {
            System.out.println(32);
        } System.out.println(32) System.out.println System.out System System.out 32 if(N>63){
            System.out.println(64);
        } N>63 N 63 {
            System.out.println(64);
        } System.out.println(64) System.out.println System.out System System.out 64 String[]args args public class Main{
    public static void main(String[]args){
        Scanner sc=new Scanner(System.in);
        int N=sc.nextInt();
        if(N==1){
            System.out.println(1);
        }
        if((N>1)&&(N<4)){
            System.out.println(2);
        }
        if((N>3)&&(N<8)){
            System.out.println(4);
        }
        if((N>7)&&(N<16)){
            System.out.println(8);
        }
        if((N>15)&&(N<32)){
            System.out.println(16);
        }
        if((N>31)&&(N<64)){
            System.out.println(32);
        }if(N>63){
            System.out.println(64);
        }
        }
        
        
    } public class Main{
    public static void main(String[]args){
        Scanner sc=new Scanner(System.in);
        int N=sc.nextInt();
        if(N==1){
            System.out.println(1);
        }
        if((N>1)&&(N<4)){
            System.out.println(2);
        }
        if((N>3)&&(N<8)){
            System.out.println(4);
        }
        if((N>7)&&(N<16)){
            System.out.println(8);
        }
        if((N>15)&&(N<32)){
            System.out.println(16);
        }
        if((N>31)&&(N<64)){
            System.out.println(32);
        }if(N>63){
            System.out.println(64);
        }
        }
        
        
    } Main
import java.util.*;
import java.util.Arrays;
import java.util.Set;
public class Main{
    public static void main(String[]args){
        Scanner sc=new Scanner(System.in);
        int N=sc.nextInt();
        if(N==1){
            System.out.println(1);
        }
        if((N>1)&&(N<4)){
            System.out.println(2);
        }
        if((N>3)&&(N<8)){
            System.out.println(4);
        }
        if((N>7)&&(N<16)){
            System.out.println(8);
        }
        if((N>15)&&(N<32)){
            System.out.println(16);
        }
        if((N>31)&&(N<64)){
            System.out.println(32);
        }if(N>63){
            System.out.println(64);
        }
        }
        
        
    }
