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

A = int(A)

B = int(float(str(B*100)))

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

A = int(A)

B = int(float(B)*100)

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

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

-A, B = list(map(float, input().split())) +A, B = input().split() -B = int(float(str(B * 100))) +B = int(float(B) * 100)