var k,i:integer;
a:array[1..16]of integer;
begin
randomize;k:=0;
for i:=1 to 16 do
a[i]:=random(-20,20);
write(a[i],' ');
if a[i] mod 3 = 0 then
k:=k+1;
end;
if k>0 then
writeln('YES');
end.
var k,i:integer;
a:array[1..16]of integer;
begin
randomize;k:=0;
for i:=1 to 16 do
begin
a[i]:=random(-20,20);
write(a[i],' ');
if a[i] mod 3 = 0 then
k:=k+1;
end;
if k>0 then
writeln('YES');
end.