Inna love digit 9 that s ask Dima write small number consist nine but Dima misunderstood write large number consist digit 1 9inna want slightly alter number Dima write end number contain digit possible in Inna choose adjacent digits number sum equal 9 replace single digit 9for instance Inna alter number 14545181 like 14545181194518119451919919 also use method transform number 14545181 number 19991 Inna transform 149591 number 19919 19991 contain digit nineDima programmer wants find distinct number contain digit possible Inna write number help challenge task