if (int.tryParse(Console.ReadLine(), out res))
return res;
console.WriteLine("Error, can't convert, try again");
return GetInteger();