from decimal import Decimal



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



ans = a*b



print((int(ans)))
a,b = input().split()

a = int(a)

b = int(b[0]+b[2]+b[3])

ans = a*b

ans = ans//100

print(ans)
from decimal import Decimal

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

a, b = input().split()
a = int(a)
b = int(b[0] + b[2] + b[3])
ans = a * b
ans = ans // 100
print(ans)

-from decimal import Decimal - -a, b = list(map(Decimal, input().split())) +a, b = input().split() +a = int(a) +b = int(b[0] + b[2] + b[3]) -print((int(ans))) +ans = ans // 100 +print(ans)