This page is still under construction.

Parts of this page are still being built. What you see may change.

Print N Downward

Time limit1sMemory limit128 MB

Summary
Read a number N and print integers from N down to 1, one per line.
Level

Easy1 of 10

Topics
Implementation
Solved
No attempts yet

Problem

Given a natural number N, write a program that prints the integers from N down to 1, one per line.

Input

The first line contains a natural number N. N is at most 100,000.

Output

Print N, N-1, ..., 1 in order, one number per line, from the first line through the N-th line.

Examples1

  1. Example 1

    Input
    5
    
    Expected output
    5
    4
    3
    2
    1