from decimal import Decimal v, t = input().split() v = Decimal(v) t = Decimal(t) print(int(v*t))