import java.util.*; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); double p = Double.parseDouble(scan.next()); System.out.println(p/(1-p)); } }