v, t = input().split()
v = int(v[v.index(".") + 1:])
v *= int(t)
v = str(v)
if len(v) <= 4:
    print(0)
else:
    print(v[:len(v)-4])