시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
1 초 128 MB 2804 1896 1733 71.170%

문제

X대학 M교수님은 프로그래밍 수업을 맡고 있습니다. 교실엔 학생이 30명이 있는데, 학생 명부엔 각 학생별로 1번부터 30번까지 출석번호가 붙어 있습니다.

교수님이 내준 특별과제를 28명이 제출했는데, 그 중에서 제출 안 한 학생 2명의 출석번호를 구하는 프로그램을 작성하세요.

입력

입력은 총 28줄로 각 제출자(학생)의 출석번호 n(1 ≤ n ≤ 30)을 하나씩 입력합니다. 입력한 출석번호에 중복은 없으며, 순서에 상관없이 입력받을 수 있어야 합니다.

출력

출력은 2줄입니다. 1번째 줄엔 제출하지 않은 학생의 출석번호 중 가장 작은 것을 출력하고, 2번째 줄에선 그 다음 출석번호를 출력하시면 됩니다.

예제 입력 1

3
1
4
5
7
9
6
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30

예제 출력 1

2
8
W3sicHJvYmxlbV9pZCI6IjU1OTciLCJwcm9ibGVtX2xhbmciOiIwIiwidGl0bGUiOiJcdWFjZmNcdWM4MWMgXHVjNTQ4IFx1YjBiNFx1YzJlMCBcdWJkODQuLj8iLCJkZXNjcmlwdGlvbiI6IjxwPlhcdWIzMDBcdWQ1NTkgTVx1YWQ1MFx1YzIxOFx1YjJkOFx1Yzc0MCBcdWQ1MDRcdWI4NWNcdWFkZjhcdWI3OThcdWJjMGQgXHVjMjE4XHVjNWM1XHVjNzQ0IFx1YjllMVx1YWNlMCBcdWM3ODhcdWMyYjVcdWIyYzhcdWIyZTQuIFx1YWQ1MFx1YzJlNFx1YzVkNCBcdWQ1NTlcdWMwZGRcdWM3NzQmbmJzcDszMFx1YmE4NVx1Yzc3NCBcdWM3ODhcdWIyOTRcdWIzNzAsIFx1ZDU1OVx1YzBkZCBcdWJhODVcdWJkODBcdWM1ZDQgXHVhYzAxIFx1ZDU1OVx1YzBkZFx1YmNjNFx1Yjg1YyZuYnNwOzFcdWJjODhcdWJkODBcd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