<filename>ACM-Solution/julka.py

for c in range(10):
    a = int(input())
    b = int(input())
    print((a+b)//2)
    print((a-b)//2)
    

<filename>ACM-Solution/julka.py

for c in range(10):
    a = int(input())
    b = int(input())
    print((a+b)//2)
    print((a-b)//2)
    
