a, b = input().split()

a = int(a)

b = int(b.replace('.', ''))

c = str(a * b)[:-2]

if c == '':

    print((0))

else:

    print(c)

a,b=list(map(int,input().replace('.','').split()))

print((a*b//100))
a, b = input().split()
a = int(a)
b = int(b.replace(".", ""))
c = str(a * b)[:-2]
if c == "":
    print((0))
else:
    print(c)

a, b = list(map(int, input().replace(".", "").split()))
print((a * b // 100))

-a, b = input().split() -a = int(a) -b = int(b.replace(".", "")) -c = str(a * b)[:-2] -if c == "": -    print((0)) -else: -    print(c) +a, b = list(map(int, input().replace(".", "").split())) +print((a * b // 100))