시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
1 초 128 MB 1649 776 729 51.266%

문제

상근이는 등차수열을 이루는 정수 4개를 골랐다. 이것은 상근이가 고른 수 4개를 정렬했을 때, 인접한 쌍의 차이가 일정하다는 것을 의미한다. 그 다음 이렇게 고른 숫자 4개를 노래로 만들어서 외우고 다닌다.

어느 날, 상근이는 자신이 고른 4개 숫자 중 1개를 까먹었다. 

상근이가 고른 네 개의 숫자 중 세 개가 주어졌을 때, 네 번째 숫자를 구하는 프로그램을 작성하시오.

입력

첫째 줄에 상근이가 고른 네 개의 숫자 중 세 개가 주어진다. 이 숫자는 크기 순이 아닐 수도 있고, -100보다 크거나 같고, 100보다 작거나 같은 정수이다.

출력

첫째 줄에 네 번째 숫자를 출력한다. 정답이 여러 개일 경우에는 아무거나 출력하면 된다. 또한 정답이 존재하지 않는 경우는 입력으로 주어지지 않는다.

예제 입력 1

4 6 8

예제 출력 1

10
W3sicHJvYmxlbV9pZCI6IjI5OTciLCJwcm9ibGVtX2xhbmciOiIwIiwidGl0bGUiOiJcdWIxMjQgXHViYzg4XHVjOWY4IFx1YzIxOCIsImRlc2NyaXB0aW9uIjoiXHJcbjxwPlxyXG5cdFx1YzBjMVx1YWRmY1x1Yzc3NFx1YjI5NCBcdWI0ZjFcdWNjMjhcdWMyMThcdWM1ZjRcdWM3NDQgXHVjNzc0XHViOGU4XHViMjk0IFx1YzgxNVx1YzIxOCA0XHVhYzFjXHViOTdjIFx1YWNlOFx1Yjc5MFx1YjJlNC4gXHVjNzc0XHVhYzgzXHVjNzQwIFx1YzBjMVx1YWRmY1x1Yzc3NFx1YWMwMCBcdWFjZTBcdWI5NzggXHVjMjE4IDRcdWFjMWNcdWI5N2MgXHVjODE1XHViODJjXHVkNTg4XHVjNzQ0IFx1YjU0YywgXHVjNzc4XHVjODExXHVkNTVjIFx1YzMwZFx1Yzc1OCBcdWNjMjhcdWM3NzRcdWFjMDAgXHVjNzdjXHVjODE1XHVkNTU4XHViMm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