e-olymp
favorite We need a little bit of your help to keep things running, click on this banner to learn more
Problems

Bigger than previous

Bigger than previous

Array of integers is given. Print all its elements, bigger than previous.

Input

First line contains number of integers n in array. Next line contains n integers. All numbers do not exceed 100 by absolute value.

Output

Print all array elements that are bigger than previous.

Time limit 1 second
Memory limit 128 MiB
Input example #1
7
14 16 3 7 17 19 9
Output example #1
16 7 17 19