Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- first = set(str.split(input(), ", "))
- second = set(str.split(input(), ", "))
- third = set(str.split(input(), ", "))
- print(len(first.intersection(second).intersection(third)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement