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

public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		BigDecimal a = scan.nextBigDecimal();
		BigDecimal b = scan.nextBigDecimal();

		BigDecimal ans = a.multiply(b).setScale(0, RoundingMode.DOWN);
		System.out.println(ans);

		scan.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 scan = new Scanner(System.in);
		BigDecimal a = scan.nextBigDecimal();
		BigDecimal b = scan.nextBigDecimal();

		BigDecimal ans = a.multiply(b).setScale(0, RoundingMode.DOWN);
		System.out.println(ans);

		scan.close();

	}

} Main public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		BigDecimal a = scan.nextBigDecimal();
		BigDecimal b = scan.nextBigDecimal();

		BigDecimal ans = a.multiply(b).setScale(0, RoundingMode.DOWN);
		System.out.println(ans);

		scan.close();

	} main {

		Scanner scan = new Scanner(System.in);
		BigDecimal a = scan.nextBigDecimal();
		BigDecimal b = scan.nextBigDecimal();

		BigDecimal ans = a.multiply(b).setScale(0, RoundingMode.DOWN);
		System.out.println(ans);

		scan.close();

	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) BigDecimal a = scan.nextBigDecimal(); a scan.nextBigDecimal() scan.nextBigDecimal scan BigDecimal b = scan.nextBigDecimal(); b scan.nextBigDecimal() scan.nextBigDecimal scan BigDecimal ans = a.multiply(b).setScale(0, RoundingMode.DOWN); ans a.multiply(b).setScale(0, RoundingMode.DOWN) a.multiply(b).setScale a.multiply(b) a.multiply a b 0 RoundingMode.DOWN RoundingMode RoundingMode.DOWN System.out.println(ans) System.out.println System.out System System.out ans scan.close() scan.close scan String[] args args public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		BigDecimal a = scan.nextBigDecimal();
		BigDecimal b = scan.nextBigDecimal();

		BigDecimal ans = a.multiply(b).setScale(0, RoundingMode.DOWN);
		System.out.println(ans);

		scan.close();

	}

} public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		BigDecimal a = scan.nextBigDecimal();
		BigDecimal b = scan.nextBigDecimal();

		BigDecimal ans = a.multiply(b).setScale(0, RoundingMode.DOWN);
		System.out.println(ans);

		scan.close();

	}

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

public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		BigDecimal a = scan.nextBigDecimal();
		BigDecimal b = scan.nextBigDecimal();

		BigDecimal ans = a.multiply(b).setScale(0, RoundingMode.DOWN);
		System.out.println(ans);

		scan.close();

	}

}
