a = int(input())
if a == 1:
print("K")
if a == 2:
print("K K")
print(" K ")
print("K K")
if a == 3:
print("K K K K")
print(" K K")
print("K K K K")
print(" K K")
print(" K ")
print(" K K")
print("K K K K")
print(" K K")
print("K K K K")
if a == 4:
print("K K K K K K K K")
print(" K K K K ")
print("K K K K K K K K")
print(" K K K K ")
print(" K K ")
print(" K K K K ")
print("K K K K K K K K")
print(" K K K K ")
print("K K K K K K K K")
print(" K K K K")
print(" K K")
print(" K K K K")
print(" K K")
print(" K ")
print(" K K")
print(" K K K K")
print(" K K")
print(" K K K K")
print("K K K K K K K K")
print(" K K K K ")
print("K K K K K K K K")
print(" K K K K ")
print(" K K ")
print(" K K K K ")
print("K K K K K K K K")
print(" K K K K ")
print("K K K K K K K K")
if a == 5:
print("K K K K K K K K K K K K K K K K")
print(" K K K K K K K K ")
print("K K K K K K K K K K K K K K K K")
print(" K K K K K K K K ")
print(" K K K K ")
print(" K K K K K K K K ")
print("K K K K K K K K K K K K K K K K")
print(" K K K K K K K K ")
print("K K K K K K K K K K K K K K K K")
print(" K K K K K K K K ")
print(" K K K K ")
print(" K K K K K K K K ")
print(" K K K K ")
print(" K K ")
print(" K K K K ")
print(" K K K K K K K K ")
print(" K K K K ")
print(" K K K K K K K K ")
print("K K K K K K K K K K K K K K K K")
print(" K K K K K K K K ")
print("K K K K K K K K K K K K K K K K")
print(" K K K K K K K K ")
print(" K K K K ")
print(" K K K K K K K K ")
print("K K K K K K K K K K K K K K K K")
print(" K K K K K K K K ")
print("K K K K K K K K K K K K K K K K")
print(" K K K K K K K K")
print(" K K K K ")
print(" K K K K K K K K")
print(" K K K K ")
print(" K K ")
print(" K K K K ")
print(" K K K K K K K K")
print(" K K K K ")
print(" K K K K K K K K")
print(" K K K K")
print(" K K")
print(" K K K K")
print(" K K")
print(" K ")
print(" K K")
print(" K K K K")
print(" K K")
print(" K K K K")
print(" K K K K K K K K")
print(" K K K K ")
print(" K K K K K K K K")
print(" K K K K ")
print(" K K ")
print(" K K K K ")
print(" K K K K K K K K")
print(" K K K K ")
print(" K K K K K K K K")
print("K K K K K K K K K K K K K K K K")
print(" K K K K K K K K ")
print("K K K K K K K K K K K K K K K K")
print(" K K K K K K K K ")
print(" K K K K ")
print(" K K K K K K K K ")
print("K K K K K K K K K K K K K K K K")
print(" K K K K K K K K ")
print("K K K K K K K K K K K K K K K K")
print(" K K K K K K K K ")
print(" K K K K ")
print(" K K K K K K K K ")
print(" K K K K ")
print(" K K ")
print(" K K K K ")
print(" K K K K K K K K ")
print(" K K K K ")
print(" K K K K K K K K ")
print("K K K K K K K K K K K K K K K K")
print(" K K K K K K K K ")
print("K K K K K K K K K K K K K K K K")
print(" K K K K K K K K ")
print(" K K K K ")
print(" K K K K K K K K ")
print("K K K K K K K K K K K K K K K K")
print(" K K K K K K K K ")
print("K K K K K K K K K K K K K K K K")
if a == 6:
print("K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print("K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print(" K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print("K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print("K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print(" K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print(" K K K K K K K K")
print(" K K K K")
print(" K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print(" K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print("K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print("K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print(" K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print("K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print("K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print(" K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print(" K K K K K K K K")
print(" K K K K")
print(" K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print(" K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print(" K K K K K K K K")
print(" K K K K")
print(" K K K K K K K K")
print(" K K K K")
print(" K K")
print(" K K K K")
print(" K K K K K K K K")
print(" K K K K")
print(" K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print(" K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print(" K K K K K K K K")
print(" K K K K")
print(" K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print(" K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print("K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print("K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print(" K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print("K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print("K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print(" K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print(" K K K K K K K K")
print(" K K K K")
print(" K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print(" K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print("K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print("K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print(" K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print("K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print("K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print(" K K K K K K K K ")
print(" K K K K K K K K K K K K K K K K")
print(" K K K K K K K K ")
print(" K K K K ")
print(" K K K K K K K K ")
print(" K K K K K K K K K K K K K K K K")
print(" K K K K K K K K ")
print(" K K K K K K K K K K K K K K K K")
print(" K K K K K K K K ")
print(" K K K K ")
print(" K K K K K K K K ")
print(" K K K K ")
print(" K K ")
print(" K K K K ")
print(" K K K K K K K K ")
print(" K K K K ")
print(" K K K K K K K K ")
print(" K K K K K K K K K K K K K K K K")
print(" K K K K K K K K ")
print(" K K K K K K K K K K K K K K K K")
print(" K K K K K K K K ")
print(" K K K K ")
print(" K K K K K K K K ")
print(" K K K K K K K K K K K K K K K K")
print(" K K K K K K K K ")
print(" K K K K K K K K K K K K K K K K")
print(" K K K K K K K K")
print(" K K K K")
print(" K K K K K K K K")
print(" K K K K")
print(" K K")
print(" K K K K")
print(" K K K K K K K K")
print(" K K K K")
print(" K K K K K K K K")
print(" K K K K")
print(" K K")
print(" K K K K")
print(" K K")
print(" K")
print(" K K")
print(" K K K K")
print(" K K")
print(" K K K K")
print(" K K K K K K K K")
print(" K K K K")
print(" K K K K K K K K")
print(" K K K K")
print(" K K")
print(" K K K K")
print(" K K K K K K K K")
print(" K K K K")
print(" K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print(" K K K K K K K K ")
print(" K K K K K K K K K K K K K K K K")
print(" K K K K K K K K ")
print(" K K K K ")
print(" K K K K K K K K ")
print(" K K K K K K K K K K K K K K K K")
print(" K K K K K K K K ")
print(" K K K K K K K K K K K K K K K K")
print(" K K K K K K K K ")
print(" K K K K ")
print(" K K K K K K K K ")
print(" K K K K ")
print(" K K ")
print(" K K K K ")
print(" K K K K K K K K ")
print(" K K K K ")
print(" K K K K K K K K ")
print(" K K K K K K K K K K K K K K K K")
print(" K K K K K K K K ")
print(" K K K K K K K K K K K K K K K K")
print(" K K K K K K K K ")
print(" K K K K ")
print(" K K K K K K K K ")
print(" K K K K K K K K K K K K K K K K")
print(" K K K K K K K K ")
print(" K K K K K K K K K K K K K K K K")
print("K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print("K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print(" K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print("K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print("K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print(" K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print(" K K K K K K K K")
print(" K K K K")
print(" K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print(" K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print("K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print("K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print(" K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print("K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print("K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print(" K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print(" K K K K K K K K")
print(" K K K K")
print(" K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print(" K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print(" K K K K K K K K")
print(" K K K K")
print(" K K K K K K K K")
print(" K K K K")
print(" K K")
print(" K K K K")
print(" K K K K K K K K")
print(" K K K K")
print(" K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print(" K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print(" K K K K K K K K")
print(" K K K K")
print(" K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print(" K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print("K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print("K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print(" K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print("K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print("K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print(" K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print(" K K K K K K K K")
print(" K K K K")
print(" K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print(" K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print("K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print("K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print(" K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print("K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K")
print(" K K K K K K K K K K K K K K K K")
print("K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K")