a,b = list(map(int,input().split()))

c = a*b

print(c)
a,b = list(map(float,input().split()))

A = int(a)

B = 100*b

c = int(A*B//100)



print(c)

a, b = list(map(int, input().split()))
c = a * b
print(c)

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

-a, b = list(map(int, input().split())) -c = a * b +a, b = list(map(float, input().split())) +A = int(a) +B = 100 * b +c = int(A * B // 100)