#include<stdio.h>
int main(void)
{
  long long a;
  double b;
  scanf("%lld %lf",&a,&b);
  int c=b*100+0.5;
  printf("%d\n",c);
  printf("%lld\n",(a*c/100));
  printf("%lld\n",(long long)(a*c/100));
  return 0;
}
