f | s = '' | f | s = '' |
| while True: | | while True: |
| try: | | try: |
| z = input() | | z = input() |
| # print(z.find('input')) | | # print(z.find('input')) |
t | if not(z.find('print') > 0 or z.find('input') > 0): | t | if not(z.find('print') > 0) and not(z.find('input') > 0): |
| s += '\n' + z | | s += '\n' + z |
| except (KeyboardInterrupt, EOFError): | | except (KeyboardInterrupt, EOFError): |
| try: | | try: |
| exec(s) | | exec(s) |
| except (TypeError) as err: | | except (TypeError) as err: |
| print("No") | | print("No") |
| except BaseException: | | except BaseException: |
| print("Yes") | | print("Yes") |
| else: | | else: |
| print("Yes") | | print("Yes") |
| raise SystemExit() | | raise SystemExit() |
| | | |