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

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

i = (int(A)*int(B*100))//100

print(i)

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

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

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