import java.io.IOException; import java.io.InputStream; import java.util.NoSuchElementException; public class Main { public static void main(String[] args) { FS r = new FS(); int N = r.nextInt(); double p = r.nextDouble(); int[] l = new int[N+1]; int i=1; while(true) { i++; if(N