using System;
public class Program
{
public static void Main()
int shift = 5;
string word;
word = Console.ReadLine();
string alph = "abcdefghijklmnopqrstuvwxyz";
for (int i = 0; i < alph.Length; i++)
if (alph[i] == word[0])
Console.WriteLine(i + 1);
}