Start: Jun, 05, 2019 15:00:00
2019春ACM通识课考试(第二场)
End: Jun, 05, 2019 18:00:00
Time elapsed:
Time remaining:

Problem_ID: E
Result: Accepted
Time: 131ms
Memory: 24448kB
Author: 2018212902010
In contest: 1271

def ans(n,m):
    a=(4*n-m)/2
    b=(m-2*n)/2
    if a<0 or b<0:
        print("No answer")
    else:
        print(int(a),int(b),end=" ")
n,m=list(map(int,input().split()))

ans(n,m)