import java.util.HashSet;
class Main {
public static HashSet toHashSet(int[] values) {
if (values == null) {
return null;
}
final HashSet res = new HashSet();
for (int state : values) {
res.add(state);
}
return res;
}
}