#include <bits/stdc++.h>
using namespace std;
long long x,ln,i,n;
int main()
{
cin>>n;
ln=LLONG_MIN;
for (i=1; i<=n; i++)
{
cin>>x;
ln=max(ln,x);
}
cout<<ln;
return 0;
}
Program HOC24;
var a: array[1..32000] of integer;
i,n,max: integer;
begin
write('Nhap so phan tu: '); readln(n);
for i:=1 to n do
begin
write('A[',i,']='); readln(a[i]);
end;
max:=a[1];
for i:=2 to n do
if a[i]>max then max:=a[i];
write('So lon nhat la: ',max);
readln
end.