from decimal import Decimal as d p=d(input()) print(p/(1-p))