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();
        BigDecimal BigA = new BigDecimal(A);
        String B = sc.next();
        BigDecimal BigB = new BigDecimal(B);
        System.out.println(BigA.multiply(BigB).setScale(0, RoundingMode.DOWN));
        sc.close();
    }
} 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();
        BigDecimal BigA = new BigDecimal(A);
        String B = sc.next();
        BigDecimal BigB = new BigDecimal(B);
        System.out.println(BigA.multiply(BigB).setScale(0, RoundingMode.DOWN));
        sc.close();
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String A = sc.next();
        BigDecimal BigA = new BigDecimal(A);
        String B = sc.next();
        BigDecimal BigB = new BigDecimal(B);
        System.out.println(BigA.multiply(BigB).setScale(0, RoundingMode.DOWN));
        sc.close();
    } main {
        Scanner sc = new Scanner(System.in);
        String A = sc.next();
        BigDecimal BigA = new BigDecimal(A);
        String B = sc.next();
        BigDecimal BigB = new BigDecimal(B);
        System.out.println(BigA.multiply(BigB).setScale(0, RoundingMode.DOWN));
        sc.close();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String A = sc.next(); A sc.next() sc.next sc BigDecimal BigA = new BigDecimal(A); BigA new BigDecimal(A) String B = sc.next(); B sc.next() sc.next sc BigDecimal BigB = new BigDecimal(B); BigB new BigDecimal(B) System.out.println(BigA.multiply(BigB).setScale(0, RoundingMode.DOWN)) System.out.println System.out System System.out BigA.multiply(BigB).setScale(0, RoundingMode.DOWN) BigA.multiply(BigB).setScale BigA.multiply(BigB) BigA.multiply BigA BigB 0 RoundingMode.DOWN RoundingMode RoundingMode.DOWN sc.close() sc.close sc String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String A = sc.next();
        BigDecimal BigA = new BigDecimal(A);
        String B = sc.next();
        BigDecimal BigB = new BigDecimal(B);
        System.out.println(BigA.multiply(BigB).setScale(0, RoundingMode.DOWN));
        sc.close();
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String A = sc.next();
        BigDecimal BigA = new BigDecimal(A);
        String B = sc.next();
        BigDecimal BigB = new BigDecimal(B);
        System.out.println(BigA.multiply(BigB).setScale(0, RoundingMode.DOWN));
        sc.close();
    }
} 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();
        BigDecimal BigA = new BigDecimal(A);
        String B = sc.next();
        BigDecimal BigB = new BigDecimal(B);
        System.out.println(BigA.multiply(BigB).setScale(0, RoundingMode.DOWN));
        sc.close();
    }
}