题目描述

(Find the Two Largest Numbers) Using an approach similar to that in Tutorial 3.1, find the two largest values among the 10 numbers. [Note: You must input each number only once.]


输入格式

The input consists of n (0<n<100) lines.
Each line consists of 10 integers(range from 0 to 100).
The last line of input consists of Int(-1).
Each value is unequal to others.


输出格式


样例数据

输入

1 2 3 4 5 6 7 8 9 10
10 9 8 7 6 5 4 3 2 1
-1

输出

Largest is 10
Second largest is 9
Largest is 10
Second largest is 9

备注


操作

评测记录

优秀代码

信息

时间限制: 1s
内存限制: 128MB
评测模式: Normal

题解