v, t = [i for i in input().strip().split(' ')] tmp = 10 ** v[::-1].index('.') - 1 vv = float(v) * tmp print(int(vv * int(t)) // tmp)