Scanner scan = new Scanner(System.in);
int w = scan.nextInt();
double h = (double)scan.nextInt() / 100;
double BMI = w / h / h;
//第1种方法
System.out.println(String.format("%.2f",BMI));
//第2种方法
//System.out.println(new DecimalFormat(".00").format(BMI));