# 入力された値を文字列で受け取る
str = gets.chomp

# スペースごとに分割して数値で受け取る
x, y, z = str.split.map { _1.to_i }
puts (x * y * z) % 3 == 0 ? "Yes" : "No"