@Override
    public void setMonome(int exponent, int coeficient) {
        if (monomes.containsKey(exponent)) {
            monomes.put(exponent, monomes.get(exponent) + coeficient);
        } else {
            monomes.put(exponent, coeficient);
        }

       if (monomes.get(exponent) == 0) {
            monomes.remove(exponent);
        }
    }