import math

a,b=input().split()

a=int(a)

b=round(float(b)*100)

n=int((a*b)//100)

print(n)
a,b=input().split()

a=int(a)

b=round(float(b)*100)

n=(a*b)//100

print((int(n)))
import math

a, b = input().split()
a = int(a)
b = round(float(b) * 100)
n = int((a * b) // 100)
print(n)

a, b = input().split()
a = int(a)
b = round(float(b) * 100)
n = (a * b) // 100
print((int(n)))

-import math - -n = int((a * b) // 100) -print(n) +n = (a * b) // 100 +print((int(n)))