var
nm: real;
begin
read(nm);
if nm<5 then
write(0);
if 5<=nm then
if nm<7 then
write(100);
if 7<=nm then
if nm<8 then
write(20 * nm);
if 8<=nm then
if nm<10 then
write(25 * nm);
if nm>=10 then
if nm<=10 then
write(300);
end.
#include<iostream>
using namespace std;
int main() {
float nm;
cin >> nm;
if (nm < 5)
cout << 0;
if (5 <= nm && nm < 7)
cout << 100;
if (7 <= nm && nm < 8)
cout << 20 * nm;
if (8 <= nm && nm < 10)
cout << 25 * nm;
if (nm == 10)
cout << 300;
return 0;
}