#!perl -p do{goto skip if s/0$/1/;goto skip if s/0(1+)$/1 . 0 x length($1)/e;goto skip if s/^(1+)$/ 0 x length($1)/e;};skip: