#include<stdio.h>
struct book;
{
    int store s;
};
int main(){
    struct store s;
    scanf("%d",&s.quantity);
    if (s.quantity<0)
    {
        printf("Invalid input");
    }
    else 
    {
        float price=s.quantity*100;
        if(s.quantity>=1&&s.quantity<=5)
        {
            s.total=price*0.90;
        }
        else if (s.quantity>=6&&s.quantity<=10){
            s.totalcost=price*0.85;
        }
        else {
            s.totalcost=price*0.80;
        }
        printf("%.2f",s.totalcost);
        return 0;
    }