import string line1 = [" ", " ", " "] line2 = [" ", " ", " "] line3 = [" ", " ", " "] map = [line1, line2, line3] print("Hiding your treasure! X marks the spot.") position = input() # Where do you want to put your treasure col = position[0] row = position[1] map[string.ascii_lowercase.index(col)][int(row)-1] = 'X' print(f"{line1}\n{line2}\n{line3}")