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

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

A = int(a)

B = round(float(b) * 100)

print((A * B // 100))

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

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

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