📅  最后修改于: 2022-03-11 14:45:53.045000             🧑  作者: Mango
def average():
sum=0
n=int(input())
p=int(input())
for i in range(n,(n*p+1),n):
sum=sum+i
return int(sum/p)
print(average())