a = gets.split.map(&:to_i) if a[0] * a[1] * a[2] % 3 == 0 puts "Yes" elsif puts "No" end