from collections import dequeimport itertoolsfrom itertools import permutationsfrom itertools import combinations
map은 리스트의 요소를 지정된 함수로 처리해주는 함수입니다(map은 원본 리스트를 변경하지 않고 새 리스트를 생성합니다).list(map(함수, 리스트))문자열도 각 문자를 리스트의 각 요소처럼 다루어 처리map은 보통 input()과 많이 사용