import java.util.*;enum F{F;System z;float a;{for(Scanner s=new Scanner(z.in);s==s;z.out.printf("%.2f\n",a/=a/s.nextInt()+1))a=s.nextInt();}}