uses crt;
var a:array[1..100]of integer;
i,n,max:integer;
begin
clrscr;
write('n='); readln(n);
for i:=1 to n do
begin
write('a[',i,']='); readln(a[i]);
end;
{-------------------------------------------------------------}
max:=0;
for i:=1 to n do
if max<a[i] then max:=a[i];
writeln('gia tri lon nhat cua day la: ',max);
readln;
end.