class Color {

    @Override
    public boolean equals(Object other) {
        if (other == null) {
            return false;
        }
        if (other == this) {
            return true;
        }
        if (!(other instanceof Color)) {
            return false;
        }
        Color otherColor = (Color) other;
        return (Math.abs(otherColor.cyan - cyan) < 0.000001 && Math.abs(otherColor.magenta - magenta) < 0.000001
            && Math.abs(otherColor.yellow - yellow) < 0.000001);
    }

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

}