#!/usr/bin/env python3 def compute_exp(p): return 1 / (1 - p) - 1 def main(): p = float(input()) ex = compute_exp(p) print("{:.12f}".format(ex)) if __name__ == '__main__': main()