G LuCode 2021-12-21 110 阅读1分钟 # G import parser s = input() while s != '': l = 0 try: l = parser.st2list(parser.expr(s)) except SyntaxError: print('NO') if l: print('YES') s = input()