#include <stdio.h>
int main(void){
    int i;
    long a,ans;
    double b,d;
    scanf("%ld %lf",&a,&b);
    i=b;
    printf("%d\n",i);
    d=b-i;
    printf("%f\n",d);
    ans=a*i+a*d;
    printf("%ld",ans);
}
