class Coordinate(object):
def __init__(self,x,y):
self.x=x
self.y=y
def __str__(self):
print((self.x,self.y))
def __add__(self,x,y):
self.x=x[0]+y[0]
self.y=x[1]+y[1]
x=[int(i) for i in input().split()]
y=[int(i) for i in input().split()]
c=Coordinate(x,y)
c.__add__(x,y)
c.__str__()
def __init__(self,x,y):
self.x=x
self.y=y
def __str__(self):
print((self.x,self.y))
def __add__(self,x,y):
self.x=x[0]+y[0]
self.y=x[1]+y[1]
x=[int(i) for i in input().split()]
y=[int(i) for i in input().split()]
c=Coordinate(x,y)
c.__add__(x,y)
c.__str__()