import sys sys.setrecursionlimit(10 ** 6) stdin = sys.stdin ni = lambda: int(ns()) na = lambda: list(map(int, stdin.readline().split())) ns = lambda: stdin.readline().strip() nsa = lambda: list(map(str, stdin.readline().split())) ntp = lambda: tuple(map(int, stdin.readline().split())) mod = 10 ** 9 + 7 inf = 2 << 90 x, y, z = na() print('YNeos'[x * y * z % 3 != 0::2])