A, B = list(map(str, input().split()))

A = int(A)

B = B.replace(".", "")

B = int(B)

print((A*B//100))

A, B = list(map(str, input().split()))

A = int(A)

B = B.replace(".", "")

B = int(B)

print(((A*B)//100))

A, B = list(map(str, input().split()))
A = int(A)
B = B.replace(".", "")
B = int(B)
print((A * B // 100))

A, B = list(map(str, input().split()))
A = int(A)
B = B.replace(".", "")
B = int(B)
print(((A * B) // 100))

-print((A * B // 100)) +print(((A * B) // 100))