#include <cstdio>
int main()
{
double n;
scanf("%lf", &n);
double x = 0;
if(n > 2000)
{
double y = 3000;
if(n < y)
y = n;
x += (y - 2000) * 0.08;
}
if(n > 3000)
{
double y = 4500;
if(n < y)
y = n;
x += (y - 3000) * 0.18;
}
if(n > 4500)
{
x += (n - 4500) * 0.28;
}
if(x == 0)
printf("Isento");
else
printf("R$ %.2lf", x);
return 0;
}