import java.util.*;

public class Main {
    static Scanner scanner = new Scanner(System.in);

    public static void main(String[]$) {
        System.out.println(Integer.highestOneBit(scanner.nextInt()));
    }
} import java.util.*; util.* java public class Main {
    static Scanner scanner = new Scanner(System.in);

    public static void main(String[]$) {
        System.out.println(Integer.highestOneBit(scanner.nextInt()));
    }
} Main static Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) public static void main(String[]$) {
        System.out.println(Integer.highestOneBit(scanner.nextInt()));
    } main {
        System.out.println(Integer.highestOneBit(scanner.nextInt()));
    } System.out.println(Integer.highestOneBit(scanner.nextInt())) System.out.println System.out System System.out Integer.highestOneBit(scanner.nextInt()) Integer.highestOneBit Integer scanner.nextInt() scanner.nextInt scanner String[]$ $ public class Main {
    static Scanner scanner = new Scanner(System.in);

    public static void main(String[]$) {
        System.out.println(Integer.highestOneBit(scanner.nextInt()));
    }
} public class Main {
    static Scanner scanner = new Scanner(System.in);

    public static void main(String[]$) {
        System.out.println(Integer.highestOneBit(scanner.nextInt()));
    }
} Main
import java.util.*;

public class Main {
    static Scanner scanner = new Scanner(System.in);

    public static void main(String[]$) {
        System.out.println(Integer.highestOneBit(scanner.nextInt()));
    }
}