something like this:
public static void Main()
{
string[] strs = new string[]{"aaaa","bbb","ccc","ffffd","eeee","fff","ggg","hhhh","iiiii","JJJJ"};
List res=new List();
for(int i=0;i Console.WriteLine(F));
}
just change the iteration to be with 500 instead of 5, and strs to be your array.