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