#!/usr/local/bin/python2 from collections import deque l = [] l.sort