#504
Bronze II
Do You Know Your ABCs?
시간 제한
2s
메모리 제한
1024MB
제출
0
정답
0
맞힌 사람
0
정답 비율
0.0%

문제

Farmer John's cows have been holding a daily online gathering on the "mooZ" video meeting platform. For fun, they have invented a simple number game to play during the meeting to keep themselves entertained.

Elsie has three positive integers AA, BB, and CC (ABCA\le B\le C). These integers are supposed to be secret, so she will not directly reveal them to her sister Bessie. Instead, she gives Bessie seven (not necessarily distinct) integers in the range 11091 \ldots 10^9, claiming that they are AA, BB, CC, A+BA+B, B+CB+C, C+AC+A, and A+B+CA+B+C in some order.

Given a list of these seven numbers, please help Bessie determine AA, BB, and CC. It can be shown that the answer is unique.

입력

The only line of input consists of seven space-separated integers.

출력

Print AA, BB, and CC separated by spaces.

예제 입력 1

2 2 11 4 9 7 9

예제 출력 1

2 2 7

점수

Test cases 2-3 satisfy C50C\le 50.Test cases 4-10 satisfy no additional constraints.

코드 제출

코드를 제출하려면 로그인이 필요합니다.

로그인
내 제출
제출 내역이 없습니다.
맞은 사람
아직 맞은 사람이 없습니다.
난이도 투표
Bronze II1명 투표· 약 1개월 전
로그인 후 AC 받으면 투표할 수 있습니다.
전체 제출
제출 내역이 없습니다.