using System.Collections.Generic;
public static void Main()
Console.WriteLine("Please enter a comma separated list greater than or equal to 5 numbers i.e. 5,1,9,2,10: ");
string entry = Console.ReadLine();
string[] entArr = entry.Split(',');
while (entArr.Length < 5 || string.IsNullOrWhiteSpace(entry)) {
Console.WriteLine("Invalid List; please retry");
Console.WriteLine("Please enter a comma separated list greater than or equal to 5 numbers i.e. 5,1,9,2,10: ");
entry = Console.ReadLine();
entArr = entry.Split(',');
int[] iArray = new int[entArr.Length];
for (int i = 0; i < entArr.Length; i++) {
int n = Convert.ToInt32(entArr[i]);
Console.WriteLine("[" + iArray[0] + ", " + iArray[1] + ", " + iArray[2] + "]");