_v, _t = input().split() v = int(float(_v) * 10000 + 0.1) t = int(_t) ans = v*t//10000 print(ans)