#!/usr/local/bin/python2 l = [0,1,2,3,4,5,6,7,8,9] for i in xrange(1000000): k = -10 - (len(l) - l.index(5)) print k