program P1;
uses
crt;
type
TArray = array[1..1] of integer;
var
N,max : integer;
i,k : integer;
A : ^TArray;
begin
{$R-}
clrscr;
write('N = ');
read(N);
GetMem(A,N*sizeof(integer));
k := 1;
for i := 1 to N do
begin
write('Element ',i,' = ');
read(A^[i]);
if i = 1 then
max := A^[i];
if A^[i] > max then
begin
max := A^[i];
k := i;
end;
end;
writeln('');
writeln('Max = ',max);
writeln('Nomer: ',k);
readln;
readln;
freemem(A,N*sizeof(integer));
end.