_v, _t = input().split() _, v = map(int, _v.split('.')) t = int(_t) ans = v*t//10000 print(ans)