using System.Collections.Generic;
List<string> list = new List<string>();
string command = Console.ReadLine();
string[] wordsToAdd = Console.ReadLine().Split();
list.AddRange(wordsToAdd);
for (int i = 0; i < list.Count; i++)
if (char.IsLetter(word[0]))
list[i] = char.ToUpper(word[0]) + word.Substring(1);
int indexToRemove = int.Parse(Console.ReadLine()) - 1;
if (indexToRemove >= 0 && indexToRemove < list.Count)
list.RemoveAt(indexToRemove);
string searchWord = Console.ReadLine();
if (list.Contains(searchWord))
Console.WriteLine(searchWord);
Console.WriteLine("Not contained.");
int length = int.Parse(Console.ReadLine());
List<string> filtered = list.FindAll(word => word.Length == length);
Console.WriteLine(string.Join("-", filtered));
Console.WriteLine("Not contained.");
int insertIndex = int.Parse(Console.ReadLine()) - 1;
string wordToInsert = Console.ReadLine();
if (insertIndex >= 0 && insertIndex <= list.Count)
list.Insert(insertIndex, wordToInsert);
Console.WriteLine("There are not enough items in the list.");
Console.WriteLine(string.Join("; ", list));
Console.WriteLine("Not contained.");