using System.Collections.Generic;
public static void Main()
int[] numbers = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
string command = Console.ReadLine().ToLower();
while(command != "print")
string[] actions = command.Split(' ');
List<int> numsToInt = numbers.ToList();
List<int> result = new List<int>();
int index = int.Parse(actions[1]);
int element = int.Parse(actions[2]);
numsToInt.Insert(index, element);
else if(actions[0] == "addmany")
int index = int.Parse(actions[1]);
List<int> newSequence = new List<int>();
for(int i = 2; i < numbers.Length; i++)
newSequence.Add(int.Parse(actions[i]));
for(int j = 0; j < index; j++)
newSequence.Insert(j, numsToInt[j]);
else if(actions[0] == "contains")
int element = int.Parse(actions[2]);
if(numsToInt.Contains(element))
Console.WriteLine(numsToInt.IndexOf(element));
else if(actions[0] == "remove")
int index = int.Parse(actions[1]);
numsToInt.RemoveAt(index);
else if(actions[0] == "shift")
else if(actions[0] == "sumpairs")
command = Console.ReadLine().ToLower();
Console.WriteLine("[{0}]",string.Join(" ", result));