class Color {

    @Override
    public int hashCode() {
        int result = 17; /* prime number! */
        result = 31 * result + (int) Math.round(cyan * 10000);
        result = 31 * result + (int) Math.round(magenta * 10000);
        result = 31 * result + (int) Math.round(yellow * 10000);
        return result;
    }

    public  Color(double cyan, double magenta, double yellow);
    public  Color(int rgb);

}