A,B,C=$<.map &:to_i puts Rational(A*B*C,[B*(C-A).abs,B*(C+A)].product([A*(C-B).abs,A*(C+B)]).map{|x,y|x.gcd y}.max)