#include <stdio.h>
int main(void){
    double B,ans;
    long int A,intans;
    
    scanf("%ld",&A);
    scanf("%lf",&B);
    
    ans=B*A;
    
    intans=(long int)ans;
    
    
    printf("%ld\n",intans);
    
    return 0;
}