from decimal import *

a, b = input().split()



A = int(a)

B = Decimal(b)



print((int(A * B)))
a, b= input().split()





a = int(a)

b = int(b[0]) * 100 + int(b[2:4])



print(((a * b)//100))

from decimal import *

a, b = input().split()
A = int(a)
B = Decimal(b)
print((int(A * B)))

a, b = input().split()
a = int(a)
b = int(b[0]) * 100 + int(b[2:4])
print(((a * b) // 100))

-from decimal import * - -A = int(a) -B = Decimal(b) -print((int(A * B))) +a = int(a) +b = int(b[0]) * 100 + int(b[2:4]) +print(((a * b) // 100))