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();
		//long[] a = new long[n];
		String s = "";
		BigDecimal bdb = new BigDecimal(String.valueOf(b));
		BigDecimal bda = new BigDecimal(String.valueOf(a));

		BigDecimal bd1 = bda.multiply(bdb).setScale(0, RoundingMode.DOWN);

		s = bd1.toPlainString();


		sc.close();
			System.out.println(s);


	}

} 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();
		//long[] a = new long[n];
		String s = "";
		BigDecimal bdb = new BigDecimal(String.valueOf(b));
		BigDecimal bda = new BigDecimal(String.valueOf(a));

		BigDecimal bd1 = bda.multiply(bdb).setScale(0, RoundingMode.DOWN);

		s = bd1.toPlainString();


		sc.close();
			System.out.println(s);


	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String a = sc.next();
		String b = sc.next();
		//long[] a = new long[n];
		String s = "";
		BigDecimal bdb = new BigDecimal(String.valueOf(b));
		BigDecimal bda = new BigDecimal(String.valueOf(a));

		BigDecimal bd1 = bda.multiply(bdb).setScale(0, RoundingMode.DOWN);

		s = bd1.toPlainString();


		sc.close();
			System.out.println(s);


	} main {
		Scanner sc = new Scanner(System.in);
		String a = sc.next();
		String b = sc.next();
		//long[] a = new long[n];
		String s = "";
		BigDecimal bdb = new BigDecimal(String.valueOf(b));
		BigDecimal bda = new BigDecimal(String.valueOf(a));

		BigDecimal bd1 = bda.multiply(bdb).setScale(0, RoundingMode.DOWN);

		s = bd1.toPlainString();


		sc.close();
			System.out.println(s);


	} 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 String s = ""; s "" BigDecimal bdb = new BigDecimal(String.valueOf(b)); bdb new BigDecimal(String.valueOf(b)) BigDecimal bda = new BigDecimal(String.valueOf(a)); bda new BigDecimal(String.valueOf(a)) BigDecimal bd1 = bda.multiply(bdb).setScale(0, RoundingMode.DOWN); bd1 bda.multiply(bdb).setScale(0, RoundingMode.DOWN) bda.multiply(bdb).setScale bda.multiply(bdb) bda.multiply bda bdb 0 RoundingMode.DOWN RoundingMode RoundingMode.DOWN s = bd1.toPlainString() s bd1.toPlainString() bd1.toPlainString bd1 sc.close() sc.close sc System.out.println(s) System.out.println System.out System System.out s 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();
		//long[] a = new long[n];
		String s = "";
		BigDecimal bdb = new BigDecimal(String.valueOf(b));
		BigDecimal bda = new BigDecimal(String.valueOf(a));

		BigDecimal bd1 = bda.multiply(bdb).setScale(0, RoundingMode.DOWN);

		s = bd1.toPlainString();


		sc.close();
			System.out.println(s);


	}

} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String a = sc.next();
		String b = sc.next();
		//long[] a = new long[n];
		String s = "";
		BigDecimal bdb = new BigDecimal(String.valueOf(b));
		BigDecimal bda = new BigDecimal(String.valueOf(a));

		BigDecimal bd1 = bda.multiply(bdb).setScale(0, RoundingMode.DOWN);

		s = bd1.toPlainString();


		sc.close();
			System.out.println(s);


	}

} 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();
		//long[] a = new long[n];
		String s = "";
		BigDecimal bdb = new BigDecimal(String.valueOf(b));
		BigDecimal bda = new BigDecimal(String.valueOf(a));

		BigDecimal bd1 = bda.multiply(bdb).setScale(0, RoundingMode.DOWN);

		s = bd1.toPlainString();


		sc.close();
			System.out.println(s);


	}

}
