A, B, C = map(int, input().split()) print(['No', 'Yes'][A%3 * B%3 * C%3 == 0])