>>> t=[47,11,8,25,11,18... >>> def inc(x,y): x[y]=x[y]+1; return x ... >>> from operator import itemgetter >>> from collections import defaultdict >>> spaces = [max(reduce(lambda x, y: inc(x,y), t[i::3],defaultdict(int)).iteritems(),key=itemgetter(1))[0] for i in xrange(3)] >>> key = map(lambda x: x^ord(' '), spaces) >>> print ''.join(map(chr, key)) лев >>> from itertools import * >>> print ''.join(list(starmap(lambda x,y: chr(x^y), izip(t,cycle(key))))) Доктора ездили к Наташе...