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