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