#include <stdio.h>

int main(void) {
  long long unsigned int a;
  int b, c;
  scanf("%llu %d.%d", &a, &b, &c);
  b = b * 100 + c;
  
  printf("%llu", (long long unsigned int)(a * b / 100));
  
  return 0;
}