#include <stdio.h>
typedef long long ll;

int main(void)
{
    ll a, ans;
    double b;
    scanf("%lld%lf", &a, &b);

    int tmp = b * 100 + 0.5;
    ans = a * tmp;
    printf("%lld\n", ans / 100);
    return 0;
}