loading
main.py
1
2
3
wd = input()
y = int(input())
print(wd[::-1] * y)