int a, b, c; a = Convert.ToInt32(Console.ReadLine()); b = Convert.ToInt32(Math.Pow(a, 2)); c = b % 10; if (c == 5) { Console.WriteLine(Math.Pow(a,2)); }