#while loop
'''a=1
while(a<10):
    print ("Sayed")'''
    
#print value from 20 to 35
'''a=20
while(a<36):
    print (a)
    a=a+1'''
    
#print the value from n1 to n5
'''n1=int(input("enter the value of number 1"))
n2=int(input("enter the value of number 2"))
while(n1<n2):
    #check a number age is even or odd
    if(n1%2==0):
        print (n1)
    n1=n1+1'''
    
#write a program to swap 2 number 
'''l1=int(input("enter the first number"))
l2=int(input("enter the second number"))

l3=l1
l1=l2
l2=l3

print (l1)
print (l2)'''

#swaping the numbers. 
a=int(input("enter the first number"))
b=int(input("enter the second number"))
a=a+b
b=a-b
a=a-b
print(a)
print(b)