#include <stdio.h>

union Product { float weight, price; };

int main() {
    union Product p;
    if (scanf("%f%f", &p.weight, &p.price) != 2 || p.weight < -1000 || p.weight > 1000 || p.price < -1000 || p.price > 1000) {
        printf("Invalid Input\n");
    } else {
        printf("%.2f\n", weight * price);
    }
    return 0;
}