# import sys
# from itertools import permutations
#
# input = sys.stdin.readline
# N = int(input())
# lst = list(map(str, input().split()))
# left, right = "<", ">"
# answer = []
# numbers= [0,1,2,3,4,5,6,7,8,9]
# # 4자리 정ㅇ수
# # "<", ">", ">"
# # 3 5 4 3
# z = list(permutations(numbers, N+1))
# z =[">", "<"]
# a = [(0,1,1), (4,5,3)]
# for i in range(len(a)) :
#     for j in range(len(a)) :
#         a[i][]
