#include <stdio.h>

int main(void)
{
    long long a, b2;
    double b;

    scanf("%lld %lf", &a, &b);
    b2 = (long long)(b * 100);

    long long c = a * b2;
    printf("%lld\n", c/100);

    return 0;
}