P = int(input("P: "))
count = 0
summ = 0
for i in range(1, int(input("N: "))):
if i % P == 0:
count += 1
summ += i
print("Кол-во чисел кратных P = ", count, "| Сумма = ", summ)
P = int(input("P: "))
count = 0
summ = 0
for i in range(1, int(input("N: "))):
if i % P == 0:
count += 1
summ += i
print("Кол-во чисел кратных P = ", count, "| Сумма = ", summ)