# write your code here
only = ['X', 'O', '_']
input = str(input("Enter cells:"))
print("---------")
print("| " + input[0] + " " + input[1] + " " + input[2] + " |") 
print("| " + input[3] + " " + input[4] + " " + input[5] + " |") 
print("| " + input[6] + " " + input[7] + " " + input[8] + " |") 
print("---------")
