s="krausraus" l=[0] for c in s:l+=[x*36-87+ord(c)for x in l] 0in map(print,l+[s])