class CoffeeCupF {
    static final int volume = 200;
    static float ratio;
    int amount;
    static void setRatio(float f) {
        CoffeeCupF.ratio = f;
    }
    void fill() {
        this.amount = (int)(CoffeeCupF.ratio * CoffeeCupF.volume);
    }
    void drink() {     
        this.drink(20);
    }                  
    void drink(int i) {
        this.amount -= i;
    }
    int getAmount() {
        return this.amount;
    }
    String status() {                  
        return "amount=" + this.amount;
    }                                  
}
