public int minDucks(int[] duckTypes) {
		HashMap<Integer, Integer> map = new HashMap<Integer, Integer>();
		int max = 0;
		for (int i : duckTypes) {
			Integer value = map.get(i);
			if (value == null) {
				value = 0;
			}
			value++;
			map.put(i, value);
			if (max < value) {
				max = value;
			}
		}
		return max * map.size();

	}