#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>


int main(void)
{
    long long A;
    long double B;

    scanf("%lld %Lf", &A, &B);

    printf("%lld",A == 0 || B == 0 ? 0 :(long long)(A*B));
}
