inputer = float(input()) result = 0 if inputer >=0.5: bunbo = 1-inputer result=int(inputer/bunbo) print(result)