X,Y,Z = map(int,input().split()) print('Yes' if (X%3==0 or Y%3==0 or Z%3==0) else 'No')