#include<stdio.h>
struct book
{
    int n;
};
int main()
{
    struct book discount;
    scanf("%d",&discount.n);
    if(discount.n<0)
    {
        printf("Invalid input");
    }
    else
    {
        float d=0.0;
        float cost=discount.n*100;
        if(discount.n<=5)
        {
            d=0.10;
        }
        else if(discount.n>=6&&discount.n<=10)
        {
            d=0.15;
        }
        else(discount.n>10&&discount.n>15)
        {
            d=0.20;
        }
        float m=cost-(cost*d);
        printf("%.2f",m);
    }
}