from decimal import Decimal p=float(input()) ex=0 p=Decimal(p) ex=Decimal(ex) for i in range(1,10000): ex+=p**i print(ex)