from decimal import Decimal

in_ = list(input().split())

A = int(in_[0])

B = Decimal(in_[1])

ans = A * B

print((int(ans)))
in_ = list(input().split())

A = int(in_[0])

B = int(in_[1].replace(".", ""))

ans = A * B

ans = ans // 100

print(ans)
from decimal import Decimal

in_ = list(input().split())
A = int(in_[0])
B = Decimal(in_[1])
ans = A * B
print((int(ans)))

in_ = list(input().split())
A = int(in_[0])
B = int(in_[1].replace(".", ""))
ans = A * B
ans = ans // 100
print(ans)

-from decimal import Decimal - -B = Decimal(in_[1]) +B = int(in_[1].replace(".", "")) -print((int(ans))) +ans = ans // 100 +print(ans)