program timso;
var
n, i, max: integer;
begin
write('Nhap so luong so nguyen: ');
readln(n);
max := -maxint;
for i := 1 to n do
begin
write('Nhap so thu ', i, ': ');
readln(num);
if num > max then
max := num;
end;
writeln('So lon nhat la: ', max);
end.