#include<stdio.h>

int main(){
        unsigned long long a, ans;
        double b;

        scanf("%lld %lf", &a, &b);

        b=b*1000;

        ans=a*b/1000;

        printf("%lld", ans);

        return 0;
}
