algorithm import sys input = sys.stdin.readline a = input() sys.setrecursionlimit(10000) sys.stdin.readline() exit(0) 247000000 heapq, deque