x = list(map(int, input().split())) if (x[0]*x[1]*x[2])%3==0:print("Yes") else:print("No")