import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.*;

public class Main{
    public static void main(String args[]){
        Scanner sn = new Scanner(System.in);
        double A = sn.nextLong();
        double B = sn.nextDouble();

        BigDecimal bd1 = new BigDecimal(String.valueOf(A));
        BigDecimal bd2 = new BigDecimal(String.valueOf(B));

        BigDecimal result = bd1.multiply(bd2);
        
        System.out.println(result.setScale(0, RoundingMode.DOWN).toPlainString());
    }
} import java.math.BigDecimal; BigDecimal java.math import java.math.RoundingMode; RoundingMode java.math import java.util.*; util.* java public class Main{
    public static void main(String args[]){
        Scanner sn = new Scanner(System.in);
        double A = sn.nextLong();
        double B = sn.nextDouble();

        BigDecimal bd1 = new BigDecimal(String.valueOf(A));
        BigDecimal bd2 = new BigDecimal(String.valueOf(B));

        BigDecimal result = bd1.multiply(bd2);
        
        System.out.println(result.setScale(0, RoundingMode.DOWN).toPlainString());
    }
} Main public static void main(String args[]){
        Scanner sn = new Scanner(System.in);
        double A = sn.nextLong();
        double B = sn.nextDouble();

        BigDecimal bd1 = new BigDecimal(String.valueOf(A));
        BigDecimal bd2 = new BigDecimal(String.valueOf(B));

        BigDecimal result = bd1.multiply(bd2);
        
        System.out.println(result.setScale(0, RoundingMode.DOWN).toPlainString());
    } main {
        Scanner sn = new Scanner(System.in);
        double A = sn.nextLong();
        double B = sn.nextDouble();

        BigDecimal bd1 = new BigDecimal(String.valueOf(A));
        BigDecimal bd2 = new BigDecimal(String.valueOf(B));

        BigDecimal result = bd1.multiply(bd2);
        
        System.out.println(result.setScale(0, RoundingMode.DOWN).toPlainString());
    } Scanner sn = new Scanner(System.in); sn new Scanner(System.in) double A = sn.nextLong(); A sn.nextLong() sn.nextLong sn double B = sn.nextDouble(); B sn.nextDouble() sn.nextDouble sn BigDecimal bd1 = new BigDecimal(String.valueOf(A)); bd1 new BigDecimal(String.valueOf(A)) BigDecimal bd2 = new BigDecimal(String.valueOf(B)); bd2 new BigDecimal(String.valueOf(B)) BigDecimal result = bd1.multiply(bd2); result bd1.multiply(bd2) bd1.multiply bd1 bd2 System.out.println(result.setScale(0, RoundingMode.DOWN).toPlainString()) System.out.println System.out System System.out result.setScale(0, RoundingMode.DOWN).toPlainString() result.setScale(0, RoundingMode.DOWN).toPlainString result.setScale(0, RoundingMode.DOWN) result.setScale result 0 RoundingMode.DOWN RoundingMode RoundingMode.DOWN String args[] args public class Main{
    public static void main(String args[]){
        Scanner sn = new Scanner(System.in);
        double A = sn.nextLong();
        double B = sn.nextDouble();

        BigDecimal bd1 = new BigDecimal(String.valueOf(A));
        BigDecimal bd2 = new BigDecimal(String.valueOf(B));

        BigDecimal result = bd1.multiply(bd2);
        
        System.out.println(result.setScale(0, RoundingMode.DOWN).toPlainString());
    }
} public class Main{
    public static void main(String args[]){
        Scanner sn = new Scanner(System.in);
        double A = sn.nextLong();
        double B = sn.nextDouble();

        BigDecimal bd1 = new BigDecimal(String.valueOf(A));
        BigDecimal bd2 = new BigDecimal(String.valueOf(B));

        BigDecimal result = bd1.multiply(bd2);
        
        System.out.println(result.setScale(0, RoundingMode.DOWN).toPlainString());
    }
} Main
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.*;

public class Main{
    public static void main(String args[]){
        Scanner sn = new Scanner(System.in);
        double A = sn.nextLong();
        double B = sn.nextDouble();

        BigDecimal bd1 = new BigDecimal(String.valueOf(A));
        BigDecimal bd2 = new BigDecimal(String.valueOf(B));

        BigDecimal result = bd1.multiply(bd2);
        
        System.out.println(result.setScale(0, RoundingMode.DOWN).toPlainString());
    }
}