List<int> list = new List<int>();
list.Add(5);
list.Add(2);
list.Add(1);
list.Add(1);
HashSet<int> hs = new HashSet<int>(list);
list = new List<int>(hs);
List<int> list = new List<int>();
list.Add(5);
list.Add(2);
list.Add(1);
list.Add(1);
HashSet<int> hs = new HashSet<int>(list);
list = new List<int>(hs);