              s="n='              '[0,2]
              d|=1<<              $*[0].
              to_i-1              ;m,i=[
              f=proc              {|b|a=
              [];[73              ,7,84,
              273,56              ,146,"
              proc{|              t|[t*=
"",s].map{|u|u.gsub!(35.chr,"")};d=0000000;eval(s+t)}[
%w(448,292].find{|m|b&m==m}?1:9.times{|i|b&(513<<i)<1&
&a<<[-f[1<<i|b>>9|b<<9][0],i]}&&a.min||0}][0][d];s='s=
              "'+s.s              plit*'
              '+'"pr              oc{|t|
              [t*=""              ,s].ma
              p{|u|u              .gsub!
              (35.ch              r,"")}
              ;d=0%0              6o;eva
              l(s+t)              }[%%w(
'%d|=$*[0]?0:512<<i;s<<t+")]";27.times{|y|i=y/10;y%=10
;puts(y>6?s.slice!(0,54):(0..4).map{|x|x&1>0?(i+=3;s.s
lice!(0,6)):62[y]<1?n*7:n+(y*5-5...y*5).map{|j|1105[j-
              7]<1&&              d[i]|d
              [i+9]>              0&&~j&
              5981[j              /2]^d[
              i]>0?3              5.chr*
              2:n;}*              ""+n}*
              "")}||              __(C).
              YEndoh              2009)]
