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

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



tmp = A*B*100

print((int(tmp/100)))

A, B = list(map(int, input().split()))
print((A * B))

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

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