시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
1 초 128 MB 3460 3035 2860 88.572%

문제

새 학기를 맞아 상근이는 책을 10권 구입했다. 상근이는 의욕이 너무 앞서서 가격을 조사하지 않고 책을 구입했다. 이제 각 책의 가격을 알아보려고 한다.

하지만, 영수증에는 얼룩이 묻어있었고, 상근이는 책 10권 중 9권의 가격만 읽을 수 있었다.

책 10권의 총 가격과 가격을 읽을 수 있는 9권 가격이 주어졌을 때, 가격을 읽을 수 없는 책의 가격을 구하는 프로그램을 작성하시오.

입력

첫째 줄에 10권의 총 가격이 주어진다. 둘째 줄부터 9개 줄에는 가격을 읽을 수 있는 책 9권의 가격이 주어진다. 책의 가격은 10000이하이다.

출력

첫째 줄에 가격을 읽을 수 없는 책의 가격을 출력한다.

예제 입력 1

9850
1050
800
420
380
600
820
2400
1800
980

예제 출력 1

600
W3sicHJvYmxlbV9pZCI6IjU1NjUiLCJwcm9ibGVtX2xhbmciOiIwIiwidGl0bGUiOiJcdWM2MDFcdWMyMThcdWM5OWQiLCJkZXNjcmlwdGlvbiI6IlxyXG48cD5cclxuXHRcdWMwYzggXHVkNTU5XHVhZTMwXHViOTdjIFx1YjlkZVx1YzU0NCBcdWMwYzFcdWFkZmNcdWM3NzRcdWIyOTQgXHVjYzQ1XHVjNzQ0IDEwXHVhZDhjIFx1YWQ2Y1x1Yzc4NVx1ZDU4OFx1YjJlNC4gXHVjMGMxXHVhZGZjXHVjNzc0XHViMjk0IFx1Yzc1OFx1YzY5NVx1Yzc3NCBcdWIxMDhcdWJiMzQgXHVjNTVlXHVjMTFjXHVjMTFjIFx1YWMwMFx1YWNhOVx1Yzc0NCBcdWM4NzBcdWMwYWNcdWQ1NThcdWM5YzAgXHVjNTRhXHVhY2UwIFx1Y2M0NVx1Yzc0NCBcdWFkNmNcdWM3ODVcdWQ1ODhcdWIyZTQuIFx1Yzc3NFx1YzgxYyBcdWFjMDEgXHVjYzQ1XHVjNzU4IFx1YWMwMFx1YWNhOVx1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