if (i.ToString().Length > 2)
{
i = Convert.ToInt32(i.ToString().Substring(i.ToString().Length - 2, 2));
}