int UserInput = (Convert.ToInt32(Console.ReadLine()));
Should be
int UserInput = int.Parse(Console.ReadLine());