uses crt;
var i, max: integer;
a: array [1..30] of integer;
begin
clrscr;
for i:=1 to 30 do
begin
write ('a[ ',i ,']='); readln (a[i]);
end;
max:= a[1];
for i:=2 to 30 do
if a[i] > max then max := a[i];
writeln( ' so lon nhat la: ' ,max);
readln
end.