n = int(input()) s = input() #回溯 # result = [] # path = [] # def back(s): # if len(path) == 3 and path[0]!=path[1] and path[1] == path[2]: # # print(path) # result.append(path.copy()) # return # if len(path)>=3: # return # for i in range(len(...