#include <stdio.h>

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