fork download
  1. var a,i,n,count: integer;
  2. begin
  3. readln(n);
  4. count:=0;
  5. for i:=1 to n do
  6. begin
  7. readln(a);
  8. if (a mod 4 = 0) and (a mod 7 <> 0) then
  9. count:=count+1;
  10. end;
  11. writeln(count);
  12. end.
Success #stdin #stdout 0s 4372KB
stdin
5
24
28
4
44
2
stdout
3