Hide
Problem J
Aldur
Languages
en
is
Image from pixabay
After he counted through the ages of all his friends, he stopped and wondered which of his friends is the youngest. Can you help him with that?
Input
The first line consists of a single integer $n$, the number of friends Tómas
has.
Then there are $n$ lines.
In the $i$-th line there
is a single integer $a_i$,
the age of his $i$-th
friend.
Output
Print a single integer, the age of Tómas’ youngest
friend.
Scoring
Group |
Points |
Constraints |
1 |
100 |
$1 \leq n \leq 1000, 0 \leq a_i \leq 10^5$ |
Sample Input 1 | Sample Output 1 |
---|---|
5 5 3 4 1 2 |
1 |
Sample Input 2 | Sample Output 2 |
---|---|
4 3 3 3 100 |
3 |