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

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        long a;
        double b;

        a = scanner.nextLong();
        b = scanner.nextDouble();

        BigDecimal bigA = BigDecimal.valueOf(a);
        BigDecimal bigB = BigDecimal.valueOf(b);

        BigDecimal bigResult = bigA.multiply(bigB);

        BigDecimal roundBigResult = bigResult.setScale(0, BigDecimal.ROUND_DOWN);

        System.out.print(roundBigResult);
    }
} import java.math.BigDecimal; BigDecimal java.math import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        long a;
        double b;

        a = scanner.nextLong();
        b = scanner.nextDouble();

        BigDecimal bigA = BigDecimal.valueOf(a);
        BigDecimal bigB = BigDecimal.valueOf(b);

        BigDecimal bigResult = bigA.multiply(bigB);

        BigDecimal roundBigResult = bigResult.setScale(0, BigDecimal.ROUND_DOWN);

        System.out.print(roundBigResult);
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        long a;
        double b;

        a = scanner.nextLong();
        b = scanner.nextDouble();

        BigDecimal bigA = BigDecimal.valueOf(a);
        BigDecimal bigB = BigDecimal.valueOf(b);

        BigDecimal bigResult = bigA.multiply(bigB);

        BigDecimal roundBigResult = bigResult.setScale(0, BigDecimal.ROUND_DOWN);

        System.out.print(roundBigResult);
    } main {
        Scanner scanner = new Scanner(System.in);

        long a;
        double b;

        a = scanner.nextLong();
        b = scanner.nextDouble();

        BigDecimal bigA = BigDecimal.valueOf(a);
        BigDecimal bigB = BigDecimal.valueOf(b);

        BigDecimal bigResult = bigA.multiply(bigB);

        BigDecimal roundBigResult = bigResult.setScale(0, BigDecimal.ROUND_DOWN);

        System.out.print(roundBigResult);
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) long a; a double b; b a = scanner.nextLong() a scanner.nextLong() scanner.nextLong scanner b = scanner.nextDouble() b scanner.nextDouble() scanner.nextDouble scanner BigDecimal bigA = BigDecimal.valueOf(a); bigA BigDecimal.valueOf(a) BigDecimal.valueOf BigDecimal a BigDecimal bigB = BigDecimal.valueOf(b); bigB BigDecimal.valueOf(b) BigDecimal.valueOf BigDecimal b BigDecimal bigResult = bigA.multiply(bigB); bigResult bigA.multiply(bigB) bigA.multiply bigA bigB BigDecimal roundBigResult = bigResult.setScale(0, BigDecimal.ROUND_DOWN); roundBigResult bigResult.setScale(0, BigDecimal.ROUND_DOWN) bigResult.setScale bigResult 0 BigDecimal.ROUND_DOWN BigDecimal BigDecimal.ROUND_DOWN System.out.print(roundBigResult) System.out.print System.out System System.out roundBigResult String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        long a;
        double b;

        a = scanner.nextLong();
        b = scanner.nextDouble();

        BigDecimal bigA = BigDecimal.valueOf(a);
        BigDecimal bigB = BigDecimal.valueOf(b);

        BigDecimal bigResult = bigA.multiply(bigB);

        BigDecimal roundBigResult = bigResult.setScale(0, BigDecimal.ROUND_DOWN);

        System.out.print(roundBigResult);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        long a;
        double b;

        a = scanner.nextLong();
        b = scanner.nextDouble();

        BigDecimal bigA = BigDecimal.valueOf(a);
        BigDecimal bigB = BigDecimal.valueOf(b);

        BigDecimal bigResult = bigA.multiply(bigB);

        BigDecimal roundBigResult = bigResult.setScale(0, BigDecimal.ROUND_DOWN);

        System.out.print(roundBigResult);
    }
} Main
import java.math.BigDecimal;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        long a;
        double b;

        a = scanner.nextLong();
        b = scanner.nextDouble();

        BigDecimal bigA = BigDecimal.valueOf(a);
        BigDecimal bigB = BigDecimal.valueOf(b);

        BigDecimal bigResult = bigA.multiply(bigB);

        BigDecimal roundBigResult = bigResult.setScale(0, BigDecimal.ROUND_DOWN);

        System.out.print(roundBigResult);
    }
}
