// editor4
#include<stdio.h>
int main()
{
    int qty;
    scanf("%d",&qty);
    if(qty<0)
    {
        printf("Invalid input");
        return 0;
    }
    float total=qty*100.0;
    float discount=0.0;
    ifv(qty>=1 && qty<=5)
    {
        discount=0.10;
    }
    else if(qty>=6 && qty<=10)
    {
        discount=0.15;
    }
    else if(qty>10)
    {
        discount=0.20;
    }
    total=total-(total*discount);
    printf("%.2f",total);
    return 0;
}