Refactor lychrel number