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

int main(){
  
  unsigned long long	A, ans, M;
  long double	B, N;
  
  scanf("%llu %Lf", &A, &B);  
  ans = A*(unsigned long long)B;  
  printf("%llu", ans);
  
  return 0;
}
