Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- lst = input().split(' ')
- number = int(input())
- output = []
- while len(lst) != 0:
- for i in range(number - 1):
- lst.append(lst[0])
- del lst[0]
- output.append(int(lst[0]))
- del lst[0]
- print(str(output).strip().replace(' ', ''))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement