X, Y, Z = [int(i) for i in input().strip().split(' ')] print(['No', 'Yes'][(X * Y * Z) % 3 == 0])