No.40 solved; storing digits was fun