Uses crt;
Var m,n,i,s: longint;
Begin clrscr;
Write ('nhap m:'); readln (m);
Write ('nhap n:'); readln (n);
While n <m do
Begin
Write ('nhap lai n:');
Readln (n);
End;
S:=0;
For i:=m to n do
If (i mod 3=0) or (i mod 5=0) then s:=s+i;
Write(s);
Readln;
end.