//usr/bin/env picoc $0 - $@;exit
#include <stdio.h>
int main(){
    long a;
  	float b;
    scanf("%d %f",&a,&b);
  	long ans = long(a*b);
    //printf("%d %f\n", a, b);
    printf("%d",ans);
    return 0;
}