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

A=int(A)

B=int(B*100+0.9999999999)

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

A=int(A)

B=int(B*100+0.9999999999999)

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

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

-B = int(B * 100 + 0.9999999999) +B = int(B * 100 + 0.9999999999999)