시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
2 초 (추가 시간 없음) 512 MB 3 2 2 66.667%

## 문제

Every pharaoh cares about his legacy. Reigning pharaoh Inaros the Great wants to be remembered for a long time. He is going to build the largest pyramid the humankind has ever seen.

Of course, the proper pyramid should have four sides at the bottom, oriented to the cardinal directions — two sides of the pyramid should go exactly from north to south, and two sides should go from east to west. The perfectly balanced pyramid should have the slope angle of the side equal to 45, no more, no less. To simplify construction, the pyramid should have integer height and integer coordinates of the center.

There are n obelisks at the construction site. The i-th obelisk is a pillar with coordinates (xi, yi) and height hi. Inaros wants to build a pyramid so that each existing obelisk would be inside the pyramid. The obelisk is inside the pyramid if the height of the pyramid at the obelisk position is greater than or equal to the height of the obelisk.

Since the pharaoh wants to finish the construction of the pyramid during his life, he wants to find the smallest possible pyramid that contains all of the obelisks.

## 입력

The first line contains a single integer n — the number of obelisks (1 ≤ n ≤ 1000).

Each of the following n lines contains three integers xi, yi, hi — the coordinates of the i-th obelisk and its height (−108 ≤ xi, yi ≤ 108; 1 ≤ hi ≤ 108).

## 출력

Output three integers x, y, h — the coordinates of the center (x, y) of the optimal pyramid and its height.

## 예제 입력 1

1
0 0 5


## 예제 출력 1

0 0 5


## 예제 입력 2

2
3 3 3
6 6 2


## 예제 출력 2

4 4 4