import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

  public static void main(String[] args) throws NumberFormatException, IOException {
    int[] array = {64, 32, 16, 8, 4, 2, 1};
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    
    int num = Integer.parseInt(br.readLine());
    
    for (int i = 0; i < array.length; i++) {
      if (num >= array[i]) {
        System.out.println(array[i]);
        break;
      }
    }
  }

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

  public static void main(String[] args) throws NumberFormatException, IOException {
    int[] array = {64, 32, 16, 8, 4, 2, 1};
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    
    int num = Integer.parseInt(br.readLine());
    
    for (int i = 0; i < array.length; i++) {
      if (num >= array[i]) {
        System.out.println(array[i]);
        break;
      }
    }
  }

} Main public static void main(String[] args) throws NumberFormatException, IOException {
    int[] array = {64, 32, 16, 8, 4, 2, 1};
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    
    int num = Integer.parseInt(br.readLine());
    
    for (int i = 0; i < array.length; i++) {
      if (num >= array[i]) {
        System.out.println(array[i]);
        break;
      }
    }
  } main {
    int[] array = {64, 32, 16, 8, 4, 2, 1};
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    
    int num = Integer.parseInt(br.readLine());
    
    for (int i = 0; i < array.length; i++) {
      if (num >= array[i]) {
        System.out.println(array[i]);
        break;
      }
    }
  } int[] array = {64, 32, 16, 8, 4, 2, 1}; array {64, 32, 16, 8, 4, 2, 1} 64 32 16 8 4 2 1 BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int num = Integer.parseInt(br.readLine()); num Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br for (int i = 0; i < array.length; i++) {
      if (num >= array[i]) {
        System.out.println(array[i]);
        break;
      }
    } int i = 0; int i = 0; i 0 i < array.length i array.length array array.length i++ i++ i {
      if (num >= array[i]) {
        System.out.println(array[i]);
        break;
      }
    } {
      if (num >= array[i]) {
        System.out.println(array[i]);
        break;
      }
    } if (num >= array[i]) {
        System.out.println(array[i]);
        break;
      } num >= array[i] num array[i] array i {
        System.out.println(array[i]);
        break;
      } System.out.println(array[i]) System.out.println System.out System System.out array[i] array i break; String[] args args public class Main {

  public static void main(String[] args) throws NumberFormatException, IOException {
    int[] array = {64, 32, 16, 8, 4, 2, 1};
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    
    int num = Integer.parseInt(br.readLine());
    
    for (int i = 0; i < array.length; i++) {
      if (num >= array[i]) {
        System.out.println(array[i]);
        break;
      }
    }
  }

} public class Main {

  public static void main(String[] args) throws NumberFormatException, IOException {
    int[] array = {64, 32, 16, 8, 4, 2, 1};
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    
    int num = Integer.parseInt(br.readLine());
    
    for (int i = 0; i < array.length; i++) {
      if (num >= array[i]) {
        System.out.println(array[i]);
        break;
      }
    }
  }

} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

  public static void main(String[] args) throws NumberFormatException, IOException {
    int[] array = {64, 32, 16, 8, 4, 2, 1};
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    
    int num = Integer.parseInt(br.readLine());
    
    for (int i = 0; i < array.length; i++) {
      if (num >= array[i]) {
        System.out.println(array[i]);
        break;
      }
    }
  }

}
