WA in Test #5? Whats wrong with my code?
names = ['Alice', 'Ariel', 'Aurora', 'Phil', 'Peter', 'Olaf', 'Phoebus', 'Ralph', 'Robin',
'Bambi', 'Belle', 'Bolt', 'Mulan', 'Mowgli', 'Mickey', 'Silver', 'Simba', 'Stitch',
'Dumbo', 'Genie', 'Jiminy', 'Kuzko', 'Kida', 'Kenai', 'Tarzan', 'Tiana', 'Winnie']
n = int(raw_input())
letters = ['Alice']
for i in range(0, n):
letters.append(raw_input())
result = 0
for i in range(1, n+1):
result += int(abs(names.index(letters[i]) - names.index(letters[i -1]))/9)
print result