#include <stdio.h>

int main(){
    long long int a;
    double b;

    scanf("%lld %lf",&a,&b);

    long long int r = a*b;
    (int) num;

    printf("%.lld\n",num - ((int)num));




    return 0;
}
