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