import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int x = sc.nextInt(), y = sc.nextInt();
double price;
if (x == 1) price = 4;
else if (x == 2) price = 4.5;
else if (x == 3) price = 5;
else if (x == 4) price = 2;
else price = 1.5;
System.out.printf("Total: R$ %.2f", price * y);
}
}