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


if __name__ == '__main__':
    main()