
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.StringTokenizer;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Varun
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws IOException {
        // TODO code application logic here
          BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            
    StringTokenizer st = new StringTokenizer(br.readLine());
   // BigInteger a = new BigInteger(st.nextToken());
     final BigDecimal a = new BigDecimal( st.nextToken() );
    final BigDecimal orig = new BigDecimal( st.nextToken() );
    //BigInteger c = new BigInteger(String.valueOf(b));
    //BigInteger d = a.multiply(c);
    //System.out.println(orig);
   BigDecimal res = a.multiply(orig);
   System.out.println(res.toBigInteger().longValueExact());
   
   // System.out.printf("%.f",res);
    
    }
    
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.math.BigDecimal; BigDecimal java.math import java.math.BigInteger; BigInteger java.math import java.util.StringTokenizer; StringTokenizer java.util public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws IOException {
        // TODO code application logic here
          BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            
    StringTokenizer st = new StringTokenizer(br.readLine());
   // BigInteger a = new BigInteger(st.nextToken());
     final BigDecimal a = new BigDecimal( st.nextToken() );
    final BigDecimal orig = new BigDecimal( st.nextToken() );
    //BigInteger c = new BigInteger(String.valueOf(b));
    //BigInteger d = a.multiply(c);
    //System.out.println(orig);
   BigDecimal res = a.multiply(orig);
   System.out.println(res.toBigInteger().longValueExact());
   
   // System.out.printf("%.f",res);
    
    }
    
} Main /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws IOException {
        // TODO code application logic here
          BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            
    StringTokenizer st = new StringTokenizer(br.readLine());
   // BigInteger a = new BigInteger(st.nextToken());
     final BigDecimal a = new BigDecimal( st.nextToken() );
    final BigDecimal orig = new BigDecimal( st.nextToken() );
    //BigInteger c = new BigInteger(String.valueOf(b));
    //BigInteger d = a.multiply(c);
    //System.out.println(orig);
   BigDecimal res = a.multiply(orig);
   System.out.println(res.toBigInteger().longValueExact());
   
   // System.out.printf("%.f",res);
    
    } main {
        // TODO code application logic here
          BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            
    StringTokenizer st = new StringTokenizer(br.readLine());
   // BigInteger a = new BigInteger(st.nextToken());
     final BigDecimal a = new BigDecimal( st.nextToken() );
    final BigDecimal orig = new BigDecimal( st.nextToken() );
    //BigInteger c = new BigInteger(String.valueOf(b));
    //BigInteger d = a.multiply(c);
    //System.out.println(orig);
   BigDecimal res = a.multiply(orig);
   System.out.println(res.toBigInteger().longValueExact());
   
   // System.out.printf("%.f",res);
    
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) StringTokenizer st = new StringTokenizer(br.readLine()); st new StringTokenizer(br.readLine()) final BigDecimal a = new BigDecimal( st.nextToken() ); a new BigDecimal( st.nextToken() ) final BigDecimal orig = new BigDecimal( st.nextToken() ); orig new BigDecimal( st.nextToken() ) BigDecimal res = a.multiply(orig); res a.multiply(orig) a.multiply a orig System.out.println(res.toBigInteger().longValueExact()) System.out.println System.out System System.out res.toBigInteger().longValueExact() res.toBigInteger().longValueExact res.toBigInteger() res.toBigInteger res String[] args args public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws IOException {
        // TODO code application logic here
          BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            
    StringTokenizer st = new StringTokenizer(br.readLine());
   // BigInteger a = new BigInteger(st.nextToken());
     final BigDecimal a = new BigDecimal( st.nextToken() );
    final BigDecimal orig = new BigDecimal( st.nextToken() );
    //BigInteger c = new BigInteger(String.valueOf(b));
    //BigInteger d = a.multiply(c);
    //System.out.println(orig);
   BigDecimal res = a.multiply(orig);
   System.out.println(res.toBigInteger().longValueExact());
   
   // System.out.printf("%.f",res);
    
    }
    
} public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws IOException {
        // TODO code application logic here
          BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            
    StringTokenizer st = new StringTokenizer(br.readLine());
   // BigInteger a = new BigInteger(st.nextToken());
     final BigDecimal a = new BigDecimal( st.nextToken() );
    final BigDecimal orig = new BigDecimal( st.nextToken() );
    //BigInteger c = new BigInteger(String.valueOf(b));
    //BigInteger d = a.multiply(c);
    //System.out.println(orig);
   BigDecimal res = a.multiply(orig);
   System.out.println(res.toBigInteger().longValueExact());
   
   // System.out.printf("%.f",res);
    
    }
    
} Main

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.StringTokenizer;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Varun
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws IOException {
        // TODO code application logic here
          BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            
    StringTokenizer st = new StringTokenizer(br.readLine());
   // BigInteger a = new BigInteger(st.nextToken());
     final BigDecimal a = new BigDecimal( st.nextToken() );
    final BigDecimal orig = new BigDecimal( st.nextToken() );
    //BigInteger c = new BigInteger(String.valueOf(b));
    //BigInteger d = a.multiply(c);
    //System.out.println(orig);
   BigDecimal res = a.multiply(orig);
   System.out.println(res.toBigInteger().longValueExact());
   
   // System.out.printf("%.f",res);
    
    }
    
}
