var
A, num: array[1..999] of integer;
k, kk: integer;
function SN(c: integer): boolean;
begin
for var j := 2 to 9 do begin
if c mod num[j] <> 0 then
inc(k);
end;
if k = 8 then begin
SN := true;
inc(kk);
end else if k <> 8 then
SN := false;
k := 0;
end;
begin
for var i := 2 to 9 do
num[i] := i;
for var i := 1 to 7 do begin
A[i] := random(2, 200);
writeln(A[i] + ' ');
writeln(SN(A[i]));
end;
writeln(kk);
end.