import SimpleOutput;

/**
 * A simple program to illustrate command-line input.
 *
 * @author Samuel A. Rebelsky
 * @version 1.0 of September 1999
 */
public class Count {
  public static void main(String[] args) {
    // Prepare for output.
    SimpleOutput out = new SimpleOutput();

    // Get the maximum number to print.
    int n = Integer.parseInt(args[0]);
    
    for (int i = 0; i <= n; ++i) {
      out.print(i + " ");
    }
    out.println();
  } // main(String[])
} // class Count
