tmp = input().strip().split(" ") v = int(tmp[0].split(".")[1]) t = int(tmp[1]) print("{0:.0f}".format(v*t//10000))