#include<stdio.h>

int main(){
    long int a,b;
    double tmp;

    scanf("%ld",&a);
    scanf("%lf",&tmp);

    b = (int)(tmp*100);

    printf("%ld\n", ( a * b ) / 100 );
//    cout << a * b << "\n";

    return 0;
}