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