P27185 [AtCoder] Who Are the Non-Submitters?
普及+
题目描述

Problem Description

Professor M of JOI University teaches a programming class. There are 30 students in the class, each assigned a unique attendance number from 1 to 30. 28 students have submitted their assignments. Write a program to determine the attendance numbers of the 2 students who have not submitted their assignments.


Input Format

The input consists of 28 lines, each containing the attendance number (between 1 and 30) of a student who has submitted their assignment. The attendance numbers are unique and may be given in any order.

Output Format

The output consists of 2 lines. The first line should contain the smaller attendance number of the two non-submitters, and the second line should contain the larger attendance number.


Sample Input and Output

Sample Input #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

Sample Output #1

2
8

Sample Input #2

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

Sample Output #2

2
8

Notes/Hints

Sample Explanation 1

- - - - - -

输入格式

见题面 Input 部分

输出格式

见题面 Output 部分

样例输入
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
样例输出
2 8