S = 6 U = 6 for i in range(1,11): U = U/3 + 2 S = S + U print(S)