
public class Main {


  public static void main(String args[]) {
  
    RoundTable table;
    
    for (int n=1; n<=64; n=n+1) {
    
      table = new RoundTable(n);
      
      while ( !table.lastPlayer() ) {
        table.step();
      }
      System.out.println( table.currentPlayer() );
    }
  }

}
