class Test {
    public static void test(int i) {
        int x;
        if (i == 1) {
            System.out.println(1);
            x = 1;
        } else if (i == 2) {
            System.out.println(2);
            x = 2;
        } else {
            x = 3;
        }
    }
}