while 1:n=input()-87.4;print"|%s|\n|"%' '.join(map(str,range(88,109)))+('x'*71,"%-71s"%'*'.rjust(3*n+(n>12)*(n-12)))[0