a, b = input().split()

a = int(a)

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

ans = a*b

if ans < 100:

    print((0))

else:

    print((str(ans)[:-2]))
a, b = input().split()

a = int(a)

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

print((a*b//100))
a, b = input().split()
a = int(a)
b = int(b[0] + b[2] + b[3])
ans = a * b
if ans < 100:
    print((0))
else:
    print((str(ans)[:-2]))

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

-b = int(b[0] + b[2] + b[3]) -ans = a * b -if ans < 100: -    print((0)) -else: -    print((str(ans)[:-2])) +b = int(b.replace(".", "")) +print((a * b // 100))