#!/usr/bin/python
import string
#br0ken's CrackMe#1 KeyGen

s1 = 'Boefstpo'
s2 = 'Anderson'
s3 = 'QbTTx1sE'

def alphabet(any_string):
        s = string.printable

        for j in any_string:
                for i in range(len(s)):
                        #print str(i)+':'+s[i],
                        if s[i] == j:
                                print s[i]+':'+str(i)
def new_alphabet(any_string):
        s = string.printable
        result = []
        for j in any_string:
                for i in range(len(s)):
                        #print str(i)+':'+s[i],
                        if s[i] == j:
                                print s[i-1]+':'+str(i-1)
                                result.append(s[i-1])
        print ''.join(result)

### Serial
s = raw_input("Please enter your name: ")
initial = 0
for i in s:
        x = ord(i)+initial
        x1 = x-1
        initial = x1
print "Your serial is:",(initial-1)

### Serial end

alphabet(s1)
print
alphabet(s2)
print
new_alphabet(s3)
