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