v, t = input().split() a, b = v.split('.') V, T = int(b), int(t) ans = V * T // 10000 print(ans)