import java.io.IOException; import java.io.InputStream; import java.util.ArrayList; import java.util.Arrays; import java.util.NoSuchElementException; import java.util.PriorityQueue; import java.util.Random; public class Main { public static void main(String[] args) { new Main().run(); } void run() { FastScanner sc=new FastScanner(); // 1/Q < P/(QNN) + log_2(N)/N int P=sc.nextInt(); int Q=sc.nextInt(); double ok=1; double ng=1e50; for (int i=0;i<300;++i) { double m=(ok+ng)/2; if (1./Q