t | import re | t | import re |
| a = [] | | a = [] |
| b = input() | | b = input() |
| while b: | | while b: |
| a.append(b) | | a.append(b) |
| b = input() | | b = input() |
| for i in range(len(a)): | | for i in range(len(a)): |
| a[i] += "\n" | | a[i] += "\n" |
| | | |
| for i in range(len(a) - 1): | | for i in range(len(a) - 1): |
| a[0] += a[i+1] | | a[0] += a[i+1] |
| | | |
| if len(re.findall("class", a[0])) < 2: | | if len(re.findall("class", a[0])) < 2: |
| print("Yes") | | print("Yes") |
| else: | | else: |
| try: | | try: |
| exec(a[0]) | | exec(a[0]) |
| print("Yes") | | print("Yes") |
| except TypeError: | | except TypeError: |
| print("No") | | print("No") |
| except ZeroDivisionError: | | except ZeroDivisionError: |
| pass | | pass |
| print("Yes") | | print("Yes") |
| | | |