using System;
using System.Collections.Generic;
using System.Linq;
public class Program
{
public static void Main()
var ids = new int[] { 1, 2, 3, 3, 3, 3 };
HashSet<int> hashset = ids.ToHashSet();
Console.WriteLine(string.Join(",", hashset));
}