public class P1 {
  public static void calcul(int n) {
    for (int i=0; i<n; i++) {
      System.out.println(i);
    }
  }
  public static void main(String []a) {
    calcul(10);
  }
}