a, b, c = map(int,input().split()) a %= 3 b %= 3 c %= 3 if a * b * c == 0: print('Yes') else: print('No')