static void Main(String[] args) { Node head = null; int T = Int32.Parse(Console.ReadLine()); while (T-- > 0) { int data = Int32.Parse(Console.ReadLine()); head = node.insert(head, data); } head = node.removeDuplicates(head); node.display(head); }