import math

from decimal import Decimal

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

print((math.floor(A*B)))
A,B = input().split()

A = int(A)

B1,B2 = list(map(int,B.split('.')))

ans = A*(B1*100+B2)

print((int(ans//100)))
import math
from decimal import Decimal

A, B = list(map(Decimal, input().split()))
print((math.floor(A * B)))

A, B = input().split()
A = int(A)
B1, B2 = list(map(int, B.split(".")))
ans = A * (B1 * 100 + B2)
print((int(ans // 100)))

-import math -from decimal import Decimal - -A, B = list(map(Decimal, input().split())) -print((math.floor(A * B))) +A, B = input().split() +A = int(A) +B1, B2 = list(map(int, B.split("."))) +ans = A * (B1 * 100 + B2) +print((int(ans // 100)))