using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class iTimer:IDisposable
{
String mes;
DateTime s;
public iTimer(String mes)
{
this.mes = mes;
s = DateTime.Now;
}
public void Dispose()
{
DateTime t = DateTime.Now;
TimeSpan ts = t - s;
Console.Error.WriteLine("spent time(in Milliseconds):");
Console.Error.WriteLine(ts.TotalMilliseconds);
}
public static void Main()
{
using (iTimer t = new iTimer("game"))
{
int ans = 10;
int input = Int32.Parse(Console.ReadLine());
while(ans!=input)
{
Console.WriteLine("please try again.");
input = Int32.Parse(Console.ReadLine());
}
Console.WriteLine("Correct!");
}
Console.Error.WriteLine("the program is terminated");
}
}