A, B = input().split()

A = int(A)

B = round(float(B) * 100)

print((A * B // 100))

A, B = input().split()

A = int(A)

B_int, B_frac = B.split('.')

new_b = int(B_int) * 100 + int(B_frac)

print((A * new_b // 100))
A, B = input().split()
A = int(A)
B = round(float(B) * 100)
print((A * B // 100))

A, B = input().split()
A = int(A)
B_int, B_frac = B.split(".")
new_b = int(B_int) * 100 + int(B_frac)
print((A * new_b // 100))

-B = round(float(B) * 100) -print((A * B // 100)) +B_int, B_frac = B.split(".") +new_b = int(B_int) * 100 + int(B_frac) +print((A * new_b // 100))