#!/usr/local/bin/python2 from collections import deque for i in xrange(10000): l = range(50) for j in xrange(50): l.pop(0)