using System; using System.Linq; using System.Collections.Generic; namespace EasterGifts { class EasterGifts { static void Main(string[] args) { List gifts = Console.ReadLine() .Split() .ToList(); string command=""; while ((command = Console.ReadLine()) != "No Money") { string[] splittedCommand = command .Split() .ToArray(); switch (splittedCommand[0]) { case "OutOfStock": for (int i = 0; i <= gifts.Count - 1; i++) { if (splittedCommand[1] == gifts[i]) { gifts[i] = "None"; } } break; case "Required": int index = int.Parse(splittedCommand[2]); if (0<=index&&index x == "None"); Console.WriteLine(string.Join(" ", gifts)); } } }