uses crt;
var a: array[1..10000] of longint;
i,n:integer;
begin clrscr;
write('Nhap n: ');readln(n);
for i:=1 to n do read(a[i]); writeln('Cac phan tu chia het cho 3 va 5 la: ');
for i:=1 to n do
if (a[i] mod 3 = 0) and (a[i] mod 5=0) then writeln(a[i],' - vi tri thu ',i);
readln
end.