import java.util.*; public class Main { static final int MOD = 1000000007; public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println(1 / (1 - sc.nextDouble()) - 1); } }