f, p = raw_input().split()
f = int(f[2:])
p = int(p)

print int(f * p / 10000)