P27194 [AtCoder] Contest
普及+
题目描述

Problem Description

Recently, an online programming contest was held. The computer clubs of W University and K University have been rivals for a long time, and they decided to use this contest to determine which club is superior.

This time, both universities sent 10 participants each to this contest. After a long discussion, it was decided to sum the scores of the top 3 participants from each university to determine the university's score.

You are given the score data of the participants from W University and K University. Write a program to calculate the scores of each university.


Input Format

The input consists of 20 lines. Lines 1 to 10 contain integers representing the scores of each participant from W University, and lines 11 to 20 contain integers representing the scores of each participant from K University. All these integers are between 0 and 100 inclusive.

Output Format

Output the scores of W University and K University in this order, separated by a space.


Sample Input and Output

Sample Input #1

23
23
20
15
15
14
13
9
7
6
25
19
17
17
16
13
12
11
9
5

Sample Output #1

66 61

Sample Input #2

17
25
23
25
79
29
1
61
59
100
44
74
94
57
13
54
82
0
42
45

Sample Output #2

240 250

Notes/Hints

Sample Explanation 1

- - - - - -

输入格式

见题面 Input 部分

输出格式

见题面 Output 部分

样例输入
23 23 20 15 15 14 13 9 7 6 25 19 17 17 16 13 12 11 9 5
样例输出
66 61