v,t = map(str,input().split()) t = int(t) v = v.split('.')[1] v = int(v) print(v*t//10000)