System.in.eachLine{n->["1"*7," 2"," 4 233"," 4 2","5"*7].any{for(x=n as int;x>0;x-=5)printf"%-7s%c",it.tr("1-5","*"*x+" "),x<6?10:32}}