mirror of
https://github.com/tiennm99/codeforces.git
synced 2026-06-09 14:11:38 +00:00
10 lines
147 B
Python
10 lines
147 B
Python
n, k = input().split()
|
|
n, k = int(n), int(k)
|
|
while (k):
|
|
if n % 10 == 0:
|
|
n /= 10
|
|
else:
|
|
n -= 1
|
|
k -= 1
|
|
n = int(n)
|
|
print(n) |