Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- n = int(input())
- ans=0
- pi=1
- for i in range(n):
- s=input()
- kol=0
- for j in range(len(s)):
- if (s[j]=='a' or s[j]=='i' or s[j]=='e' or s[j]=='u' or s[j]=='o' or s[j]=='y'):
- kol+=1
- if (kol>ans):
- ans=kol
- pi=i+1
- print(pi,ans)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement