main(x,y,n){for(;--y/x?gets(&n),y=n=atoi():1;)for(x=~n;putchar(x++y*y?124:y?x/y?43:45:32:10)-10;);}