/*
#include <stdio.h>
int main()
{
float a, b;
scanf("%f %f", &a, &b);
printf("%.2f", a*b);
}
*
#include <stdio.h>
int main()
{
float a, b;
scanf("%f %f", &a, &b);
printf("%.1f", (a*b)/2);
}
*
#include<stdio.h>
int main()
{
int a, b, x, y, z;
scanf("%d-%d", &a, &b);
x = a/10000;
y = a%10000/100;
z = a%10000%100;
b = b/1000000;
if(b == 1)
{
printf("19%02d/%02d/%02d M", x, y, z);
}
else if(b == 2)
{
printf("19%02d/%02d/%02d F", x, y, z);
}
else if(b == 3)
{
printf("20%02d/%02d/%02d M", x, y, z);
}
else if(b == 4)
{
printf("20%02d/%02d/%02d F", x, y, z);
}
}
*
#include <stdio.h>
int main()
{
int a;
double b, c, d, x, y, z;
scanf("%d", &a);
b = a;
c = a*7/10;
d = 350+(a-500)*0.4;
x = 750+(a-1500)*0.15;
y = 1200+(a-4500)*0.05;
z = 1475+(a-10000)*0.02;
if(b<=500)
{
printf("%d", (int)c);
}
else if(b<=1500)
{
printf("%d", (int)d);
}
else if( b<=4500)
{
printf("%d", (int)x);
}
else if(b<=10000)
{
printf("%d", (int)y);
}
else if(b>10000)
{
printf("%d", (int)z);
}
}
*/