We have a sandglass that runs for X seconds. The sand drops from the upper bulb at a rate of 1 gram per second. That is, the upper bulb initially contains X grams of sand.  How many grams of sand will the upper bulb contains after t seconds?
s = input()
num = len(s)
newl = []

for i in range(0,num,2):
    newl.append(s[i])
ans = "".join(newl)

print(ans)
X,t = map(int,input().split())
if X > t:
    print(X-t)
else:
    print(0)