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

class Main {
    final Scanner sc = new Scanner(System.in);

    public static void main(String[] args) {
        new Main().run();
    }

    private void run() {
        BigDecimal a = BigDecimal.valueOf(sc.nextLong());
        BigDecimal b = BigDecimal.valueOf(sc.nextDouble());
        System.out.println(a.multiply(b).longValue());
    }
}
 import java.math.BigDecimal; BigDecimal java.math import java.util.*; util.* java class Main {
    final Scanner sc = new Scanner(System.in);

    public static void main(String[] args) {
        new Main().run();
    }

    private void run() {
        BigDecimal a = BigDecimal.valueOf(sc.nextLong());
        BigDecimal b = BigDecimal.valueOf(sc.nextDouble());
        System.out.println(a.multiply(b).longValue());
    }
} Main final Scanner sc = new Scanner(System.in); sc new Scanner(System.in) public static void main(String[] args) {
        new Main().run();
    } main {
        new Main().run();
    } new Main().run() new Main().run new Main() String[] args args private void run() {
        BigDecimal a = BigDecimal.valueOf(sc.nextLong());
        BigDecimal b = BigDecimal.valueOf(sc.nextDouble());
        System.out.println(a.multiply(b).longValue());
    } run {
        BigDecimal a = BigDecimal.valueOf(sc.nextLong());
        BigDecimal b = BigDecimal.valueOf(sc.nextDouble());
        System.out.println(a.multiply(b).longValue());
    } BigDecimal a = BigDecimal.valueOf(sc.nextLong()); a BigDecimal.valueOf(sc.nextLong()) BigDecimal.valueOf BigDecimal sc.nextLong() sc.nextLong sc BigDecimal b = BigDecimal.valueOf(sc.nextDouble()); b BigDecimal.valueOf(sc.nextDouble()) BigDecimal.valueOf BigDecimal sc.nextDouble() sc.nextDouble sc System.out.println(a.multiply(b).longValue()) System.out.println System.out System System.out a.multiply(b).longValue() a.multiply(b).longValue a.multiply(b) a.multiply a b
import java.math.BigDecimal;
import java.util.*;

class Main {
    final Scanner sc = new Scanner(System.in);

    public static void main(String[] args) {
        new Main().run();
    }

    private void run() {
        BigDecimal a = BigDecimal.valueOf(sc.nextLong());
        BigDecimal b = BigDecimal.valueOf(sc.nextDouble());
        System.out.println(a.multiply(b).longValue());
    }
}

