import math

import decimal



n,k =input().split()



a=decimal.Decimal(n) * decimal.Decimal(k)



print((math.floor(a)))
a,b = input().split()

a=int(a)

b=int(b.replace(".",""))

print((a*b//100))

import math
import decimal

n, k = input().split()
a = decimal.Decimal(n) * decimal.Decimal(k)
print((math.floor(a)))

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

-import math -import decimal - -n, k = input().split() -a = decimal.Decimal(n) * decimal.Decimal(k) -print((math.floor(a))) +a, b = input().split() +a = int(a) +b = int(b.replace(".", "")) +print((a * b // 100))