#include<stdio.h>
#include<math.h>
int main()
{
	unsigned long long a, x;
	long double b;
	long float sum = 0;
	scanf("%llu %lf", &a, &b);
	b = (long double)(b *100);
	printf("%lf\n", b);
	sum = floor(((unsigned long long)a * (long double)b) / 100);
	x = sum;
	printf("%llu", x);
	return 0;
}