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

X=A*(B*100)

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

A=int(A)

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

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

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

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