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