u0 = 5
q = 0.3
s = u0 * ( (q**101 - 1) / (q - 1) )

print(s)
