using System.Collections.Generic;
using System.Threading.Tasks;
public static void Main(string[] args)
List<int> list1 =new List<int>();
Console.Write("the elements are");
int a=Convert.ToInt32(Console.ReadLine());
Console.WriteLine("\nthe length of the elemnts before deleting is {0}\n",list1.Count);
Console.WriteLine("\nrandom nummbers are");
List<int> list2=new List<int>();
Console.WriteLine("\nthe length of random numbers is {0}",list2.Count);
Console.WriteLine("enter the random elements after sorted");
Console.WriteLine("\nthe length of elements after sorted is {0} ",list2.Count);
for(int i=0;i<list2.Count-1;i++)
list2.Remove(list2[i--]);
Console.WriteLine("\nAfter deleting repeating elements");
Console.WriteLine("\nthe list of count after deleted repeated random numbers is {0}",list2.Count);
for(int i=0;i<list2.Count;i++)
list1.RemoveAt(list2[i]);
Console.WriteLine("\nThe length of list after deleted is {0}",list1.Count);