Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- s = input()
- cnt = 0
- for i in range(len(s)):
- if s[i] == '(':
- cnt += 1
- else:
- cnt -= 1
- if cnt < 0:
- print("Nihuya")
- exit()
- if cnt == 0:
- print("zaebtca")
- else:
- print("hui sosi")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement