Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from collections import Counter
- a = input().replace(",", "").replace(".", "").lower().split()
- b = input().replace(",", "").replace(".", "").lower().split()
- print("YES" if Counter(a) == Counter(b) else "NO")
Add Comment
Please, Sign In to add comment