while""do c=io.read(1)x=c>" "and(x or 0)*8+c-c/5+c/5%1 or print(x)end