K = 'kadomatsu' S = input() index = 0 for i in range(len(K)): if index