program bai1;
var a:array[1..100] of longint;
i,n,max:longint;
begin
wrtie('N= ');readln(n);
for i:=1 to n do
begin
write('A[',i,']= ');
readln(a[i]);
end;
max:=a[1];
for i:=1 to n do
if a[i]>max then max:=a[i];
writeln('So lon nhat la ',max);
write('Vi tri la ');
for i:=1 to n do
if a[i]=max then write(i,' ');
readln
end.