#include<stdio.h>

int main(){
  long long int a;
  double b;

  scanf("%lld %lf",&a,&b);
  
  int b_int = b * 100;
  long long int ans = a*b_int;
  ans = (long long)ans / 100;
  printf("%lld\n",ans);
}
