using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Program
{
class Program
{
static void Main(string[] args)
{
int max = 0;
while(true)
{
Console.WriteLine("Input a number:");
string s=Console.ReadLine();
if(s=="end")
{
Console.WriteLine("The Maximum is {0}",max);
Console.ReadKey();
return 0;
}
int b=Convert.ToInt32(s);
if(b>max)
{
max=b;
}
}
}
}
}