SuperIncreasing Sequence

1

2 votes
Easy
Problem

Problem

A sequence is said to be in "SuperIncreasing" sequence iff each and every element is greater than all the previous elements.

Mathematically,

arri>arri1

Input Format:

The first line consists of single integer (n) denoting the number of elements in input sequence.

next line consists of n spaced integers denoting elements of input sequence.

Constraints:

0n106

0arri106

Sample Input
7
2 5 19 4 6 92 8
Sample Output
2 5 19 92
Time Limit: 1
Memory Limit: 256
Source Limit:
Editor Image

?