data[index]
data[x] == -1
data = [-1] * 26 cnt = 0 for i in input(): x = ord(i)-ord('a') if data[x] == -1: data[x] = cnt cnt += 1 for d in data: print(d, end = ' ')