import math

import numpy as np

# math.floor



X = list(input().split())

A = int(X[0])

B = float(X[1])



# s = str(A*B)



ans = (A*int(B*100+0.5))//100

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

 

a = int(a)

b = round(float(b) * 100)

 

print((a*b//100))
import math
import numpy as np

# math.floor
X = list(input().split())
A = int(X[0])
B = float(X[1])
# s = str(A*B)
ans = (A * int(B * 100 + 0.5)) // 100
print(ans)

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

-import math -import numpy as np - -# math.floor -X = list(input().split()) -A = int(X[0]) -B = float(X[1]) -# s = str(A*B) -ans = (A * int(B * 100 + 0.5)) // 100 -print(ans) +a, b = list(map(float, input().split())) +a = int(a) +b = round(float(b) * 100) +print((a * b // 100))