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

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

b = 100*b + 0.0000001

print((round((a*b)/100)))
a, b = list(map(int, input().split()))
print((a * b))

a, b = list(map(float, input().split()))
b = 100 * b + 0.0000001
print((round((a * b) / 100)))

-a, b = list(map(int, input().split())) -print((a * b)) +a, b = list(map(float, input().split())) +b = 100 * b + 0.0000001 +print((round((a * b) / 100)))