        #include <stdio.h>
         
        int main()
        {long int a; long double b;
        scanf("%ld %f",&a,&b);
        printf("%d",(long int)((long double)a*b));
            return 0;
        }