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

int main(void){
	int n;
	int i;
	long long int sum=1,a;
	int count=0;
	double b;

	scanf("%lld %lf\n",&a,&b);
	sum=(a*b);
	printf("%lld",sum);
	return 0;
}
