#include <stdio.h>

int main() {
    
    unsigned long long int a,c;
    double b;
    
    scanf("%lld %lf",&a,&b);
    
    b=b*100;
    
    c=a*b;
    
    c=c/100;
    
    printf("%lld",c);
    
    return 0;
}
