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

print((a*b))
a,b=input().split()

a=int(a)

b=int(float(b)*100)

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

a, b = input().split()
a = int(a)
b = int(float(b) * 100)
print((int(a * b / 100)))

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