001package state.two;
002
003public class Main {
004        public static void main(String[] args) {
005                C x = new C();
006                System.out.println(x.f());
007                System.out.println(x.f());
008                System.out.println(x.f());
009                x.changeDirection();
010                System.out.println(x.f());
011                System.out.println(x.f());
012                System.out.println(x.f());
013                x.changeDirection();
014                System.out.println(x.g());
015                System.out.println(x.g());
016                System.out.println(x.g());
017                x.changeDirection();
018                System.out.println(x.g());
019                System.out.println(x.g());
020                System.out.println(x.g());
021        }
022}