mod = 1000000007 eps = 10**-9 def main(): import sys input = sys.stdin.buffer.readline x, y, z = map(int, input().split()) if (x+y+z)%3: print("No") else: print("Yes") if __name__ == '__main__': main()