#!ruby -n x,*a=eval$_ a<5e4?50000:(x-=1until"#{x}"=~/^[125]0*$/;x)while x>0 puts a*'+'