#include<stdio.h>
#include<math.h>
int main()
{
    long long int a,ans;
    float b;
    int c;
    scanf("%lld %f",&a,&b);
    c=round(b*100.0);
    ans=(a*c)/100;
    printf("%lld",ans);
    return 0;
}