Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- numbers = input().split(' ')
- string = list(input())
- message = ''
- for number in numbers:
- num = 0
- for i in range(len(number)):
- num += int(number[i])
- message += string[num % len(string)]
- string.pop(num % len(string))
- print(message)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement