class Program
{
static void Main(string[] args)
{
string str = Console.ReadLine();
string[] strArray = str.Split(' ');
int[] intArray = new int[strArray.Length];
for(int i = 0; i < intArray.Length; i++)
{
intArray[i] = Convert.ToInt32(strArray[i]);
}
int max, nextMax;
if (intArray[0] > intArray[1])
{
max = intArray[0];
nextMax = intArray[1];
}
else
{
max = intArray[1];
nextMax = intArray[0];
}
for(int i = 2; i < intArray.Length; i++)
{//5 4 3 2 1
if (intArray[i] > max)
{
nextMax = max;
max = intArray[i];
}
else if(intArray[i] > nextMax)
{
nextMax = intArray[i];
}
}
Console.WriteLine("最大值为:" + max + "第二大值:" + nextMax);
Console.ReadKey();
}
}