#include <stdio.h>
#include <math.h>
#define ll long long int

int main(void) {
    ll a;
    double b;
    scanf("%lld%lf", &a, &b);
    ll c = b*100;
    ll ans = a*c/100;
    
    printf("%lld\n", ans);
    return 0;
}
