S = gets.chomp A, B = S.split('/') puts Rational(A, B).to_f.round(12)