using System;
namespace overflow
{
internal class Program
{
static void Main(string[] args)
{
try
{
short a = short.MaxValue;
Console.WriteLine(a);
a++;
Console.WriteLine(a);
}
catch(Exception e)
{
Console.WriteLine(e.Message);
}
}
}
}