#yuki-1337 X, Y, Z = map(int, input().split()) b = bool((X+Y+Z)%3) print('YNeos'[b::2])