JOI-kun has N go stones. The stones are numbered from 1 to N. The color of each stone is an integer between 1 and 109, inclusive. In the beginning, the color of Stone i (1≤i≤N) is A_i.
From now, JOI-kun will perform N operations. He will put the stones on the table in a line. The operation i (1≤i≤N) will be performed as follows:
In order to confirm whether the operations are correctly performed, JOI-kun wants to know in advance the colors of the stones after all the operations are performed.
Given information of the go stones, write a program which determines the colors of the stones after the N operations are performed.
Read the following data from the standard input.
N
A_1
A_2
⋮
A_N
Write N lines to the standard output. The i-th line (1≤i≤N) should contain the color of Stone i after the N operations are performed.