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

int main(){
    long int a;
    double b;
    scanf("%ld%lf",&a,&b);

    long long int ans = 0;
    ans = (long long int)(a*b);

    printf("%lld\n",ans);
}