import java.util.*;
import java.math.*;
public class Main{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
while(sc.hasNextLine()){
String num1 = sc.nextLine();
String num2 = sc.nextLine();
BigInteger n1 = new BigInteger(num1);
BigInteger n2 = new BigInteger(num2);
BigInteger product = n1.multiply(n2);
System.out.println(product);
}
}
}