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

a=int(a)

b*=10**15

b=int(b)

print(((a*b)//10**15))

a,b=input().split()

a=int(a)

b=b.replace('.','')

b=int(b)

print(((a*b)//100))

a, b = list(map(float, input().split()))
a = int(a)
b *= 10**15
b = int(b)
print(((a * b) // 10**15))

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

-a, b = list(map(float, input().split())) +a, b = input().split() -b *= 10**15 +b = b.replace(".", "") -print(((a * b) // 10**15)) +print(((a * b) // 100))