import java.io.FileNotFoundException;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Arrays;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws FileNotFoundException {

        Scanner in = new Scanner(System.in);
//        Scanner in = new Scanner(new File("input.txt"));

        long a = in.nextLong();


        BigDecimal b = new BigDecimal(String.valueOf(in.nextDouble()));
        b = b.multiply(new BigDecimal(String.valueOf(a)));

        String s = b.toString();
        System.out.println(s.substring(0, s.indexOf(".")));
    }
} import java.io.FileNotFoundException; FileNotFoundException java.io import java.math.BigDecimal; BigDecimal java.math import java.math.BigInteger; BigInteger java.math import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) throws FileNotFoundException {

        Scanner in = new Scanner(System.in);
//        Scanner in = new Scanner(new File("input.txt"));

        long a = in.nextLong();


        BigDecimal b = new BigDecimal(String.valueOf(in.nextDouble()));
        b = b.multiply(new BigDecimal(String.valueOf(a)));

        String s = b.toString();
        System.out.println(s.substring(0, s.indexOf(".")));
    }
} Main public static void main(String[] args) throws FileNotFoundException {

        Scanner in = new Scanner(System.in);
//        Scanner in = new Scanner(new File("input.txt"));

        long a = in.nextLong();


        BigDecimal b = new BigDecimal(String.valueOf(in.nextDouble()));
        b = b.multiply(new BigDecimal(String.valueOf(a)));

        String s = b.toString();
        System.out.println(s.substring(0, s.indexOf(".")));
    } main {

        Scanner in = new Scanner(System.in);
//        Scanner in = new Scanner(new File("input.txt"));

        long a = in.nextLong();


        BigDecimal b = new BigDecimal(String.valueOf(in.nextDouble()));
        b = b.multiply(new BigDecimal(String.valueOf(a)));

        String s = b.toString();
        System.out.println(s.substring(0, s.indexOf(".")));
    } Scanner in = new Scanner(System.in); in new Scanner(System.in) long a = in.nextLong(); a in.nextLong() in.nextLong in BigDecimal b = new BigDecimal(String.valueOf(in.nextDouble())); b new BigDecimal(String.valueOf(in.nextDouble())) b = b.multiply(new BigDecimal(String.valueOf(a))) b b.multiply(new BigDecimal(String.valueOf(a))) b.multiply b new BigDecimal(String.valueOf(a)) String s = b.toString(); s b.toString() b.toString b System.out.println(s.substring(0, s.indexOf("."))) System.out.println System.out System System.out s.substring(0, s.indexOf(".")) s.substring s 0 s.indexOf(".") s.indexOf s "." String[] args args public class Main {
    public static void main(String[] args) throws FileNotFoundException {

        Scanner in = new Scanner(System.in);
//        Scanner in = new Scanner(new File("input.txt"));

        long a = in.nextLong();


        BigDecimal b = new BigDecimal(String.valueOf(in.nextDouble()));
        b = b.multiply(new BigDecimal(String.valueOf(a)));

        String s = b.toString();
        System.out.println(s.substring(0, s.indexOf(".")));
    }
} public class Main {
    public static void main(String[] args) throws FileNotFoundException {

        Scanner in = new Scanner(System.in);
//        Scanner in = new Scanner(new File("input.txt"));

        long a = in.nextLong();


        BigDecimal b = new BigDecimal(String.valueOf(in.nextDouble()));
        b = b.multiply(new BigDecimal(String.valueOf(a)));

        String s = b.toString();
        System.out.println(s.substring(0, s.indexOf(".")));
    }
} Main
import java.io.FileNotFoundException;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Arrays;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws FileNotFoundException {

        Scanner in = new Scanner(System.in);
//        Scanner in = new Scanner(new File("input.txt"));

        long a = in.nextLong();


        BigDecimal b = new BigDecimal(String.valueOf(in.nextDouble()));
        b = b.multiply(new BigDecimal(String.valueOf(a)));

        String s = b.toString();
        System.out.println(s.substring(0, s.indexOf(".")));
    }
}
