class CTriangle:
def __init__(self, x, y):
self.x = x
self.y = y
def __add__(self, other):
return CTriangle(self.x + other.x, self.y + other.y)
def __str__(self):
return 'A(0,{}),B(0,0),C({},0)'.format(self.y, self.x)
ans = CTriangle(0, 0)
while True:
y, x = map(int, input().split())
if y == 0:
print(ans)
break
ans += CTriangle(x, y)

京公网安备 11010502036488号