for(n in scan("stdin")){for(i in 0:n)cat("|",rep("if"(n>i," ","_"),i),"\\ ",sep="");cat(rep("*",32)," ",sep="")}