import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int K = sc.nextInt(); int c=0; int win=0; while(c<3000000){ int taro=0; int jiro=0; for(int i=0; itaro){ win++; } c++; } double ans = (double)win/c; System.out.println(ans); } }