fork download
  1. s,k=input(),int(input())
  2. print(s[-k:]+s[:-k])
Success #stdin #stdout 0.02s 27712KB
stdin
apple
2
stdout
leapp