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

a=int(a)

b=int("".join(b.split(".")))

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

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

a, b = input().split()
a = int(a)
b = int("".join(b.split(".")))
print(((a * b) // 100))

-print((int(a) * int(b[:-3] + b[-2:]) // 100)) +a = int(a) +b = int("".join(b.split("."))) +print(((a * b) // 100))