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

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();

        BigDecimal ans = null;
        BigDecimal bda = new BigDecimal(a);
        bda.setScale(0);
        BigDecimal bdb = new BigDecimal(b);
        bdb.setScale(2, RoundingMode.DOWN);
        ans = bda.multiply(bdb);
        System.out.println(ans.longValue());
    }
} import java.math.BigDecimal; BigDecimal java.math import java.math.RoundingMode; RoundingMode java.math import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();

        BigDecimal ans = null;
        BigDecimal bda = new BigDecimal(a);
        bda.setScale(0);
        BigDecimal bdb = new BigDecimal(b);
        bdb.setScale(2, RoundingMode.DOWN);
        ans = bda.multiply(bdb);
        System.out.println(ans.longValue());
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();

        BigDecimal ans = null;
        BigDecimal bda = new BigDecimal(a);
        bda.setScale(0);
        BigDecimal bdb = new BigDecimal(b);
        bdb.setScale(2, RoundingMode.DOWN);
        ans = bda.multiply(bdb);
        System.out.println(ans.longValue());
    } main {
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();

        BigDecimal ans = null;
        BigDecimal bda = new BigDecimal(a);
        bda.setScale(0);
        BigDecimal bdb = new BigDecimal(b);
        bdb.setScale(2, RoundingMode.DOWN);
        ans = bda.multiply(bdb);
        System.out.println(ans.longValue());
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String a = sc.next(); a sc.next() sc.next sc String b = sc.next(); b sc.next() sc.next sc BigDecimal ans = null; ans null BigDecimal bda = new BigDecimal(a); bda new BigDecimal(a) bda.setScale(0) bda.setScale bda 0 BigDecimal bdb = new BigDecimal(b); bdb new BigDecimal(b) bdb.setScale(2, RoundingMode.DOWN) bdb.setScale bdb 2 RoundingMode.DOWN RoundingMode RoundingMode.DOWN ans = bda.multiply(bdb) ans bda.multiply(bdb) bda.multiply bda bdb System.out.println(ans.longValue()) System.out.println System.out System System.out ans.longValue() ans.longValue ans String[] args args public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();

        BigDecimal ans = null;
        BigDecimal bda = new BigDecimal(a);
        bda.setScale(0);
        BigDecimal bdb = new BigDecimal(b);
        bdb.setScale(2, RoundingMode.DOWN);
        ans = bda.multiply(bdb);
        System.out.println(ans.longValue());
    }
} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();

        BigDecimal ans = null;
        BigDecimal bda = new BigDecimal(a);
        bda.setScale(0);
        BigDecimal bdb = new BigDecimal(b);
        bdb.setScale(2, RoundingMode.DOWN);
        ans = bda.multiply(bdb);
        System.out.println(ans.longValue());
    }
} Main
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();

        BigDecimal ans = null;
        BigDecimal bda = new BigDecimal(a);
        bda.setScale(0);
        BigDecimal bdb = new BigDecimal(b);
        bdb.setScale(2, RoundingMode.DOWN);
        ans = bda.multiply(bdb);
        System.out.println(ans.longValue());
    }
}