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