import math

from decimal import *

a,b=input().split()

print((math.floor(Decimal(a)*Decimal(b))))

a,b=input().split()

a=int(a)

val=100*int(b[0])+10*int(b[2])+int(b[3])

print(((a*val)//100))
import math
from decimal import *

a, b = input().split()
print((math.floor(Decimal(a) * Decimal(b))))

a, b = input().split()
a = int(a)
val = 100 * int(b[0]) + 10 * int(b[2]) + int(b[3])
print(((a * val) // 100))

-import math -from decimal import * - -print((math.floor(Decimal(a) * Decimal(b)))) +a = int(a) +val = 100 * int(b[0]) + 10 * int(b[2]) + int(b[3]) +print(((a * val) // 100))