foreach a\ b [read stdin] {puts [format %.2f [expr $a*$b/($a+$b.)]]}