n = int(input("Введите число n: "))
for i in range(1, n+1):if i % 2 == 0 and i % 3 == 0 and i % 5 == 0:print(i)
n = int(input("Введите число n: "))
for i in range(1, n+1):
if i % 2 == 0 and i % 3 == 0 and i % 5 == 0:
print(i)