for y in open(0):print(*[x for x in range(1,11)if y[x-1].isupper()])