#include <stdio.h>
#include <math.h>

int main(void) {
    int a;
    double b;
    scanf("%d%lf", &a, &b);
    
    double tmp = (double)a*b;
    int ans = (int)tmp;
    
    printf("%d\n", ans);
    return 0;
}
