using System;
using System.Collections.Generic;
class Program
{
static void Main() {
HashSet<int> hashset = new HashSet<int>();
hashset.Add(1);
hashset.Add(2);
hashset.Add(3);
hashset.Add(4);
hashset.Add(1);
hashset.Add(1);
hashset.Add(2);
foreach (var item in hashset) {
Console.Write(item + " ");
}
}
}
/*
run:
1 2 3 4
*/