以下是代码:
x=int(input())
g=w=100
g=g*pow(1.001,x)
n=x//5
m=n%5
for i in range(n):
for i in range(3):
w+=w*0.002
for i in range(2):
w-=w*0.001
while(n<1):
if(m<=3):
w+=w*0.002
if(m>3):
for i in range(3):
w+=w*0.002
for i in range(m-3):
w-=w*0.001
break
print("%.5f,%.5f"%(g,w))