/* Problem 5--Give Me A K!
   This was a straightforward ASCII art problem with no tricks of any
   kind! */

import java.io.*;
import java.util.*;

public class prob5 {

 public static Scanner in=null;
 public static PrintWriter out=null;

 public static void main (String[] args) throws Exception {

  in = new Scanner (new File ("prob5.in"));
  out = new PrintWriter ("prob5.out");
  int sz=0;
  while ((sz=in.nextInt())>0) { // print top part of K
   for (int i=sz-1; i > 0; i--) {
    out.print ("|");
    for (int j=0; j < i-1; j++)
     out.print (" ");
    out.println ("/");
   }
   out.println ("K");
   for (int i=1; i < sz; i++) {  // print bottom part of K
    out.print ("|");
    for (int j=0; j < i-1; j++)
     out.print (" ");
    out.println ("\\");
   }
   out.println();
  }
  in.close();
  out.close();
 }
}
