A,B = input().split()

A = int(A)

x = ""

for i in range(len(B)):

    if B[i]!=".":

        x += B[i]

B = int(x)

C = A*B

C = C//100

print(C)
A,B = input().split()

A = int(A)

B = "".join(list(B.split(".")))

B = int(B)

print(((A*B)//100))
A, B = input().split()
A = int(A)
x = ""
for i in range(len(B)):
    if B[i] != ".":
        x += B[i]
B = int(x)
C = A * B
C = C // 100
print(C)

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

-x = "" -for i in range(len(B)): -    if B[i] != ".": -        x += B[i] -B = int(x) -C = A * B -C = C // 100 -print(C) +B = "".join(list(B.split("."))) +B = int(B) +print(((A * B) // 100))