**Time limit:** 0.5 seconds
**Memory limit:** 256 megabytes
----------
Write a program that receives one number from the input at each step and continues its operation until the number zero is entered. After the number zero is entered, the program must print the entered numbers in the reverse order of entry.
**# Input**
The input method is such that one number is entered per line. The number of input values is less than 1000. It is guaranteed that the number 0 appears only once at the end of the input, and all other input numbers are positive integers (natural numbers) up to a maximum of 1000.
**# Output**
In the output, one number must be printed per line.
**# Example**
## Sample Input
```
3
4
7
4
9
0
```
## Sample Output
```
9
4
7
4
3
```