#include<stdio.h>
struct book
{
    int n;
    float c,p=100.0,t;
};
int main()
{
    struct book s;
    scanf("%d",&s.n);
    if(s.n>0 && s.n<6)
    {
     s.c=0.10;
    }
    else if(s.n>5 && s.n<11)
    {
        s.c=0.15;
    }
    else 
    {
        s.c=0.20;
    }
    s.t=s.p*s.n*(s.c-1.0);
    printf("%f",s.t);
}