a, b, c = io.read("*n", "*n", "*n") print((a + b + c) % 3 == 0 and "Yes" or "No")