import math

import pprint

import fractions

import collections

import itertools

from decimal import *

A,B=list(map(str,input().split()))

#print(A*B)

getcontext().prec=40

A=int(A)

#print(Decimal(A)*Decimal(B))



A=str(A)

A=list(map(int,A))

b=list(str(B))

B=[0]*3

#print(A,b)

N=len(A)                #Aの桁数

table=[[0 for _ in range(len(A)+1)] for _ in range(10)]

for i in range(1,10):

    career=0

    for j in range(N,0,-1):

        buf=A[j-1]*i+career

        career=buf//10

        table[i][j]=buf%10

    table[i][0]=career

#print(table)

A=list(A)

A.insert(0,0)

A.insert(len(A),0)

A.insert(len(A),0)



#print(A)

ans=[0]*(len(A))

B=[int(b[0]),int(b[2]),int(b[3])]

#print(B)

#print(ans)

for i in range(2,-1,-1):

    piv=B[i]

    buf=[]

    buf = table[piv]

    #print(buf)

    career=0

    for j in range(N,-1,-1):

        num=ans[j+i]+buf[j]+career

        career=num//10

        ans[j+i]=num%10

    #print(ans)

    #input()

ans=list(map(str,ans))

s="".join(ans)

print((int(s[:len(s)-2])))
import math

import pprint

import fractions

import collections

import itertools

from decimal import *

A,B=list(map(str,input().split()))

A=int(A)

B=str(B)

num=int(B[0])*100+int(B[2])*10+int(B[3])

#print(A,num)

print(((A*num)//100))

import math
import pprint
import fractions
import collections
import itertools
from decimal import *

A, B = list(map(str, input().split()))
# print(A*B)
getcontext().prec = 40
A = int(A)
# print(Decimal(A)*Decimal(B))
A = str(A)
A = list(map(int, A))
b = list(str(B))
B = [0] * 3
# print(A,b)
N = len(A)  # Aの桁数
table = [[0 for _ in range(len(A) + 1)] for _ in range(10)]
for i in range(1, 10):
    career = 0
    for j in range(N, 0, -1):
        buf = A[j - 1] * i + career
        career = buf // 10
        table[i][j] = buf % 10
    table[i][0] = career
# print(table)
A = list(A)
A.insert(0, 0)
A.insert(len(A), 0)
A.insert(len(A), 0)
# print(A)
ans = [0] * (len(A))
B = [int(b[0]), int(b[2]), int(b[3])]
# print(B)
# print(ans)
for i in range(2, -1, -1):
    piv = B[i]
    buf = []
    buf = table[piv]
    # print(buf)
    career = 0
    for j in range(N, -1, -1):
        num = ans[j + i] + buf[j] + career
        career = num // 10
        ans[j + i] = num % 10
    # print(ans)
    # input()
ans = list(map(str, ans))
s = "".join(ans)
print((int(s[: len(s) - 2])))

import math
import pprint
import fractions
import collections
import itertools
from decimal import *

A, B = list(map(str, input().split()))
A = int(A)
B = str(B)
num = int(B[0]) * 100 + int(B[2]) * 10 + int(B[3])
# print(A,num)
print(((A * num) // 100))

-# print(A*B) -getcontext().prec = 40 -# print(Decimal(A)*Decimal(B)) -A = str(A) -A = list(map(int, A)) -b = list(str(B)) -B = [0] * 3 -# print(A,b) -N = len(A)  # Aの桁数 -table = [[0 for _ in range(len(A) + 1)] for _ in range(10)] -for i in range(1, 10): -    career = 0 -    for j in range(N, 0, -1): -        buf = A[j - 1] * i + career -        career = buf // 10 -        table[i][j] = buf % 10 -    table[i][0] = career -# print(table) -A = list(A) -A.insert(0, 0) -A.insert(len(A), 0) -A.insert(len(A), 0) -# print(A) -ans = [0] * (len(A)) -B = [int(b[0]), int(b[2]), int(b[3])] -# print(B) -# print(ans) -for i in range(2, -1, -1): -    piv = B[i] -    buf = [] -    buf = table[piv] -    # print(buf) -    career = 0 -    for j in range(N, -1, -1): -        num = ans[j + i] + buf[j] + career -        career = num // 10 -        ans[j + i] = num % 10 -    # print(ans) -    # input() -ans = list(map(str, ans)) -s = "".join(ans) -print((int(s[: len(s) - 2]))) +B = str(B) +num = int(B[0]) * 100 + int(B[2]) * 10 + int(B[3]) +# print(A,num) +print(((A * num) // 100))