#include <stdio.h>
int main() {
float price = 0;
int month = 0;
int date = 0;
int flag = 0;
scanf("%f %d %d %d", &price, &month, &date, &flag);//输入
if (month == 11 && date == 11)
{
price *= 0.7;
if (flag == 1)
{
price -= 50;
}
else
{
price -= 0;
}
}
if (month == 12 && date == 12)
{
price *= 0.8;
if (flag == 1)
{
price -= 50;
}
else
{
price -= 0;
}
}
if (price < 0)//如果出现优惠过后小于0的情况,则不需要付钱。
{
price = 0;
}
printf("%.2f\n", price);
return 0;
}

京公网安备 11010502036488号