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

int main(void) {
  long double a, b;
  scanf("%Lf %Lf", &a, &b);
  printf("%lld\n", (long long int) (a * b));

  return 0;
}
