program XieLian;
var i,k: longint;
begin
k:=0;
for i:=1 to 10000 do
if (i mod 13=0) and (i mod 19=0) and (i mod 15<>0) then
k:=k+1;
writeln(k);
end.
program XieLian;
var i,k: longint;
begin
k:=0;
for i:=1 to 10000 do
if (i mod 13=0) and (i mod 19=0) and (i mod 15<>0) then
k:=k+1;
writeln(k);
end.