A,B=input().split()

a=int(A)

b=B[0]+B[2]+B[3]

print((a*int(b)//100))
from math import floor

a,b=input().split()

a,b=int(a),int(b[0]+b[2]+b[3])

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

from math import floor

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

-A, B = input().split() -a = int(A) -b = B[0] + B[2] + B[3] -print((a * int(b) // 100)) +from math import floor + +a, b = input().split() +a, b = int(a), int(b[0] + b[2] + b[3]) +print((a * b // 100))