class Coordinate:
def __init__(self,x,y):
self.x = int(x)
self.y = int(y)
def __str__(self):
print("({},{})".format(self.x,self.y))
def __add__(self,other):
return Coordinate(self.x + other.x,self.y + other.y)
if __name__ == "__main__":
x1,y1 = input().split(" ")
x2,y2 = input().split(" ")
coor1 = Coordinate(x1,y1)
coor2 = Coordinate(x2,y2)
coor3 = coor1.__add__(coor2)
print("({}, {})".format(coor3.x,coor3.y))

京公网安备 11010502036488号