// editor5
#include <stdio.h>

int calculateShippingCost(float weight) {
    if (weight <= 1.0 || weight > 50.0) {
        return -1;
    } else if (weight <= 5.0) {
        return 100;
    } else if (weight <= 20.0) {
        return 200;
    } else { 
        return 300;
    }
}

int main() {
    float packageWeight;
    
    scanf("%f", &packageWeight);
    
    int cost = calculateShippingCost(packageweight);
    
    if (cost == -1) {
        printf("Invalid input\n");
    } else {
        printf("%d USD\n", cost);
    }
    
    return 0;