Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- s = input()
- ans = s.count('VK')
- for subs in s.split('VK'):
- if subs != '' and subs != 'V' and subs != 'K' and subs != 'KV':
- ans += 1
- break
- print(ans)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement