l=[int(i) for i in input().split()] k=int(input()) rl=[] for i in range((len(l)-k),len(l)): rl.append(l[i]) for i in range((len(l)-k)): rl.append(l[i]) print(rl)
To embed this program on your website, copy the following code and paste it into your website's HTML: