class Main { public static void main(String[] args) { int x = 1; for (int i = 1; i < 10; i++) { x = 2 * (x + 1); } System.out.println(x); } }