from math import floor

a,b = input().split()

c = ""

for i in b:

    if i!=".":

        c+=i

# print(c)

c = int(c)

# b = int(float(b)*100)

a = int(a)

print(((a*c)//100))
a,b = input().split()

b = float(b)+0.009

a = int(a)

b = int(b*100)

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

a, b = input().split()
c = ""
for i in b:
    if i != ".":
        c += i
# print(c)
c = int(c)
# b = int(float(b)*100)
a = int(a)
print(((a * c) // 100))

a, b = input().split()
b = float(b) + 0.009
a = int(a)
b = int(b * 100)
print(((a * b) // 100))

-from math import floor - -c = "" -for i in b: -    if i != ".": -        c += i -# print(c) -c = int(c) -# b = int(float(b)*100) +b = float(b) + 0.009 -print(((a * c) // 100)) +b = int(b * 100) +print(((a * b) // 100))