import java.math.BigDecimal;
import java.util.Scanner;
public class Main {

    public static String solve(BigDecimal a, BigDecimal b) {
        String result = a.multiply(b).toString();
        int decimalIndex = result.indexOf('.');
        return decimalIndex == -1 ? result : result.substring(0, decimalIndex);
    }

    public static void main(String[] args) {
        Scanner sn = new Scanner(System.in);
        BigDecimal a = new BigDecimal(sn.next());
        BigDecimal b = new BigDecimal((sn.next()));
        System.out.println(solve(a,b));
    }
} import java.math.BigDecimal; BigDecimal java.math import java.util.Scanner; Scanner java.util public class Main {

    public static String solve(BigDecimal a, BigDecimal b) {
        String result = a.multiply(b).toString();
        int decimalIndex = result.indexOf('.');
        return decimalIndex == -1 ? result : result.substring(0, decimalIndex);
    }

    public static void main(String[] args) {
        Scanner sn = new Scanner(System.in);
        BigDecimal a = new BigDecimal(sn.next());
        BigDecimal b = new BigDecimal((sn.next()));
        System.out.println(solve(a,b));
    }
} Main public static String solve(BigDecimal a, BigDecimal b) {
        String result = a.multiply(b).toString();
        int decimalIndex = result.indexOf('.');
        return decimalIndex == -1 ? result : result.substring(0, decimalIndex);
    } solve {
        String result = a.multiply(b).toString();
        int decimalIndex = result.indexOf('.');
        return decimalIndex == -1 ? result : result.substring(0, decimalIndex);
    } String result = a.multiply(b).toString(); result a.multiply(b).toString() a.multiply(b).toString a.multiply(b) a.multiply a b int decimalIndex = result.indexOf('.'); decimalIndex result.indexOf('.') result.indexOf result '.' return decimalIndex == -1 ? result : result.substring(0, decimalIndex); decimalIndex == -1 ? result : result.substring(0, decimalIndex) decimalIndex == -1 decimalIndex -1 1 result result.substring(0, decimalIndex) result.substring result 0 decimalIndex BigDecimal a a BigDecimal b b public static void main(String[] args) {
        Scanner sn = new Scanner(System.in);
        BigDecimal a = new BigDecimal(sn.next());
        BigDecimal b = new BigDecimal((sn.next()));
        System.out.println(solve(a,b));
    } main {
        Scanner sn = new Scanner(System.in);
        BigDecimal a = new BigDecimal(sn.next());
        BigDecimal b = new BigDecimal((sn.next()));
        System.out.println(solve(a,b));
    } Scanner sn = new Scanner(System.in); sn new Scanner(System.in) BigDecimal a = new BigDecimal(sn.next()); a new BigDecimal(sn.next()) BigDecimal b = new BigDecimal((sn.next())); b new BigDecimal((sn.next())) System.out.println(solve(a,b)) System.out.println System.out System System.out solve(a,b) solve a b String[] args args public class Main {

    public static String solve(BigDecimal a, BigDecimal b) {
        String result = a.multiply(b).toString();
        int decimalIndex = result.indexOf('.');
        return decimalIndex == -1 ? result : result.substring(0, decimalIndex);
    }

    public static void main(String[] args) {
        Scanner sn = new Scanner(System.in);
        BigDecimal a = new BigDecimal(sn.next());
        BigDecimal b = new BigDecimal((sn.next()));
        System.out.println(solve(a,b));
    }
} public class Main {

    public static String solve(BigDecimal a, BigDecimal b) {
        String result = a.multiply(b).toString();
        int decimalIndex = result.indexOf('.');
        return decimalIndex == -1 ? result : result.substring(0, decimalIndex);
    }

    public static void main(String[] args) {
        Scanner sn = new Scanner(System.in);
        BigDecimal a = new BigDecimal(sn.next());
        BigDecimal b = new BigDecimal((sn.next()));
        System.out.println(solve(a,b));
    }
} Main
import java.math.BigDecimal;
import java.util.Scanner;
public class Main {

    public static String solve(BigDecimal a, BigDecimal b) {
        String result = a.multiply(b).toString();
        int decimalIndex = result.indexOf('.');
        return decimalIndex == -1 ? result : result.substring(0, decimalIndex);
    }

    public static void main(String[] args) {
        Scanner sn = new Scanner(System.in);
        BigDecimal a = new BigDecimal(sn.next());
        BigDecimal b = new BigDecimal((sn.next()));
        System.out.println(solve(a,b));
    }
}