Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- s = [str(i) for i in input().split()]
- cmax = s[0]
- lmax = len(s[0])
- for i in s:
- if s.count(i)>s.count(cmax):
- cmax = i
- if len(i)>len(lmax):
- lmax = i
- print(cmax)
- print(lmax)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement