#include <stdio.h>
#include <string.h>

int main() {
  long long a;
  double b;
  scanf("%lld %lf", &a,&b);
  long long bb = (long long)(b*100);
  long long ans = a*bb/100;
  printf("%lld", ans);
  return 0;
}