count = 0
for i in range(1, 10000):if i % 13 == 0 and i % 19 == 0 and i % 15 != 0:count += 1
print(count)
count = 0
for i in range(1, 10000):
if i % 13 == 0 and i % 19 == 0 and i % 15 != 0:
count += 1
print(count)