Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- word = input()
- len_word = len(word)
- out = 0
- for i, j in enumerate(word):
- if len_word - i == int(j):
- out = len_word - i
- break
- print(out)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement