a, b, c = gets.to_s.split.map{ |e| e.to_i } s = a + b + c + (100 * 3) if s % 3 != 0 puts "No" else puts "Yes" end