Cody

Problem 2848. Digital Neighbourhood

Solution 562084

Submitted on 21 Jan 2015 by Guillaume
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
x = 132; y_correct = 123; assert(isequal(find_neighbour(x),y_correct))

ans = 231000 231000 231000 231000 231000 231000 230100 230100 230010 230001 230010 230001 230100 230100 230010 230001 230010 230001 230100 230100 230010 230001 230010 230001 213000 213000 213000 213000 213000 213000 210300 210300 210030 210003 210030 210003 210300 210300 210030 210003 210030 210003 210300 210300 210030 210003 210030 210003 203100 203100 203010 203001 203010 203001 201300 201300 201030 201003 201030 201003 200310 200301 200130 200103 200031 200013 200310 200301 200130 200103 200031 200013 203100 203100 203010 203001 203010 203001 201300 201300 201030 201003 201030 201003 200310 200301 200130 200103 200031 200013 200310 200301 200130 200103 200031 200013 203100 203100 203010 203001 203010 203001 201300 201300 201030 201003 201030 201003 200310 200301 200130 200103 200031 200013 200310 200301 200130 200103 200031 200013 321000 321000 321000 321000 321000 321000 320100 320100 320010 320001 320010 320001 320100 320100 320010 320001 320010 320001 320100 320100 320010 320001 320010 320001 312000 312000 312000 312000 312000 312000 310200 310200 310020 310002 310020 310002 310200 310200 310020 310002 310020 310002 310200 310200 310020 310002 310020 310002 302100 302100 302010 302001 302010 302001 301200 301200 301020 301002 301020 301002 300210 300201 300120 300102 300021 300012 300210 300201 300120 300102 300021 300012 302100 302100 302010 302001 302010 302001 301200 301200 301020 301002 301020 301002 300210 300201 300120 300102 300021 300012 300210 300201 300120 300102 300021 300012 302100 302100 302010 302001 302010 302001 301200 301200 301020 301002 301020 301002 300210 300201 300120 300102 300021 300012 300210 300201 300120 300102 300021 300012 123000 123000 123000 123000 123000 123000 120300 120300 120030 120003 120030 120003 120300 120300 120030 120003 120030 120003 120300 120300 120030 120003 120030 120003 132000 132000 132000 132000 132000 132000 130200 130200 130020 130002 130020 130002 130200 130200 130020 130002 130020 130002 130200 130200 130020 130002 130020 130002 102300 102300 102030 102003 102030 102003 103200 103200 103020 103002 103020 103002 100230 100203 100320 100302 100023 100032 100230 100203 100320 100302 100023 100032 102300 102300 102030 102003 102030 102003 103200 103200 103020 103002 103020 103002 100230 100203 100320 100302 100023 100032 100230 100203 100320 100302 100023 100032 102300 102300 102030 102003 102030 102003 103200 103200 103020 103002 103020 103002 100230 100203 100320 100302 100023 100032 100230 100203 100320 100302 100023 100032 23100 23100 23010 23001 23010 23001 21300 21300 21030 21003 21030 21003 20310 20301 20130 20103 20031 20013 20310 20301 20130 20103 20031 20013 32100 32100 32010 32001 32010 32001 31200 31200 31020 31002 31020 31002 30210 30201 30120 30102 30021 30012 30210 30201 30120 30102 30021 30012 12300 12300 12030 12003 12030 12003 13200 13200 13020 13002 13020 13002 10230 10203 10320 10302 10023 10032 10230 10203 10320 10302 10023 10032 2310 2301 2130 2103 2031 2013 3210 3201 3120 3102 3021 3012 1230 1203 1320 1302 1023 1032 231 213 321 312 123 132 2310 2301 2130 2103 2031 2013 3210 3201 3120 3102 3021 3012 1230 1203 1320 1302 1023 1032 231 213 321 312 123 132 23100 23100 23010 23001 23010 23001 21300 21300 21030 21003 21030 21003 20310 20301 20130 20103 20031 20013 20310 20301 20130 20103 20031 20013 32100 32100 32010 32001 32010 32001 31200 31200 31020 31002 31020 31002 30210 30201 30120 30102 30021 30012 30210 30201 30120 30102 30021 30012 12300 12300 12030 12003 12030 12003 13200 13200 13020 13002 13020 13002 10230 10203 10320 10302 10023 10032 10230 10203 10320 10302 10023 10032 2310 2301 2130 2103 2031 2013 3210 3201 3120 3102 3021 3012 1230 1203 1320 1302 1023 1032 231 213 321 312 123 132 2310 2301 2130 2103 2031 2013 3210 3201 3120 3102 3021 3012 1230 1203 1320 1302 1023 1032 231 213 321 312 123 132 23100 23100 23010 23001 23010 23001 21300 21300 21030 21003 21030 21003 20310 20301 20130 20103 20031 20013 20310 20301 20130 20103 20031 20013 32100 32100 32010 32001 32010 32001 31200 31200 31020 31002 31020 31002 30210 30201 30120 30102 30021 30012 30210 30201 30120 30102 30021 30012 12300 12300 12030 12003 12030 12003 13200 13200 13020 13002 13020 13002 10230 10203 10320 10302 10023 10032 10230 10203 10320 10302 10023 10032 2310 2301 2130 2103 2031 2013 3210 3201 3120 3102 3021 3012 1230 1203 1320 1302 1023 1032 231 213 321 312 123 132 2310 2301 2130 2103 2031 2013 3210 3201 3120 3102 3021 3012 1230 1203 1320 1302 1023 1032 231 213 321 312 123 132

2   Pass
x = 182; y_correct = 218; assert(isequal(find_neighbour(x),y_correct))

ans = 281000 281000 281000 281000 281000 281000 280100 280100 280010 280001 280010 280001 280100 280100 280010 280001 280010 280001 280100 280100 280010 280001 280010 280001 218000 218000 218000 218000 218000 218000 210800 210800 210080 210008 210080 210008 210800 210800 210080 210008 210080 210008 210800 210800 210080 210008 210080 210008 208100 208100 208010 208001 208010 208001 201800 201800 201080 201008 201080 201008 200810 200801 200180 200108 200081 200018 200810 200801 200180 200108 200081 200018 208100 208100 208010 208001 208010 208001 201800 201800 201080 201008 201080 201008 200810 200801 200180 200108 200081 200018 200810 200801 200180 200108 200081 200018 208100 208100 208010 208001 208010 208001 201800 201800 201080 201008 201080 201008 200810 200801 200180 200108 200081 200018 200810 200801 200180 200108 200081 200018 821000 821000 821000 821000 821000 821000 820100 820100 820010 820001 820010 820001 820100 820100 820010 820001 820010 820001 820100 820100 820010 820001 820010 820001 812000 812000 812000 812000 812000 812000 810200 810200 810020 810002 810020 810002 810200 810200 810020 810002 810020 810002 810200 810200 810020 810002 810020 810002 802100 802100 802010 802001 802010 802001 801200 801200 801020 801002 801020 801002 800210 800201 800120 800102 800021 800012 800210 800201 800120 800102 800021 800012 802100 802100 802010 802001 802010 802001 801200 801200 801020 801002 801020 801002 800210 800201 800120 800102 800021 800012 800210 800201 800120 800102 800021 800012 802100 802100 802010 802001 802010 802001 801200 801200 801020 801002 801020 801002 800210 800201 800120 800102 800021 800012 800210 800201 800120 800102 800021 800012 128000 128000 128000 128000 128000 128000 120800 120800 120080 120008 120080 120008 120800 120800 120080 120008 120080 120008 120800 120800 120080 120008 120080 120008 182000 182000 182000 182000 182000 182000 180200 180200 180020 180002 180020 180002 180200 180200 180020 180002 180020 180002 180200 180200 180020 180002 180020 180002 102800 102800 102080 102008 102080 102008 108200 108200 108020 108002 108020 108002 100280 100208 100820 100802 100028 100082 100280 100208 100820 100802 100028 100082 102800 102800 102080 102008 102080 102008 108200 108200 108020 108002 108020 108002 100280 100208 100820 100802 100028 100082 100280 100208 100820 100802 100028 100082 102800 102800 102080 102008 102080 102008 108200 108200 108020 108002 108020 108002 100280 100208 100820 100802 100028 100082 100280 100208 100820 100802 100028 100082 28100 28100 28010 28001 28010 28001 21800 21800 21080 21008 21080 21008 20810 20801 20180 20108 20081 20018 20810 20801 20180 20108 20081 20018 82100 82100 82010 82001 82010 82001 81200 81200 81020 81002 81020 81002 80210 80201 80120 80102 80021 80012 80210 80201 80120 80102 80021 80012 12800 12800 12080 12008 12080 12008 18200 18200 18020 18002 18020 18002 10280 10208 10820 10802 10028 10082 10280 10208 10820 10802 10028 10082 2810 2801 2180 2108 2081 2018 8210 8201 8120 8102 8021 8012 1280 1208 1820 1802 1028 1082 281 218 821 812 128 182 2810 2801 2180 2108 2081 2018 8210 8201 8120 8102 8021 8012 1280 1208 1820 1802 1028 1082 281 218 821 812 128 182 28100 28100 28010 28001 28010 28001 21800 21800 21080 21008 21080 21008 20810 20801 20180 20108 20081 20018 20810 20801 20180 20108 20081 20018 82100 82100 82010 82001 82010 82001 81200 81200 81020 81002 81020 81002 80210 80201 80120 80102 80021 80012 80210 80201 80120 80102 80021 80012 12800 12800 12080 12008 12080 12008 18200 18200 18020 18002 18020 18002 10280 10208 10820 10802 10028 10082 10280 10208 10820 10802 10028 10082 2810 2801 2180 2108 2081 2018 8210 8201 8120 8102 8021 8012 1280 1208 1820 1802 1028 1082 281 218 821 812 128 182 2810 2801 2180 2108 2081 2018 8210 8201 8120 8102 8021 8012 1280 1208 1820 1802 1028 1082 281 218 821 812 128 182 28100 28100 28010 28001 28010 28001 21800 21800 21080 21008 21080 21008 20810 20801 20180 20108 20081 20018 20810 20801 20180 20108 20081 20018 82100 82100 82010 82001 82010 82001 81200 81200 81020 81002 81020 81002 80210 80201 80120 80102 80021 80012 80210 80201 80120 80102 80021 80012 12800 12800 12080 12008 12080 12008 18200 18200 18020 18002 18020 18002 10280 10208 10820 10802 10028 10082 10280 10208 10820 10802 10028 10082 2810 2801 2180 2108 2081 2018 8210 8201 8120 8102 8021 8012 1280 1208 1820 1802 1028 1082 281 218 821 812 128 182 2810 2801 2180 2108 2081 2018 8210 8201 8120 8102 8021 8012 1280 1208 1820 1802 1028 1082 281 218 821 812 128 182

3   Pass
x = 172; y_correct = [127; 217]; % there are two such numbers, one of them is enough, but you can return both y = sort(find_neighbour(x)); fprintf('%d founded.\n',y) y = y(:); assert(any(y_correct==y))

ans = 271000 271000 271000 271000 271000 271000 270100 270100 270010 270001 270010 270001 270100 270100 270010 270001 270010 270001 270100 270100 270010 270001 270010 270001 217000 217000 217000 217000 217000 217000 210700 210700 210070 210007 210070 210007 210700 210700 210070 210007 210070 210007 210700 210700 210070 210007 210070 210007 207100 207100 207010 207001 207010 207001 201700 201700 201070 201007 201070 201007 200710 200701 200170 200107 200071 200017 200710 200701 200170 200107 200071 200017 207100 207100 207010 207001 207010 207001 201700 201700 201070 201007 201070 201007 200710 200701 200170 200107 200071 200017 200710 200701 200170 200107 200071 200017 207100 207100 207010 207001 207010 207001 201700 201700 201070 201007 201070 201007 200710 200701 200170 200107 200071 200017 200710 200701 200170 200107 200071 200017 721000 721000 721000 721000 721000 721000 720100 720100 720010 720001 720010 720001 720100 720100 720010 720001 720010 720001 720100 720100 720010 720001 720010 720001 712000 712000 712000 712000 712000 712000 710200 710200 710020 710002 710020 710002 710200 710200 710020 710002 710020 710002 710200 710200 710020 710002 710020 710002 702100 702100 702010 702001 702010 702001 701200 701200 701020 701002 701020 701002 700210 700201 700120 700102 700021 700012 700210 700201 700120 700102 700021 700012 702100 702100 702010 702001 702010 702001 701200 701200 701020 701002 701020 701002 700210 700201 700120 700102 700021 700012 700210 700201 700120 700102 700021 700012 702100 702100 702010 702001 702010 702001 701200 701200 701020 701002 701020 701002 700210 700201 700120 700102 700021 700012 700210 700201 700120 700102 700021 700012 127000 127000 127000 127000 127000 127000 120700 120700 120070 120007 120070 120007 120700 120700 120070 120007 120070 120007 120700 120700 120070 120007 120070 120007 172000 172000 172000 172000 172000 172000 170200 170200 170020 170002 170020 170002 170200 170200 170020 170002 170020 170002 170200 170200 170020 170002 170020 170002 102700 102700 102070 102007 102070 102007 107200 107200 107020 107002 107020 107002 100270 100207 100720 100702 100027 100072 100270 100207 100720 100702 100027 100072 102700 102700 102070 102007 102070 102007 107200 107200 107020 107002 107020 107002 100270 100207 100720 100702 100027 100072 100270 100207 100720 100702 100027 100072 102700 102700 102070 102007 102070 102007 107200 107200 107020 107002 107020 107002 100270 100207 100720 100702 100027 100072 100270 100207 100720 100702 100027 100072 27100 27100 27010 27001 27010 27001 21700 21700 21070 21007 21070 21007 20710 20701 20170 20107 20071 20017 20710 20701 20170 20107 20071 20017 72100 72100 72010 72001 72010 72001 71200 71200 71020 71002 71020 71002 70210 70201 70120 70102 70021 70012 70210 70201 70120 70102 70021 70012 12700 12700 12070 12007 12070 12007 17200 17200 17020 17002 17020 17002 10270 10207 10720 10702 10027 10072 10270 10207 10720 10702 10027 10072 2710 2701 2170 2107 2071 2017 7210 7201 7120 7102 7021 7012 1270 1207 1720 1702 1027 1072 271 217 721 712 127 172 2710 2701 2170 2107 2071 2017 7210 7201 7120 7102 7021 7012 1270 1207 1720 1702 1027 1072 271 217 721 712 127 172 27100 27100 27010 27001 27010 27001 21700 21700 21070 21007 21070 21007 20710 20701 20170 20107 20071 20017 20710 20701 20170 20107 20071 20017 72100 72100 72010 72001 72010 72001 71200 71200 71020 71002 71020 71002 70210 70201 70120 70102 70021 70012 70210 70201 70120 70102 70021 70012 12700 12700 12070 12007 12070 12007 17200 17200 17020 17002 17020 17002 10270 10207 10720 10702 10027 10072 10270 10207 10720 10702 10027 10072 2710 2701 2170 2107 2071 2017 7210 7201 7120 7102 7021 7012 1270 1207 1720 1702 1027 1072 271 217 721 712 127 172 2710 2701 2170 2107 2071 2017 7210 7201 7120 7102 7021 7012 1270 1207 1720 1702 1027 1072 271 217 721 712 127 172 27100 27100 27010 27001 27010 27001 21700 21700 21070 21007 21070 21007 20710 20701 20170 20107 20071 20017 20710 20701 20170 20107 20071 20017 72100 72100 72010 72001 72010 72001 71200 71200 71020 71002 71020 71002 70210 70201 70120 70102 70021 70012 70210 70201 70120 70102 70021 70012 12700 12700 12070 12007 12070 12007 17200 17200 17020 17002 17020 17002 10270 10207 10720 10702 10027 10072 10270 10207 10720 10702 10027 10072 2710 2701 2170 2107 2071 2017 7210 7201 7120 7102 7021 7012 1270 1207 1720 1702 1027 1072 271 217 721 712 127 172 2710 2701 2170 2107 2071 2017 7210 7201 7120 7102 7021 7012 1270 1207 1720 1702 1027 1072 271 217 721 712 127 172 217 founded.

4   Pass
x = 1; y_correct = 10; assert(isequal(find_neighbour(x),y_correct))

ans = 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 1000 1000 1000 1000 1000 1000 100 100 10 1 10 1 100 100 10 1 10 1 100 100 10 1 10 1 1000 1000 1000 1000 1000 1000 100 100 10 1 10 1 100 100 10 1 10 1 100 100 10 1 10 1 1000 1000 1000 1000 1000 1000 100 100 10 1 10 1 100 100 10 1 10 1 100 100 10 1 10 1 1000 1000 1000 1000 1000 1000 100 100 10 1 10 1 100 100 10 1 10 1 100 100 10 1 10 1 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 1000 1000 1000 1000 1000 1000 100 100 10 1 10 1 100 100 10 1 10 1 100 100 10 1 10 1 1000 1000 1000 1000 1000 1000 100 100 10 1 10 1 100 100 10 1 10 1 100 100 10 1 10 1 1000 1000 1000 1000 1000 1000 100 100 10 1 10 1 100 100 10 1 10 1 100 100 10 1 10 1 1000 1000 1000 1000 1000 1000 100 100 10 1 10 1 100 100 10 1 10 1 100 100 10 1 10 1 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 1000 1000 1000 1000 1000 1000 100 100 10 1 10 1 100 100 10 1 10 1 100 100 10 1 10 1 1000 1000 1000 1000 1000 1000 100 100 10 1 10 1 100 100 10 1 10 1 100 100 10 1 10 1 1000 1000 1000 1000 1000 1000 100 100 10 1 10 1 100 100 10 1 10 1 100 100 10 1 10 1 1000 1000 1000 1000 1000 1000 100 100 10 1 10 1 100 100 10 1 10 1 100 100 10 1 10 1 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 1000 1000 1000 1000 1000 1000 100 100 10 1 10 1 100 100 10 1 10 1 100 100 10 1 10 1 1000 1000 1000 1000 1000 1000 100 100 10 1 10 1 100 100 10 1 10 1 100 100 10 1 10 1 1000 1000 1000 1000 1000 1000 100 100 10 1 10 1 100 100 10 1 10 1 100 100 10 1 10 1 1000 1000 1000 1000 1000 1000 100 100 10 1 10 1 100 100 10 1 10 1 100 100 10 1 10 1 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 1000 1000 1000 1000 1000 1000 100 100 10 1 10 1 100 100 10 1 10 1 100 100 10 1 10 1 1000 1000 1000 1000 1000 1000 100 100 10 1 10 1 100 100 10 1 10 1 100 100 10 1 10 1 1000 1000 1000 1000 1000 1000 100 100 10 1 10 1 100 100 10 1 10 1 100 100 10 1 10 1 1000 1000 1000 1000 1000 1000 100 100 10 1 10 1 100 100 10 1 10 1 100 100 10 1 10 1

5   Pass
x = 10; y_correct = 1; assert(isequal(find_neighbour(x),y_correct))

ans = 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 1000 1000 1000 1000 1000 1000 100 100 10 1 10 1 100 100 10 1 10 1 100 100 10 1 10 1 1000 1000 1000 1000 1000 1000 100 100 10 1 10 1 100 100 10 1 10 1 100 100 10 1 10 1 1000 1000 1000 1000 1000 1000 100 100 10 1 10 1 100 100 10 1 10 1 100 100 10 1 10 1 1000 1000 1000 1000 1000 1000 100 100 10 1 10 1 100 100 10 1 10 1 100 100 10 1 10 1 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 1000 1000 1000 1000 1000 1000 100 100 10 1 10 1 100 100 10 1 10 1 100 100 10 1 10 1 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 100 100 10 1 10 1 1000 1000 1000 1000 1000 1000 10 1 100 100 1 10 10 1 100 100 1 10 100 100 10 1 10 1 1000 1000 1000 1000 1000 1000 10 1 100 100 1 10 10 1 100 100 1 10 100 100 10 1 10 1 1000 1000 1000 1000 1000 1000 10 1 100 100 1 10 10 1 100 100 1 10 1000 1000 1000 1000 1000 1000 100 100 10 1 10 1 100 100 10 1 10 1 100 100 10 1 10 1 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 100 100 10 1 10 1 1000 1000 1000 1000 1000 1000 10 1 100 100 1 10 10 1 100 100 1 10 100 100 10 1 10 1 1000 1000 1000 1000 1000 1000 10 1 100 100 1 10 10 1 100 100 1 10 100 100 10 1 10 1 1000 1000 1000 1000 1000 1000 10 1 100 100 1 10 10 1 100 100 1 10 1000 1000 1000 1000 1000 1000 100 100 10 1 10 1 100 100 10 1 10 1 100 100 10 1 10 1 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 100 100 10 1 10 1 1000 1000 1000 1000 1000 1000 10 1 100 100 1 10 10 1 100 100 1 10 100 100 10 1 10 1 1000 1000 1000 1000 1000 1000 10 1 100 100 1 10 10 1 100 100 1 10 100 100 10 1 10 1 1000 1000 1000 1000 1000 1000 10 1 100 100 1 10 10 1 100 100 1 10 1000 1000 1000 1000 1000 1000 100 100 10 1 10 1 100 100 10 1 10 1 100 100 10 1 10 1 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 100 100 10 1 10 1 1000 1000 1000 1000 1000 1000 10 1 100 100 1 10 10 1 100 100 1 10 100 100 10 1 10 1 1000 1000 1000 1000 1000 1000 10 1 100 100 1 10 10 1 100 100 1 10 100 100 10 1 10 1 1000 1000 1000 1000 1000 1000 10 1 100 100 1 10 10 1 100 100 1 10

6   Pass
x = 100; y_correct = 10; assert(isequal(find_neighbour(x),y_correct))

ans = 1000 1000 1000 1000 1000 1000 100 100 10 1 10 1 100 100 10 1 10 1 100 100 10 1 10 1 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 100 100 10 1 10 1 1000 1000 1000 1000 1000 1000 10 1 100 100 1 10 10 1 100 100 1 10 100 100 10 1 10 1 1000 1000 1000 1000 1000 1000 10 1 100 100 1 10 10 1 100 100 1 10 100 100 10 1 10 1 1000 1000 1000 1000 1000 1000 10 1 100 100 1 10 10 1 100 100 1 10 1000 1000 1000 1000 1000 1000 100 100 10 1 10 1 100 100 10 1 10 1 100 100 10 1 10 1 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 100 100 10 1 10 1 1000 1000 1000 1000 1000 1000 10 1 100 100 1 10 10 1 100 100 1 10 100 100 10 1 10 1 1000 1000 1000 1000 1000 1000 10 1 100 100 1 10 10 1 100 100 1 10 100 100 10 1 10 1 1000 1000 1000 1000 1000 1000 10 1 100 100 1 10 10 1 100 100 1 10 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100 100 10 1 10 1 1000 1000 1000 1000 1000 1000 10 1 100 100 1 10 10 1 100 100 1 10 100 100 10 1 10 1 1000 1000 1000 1000 1000 1000 10 1 100 100 1 10 10 1 100 100 1 10 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10 1 100 100 1 10 10 1 100 100 1 10 1000 1000 1000 1000 1000 1000 1 10 1 10 100 100 10 1 100 100 1 10 10 1 100 100 1 10 1000 1000 1000 1000 1000 1000 1 10 1 10 100 100 100 100 10 1 10 1 1000 1000 1000 1000 1000 1000 10 1 100 100 1 10 10 1 100 100 1 10 100 100 10 1 10 1 1000 1000 1000 1000 1000 1000 10 1 100 100 1 10 10 1 100 100 1 10 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10 1 100 100 1 10 10 1 100 100 1 10 1000 1000 1000 1000 1000 1000 1 10 1 10 100 100 10 1 100 100 1 10 10 1 100 100 1 10 1000 1000 1000 1000 1000 1000 1 10 1 10 100 100 100 100 10 1 10 1 1000 1000 1000 1000 1000 1000 10 1 100 100 1 10 10 1 100 100 1 10 100 100 10 1 10 1 1000 1000 1000 1000 1000 1000 10 1 100 100 1 10 10 1 100 100 1 10 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10000 10 1 100 100 1 10 10 1 100 100 1 10 1000 1000 1000 1000 1000 1000 1 10 1 10 100 100 10 1 100 100 1 10 10 1 100 100 1 10 1000 1000 1000 1000 1000 1000 1 10 1 10 100 100

7   Pass
x = 99; y_correct = 909; assert(isequal(find_neighbour(x),y_correct))

ans = 990000 990000 990000 990000 990000 990000 990000 990000 990000 990000 990000 990000 990000 990000 990000 990000 990000 990000 990000 990000 990000 990000 990000 990000 909000 909000 909000 909000 909000 909000 900900 900900 900090 900009 900090 900009 900900 900900 900090 900009 900090 900009 900900 900900 900090 900009 900090 900009 909000 909000 909000 909000 909000 909000 900900 900900 900090 900009 900090 900009 900900 900900 900090 900009 900090 900009 900900 900900 900090 900009 900090 900009 909000 909000 909000 909000 909000 909000 900900 900900 900090 900009 900090 900009 900900 900900 900090 900009 900090 900009 900900 900900 900090 900009 900090 900009 909000 909000 909000 909000 909000 909000 900900 900900 900090 900009 900090 900009 900900 900900 900090 900009 900090 900009 900900 900900 900090 900009 900090 900009 990000 990000 990000 990000 990000 990000 990000 990000 990000 990000 990000 990000 990000 990000 990000 990000 990000 990000 990000 990000 990000 990000 990000 990000 909000 909000 909000 909000 909000 909000 900900 900900 900090 900009 900090 900009 900900 900900 900090 900009 900090 900009 900900 900900 900090 900009 900090 900009 909000 909000 909000 909000 909000 909000 900900 900900 900090 900009 900090 900009 900900 900900 900090 900009 900090 900009 900900 900900 900090 900009 900090 900009 909000 909000 909000 909000 909000 909000 900900 900900 900090 900009 900090 900009 900900 900900 900090 900009 900090 900009 900900 900900 900090 900009 900090 900009 909000 909000 909000 909000 909000 909000 900900 900900 900090 900009 900090 900009 900900 900900 900090 900009 900090 900009 900900 900900 900090 900009 900090 900009 99000 99000 99000 99000 99000 99000 90900 90900 90090 90009 90090 90009 90900 90900 90090 90009 90090 90009 90900 90900 90090 90009 90090 90009 99000 99000 99000 99000 99000 99000 90900 90900 90090 90009 90090 90009 90900 90900 90090 90009 90090 90009 90900 90900 90090 90009 90090 90009 9900 9900 9090 9009 9090 9009 9900 9900 9090 9009 9090 9009 990 909 990 909 99 99 990 909 990 909 99 99 9900 9900 9090 9009 9090 9009 9900 9900 9090 9009 9090 9009 990 909 990 909 99 99 990 909 990 909 99 99 9900 9900 9090 9009 9090 9009 9900 9900 9090 9009 9090 9009 990 909 990 909 99 99 990 909 990 909 99 99 99000 99000 99000 99000 99000 99000 90900 90900 90090 90009 90090 90009 90900 90900 90090 90009 90090 90009 90900 90900 90090 90009 90090 90009 99000 99000 99000 99000 99000 99000 90900 90900 90090 90009 90090 90009 90900 90900 90090 90009 90090 90009 90900 90900 90090 90009 90090 90009 9900 9900 9090 9009 9090 9009 9900 9900 9090 9009 9090 9009 990 909 990 909 99 99 990 909 990 909 99 99 9900 9900 9090 9009 9090 9009 9900 9900 9090 9009 9090 9009 990 909 990 909 99 99 990 909 990 909 99 99 9900 9900 9090 9009 9090 9009 9900 9900 9090 9009 9090 9009 990 909 990 909 99 99 990 909 990 909 99 99 99000 99000 99000 99000 99000 99000 90900 90900 90090 90009 90090 90009 90900 90900 90090 90009 90090 90009 90900 90900 90090 90009 90090 90009 99000 99000 99000 99000 99000 99000 90900 90900 90090 90009 90090 90009 90900 90900 90090 90009 90090 90009 90900 90900 90090 90009 90090 90009 9900 9900 9090 9009 9090 9009 9900 9900 9090 9009 9090 9009 990 909 990 909 99 99 990 909 990 909 99 99 9900 9900 9090 9009 9090 9009 9900 9900 9090 9009 9090 9009 990 909 990 909 99 99 990 909 990 909 99 99 9900 9900 9090 9009 9090 9009 9900 9900 9090 9009 9090 9009 990 909 990 909 99 99 990 909 990 909 99 99 99000 99000 99000 99000 99000 99000 90900 90900 90090 90009 90090 90009 90900 90900 90090 90009 90090 90009 90900 90900 90090 90009 90090 90009 99000 99000 99000 99000 99000 99000 90900 90900 90090 90009 90090 90009 90900 90900 90090 90009 90090 90009 90900 90900 90090 90009 90090 90009 9900 9900 9090 9009 9090 9009 9900 9900 9090 9009 9090 9009 990 909 990 909 99 99 990 909 990 909 99 99 9900 9900 9090 9009 9090 9009 9900 9900 9090 9009 9090 9009 990 909 990 909 99 99 990 909 990 909 99 99 9900 9900 9090 9009 9090 9009 9900 9900 9090 9009 9090 9009 990 909 990 909 99 99 990 909 990 909 99 99

8   Pass
x = 199; y_correct = 919; assert(isequal(find_neighbour(x),y_correct))

ans = 991000 991000 991000 991000 991000 991000 990100 990100 990010 990001 990010 990001 990100 990100 990010 990001 990010 990001 990100 990100 990010 990001 990010 990001 919000 919000 919000 919000 919000 919000 910900 910900 910090 910009 910090 910009 910900 910900 910090 910009 910090 910009 910900 910900 910090 910009 910090 910009 909100 909100 909010 909001 909010 909001 901900 901900 901090 901009 901090 901009 900910 900901 900190 900109 900091 900019 900910 900901 900190 900109 900091 900019 909100 909100 909010 909001 909010 909001 901900 901900 901090 901009 901090 901009 900910 900901 900190 900109 900091 900019 900910 900901 900190 900109 900091 900019 909100 909100 909010 909001 909010 909001 901900 901900 901090 901009 901090 901009 900910 900901 900190 900109 900091 900019 900910 900901 900190 900109 900091 900019 991000 991000 991000 991000 991000 991000 990100 990100 990010 990001 990010 990001 990100 990100 990010 990001 990010 990001 990100 990100 990010 990001 990010 990001 919000 919000 919000 919000 919000 919000 910900 910900 910090 910009 910090 910009 910900 910900 910090 910009 910090 910009 910900 910900 910090 910009 910090 910009 909100 909100 909010 909001 909010 909001 901900 901900 901090 901009 901090 901009 900910 900901 900190 900109 900091 900019 900910 900901 900190 900109 900091 900019 909100 909100 909010 909001 909010 909001 901900 901900 901090 901009 901090 901009 900910 900901 900190 900109 900091 900019 900910 900901 900190 900109 900091 900019 909100 909100 909010 909001 909010 909001 901900 901900 901090 901009 901090 901009 900910 900901 900190 900109 900091 900019 900910 900901 900190 900109 900091 900019 199000 199000 199000 199000 199000 199000 190900 190900 190090 190009 190090 190009 190900 190900 190090 190009 190090 190009 190900 190900 190090 190009 190090 190009 199000 199000 199000 199000 199000 199000 190900 190900 190090 190009 190090 190009 190900 190900 190090 190009 190090 190009 190900 190900 190090 190009 190090 190009 109900 109900 109090 109009 109090 109009 109900 109900 109090 109009 109090 109009 100990 100909 100990 100909 100099 100099 100990 100909 100990 100909 100099 100099 109900 109900 109090 109009 109090 109009 109900 109900 109090 109009 109090 109009 100990 100909 100990 100909 100099 100099 100990 100909 100990 100909 100099 100099 109900 109900 109090 109009 109090 109009 109900 109900 109090 109009 109090 109009 100990 100909 100990 100909 100099 100099 100990 100909 100990 100909 100099 100099 99100 99100 99010 99001 99010 99001 91900 91900 91090 91009 91090 91009 90910 90901 90190 90109 90091 90019 90910 90901 90190 90109 90091 90019 99100 99100 99010 99001 99010 99001 91900 91900 91090 91009 91090 91009 90910 90901 90190 90109 90091 90019 90910 90901 90190 90109 90091 90019 19900 19900 19090 19009 19090 19009 19900 19900 19090 19009 19090 19009 10990 10909 10990 10909 10099 10099 10990 10909 10990 10909 10099 10099 9910 9901 9190 9109 9091 9019 9910 9901 9190 9109 9091 9019 1990 1909 1990 1909 1099 1099 991 919 991 919 199 199 9910 9901 9190 9109 9091 9019 9910 9901 9190 9109 9091 9019 1990 1909 1990 1909 1099 1099 991 919 991 919 199 199 99100 99100 99010 99001 99010 99001 91900 91900 91090 91009 91090 91009 90910 90901 90190 90109 90091 90019 90910 90901 90190 90109 90091 90019 99100 99100 99010 99001 99010 99001 91900 91900 91090 91009 91090 91009 90910 90901 90190 90109 90091 90019 90910 90901 90190 90109 90091 90019 19900 19900 19090 19009 19090 19009 19900 19900 19090 19009 19090 19009 10990 10909 10990 10909 10099 10099 10990 10909 10990 10909 10099 10099 9910 9901 9190 9109 9091 9019 9910 9901 9190 9109 9091 9019 1990 1909 1990 1909 1099 1099 991 919 991 919 199 199 9910 9901 9190 9109 9091 9019 9910 9901 9190 9109 9091 9019 1990 1909 1990 1909 1099 1099 991 919 991 919 199 199 99100 99100 99010 99001 99010 99001 91900 91900 91090 91009 91090 91009 90910 90901 90190 90109 90091 90019 90910 90901 90190 90109 90091 90019 99100 99100 99010 99001 99010 99001 91900 91900 91090 91009 91090 91009 90910 90901 90190 90109 90091 90019 90910 90901 90190 90109 90091 90019 19900 19900 19090 19009 19090 19009 19900 19900 19090 19009 19090 19009 10990 10909 10990 10909 10099 10099 10990 10909 10990 10909 10099 10099 9910 9901 9190 9109 9091 9019 9910 9901 9190 9109 9091 9019 1990 1909 1990 1909 1099 1099 991 919 991 919 199 199 9910 9901 9190 9109 9091 9019 9910 9901 9190 9109 9091 9019 1990 1909 1990 1909 1099 1099 991 919 991 919 199 199

9   Pass
x = 1099; y_correct = 991; assert(isequal(find_neighbour(x),y_correct))

ans = 990100 990100 990010 990001 990010 990001 991000 991000 991000 991000 991000 991000 990010 990001 990100 990100 990001 990010 990010 990001 990100 990100 990001 990010 909100 909100 909010 909001 909010 909001 901900 901900 901090 901009 901090 901009 900910 900901 900190 900109 900091 900019 900910 900901 900190 900109 900091 900019 919000 919000 919000 919000 919000 919000 910900 910900 910090 910009 910090 910009 910900 910900 910090 910009 910090 910009 910900 910900 910090 910009 910090 910009 909010 909001 909100 909100 909001 909010 900910 900901 900190 900109 900091 900019 901900 901900 901090 901009 901090 901009 900901 900910 900091 900019 900190 900109 909010 909001 909100 909100 909001 909010 900910 900901 900190 900109 900091 900019 901900 901900 901090 901009 901090 901009 900901 900910 900091 900019 900190 900109 990100 990100 990010 990001 990010 990001 991000 991000 991000 991000 991000 991000 990010 990001 990100 990100 990001 990010 990010 990001 990100 990100 990001 990010 909100 909100 909010 909001 909010 909001 901900 901900 901090 901009 901090 901009 900910 900901 900190 900109 900091 900019 900910 900901 900190 900109 900091 900019 919000 919000 919000 919000 919000 919000 910900 910900 910090 910009 910090 910009 910900 910900 910090 910009 910090 910009 910900 910900 910090 910009 910090 910009 909010 909001 909100 909100 909001 909010 900910 900901 900190 900109 900091 900019 901900 901900 901090 901009 901090 901009 900901 900910 900091 900019 900190 900109 909010 909001 909100 909100 909001 909010 900910 900901 900190 900109 900091 900019 901900 901900 901090 901009 901090 901009 900901 900910 900091 900019 900190 900109 99100 99100 99010 99001 99010 99001 91900 91900 91090 91009 91090 91009 90910 90901 90190 90109 90091 90019 90910 90901 90190 90109 90091 90019 99100 99100 99010 99001 99010 99001 91900 91900 91090 91009 91090 91009 90910 90901 90190 90109 90091 90019 90910 90901 90190 90109 90091 90019 19900 19900 19090 19009 19090 19009 19900 19900 19090 19009 19090 19009 10990 10909 10990 10909 10099 10099 10990 10909 10990 10909 10099 10099 9910 9901 9190 9109 9091 9019 9910 9901 9190 9109 9091 9019 1990 1909 1990 1909 1099 1099 991 919 991 919 199 199 9910 9901 9190 9109 9091 9019 9910 9901 9190 9109 9091 9019 1990 1909 1990 1909 1099 1099 991 919 991 919 199 199 199000 199000 199000 199000 199000 199000 190900 190900 190090 190009 190090 190009 190900 190900 190090 190009 190090 190009 190900 190900 190090 190009 190090 190009 199000 199000 199000 199000 199000 199000 190900 190900 190090 190009 190090 190009 190900 190900 190090 190009 190090 190009 190900 190900 190090 190009 190090 190009 109900 109900 109090 109009 109090 109009 109900 109900 109090 109009 109090 109009 100990 100909 100990 100909 100099 100099 100990 100909 100990 100909 100099 100099 109900 109900 109090 109009 109090 109009 109900 109900 109090 109009 109090 109009 100990 100909 100990 100909 100099 100099 100990 100909 100990 100909 100099 100099 109900 109900 109090 109009 109090 109009 109900 109900 109090 109009 109090 109009 100990 100909 100990 100909 100099 100099 100990 100909 100990 100909 100099 100099 99010 99001 99100 99100 99001 99010 90910 90901 90190 90109 90091 90019 91900 91900 91090 91009 91090 91009 90901 90910 90091 90019 90190 90109 99010 99001 99100 99100 99001 99010 90910 90901 90190 90109 90091 90019 91900 91900 91090 91009 91090 91009 90901 90910 90091 90019 90190 90109 9910 9901 9190 9109 9091 9019 9910 9901 9190 9109 9091 9019 1990 1909 1990 1909 1099 1099 991 919 991 919 199 199 19900 19900 19090 19009 19090 19009 19900 19900 19090 19009 19090 19009 10990 10909 10990 10909 10099 10099 10990 10909 10990 10909 10099 10099 9901 9910 9091 9019 9190 9109 9901 9910 9091 9019 9190 9109 991 919 991 919 199 199 1990 1909 1990 1909 1099 1099 99010 99001 99100 99100 99001 99010 90910 90901 90190 90109 90091 90019 91900 91900 91090 91009 91090 91009 90901 90910 90091 90019 90190 90109 99010 99001 99100 99100 99001 99010 90910 90901 90190 90109 90091 90019 91900 91900 91090 91009 91090 91009 90901 90910 90091 90019 90190 90109 9910 9901 9190 9109 9091 9019 9910 9901 9190 9109 9091 9019 1990 1909 1990 1909 1099 1099 991 919 991 919 199 199 19900 19900 19090 19009 19090 19009 19900 19900 19090 19009 19090 19009 10990 10909 10990 10909 10099 10099 10990 10909 10990 10909 10099 10099 9901 9910 9091 9019 9190 9109 9901 9910 9091 9019 9190 9109 991 919 991 919 199 199 1990 1909 1990 1909 1099 1099

10   Pass
x = 123455; y_correct = 123545; assert(isequal(find_neighbour(x),y_correct))

ans = 554321 554312 554231 554213 554132 554123 553421 553412 553241 553214 553142 553124 552431 552413 552341 552314 552143 552134 551432 551423 551342 551324 551243 551234 545321 545312 545231 545213 545132 545123 543521 543512 543251 543215 543152 543125 542531 542513 542351 542315 542153 542135 541532 541523 541352 541325 541253 541235 535421 535412 535241 535214 535142 535124 534521 534512 534251 534215 534152 534125 532541 532514 532451 532415 532154 532145 531542 531524 531452 531425 531254 531245 525431 525413 525341 525314 525143 525134 524531 524513 524351 524315 524153 524135 523541 523514 523451 523415 523154 523145 521543 521534 521453 521435 521354 521345 515432 515423 515342 515324 515243 515234 514532 514523 514352 514325 514253 514235 513542 513524 513452 513425 513254 513245 512543 512534 512453 512435 512354 512345 554321 554312 554231 554213 554132 554123 553421 553412 553241 553214 553142 553124 552431 552413 552341 552314 552143 552134 551432 551423 551342 551324 551243 551234 545321 545312 545231 545213 545132 545123 543521 543512 543251 543215 543152 543125 542531 542513 542351 542315 542153 542135 541532 541523 541352 541325 541253 541235 535421 535412 535241 535214 535142 535124 534521 534512 534251 534215 534152 534125 532541 532514 532451 532415 532154 532145 531542 531524 531452 531425 531254 531245 525431 525413 525341 525314 525143 525134 524531 524513 524351 524315 524153 524135 523541 523514 523451 523415 523154 523145 521543 521534 521453 521435 521354 521345 515432 515423 515342 515324 515243 515234 514532 514523 514352 514325 514253 514235 513542 513524 513452 513425 513254 513245 512543 512534 512453 512435 512354 512345 455321 455312 455231 455213 455132 455123 453521 453512 453251 453215 453152 453125 452531 452513 452351 452315 452153 452135 451532 451523 451352 451325 451253 451235 455321 455312 455231 455213 455132 455123 453521 453512 453251 453215 453152 453125 452531 452513 452351 452315 452153 452135 451532 451523 451352 451325 451253 451235 435521 435512 435251 435215 435152 435125 435521 435512 435251 435215 435152 435125 432551 432515 432551 432515 432155 432155 431552 431525 431552 431525 431255 431255 425531 425513 425351 425315 425153 425135 425531 425513 425351 425315 425153 425135 423551 423515 423551 423515 423155 423155 421553 421535 421553 421535 421355 421355 415532 415523 415352 415325 415253 415235 415532 415523 415352 415325 415253 415235 413552 413525 413552 413525 413255 413255 412553 412535 412553 412535 412355 412355 355421 355412 355241 355214 355142 355124 354521 354512 354251 354215 354152 354125 352541 352514 352451 352415 352154 352145 351542 351524 351452 351425 351254 351245 355421 355412 355241 355214 355142 355124 354521 354512 354251 354215 354152 354125 352541 352514 352451 352415 352154 352145 351542 351524 351452 351425 351254 351245 345521 345512 345251 345215 345152 345125 345521 345512 345251 345215 345152 345125 342551 342515 342551 342515 342155 342155 341552 341525 341552 341525 341255 341255 325541 325514 325451 325415 325154 325145 325541 325514 325451 325415 325154 325145 324551 324515 324551 324515 324155 324155 321554 321545 321554 321545 321455 321455 315542 315524 315452 315425 315254 315245 315542 315524 315452 315425 315254 315245 314552 314525 314552 314525 314255 314255 312554 312545 312554 312545 312455 312455 255431 255413 255341 255314 255143 255134 254531 254513 254351 254315 254153 254135 253541 253514 253451 253415 253154 253145 251543 251534 251453 251435 251354 251345 255431 255413 255341 255314 255143 255134 254531 254513 254351 254315 254153 254135 253541 253514 253451 253415 253154 253145 251543 251534 251453 251435 251354 251345 245531 245513 245351 245315 245153 245135 245531 245513 245351 245315 245153 245135 243551 243515 243551 243515 243155 243155 241553 241535 241553 241535 241355 241355 235541 235514 235451 235415 235154 235145 235541 235514 235451 235415 235154 235145 234551 234515 234551 234515 234155 234155 231554 231545 231554 231545 231455 231455 215543 215534 215453 215435 215354 215345 215543 215534 215453 215435 215354 215345 214553 214535 214553 214535 214355 214355 213554 213545 213554 213545 213455 213455 155432 155423 155342 155324 155243 155234 154532 154523 154352 154325 154253 154235 153542 153524 153452 153425 153254 153245 152543 152534 152453 152435 152354 152345 155432 155423 155342 155324 155243 155234 154532 154523 154352 154325 154253 154235 153542 153524 153452 153425 153254 153245 152543 152534 152453 152435 152354 152345 145532 145523 145352 145325 145253 145235 145532 145523 145352 145325 145253 145235 143552 143525 143552 143525 143255 143255 142553 142535 142553 142535 142355 142355 135542 135524 135452 135425 135254 135245 135542 135524 135452 135425 135254 135245 134552 134525 134552 134525 134255 134255 132554 132545 132554 132545 132455 132455 125543 125534 125453 125435 125354 125345 125543 125534 125453 125435 125354 125345 124553 124535 124553 124535 124355 124355 123554 123545 123554 123545 123455 123455

11   Pass
x = 56565656; y_correct = 56565665; assert(isequal(find_neighbour(x),y_correct))

ans = 65656565 65656556 65656655 65656655 65656556 65656565 65655665 65655656 65655665 65655656 65655566 65655566 65656655 65656655 65656565 65656556 65656565 65656556 65655656 65655665 65655566 65655566 65655665 65655656 65665565 65665556 65665655 65665655 65665556 65665565 65665565 65665556 65665655 65665655 65665556 65665565 65666555 65666555 65666555 65666555 65666555 65666555 65665556 65665565 65665556 65665565 65665655 65665655 65655665 65655656 65655665 65655656 65655566 65655566 65656565 65656556 65656655 65656655 65656556 65656565 65656565 65656556 65656655 65656655 65656556 65656565 65655566 65655566 65655656 65655665 65655656 65655665 65665655 65665655 65665565 65665556 65665565 65665556 65666555 65666555 65666555 65666555 65666555 65666555 65665565 65665556 65665655 65665655 65665556 65665565 65665565 65665556 65665655 65665655 65665556 65665565 65655656 65655665 65655566 65655566 65655665 65655656 65656556 65656565 65656556 65656565 65656655 65656655 65655566 65655566 65655656 65655665 65655656 65655665 65656565 65656556 65656655 65656655 65656556 65656565 65566565 65566556 65566655 65566655 65566556 65566565 65565665 65565656 65565665 65565656 65565566 65565566 65566655 65566655 65566565 65566556 65566565 65566556 65565656 65565665 65565566 65565566 65565665 65565656 65566565 65566556 65566655 65566655 65566556 65566565 65565665 65565656 65565665 65565656 65565566 65565566 65566655 65566655 65566565 65566556 65566565 65566556 65565656 65565665 65565566 65565566 65565665 65565656 65556665 65556656 65556665 65556656 65556566 65556566 65556665 65556656 65556665 65556656 65556566 65556566 65556665 65556656 65556665 65556656 65556566 65556566 65555666 65555666 65555666 65555666 65555666 65555666 65566655 65566655 65566565 65566556 65566565 65566556 65566655 65566655 65566565 65566556 65566565 65566556 65565665 65565656 65565665 65565656 65565566 65565566 65565665 65565656 65565665 65565656 65565566 65565566 65556656 65556665 65556566 65556566 65556665 65556656 65556656 65556665 65556566 65556566 65556665 65556656 65555666 65555666 65555666 65555666 65555666 65555666 65556665 65556656 65556665 65556656 65556566 65556566 65665565 65665556 65665655 65665655 65665556 65665565 65665565 65665556 65665655 65665655 65665556 65665565 65666555 65666555 65666555 65666555 65666555 65666555 65665556 65665565 65665556 65665565 65665655 65665655 65656565 65656556 65656655 65656655 65656556 65656565 65655665 65655656 65655665 65655656 65655566 65655566 65656655 65656655 65656565 65656556 65656565 65656556 65655656 65655665 65655566 65655566 65655665 65655656 65656565 65656556 65656655 65656655 65656556 65656565 65655665 65655656 65655665 65655656 65655566 65655566 65656655 65656655 65656565 65656556 65656565 65656556 65655656 65655665 65655566 65655566 65655665 65655656 65666555 65666555 65666555 65666555 65666555 65666555 65665655 65665655 65665565 65665556 65665565 65665556 65665655 65665655 65665565 65665556 65665565 65665556 65665655 65665655 65665565 65665556 65665565 65665556 65656556 65656565 65656556 65656565 65656655 65656655 65655656 65655665 65655566 65655566 65655665 65655656 65655656 65655665 65655566 65655566 65655665 65655656 65656655 65656655 65656565 65656556 65656565 65656556 65565665 65565656 65565665 65565656 65565566 65565566 65566565 65566556 65566655 65566655 65566556 65566565 65566565 65566556 65566655 65566655 65566556 65566565 65565566 65565566 65565656 65565665 65565656 65565665 65556665 65556656 65556665 65556656 65556566 65556566 65556665 65556656 65556665 65556656 65556566 65556566 65556665 65556656 65556665 65556656 65556566 65556566 65555666 65555666 65555666 65555666 65555666 65555666 65566565 65566556 65566655 65566655 65566556 65566565 65565665 65565656 65565665 65565656 65565566 65565566 65566655 65566655 65566565 65566556 65566565 65566556 65565656 65565665 65565566 65565566 65565665 65565656 65566565 65566556 65566655 65566655 65566556 65566565 65565665 65565656 65565665 65565656 65565566 65565566 65566655 65566655 65566565 65566556 65566565 65566556 65565656 65565665 65565566 65565566 65565665 65565656 65556566 65556566 65556656 65556665 65556656 65556665 65555666 65555666 65555666 65555666 65555666 65555666 65556656 65556665 65556566 65556566 65556665 65556656 65556656 65556665 65556566 65556566 65556665 65556656 65665655 65665655 65665565 65665556 65665565 65665556 65666555 65666555 65666555 65666555 65666555 65666555 65665565 65665556 65665655 65665655 65665556 65665565 65665565 65665556 65665655 65665655 65665556 65665565 65656655 65656655 65656565 65656556 65656565 65656556 65656655 65656655 65656565 65656556 65656565 65656556 65655665 65655656 65655665 65655656 65655566 65655566 65655665 65655656 65655665 65655656 65655566 65655566 65666555 65666555 65666555 65666555 65666555 65666555 65665655 65665655 65665565 65665556 65665565 65665556 65665655 65665655 65665565 65665556 65665565 65665556 65665655 65665655 65665565 65665556 65665565 65665556 65656565 65656556 65656655 65656655 65656556 65656565 65655665 65655656 65655665 65655656 65655566 65655566 65656655 65656655 65656565 65656556 65656565 65656556 65655656 65655665 65655566 65655566 65655665 65655656 65656565 65656556 65656655 65656655 65656556 65656565 65655665 65655656 65655665 65655656 65655566 65655566 65656655 65656655 65656565 65656556 65656565 65656556 65655656 65655665 65655566 65655566 65655665 65655656 65565656 65565665 65565566 65565566 65565665 65565656 65566556 65566565 65566556 65566565 65566655 65566655 65565566 65565566 65565656 65565665 65565656 65565665 65566565 65566556 65566655 65566655 65566556 65566565 65556656 65556665 65556566 65556566 65556665 65556656 65556656 65556665 65556566 65556566 65556665 65556656 65555666 65555666 65555666 65555666 65555666 65555666 65556665 65556656 65556665 65556656 65556566 65556566 65566556 65566565 65566556 65566565 65566655 65566655 65565656 65565665 65565566 65565566 65565665 65565656 65565656 65565665 65565566 65565566 65565665 65565656 65566655 65566655 65566565 65566556 65566565 65566556 65556566 65556566 65556656 65556665 65556656 65556665 65555666 65555666 65555666 65555666 65555666 65555666 65556656 65556665 65556566 65556566 65556665 65556656 65556656 65556665 65556566 65556566 65556665 65556656 65566565 65566556 65566655 65566655 65566556 65566565 65565665 65565656 65565665 65565656 65565566 65565566 65566655 65566655 65566565 65566556 65566565 65566556 65565656 65565665 65565566 65565566 65565665 65565656 66556565 66556556 66556655 66556655 66556556 66556565 66555665 66555656 66555665 66555656 66555566 66555566 66556655 66556655 66556565 66556556 66556565 66556556 66555656 66555665 66555566 66555566 66555665 66555656 66565565 66565556 66565655 66565655 66565556 66565565 66565565 66565556 66565655 66565655 66565556 66565565 66566555 66566555 66566555 66566555 66566555 66566555 66565556 66565565 66565556 66565565 66565655 66565655 66555...

12   Pass
x = 8761199; y_correct = 8761919; assert(isequal(find_neighbour(x),y_correct))

ans = 9911678 9911687 9911768 9911786 9911867 9911876 9916178 9916187 9916718 9916781 9916817 9916871 9917168 9917186 9917618 9917681 9917816 9917861 9918167 9918176 9918617 9918671 9918716 9918761 9911678 9911687 9911768 9911786 9911867 9911876 9916178 9916187 9916718 9916781 9916817 9916871 9917168 9917186 9917618 9917681 9917816 9917861 9918167 9918176 9918617 9918671 9918716 9918761 9961178 9961187 9961718 9961781 9961817 9961871 9961178 9961187 9961718 9961781 9961817 9961871 9967118 9967181 9967118 9967181 9967811 9967811 9968117 9968171 9968117 9968171 9968711 9968711 9971168 9971186 9971618 9971681 9971816 9971861 9971168 9971186 9971618 9971681 9971816 9971861 9976118 9976181 9976118 9976181 9976811 9976811 9978116 9978161 9978116 9978161 9978611 9978611 9981167 9981176 9981617 9981671 9981716 9981761 9981167 9981176 9981617 9981671 9981716 9981761 9986117 9986171 9986117 9986171 9986711 9986711 9987116 9987161 9987116 9987161 9987611 9987611 9191678 9191687 9191768 9191786 9191867 9191876 9196178 9196187 9196718 9196781 9196817 9196871 9197168 9197186 9197618 9197681 9197816 9197861 9198167 9198176 9198617 9198671 9198716 9198761 9119678 9119687 9119768 9119786 9119867 9119876 9116978 9116987 9116798 9116789 9116897 9116879 9117968 9117986 9117698 9117689 9117896 9117869 9118967 9118976 9118697 9118679 9118796 9118769 9169178 9169187 9169718 9169781 9169817 9169871 9161978 9161987 9161798 9161789 9161897 9161879 9167918 9167981 9167198 9167189 9167891 9167819 9168917 9168971 9168197 9168179 9168791 9168719 9179168 9179186 9179618 9179681 9179816 9179861 9171968 9171986 9171698 9171689 9171896 9171869 9176918 9176981 9176198 9176189 9176891 9176819 9178916 9178961 9178196 9178169 9178691 9178619 9189167 9189176 9189617 9189671 9189716 9189761 9181967 9181976 9181697 9181679 9181796 9181769 9186917 9186971 9186197 9186179 9186791 9186719 9187916 9187961 9187196 9187169 9187691 9187619 9191678 9191687 9191768 9191786 9191867 9191876 9196178 9196187 9196718 9196781 9196817 9196871 9197168 9197186 9197618 9197681 9197816 9197861 9198167 9198176 9198617 9198671 9198716 9198761 9119678 9119687 9119768 9119786 9119867 9119876 9116978 9116987 9116798 9116789 9116897 9116879 9117968 9117986 9117698 9117689 9117896 9117869 9118967 9118976 9118697 9118679 9118796 9118769 9169178 9169187 9169718 9169781 9169817 9169871 9161978 9161987 9161798 9161789 9161897 9161879 9167918 9167981 9167198 9167189 9167891 9167819 9168917 9168971 9168197 9168179 9168791 9168719 9179168 9179186 9179618 9179681 9179816 9179861 9171968 9171986 9171698 9171689 9171896 9171869 9176918 9176981 9176198 9176189 9176891 9176819 9178916 9178961 9178196 9178169 9178691 9178619 9189167 9189176 9189617 9189671 9189716 9189761 9181967 9181976 9181697 9181679 9181796 9181769 9186917 9186971 9186197 9186179 9186791 9186719 9187916 9187961 9187196 9187169 9187691 9187619 9691178 9691187 9691718 9691781 9691817 9691871 9691178 9691187 9691718 9691781 9691817 9691871 9697118 9697181 9697118 9697181 9697811 9697811 9698117 9698171 9698117 9698171 9698711 9698711 9619178 9619187 9619718 9619781 9619817 9619871 9611978 9611987 9611798 9611789 9611897 9611879 9617918 9617981 9617198 9617189 9617891 9617819 9618917 9618971 9618197 9618179 9618791 9618719 9619178 9619187 9619718 9619781 9619817 9619871 9611978 9611987 9611798 9611789 9611897 9611879 9617918 9617981 9617198 9617189 9617891 9617819 9618917 9618971 9618197 9618179 9618791 9618719 9679118 9679181 9679118 9679181 9679811 9679811 9671918 9671981 9671198 9671189 9671891 9671819 9671918 9671981 9671198 9671189 9671891 9671819 9678911 9678911 9678191 9678119 9678191 9678119 9689117 9689171 9689117 9689171 9689711 9689711 9681917 9681971 9681197 9681179 9681791 9681719 9681917 9681971 9681197 9681179 9681791 9681719 9687911 9687911 9687191 9687119 9687191 9687119 9791168 9791186 9791618 9791681 9791816 9791861 9791168 9791186 9791618 9791681 9791816 9791861 9796118 9796181 9796118 9796181 9796811 9796811 9798116 9798161 9798116 9798161 9798611 9798611 9719168 9719186 9719618 9719681 9719816 9719861 9711968 9711986 9711698 9711689 9711896 9711869 9716918 9716981 9716198 9716189 9716891 9716819 9718916 9718961 9718196 9718169 9718691 9718619 9719168 9719186 9719618 9719681 9719816 9719861 9711968 9711986 9711698 9711689 9711896 9711869 9716918 9716981 9716198 9716189 9716891 9716819 9718916 9718961 9718196 9718169 9718691 9718619 9769118 9769181 9769118 9769181 9769811 9769811 9761918 9761981 9761198 9761189 9761891 9761819 9761918 9761981 9761198 9761189 9761891 9761819 9768911 9768911 9768191 9768119 9768191 9768119 9789116 9789161 9789116 9789161 9789611 9789611 9781916 9781961 9781196 9781169 9781691 9781619 9781916 9781961 9781196 9781169 9781691 9781619 9786911 9786911 9786191 9786119 9786191 9786119 9891167 9891176 9891617 9891671 9891716 9891761 9891167 9891176 9891617 9891671 9891716 9891761 9896117 9896171 9896117 9896171 9896711 9896711 9897116 9897161 9897116 9897161 9897611 9897611 9819167 9819176 9819617 9819671 9819716 9819761 9811967 9811976 9811697 9811679 9811796 9811769 9816917 9816971 9816197 9816179 9816791 9816719 9817916 9817961 9817196 9817169 9817691 9817619 9819167 9819176 9819617 9819671 9819716 9819761 9811967 9811976 9811697 9811679 9811796 9811769 9816917 9816971 9816197 9816179 9816791 9816719 9817916 9817961 9817196 9817169 9817691 9817619 9869117 9869171 9869117 9869171 9869711 9869711 9861917 9861971 9861197 9861179 9861791 9861719 9861917 9861971 9861197 9861179 9861791 9861719 9867911 9867911 9867191 9867119 9867191 9867119 9879116 9879161 9879116 9879161 9879611 9879611 9871916 9871961 9871196 9871169 9871691 9871619 9871916 9871961 9871196 9871169 9871691 9871619 9876911 9876911 9876191 9876119 9876191 9876119 9911678 9911687 9911768 9911786 9911867 9911876 9916178 9916187 9916718 9916781 9916817 9916871 9917168 9917186 9917618 9917681 9917816 9917861 9918167 9918176 9918617 9918671 9918716 9918761 9911678 9911687 9911768 9911786 9911867 9911876 9916178 9916187 9916718 9916781 9916817 9916871 9917168 9917186 9917618 9917681 9917816 9917861 9918167 9918176 9918617 9918671 9918716 9918761 9961...

13   Pass
x = 820199; y_correct = 819920; assert(isequal(find_neighbour(x),y_correct))

ans = 991028 991082 991208 991280 991802 991820 990128 990182 990218 990281 990812 990821 992108 992180 992018 992081 992810 992801 998102 998120 998012 998021 998210 998201 919028 919082 919208 919280 919802 919820 910928 910982 910298 910289 910892 910829 912908 912980 912098 912089 912890 912809 918902 918920 918092 918029 918290 918209 909128 909182 909218 909281 909812 909821 901928 901982 901298 901289 901892 901829 902918 902981 902198 902189 902891 902819 908912 908921 908192 908129 908291 908219 929108 929180 929018 929081 929810 929801 921908 921980 921098 921089 921890 921809 920918 920981 920198 920189 920891 920819 928910 928901 928190 928109 928091 928019 989102 989120 989012 989021 989210 989201 981902 981920 981092 981029 981290 981209 980912 980921 980192 980129 980291 980219 982910 982901 982190 982109 982091 982019 991028 991082 991208 991280 991802 991820 990128 990182 990218 990281 990812 990821 992108 992180 992018 992081 992810 992801 998102 998120 998012 998021 998210 998201 919028 919082 919208 919280 919802 919820 910928 910982 910298 910289 910892 910829 912908 912980 912098 912089 912890 912809 918902 918920 918092 918029 918290 918209 909128 909182 909218 909281 909812 909821 901928 901982 901298 901289 901892 901829 902918 902981 902198 902189 902891 902819 908912 908921 908192 908129 908291 908219 929108 929180 929018 929081 929810 929801 921908 921980 921098 921089 921890 921809 920918 920981 920198 920189 920891 920819 928910 928901 928190 928109 928091 928019 989102 989120 989012 989021 989210 989201 981902 981920 981092 981029 981290 981209 980912 980921 980192 980129 980291 980219 982910 982901 982190 982109 982091 982019 199028 199082 199208 199280 199802 199820 190928 190982 190298 190289 190892 190829 192908 192980 192098 192089 192890 192809 198902 198920 198092 198029 198290 198209 199028 199082 199208 199280 199802 199820 190928 190982 190298 190289 190892 190829 192908 192980 192098 192089 192890 192809 198902 198920 198092 198029 198290 198209 109928 109982 109298 109289 109892 109829 109928 109982 109298 109289 109892 109829 102998 102989 102998 102989 102899 102899 108992 108929 108992 108929 108299 108299 129908 129980 129098 129089 129890 129809 129908 129980 129098 129089 129890 129809 120998 120989 120998 120989 120899 120899 128990 128909 128990 128909 128099 128099 189902 189920 189092 189029 189290 189209 189902 189920 189092 189029 189290 189209 180992 180929 180992 180929 180299 180299 182990 182909 182990 182909 182099 182099 99128 99182 99218 99281 99812 99821 91928 91982 91298 91289 91892 91829 92918 92981 92198 92189 92891 92819 98912 98921 98192 98129 98291 98219 99128 99182 99218 99281 99812 99821 91928 91982 91298 91289 91892 91829 92918 92981 92198 92189 92891 92819 98912 98921 98192 98129 98291 98219 19928 19982 19298 19289 19892 19829 19928 19982 19298 19289 19892 19829 12998 12989 12998 12989 12899 12899 18992 18929 18992 18929 18299 18299 29918 29981 29198 29189 29891 29819 29918 29981 29198 29189 29891 29819 21998 21989 21998 21989 21899 21899 28991 28919 28991 28919 28199 28199 89912 89921 89192 89129 89291 89219 89912 89921 89192 89129 89291 89219 81992 81929 81992 81929 81299 81299 82991 82919 82991 82919 82199 82199 299108 299180 299018 299081 299810 299801 291908 291980 291098 291089 291890 291809 290918 290981 290198 290189 290891 290819 298910 298901 298190 298109 298091 298019 299108 299180 299018 299081 299810 299801 291908 291980 291098 291089 291890 291809 290918 290981 290198 290189 290891 290819 298910 298901 298190 298109 298091 298019 219908 219980 219098 219089 219890 219809 219908 219980 219098 219089 219890 219809 210998 210989 210998 210989 210899 210899 218990 218909 218990 218909 218099 218099 209918 209981 209198 209189 209891 209819 209918 209981 209198 209189 209891 209819 201998 201989 201998 201989 201899 201899 208991 208919 208991 208919 208199 208199 289910 289901 289190 289109 289091 289019 289910 289901 289190 289109 289091 289019 281990 281909 281990 281909 281099 281099 280991 280919 280991 280919 280199 280199 899102 899120 899012 899021 899210 899201 891902 891920 891092 891029 891290 891209 890912 890921 890192 890129 890291 890219 892910 892901 892190 892109 892091 892019 899102 899120 899012 899021 899210 899201 891902 891920 891092 891029 891290 891209 890912 890921 890192 890129 890291 890219 892910 892901 892190 892109 892091 892019 819902 819920 819092 819029 819290 819209 819902 819920 819092 819029 819290 819209 810992 810929 810992 810929 810299 810299 812990 812909 812990 812909 812099 812099 809912 809921 809192 809129 809291 809219 809912 809921 809192 809129 809291 809219 801992 801929 801992 801929 801299 801299 802991 802919 802991 802919 802199 802199 829910 829901 829190 829109 829091 829019 829910 829901 829190 829109 829091 829019 821990 821909 821990 821909 821099 821099 820991 820919 820991 820919 820199 820199

14   Pass
x = 991; y_correct = 919; assert(isequal(find_neighbour(x),y_correct))

ans = 199000 199000 199000 199000 199000 199000 190900 190900 190090 190009 190090 190009 190900 190900 190090 190009 190090 190009 190900 190900 190090 190009 190090 190009 199000 199000 199000 199000 199000 199000 190900 190900 190090 190009 190090 190009 190900 190900 190090 190009 190090 190009 190900 190900 190090 190009 190090 190009 109900 109900 109090 109009 109090 109009 109900 109900 109090 109009 109090 109009 100990 100909 100990 100909 100099 100099 100990 100909 100990 100909 100099 100099 109900 109900 109090 109009 109090 109009 109900 109900 109090 109009 109090 109009 100990 100909 100990 100909 100099 100099 100990 100909 100990 100909 100099 100099 109900 109900 109090 109009 109090 109009 109900 109900 109090 109009 109090 109009 100990 100909 100990 100909 100099 100099 100990 100909 100990 100909 100099 100099 919000 919000 919000 919000 919000 919000 910900 910900 910090 910009 910090 910009 910900 910900 910090 910009 910090 910009 910900 910900 910090 910009 910090 910009 991000 991000 991000 991000 991000 991000 990100 990100 990010 990001 990010 990001 990100 990100 990010 990001 990010 990001 990100 990100 990010 990001 990010 990001 901900 901900 901090 901009 901090 901009 909100 909100 909010 909001 909010 909001 900190 900109 900910 900901 900019 900091 900190 900109 900910 900901 900019 900091 901900 901900 901090 901009 901090 901009 909100 909100 909010 909001 909010 909001 900190 900109 900910 900901 900019 900091 900190 900109 900910 900901 900019 900091 901900 901900 901090 901009 901090 901009 909100 909100 909010 909001 909010 909001 900190 900109 900910 900901 900019 900091 900190 900109 900910 900901 900019 900091 919000 919000 919000 919000 919000 919000 910900 910900 910090 910009 910090 910009 910900 910900 910090 910009 910090 910009 910900 910900 910090 910009 910090 910009 991000 991000 991000 991000 991000 991000 990100 990100 990010 990001 990010 990001 990100 990100 990010 990001 990010 990001 990100 990100 990010 990001 990010 990001 901900 901900 901090 901009 901090 901009 909100 909100 909010 909001 909010 909001 900190 900109 900910 900901 900019 900091 900190 900109 900910 900901 900019 900091 901900 901900 901090 901009 901090 901009 909100 909100 909010 909001 909010 909001 900190 900109 900910 900901 900019 900091 900190 900109 900910 900901 900019 900091 901900 901900 901090 901009 901090 901009 909100 909100 909010 909001 909010 909001 900190 900109 900910 900901 900019 900091 900190 900109 900910 900901 900019 900091 19900 19900 19090 19009 19090 19009 19900 19900 19090 19009 19090 19009 10990 10909 10990 10909 10099 10099 10990 10909 10990 10909 10099 10099 91900 91900 91090 91009 91090 91009 99100 99100 99010 99001 99010 99001 90190 90109 90910 90901 90019 90091 90190 90109 90910 90901 90019 90091 91900 91900 91090 91009 91090 91009 99100 99100 99010 99001 99010 99001 90190 90109 90910 90901 90019 90091 90190 90109 90910 90901 90019 90091 1990 1909 1990 1909 1099 1099 9190 9109 9910 9901 9019 9091 9190 9109 9910 9901 9019 9091 199 199 919 991 919 991 1990 1909 1990 1909 1099 1099 9190 9109 9910 9901 9019 9091 9190 9109 9910 9901 9019 9091 199 199 919 991 919 991 19900 19900 19090 19009 19090 19009 19900 19900 19090 19009 19090 19009 10990 10909 10990 10909 10099 10099 10990 10909 10990 10909 10099 10099 91900 91900 91090 91009 91090 91009 99100 99100 99010 99001 99010 99001 90190 90109 90910 90901 90019 90091 90190 90109 90910 90901 90019 90091 91900 91900 91090 91009 91090 91009 99100 99100 99010 99001 99010 99001 90190 90109 90910 90901 90019 90091 90190 90109 90910 90901 90019 90091 1990 1909 1990 1909 1099 1099 9190 9109 9910 9901 9019 9091 9190 9109 9910 9901 9019 9091 199 199 919 991 919 991 1990 1909 1990 1909 1099 1099 9190 9109 9910 9901 9019 9091 9190 9109 9910 9901 9019 9091 199 199 919 991 919 991 19900 19900 19090 19009 19090 19009 19900 19900 19090 19009 19090 19009 10990 10909 10990 10909 10099 10099 10990 10909 10990 10909 10099 10099 91900 91900 91090 91009 91090 91009 99100 99100 99010 99001 99010 99001 90190 90109 90910 90901 90019 90091 90190 90109 90910 90901 90019 90091 91900 91900 91090 91009 91090 91009 99100 99100 99010 99001 99010 99001 90190 90109 90910 90901 90019 90091 90190 90109 90910 90901 90019 90091 1990 1909 1990 1909 1099 1099 9190 9109 9910 9901 9019 9091 9190 9109 9910 9901 9019 9091 199 199 919 991 919 991 1990 1909 1990 1909 1099 1099 9190 9109 9910 9901 9019 9091 9190 9109 9910 9901 9019 9091 199 199 919 991 919 991

15   Pass
x = 911; y_correct = 1019; assert(isequal(find_neighbour(x),y_correct))

ans = 119000 119000 119000 119000 119000 119000 110900 110900 110090 110009 110090 110009 110900 110900 110090 110009 110090 110009 110900 110900 110090 110009 110090 110009 191000 191000 191000 191000 191000 191000 190100 190100 190010 190001 190010 190001 190100 190100 190010 190001 190010 190001 190100 190100 190010 190001 190010 190001 101900 101900 101090 101009 101090 101009 109100 109100 109010 109001 109010 109001 100190 100109 100910 100901 100019 100091 100190 100109 100910 100901 100019 100091 101900 101900 101090 101009 101090 101009 109100 109100 109010 109001 109010 109001 100190 100109 100910 100901 100019 100091 100190 100109 100910 100901 100019 100091 101900 101900 101090 101009 101090 101009 109100 109100 109010 109001 109010 109001 100190 100109 100910 100901 100019 100091 100190 100109 100910 100901 100019 100091 119000 119000 119000 119000 119000 119000 110900 110900 110090 110009 110090 110009 110900 110900 110090 110009 110090 110009 110900 110900 110090 110009 110090 110009 191000 191000 191000 191000 191000 191000 190100 190100 190010 190001 190010 190001 190100 190100 190010 190001 190010 190001 190100 190100 190010 190001 190010 190001 101900 101900 101090 101009 101090 101009 109100 109100 109010 109001 109010 109001 100190 100109 100910 100901 100019 100091 100190 100109 100910 100901 100019 100091 101900 101900 101090 101009 101090 101009 109100 109100 109010 109001 109010 109001 100190 100109 100910 100901 100019 100091 100190 100109 100910 100901 100019 100091 101900 101900 101090 101009 101090 101009 109100 109100 109010 109001 109010 109001 100190 100109 100910 100901 100019 100091 100190 100109 100910 100901 100019 100091 911000 911000 911000 911000 911000 911000 910100 910100 910010 910001 910010 910001 910100 910100 910010 910001 910010 910001 910100 910100 910010 910001 910010 910001 911000 911000 911000 911000 911000 911000 910100 910100 910010 910001 910010 910001 910100 910100 910010 910001 910010 910001 910100 910100 910010 910001 910010 910001 901100 901100 901010 901001 901010 901001 901100 901100 901010 901001 901010 901001 900110 900101 900110 900101 900011 900011 900110 900101 900110 900101 900011 900011 901100 901100 901010 901001 901010 901001 901100 901100 901010 901001 901010 901001 900110 900101 900110 900101 900011 900011 900110 900101 900110 900101 900011 900011 901100 901100 901010 901001 901010 901001 901100 901100 901010 901001 901010 901001 900110 900101 900110 900101 900011 900011 900110 900101 900110 900101 900011 900011 11900 11900 11090 11009 11090 11009 19100 19100 19010 19001 19010 19001 10190 10109 10910 10901 10019 10091 10190 10109 10910 10901 10019 10091 11900 11900 11090 11009 11090 11009 19100 19100 19010 19001 19010 19001 10190 10109 10910 10901 10019 10091 10190 10109 10910 10901 10019 10091 91100 91100 91010 91001 91010 91001 91100 91100 91010 91001 91010 91001 90110 90101 90110 90101 90011 90011 90110 90101 90110 90101 90011 90011 1190 1109 1910 1901 1019 1091 1190 1109 1910 1901 1019 1091 9110 9101 9110 9101 9011 9011 119 191 119 191 911 911 1190 1109 1910 1901 1019 1091 1190 1109 1910 1901 1019 1091 9110 9101 9110 9101 9011 9011 119 191 119 191 911 911 11900 11900 11090 11009 11090 11009 19100 19100 19010 19001 19010 19001 10190 10109 10910 10901 10019 10091 10190 10109 10910 10901 10019 10091 11900 11900 11090 11009 11090 11009 19100 19100 19010 19001 19010 19001 10190 10109 10910 10901 10019 10091 10190 10109 10910 10901 10019 10091 91100 91100 91010 91001 91010 91001 91100 91100 91010 91001 91010 91001 90110 90101 90110 90101 90011 90011 90110 90101 90110 90101 90011 90011 1190 1109 1910 1901 1019 1091 1190 1109 1910 1901 1019 1091 9110 9101 9110 9101 9011 9011 119 191 119 191 911 911 1190 1109 1910 1901 1019 1091 1190 1109 1910 1901 1019 1091 9110 9101 9110 9101 9011 9011 119 191 119 191 911 911 11900 11900 11090 11009 11090 11009 19100 19100 19010 19001 19010 19001 10190 10109 10910 10901 10019 10091 10190 10109 10910 10901 10019 10091 11900 11900 11090 11009 11090 11009 19100 19100 19010 19001 19010 19001 10190 10109 10910 10901 10019 10091 10190 10109 10910 10901 10019 10091 91100 91100 91010 91001 91010 91001 91100 91100 91010 91001 91010 91001 90110 90101 90110 90101 90011 90011 90110 90101 90110 90101 90011 90011 1190 1109 1910 1901 1019 1091 1190 1109 1910 1901 1019 1091 9110 9101 9110 9101 9011 9011 119 191 119 191 911 911 1190 1109 1910 1901 1019 1091 1190 1109 1910 1901 1019 1091 9110 9101 9110 9101 9011 9011 119 191 119 191 911 911

16   Pass
x = 7001; y_correct = 7010; assert(isequal(find_neighbour(x),y_correct))

ans = 100700 100700 100070 100007 100070 100007 107000 107000 107000 107000 107000 107000 100070 100007 100700 100700 100007 100070 100070 100007 100700 100700 100007 100070 100700 100700 100070 100007 100070 100007 107000 107000 107000 107000 107000 107000 100070 100007 100700 100700 100007 100070 100070 100007 100700 100700 100007 100070 170000 170000 170000 170000 170000 170000 170000 170000 170000 170000 170000 170000 170000 170000 170000 170000 170000 170000 170000 170000 170000 170000 170000 170000 100070 100007 100700 100700 100007 100070 100070 100007 100700 100700 100007 100070 107000 107000 107000 107000 107000 107000 100007 100070 100007 100070 100700 100700 100070 100007 100700 100700 100007 100070 100070 100007 100700 100700 100007 100070 107000 107000 107000 107000 107000 107000 100007 100070 100007 100070 100700 100700 10700 10700 10070 10007 10070 10007 17000 17000 17000 17000 17000 17000 10070 10007 10700 10700 10007 10070 10070 10007 10700 10700 10007 10070 1700 1700 1070 1007 1070 1007 7100 7100 7010 7001 7010 7001 170 107 710 701 17 71 170 107 710 701 17 71 71000 71000 71000 71000 71000 71000 70100 70100 70010 70001 70010 70001 70100 70100 70010 70001 70010 70001 70100 70100 70010 70001 70010 70001 1070 1007 1700 1700 1007 1070 170 107 710 701 17 71 7100 7100 7010 7001 7010 7001 107 170 17 71 710 701 1070 1007 1700 1700 1007 1070 170 107 710 701 17 71 7100 7100 7010 7001 7010 7001 107 170 17 71 710 701 10700 10700 10070 10007 10070 10007 17000 17000 17000 17000 17000 17000 10070 10007 10700 10700 10007 10070 10070 10007 10700 10700 10007 10070 1700 1700 1070 1007 1070 1007 7100 7100 7010 7001 7010 7001 170 107 710 701 17 71 170 107 710 701 17 71 71000 71000 71000 71000 71000 71000 70100 70100 70010 70001 70010 70001 70100 70100 70010 70001 70010 70001 70100 70100 70010 70001 70010 70001 1070 1007 1700 1700 1007 1070 170 107 710 701 17 71 7100 7100 7010 7001 7010 7001 107 170 17 71 710 701 1070 1007 1700 1700 1007 1070 170 107 710 701 17 71 7100 7100 7010 7001 7010 7001 107 170 17 71 710 701 710000 710000 710000 710000 710000 710000 710000 710000 710000 710000 710000 710000 710000 710000 710000 710000 710000 710000 710000 710000 710000 710000 710000 710000 701000 701000 701000 701000 701000 701000 700100 700100 700010 700001 700010 700001 700100 700100 700010 700001 700010 700001 700100 700100 700010 700001 700010 700001 701000 701000 701000 701000 701000 701000 700100 700100 700010 700001 700010 700001 700100 700100 700010 700001 700010 700001 700100 700100 700010 700001 700010 700001 701000 701000 701000 701000 701000 701000 700100 700100 700010 700001 700010 700001 700100 700100 700010 700001 700010 700001 700100 700100 700010 700001 700010 700001 701000 701000 701000 701000 701000 701000 700100 700100 700010 700001 700010 700001 700100 700100 700010 700001 700010 700001 700100 700100 700010 700001 700010 700001 10070 10007 10700 10700 10007 10070 10070 10007 10700 10700 10007 10070 17000 17000 17000 17000 17000 17000 10007 10070 10007 10070 10700 10700 1070 1007 1700 1700 1007 1070 170 107 710 701 17 71 7100 7100 7010 7001 7010 7001 107 170 17 71 710 701 1070 1007 1700 1700 1007 1070 170 107 710 701 17 71 7100 7100 7010 7001 7010 7001 107 170 17 71 710 701 71000 71000 71000 71000 71000 71000 70100 70100 70010 70001 70010 70001 70100 70100 70010 70001 70010 70001 70100 70100 70010 70001 70010 70001 1007 1070 1007 1070 1700 1700 107 170 17 71 710 701 107 170 17 71 710 701 7100 7100 7010 7001 7010 7001 10070 10007 10700 10700 10007 10070 10070 10007 10700 10700 10007 10070 17000 17000 17000 17000 17000 17000 10007 10070 10007 10070 10700 10700 1070 1007 1700 1700 1007 1070 170 107 710 701 17 71 7100 7100 7010 7001 7010 7001 107 170 17 71 710 701 1070 1007 1700 1700 1007 1070 170 107 710 701 17 71 7100 7100 7010 7001 7010 7001 107 170 17 71 710 701 71000 71000 71000 71000 71000 71000 70100 70100 70010 70001 70010 70001 70100 70100 70010 70001 70010 70001 70100 70100 70010 70001 70010 70001 1007 1070 1007 1070 1700 1700 107 170 17 71 710 701 107 170 17 71 710 701 7100 7100 7010 7001 7010 7001

17   Pass
x = 1192999; y_correct = 1199299; assert(isequal(find_neighbour(x),y_correct))

ans = 9992911 9992911 9992191 9992119 9992191 9992119 9999211 9999211 9999121 9999112 9999121 9999112 9991291 9991219 9991921 9991912 9991129 9991192 9991291 9991219 9991921 9991912 9991129 9991192 9929911 9929911 9929191 9929119 9929191 9929119 9929911 9929911 9929191 9929119 9929191 9929119 9921991 9921919 9921991 9921919 9921199 9921199 9921991 9921919 9921991 9921919 9921199 9921199 9999211 9999211 9999121 9999112 9999121 9999112 9992911 9992911 9992191 9992119 9992191 9992119 9991921 9991912 9991291 9991219 9991192 9991129 9991921 9991912 9991291 9991219 9991192 9991129 9919291 9919219 9919921 9919912 9919129 9919192 9912991 9912919 9912991 9912919 9912199 9912199 9919921 9919912 9919291 9919219 9919192 9919129 9911929 9911992 9911299 9911299 9911992 9911929 9919291 9919219 9919921 9919912 9919129 9919192 9912991 9912919 9912991 9912919 9912199 9912199 9919921 9919912 9919291 9919219 9919192 9919129 9911929 9911992 9911299 9911299 9911992 9911929 9992911 9992911 9992191 9992119 9992191 9992119 9999211 9999211 9999121 9999112 9999121 9999112 9991291 9991219 9991921 9991912 9991129 9991192 9991291 9991219 9991921 9991912 9991129 9991192 9929911 9929911 9929191 9929119 9929191 9929119 9929911 9929911 9929191 9929119 9929191 9929119 9921991 9921919 9921991 9921919 9921199 9921199 9921991 9921919 9921991 9921919 9921199 9921199 9999211 9999211 9999121 9999112 9999121 9999112 9992911 9992911 9992191 9992119 9992191 9992119 9991921 9991912 9991291 9991219 9991192 9991129 9991921 9991912 9991291 9991219 9991192 9991129 9919291 9919219 9919921 9919912 9919129 9919192 9912991 9912919 9912991 9912919 9912199 9912199 9919921 9919912 9919291 9919219 9919192 9919129 9911929 9911992 9911299 9911299 9911992 9911929 9919291 9919219 9919921 9919912 9919129 9919192 9912991 9912919 9912991 9912919 9912199 9912199 9919921 9919912 9919291 9919219 9919192 9919129 9911929 9911992 9911299 9911299 9911992 9911929 9299911 9299911 9299191 9299119 9299191 9299119 9299911 9299911 9299191 9299119 9299191 9299119 9291991 9291919 9291991 9291919 9291199 9291199 9291991 9291919 9291991 9291919 9291199 9291199 9299911 9299911 9299191 9299119 9299191 9299119 9299911 9299911 9299191 9299119 9299191 9299119 9291991 9291919 9291991 9291919 9291199 9291199 9291991 9291919 9291991 9291919 9291199 9291199 9299911 9299911 9299191 9299119 9299191 9299119 9299911 9299911 9299191 9299119 9299191 9299119 9291991 9291919 9291991 9291919 9291199 9291199 9291991 9291919 9291991 9291919 9291199 9291199 9219991 9219919 9219991 9219919 9219199 9219199 9219991 9219919 9219991 9219919 9219199 9219199 9219991 9219919 9219991 9219919 9219199 9219199 9211999 9211999 9211999 9211999 9211999 9211999 9219991 9219919 9219991 9219919 9219199 9219199 9219991 9219919 9219991 9219919 9219199 9219199 9219991 9219919 9219991 9219919 9219199 9219199 9211999 9211999 9211999 9211999 9211999 9211999 9999211 9999211 9999121 9999112 9999121 9999112 9992911 9992911 9992191 9992119 9992191 9992119 9991921 9991912 9991291 9991219 9991192 9991129 9991921 9991912 9991291 9991219 9991192 9991129 9999211 9999211 9999121 9999112 9999121 9999112 9992911 9992911 9992191 9992119 9992191 9992119 9991921 9991912 9991291 9991219 9991192 9991129 9991921 9991912 9991291 9991219 9991192 9991129 9929911 9929911 9929191 9929119 9929191 9929119 9929911 9929911 9929191 9929119 9929191 9929119 9921991 9921919 9921991 9921919 9921199 9921199 9921991 9921919 9921991 9921919 9921199 9921199 9919921 9919912 9919291 9919219 9919192 9919129 9919921 9919912 9919291 9919219 9919192 9919129 9912991 9912919 9912991 9912919 9912199 9912199 9911992 9911929 9911992 9911929 9911299 9911299 9919921 9919912 9919291 9919219 9919192 9919129 9919921 9919912 9919291 9919219 9919192 9919129 9912991 9912919 9912991 9912919 9912199 9912199 9911992 9911929 9911992 9911929 9911299 9911299 9199291 9199219 9199921 9199912 9199129 9199192 9192991 9192919 9192991 9192919 9192199 9192199 9199921 9199912 9199291 9199219 9199192 9199129 9191929 9191992 9191299 9191299 9191992 9191929 9199291 9199219 9199921 9199912 9199129 9199192 9192991 9192919 9192991 9192919 9192199 9192199 9199921 9199912 9199291 9199219 9199192 9199129 9191929 9191992 9191299 9191299 9191992 9191929 9129991 9129919 9129991 9129919 9129199 9129199 9129991 9129919 9129991 9129919 9129199 9129199 9129991 9129919 9129991 9129919 9129199 9129199 9121999 9121999 9121999 9121999 9121999 9121999 9199921 9199912 9199291 9199219 9199192 9199129 9199921 9199912 9199291 9199219 9199192 9199129 9192991 9192919 9192991 9192919 9192199 9192199 9191992 9191929 9191992 9191929 9191299 9191299 9119929 9119992 9119299 9119299 9119992 9119929 9119929 9119992 9119299 9119299 9119992 9119929 9112999 9112999 9112999 9112999 9112999 9112999 9119992 9119929 9119992 9119929 9119299 9119299 9199291 9199219 9199921 9199912 9199129 9199192 9192991 9192919 9192991 9192919 9192199 9192199 9199921 9199912 9199291 9199219 9199192 9199129 9191929 9191992 9191299 9191299 9191992 9191929 9199291 9199219 9199921 9199912 9199129 9199192 9192991 9192919 9192991 9192919 9192199 9192199 9199921 9199912 9199291 9199219 9199192 9199129 9191929 9191992 9191299 9191299 9191992 9191929 9129991 9129919 9129991 9129919 9129199 9129199 9129991 9129919 9129991 9129919 9129199 9129199 9129991 9129919 9129991 9129919 9129199 9129199 9121999 9121999 9121999 9121999 9121999 9121999 9199921 9199912 9199291 9199219 9199192 9199129 9199921 9199912 9199291 9199219 9199192 9199129 9192991 9192919 9192991 9192919 9192199 9192199 9191992 9191929 9191992 9191929 9191299 9191299 9119929 9119992 9119299 9119299 9119992 9119929 9119929 9119992 9119299 9119299 9119992 9119929 9112999 9112999 9112999 9112999 9112999 9112999 9119992 9119929 9119992 9119929 9119299 9119299 9992911 9992911 9992191 9992119 9992191 9992119 9999211 9999211 9999121 9999112 9999121 9999112 9991291 9991219 9991921 9991912 9991129 9991192 9991291 9991219 9991921 9991912 9991129 9991192 9929911 9929911 9929191 9929119 9929191 9929119 9929911 9929911 9929191 9929119 9929191 9929119 9921991 9921919 9921991 9921919 9921199 9921199 9921991 9921919 9921991 9921919 9921199 9921199 9999...

18   Pass
x = 8713222; y_correct = 8712322; assert(isequal(find_neighbour(x),y_correct))

ans = 2223178 2223187 2223718 2223781 2223817 2223871 2221378 2221387 2221738 2221783 2221837 2221873 2227318 2227381 2227138 2227183 2227831 2227813 2228317 2228371 2228137 2228173 2228731 2228713 2232178 2232187 2232718 2232781 2232817 2232871 2231278 2231287 2231728 2231782 2231827 2231872 2237218 2237281 2237128 2237182 2237821 2237812 2238217 2238271 2238127 2238172 2238721 2238712 2212378 2212387 2212738 2212783 2212837 2212873 2213278 2213287 2213728 2213782 2213827 2213872 2217238 2217283 2217328 2217382 2217823 2217832 2218237 2218273 2218327 2218372 2218723 2218732 2272318 2272381 2272138 2272183 2272831 2272813 2273218 2273281 2273128 2273182 2273821 2273812 2271238 2271283 2271328 2271382 2271823 2271832 2278231 2278213 2278321 2278312 2278123 2278132 2282317 2282371 2282137 2282173 2282731 2282713 2283217 2283271 2283127 2283172 2283721 2283712 2281237 2281273 2281327 2281372 2281723 2281732 2287231 2287213 2287321 2287312 2287123 2287132 2223178 2223187 2223718 2223781 2223817 2223871 2221378 2221387 2221738 2221783 2221837 2221873 2227318 2227381 2227138 2227183 2227831 2227813 2228317 2228371 2228137 2228173 2228731 2228713 2232178 2232187 2232718 2232781 2232817 2232871 2231278 2231287 2231728 2231782 2231827 2231872 2237218 2237281 2237128 2237182 2237821 2237812 2238217 2238271 2238127 2238172 2238721 2238712 2212378 2212387 2212738 2212783 2212837 2212873 2213278 2213287 2213728 2213782 2213827 2213872 2217238 2217283 2217328 2217382 2217823 2217832 2218237 2218273 2218327 2218372 2218723 2218732 2272318 2272381 2272138 2272183 2272831 2272813 2273218 2273281 2273128 2273182 2273821 2273812 2271238 2271283 2271328 2271382 2271823 2271832 2278231 2278213 2278321 2278312 2278123 2278132 2282317 2282371 2282137 2282173 2282731 2282713 2283217 2283271 2283127 2283172 2283721 2283712 2281237 2281273 2281327 2281372 2281723 2281732 2287231 2287213 2287321 2287312 2287123 2287132 2322178 2322187 2322718 2322781 2322817 2322871 2321278 2321287 2321728 2321782 2321827 2321872 2327218 2327281 2327128 2327182 2327821 2327812 2328217 2328271 2328127 2328172 2328721 2328712 2322178 2322187 2322718 2322781 2322817 2322871 2321278 2321287 2321728 2321782 2321827 2321872 2327218 2327281 2327128 2327182 2327821 2327812 2328217 2328271 2328127 2328172 2328721 2328712 2312278 2312287 2312728 2312782 2312827 2312872 2312278 2312287 2312728 2312782 2312827 2312872 2317228 2317282 2317228 2317282 2317822 2317822 2318227 2318272 2318227 2318272 2318722 2318722 2372218 2372281 2372128 2372182 2372821 2372812 2372218 2372281 2372128 2372182 2372821 2372812 2371228 2371282 2371228 2371282 2371822 2371822 2378221 2378212 2378221 2378212 2378122 2378122 2382217 2382271 2382127 2382172 2382721 2382712 2382217 2382271 2382127 2382172 2382721 2382712 2381227 2381272 2381227 2381272 2381722 2381722 2387221 2387212 2387221 2387212 2387122 2387122 2122378 2122387 2122738 2122783 2122837 2122873 2123278 2123287 2123728 2123782 2123827 2123872 2127238 2127283 2127328 2127382 2127823 2127832 2128237 2128273 2128327 2128372 2128723 2128732 2122378 2122387 2122738 2122783 2122837 2122873 2123278 2123287 2123728 2123782 2123827 2123872 2127238 2127283 2127328 2127382 2127823 2127832 2128237 2128273 2128327 2128372 2128723 2128732 2132278 2132287 2132728 2132782 2132827 2132872 2132278 2132287 2132728 2132782 2132827 2132872 2137228 2137282 2137228 2137282 2137822 2137822 2138227 2138272 2138227 2138272 2138722 2138722 2172238 2172283 2172328 2172382 2172823 2172832 2172238 2172283 2172328 2172382 2172823 2172832 2173228 2173282 2173228 2173282 2173822 2173822 2178223 2178232 2178223 2178232 2178322 2178322 2182237 2182273 2182327 2182372 2182723 2182732 2182237 2182273 2182327 2182372 2182723 2182732 2183227 2183272 2183227 2183272 2183722 2183722 2187223 2187232 2187223 2187232 2187322 2187322 2722318 2722381 2722138 2722183 2722831 2722813 2723218 2723281 2723128 2723182 2723821 2723812 2721238 2721283 2721328 2721382 2721823 2721832 2728231 2728213 2728321 2728312 2728123 2728132 2722318 2722381 2722138 2722183 2722831 2722813 2723218 2723281 2723128 2723182 2723821 2723812 2721238 2721283 2721328 2721382 2721823 2721832 2728231 2728213 2728321 2728312 2728123 2728132 2732218 2732281 2732128 2732182 2732821 2732812 2732218 2732281 2732128 2732182 2732821 2732812 2731228 2731282 2731228 2731282 2731822 2731822 2738221 2738212 2738221 2738212 2738122 2738122 2712238 2712283 2712328 2712382 2712823 2712832 2712238 2712283 2712328 2712382 2712823 2712832 2713228 2713282 2713228 2713282 2713822 2713822 2718223 2718232 2718223 2718232 2718322 2718322 2782231 2782213 2782321 2782312 2782123 2782132 2782231 2782213 2782321 2782312 2782123 2782132 2783221 2783212 2783221 2783212 2783122 2783122 2781223 2781232 2781223 2781232 2781322 2781322 2822317 2822371 2822137 2822173 2822731 2822713 2823217 2823271 2823127 2823172 2823721 2823712 2821237 2821273 2821327 2821372 2821723 2821732 2827231 2827213 2827321 2827312 2827123 2827132 2822317 2822371 2822137 2822173 2822731 2822713 2823217 2823271 2823127 2823172 2823721 2823712 2821237 2821273 2821327 2821372 2821723 2821732 2827231 2827213 2827321 2827312 2827123 2827132 2832217 2832271 2832127 2832172 2832721 2832712 2832217 2832271 2832127 2832172 2832721 2832712 2831227 2831272 2831227 2831272 2831722 2831722 2837221 2837212 2837221 2837212 2837122 2837122 2812237 2812273 2812327 2812372 2812723 2812732 2812237 2812273 2812327 2812372 2812723 2812732 2813227 2813272 2813227 2813272 2813722 2813722 2817223 2817232 2817223 2817232 2817322 2817322 2872231 2872213 2872321 2872312 2872123 2872132 2872231 2872213 2872321 2872312 2872123 2872132 2873221 2873212 2873221 2873212 2873122 2873122 2871223 2871232 2871223 2871232 2871322 2871322 2223178 2223187 2223718 2223781 2223817 2223871 2221378 2221387 2221738 2221783 2221837 2221873 2227318 2227381 2227138 2227183 2227831 2227813 2228317 2228371 2228137 2228173 2228731 2228713 2232178 2232187 2232718 2232781 2232817 2232871 2231278 2231287 2231728 2231782 2231827 2231872 2237218 2237281 2237128 2237182 2237821 2237812 2238217 2238271 2238127 2238172 2238721 2238712 2212...