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

A = int(A)

B = int(B*100+0.1)

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

A = int(A)

B = int(float(B)*100+0.1)

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

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

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

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