Type: Default 1000ms 256MiB

E.治病

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

背景

ZSC001第五题。

问题描述

张锦程在美国生病了,有nn家医院,路程分别是a1a2ana_1、a_2……a_n千米,找出最近的医院离张锦程的距离,让他治病吧!

格式

输入

n+1n+1行,第一行是nn,也就是医院的数量,后面nn行依次是a1ana_1……a_n,也就是各医院离张锦程的距离。

输出

一个数,最近的医院离张锦程的距离(单位:千米)。

样例

10
1
2
1
3
4
2
45
1
4
8
1
5
3
4
2
45
8
2

数据

1n201\leq n\leq 20

1ai10001\leq a_i\leq 1000