#include <stdio.h>

int main ()
{
    long long a,p,m;
    float b;
    while (scanf ("%lld %f",&a,&b) !=EOF)
    {
          p=b*10;
          m=(a*p)/10;
         printf("%lld\n",m);
    }
    return 0;
}
