x, y, z = gets.split.map(&:to_i)

a = x * y * z

puts ((a % 3 == 0) ? "Yes" : "No")