program BT23;
uses crt;
var a: array[1..100] of integer; i,n: byte; max:integer;
begin
clrscr;
write('Nhap so phan tu can dung:'); readln(n);
for i:=1 to n do begin
write('Nhap phan tu thu ',i,':'); readln(a[i]);
end;
max:=a[1];
for i:=2 to n do if a[i] > max then max:=a[i];
writeln('So lon nhat trong day la:',max);
readln
end.