word = word.translate(str.maketrans({c:str(i+1) for i,c in enumerate(alpha)}))
alpha = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']
alpha_map = {c: str(i) for i, c in enumerate(alpha, 1)}
word = input()
new_word = ''.join(f'{idx} ' if idx else orig for idx, orig in ((alpha_map.get(c), c) for c in word))
print(new_word)