using System; using System.Collections.Generic; class Program { static void Main(string[] args) { var T = int.Parse(Console.ReadLine()); var list = new List(); bool isRandomWalk = false; int x; for (int i=0; i < T; i++) { x = int.Parse(Console.ReadLine()); list.Add(x); } int pos; for (int j=0; j