beautiful numbers , digit dp