M, N = gets.split.map(&:to_i) puts (M + Rational(N, 3)).to_f