n,m=map(int,input().split())
while not(n==m==0):
j=(m-2*n)/2
j1=(m-2*n)//2
t=False
if j==j1 and j<=n:
print((n-j1),j1)
else:
print('Error')
最初__
相关分类