while 1:y=raw_input();print' '.join(`x`for x in range(1,11)if y[x-1].isupper())