import sys
input=sys.stdin.readline
def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))

def main():
    mod=10**9+7
    a,b,c=MI()
    
    if (a%3) and (b%3) and (c%3):
        print("No")
    else:
        print("Yes")


main()