#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
double money , x;
cin >> money ;
x = ((money > 4500.0) ? ((money - 4500) * 0.28 + 350) : ((money > 3000.0) ? ((money - 3000) * 0.18 + 80) : ((money > 2000.0) ? ((money - 2000) * 0.08) : 1 )));
if(x == 1 )
cout << "Isento" <<endl;
else{
cout << fixed <<setprecision(2);
cout << "R$ " << x <<endl;
}
return 0;
}