n, k = map(str, input().split(' ')) for x in range(0, int(k)): if n == n[::-1]: print(n) print(x) exit() else: n = str(int(n) + int(n[::-1])) print(n) print(k)
学Python的真好
学Python的真好