47 11 25 11 18 def inc return from operator import itemgetter from col

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
>>> 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)))))
Доктора ездили к Наташе...