a,b=[float(x) for x in input().strip().split(" ")]

x=a*(b*100)/100

print((int(x)))
a,b=[int(x) for x in input().strip().split(" ")]

print((a*b))

a, b = [float(x) for x in input().strip().split(" ")]
x = a * (b * 100) / 100
print((int(x)))

a, b = [int(x) for x in input().strip().split(" ")]
print((a * b))

-a, b = [float(x) for x in input().strip().split(" ")] -x = a * (b * 100) / 100 -print((int(x))) +a, b = [int(x) for x in input().strip().split(" ")] +print((a * b))