public class App {
    public static void main(String[] args) throws Exception {
        int countingNumber = 0;

        while (countingNumber <= 1000) {
            System.out.println(countingNumber);
            countingNumber++;
        }
        System.out.println("End of code");
    }
}
