#include<stdio.h>
#include<stdlib.h>
#include<math.h>

int main(){
    long double A,B;
    scanf("%L %L",&A,&B);
    unsigned long long int S;
    S = A*B;
    //printf("%lf\n",A);
    printf("%llu\n",S);


    return 0;
}