Problem: You are given a non-empty string s=s_1s_2... s_n, which consists only of lowercase Latin letters. Polycarp does not like a string if it contains at least one string "one" or at least one string "two" (or both at the same time) as a substring. In other words, Polycarp does not like the string s if there is an integer j (1 ≤ j ≤ n-2), that s_{j}s_{j+1}s_{j+2}="one" or s_{j}s_{j+1}s_{j+2}="two".

For example:

  * Polycarp does not like strings "oneee", "ontwow", "twone" and "oneonetwo" (they all have at least one substring "one" or "two"), 
  * Polycarp likes strings "oonnee", "twwwo" and "twnoe" (they have no substrings "one" and "two"). 



Polycarp wants to select a certain set of indices (positions) and remove all letters on these positions. All removals are made at the same time.

For example, if the string looks like s="onetwone", then if Polycarp selects two indices 3 and 6, then "onetwone" will be selected and the result is "ontwne".

What is the minimum number of indices (positions) that Polycarp needs to select to make the string liked? What should these positions be?

Input

The first line of the input contains an integer t (1 ≤ t ≤ 10^4) — the number of test cases in the input. Next, the test cases are given.

Each test case consists of one non-empty string s. Its length does not exceed 1.5⋅10^5. The string s consists only of lowercase Latin letters.

It is guaranteed that the sum of lengths of all lines for all input data in the test does not exceed 1.5⋅10^6.

Output

Print an answer for each test case in the input in order of their appearance.

The first line of each answer should contain r (0 ≤ r ≤ |s|) — the required minimum number of positions to be removed, where |s| is the length of the given line. The second line of each answer should contain r different integers — the indices themselves for removal in any order. Indices are numbered from left to right from 1 to the length of the string. If r=0, then the second line can be skipped (or you can print empty). If there are several answers, print any of them.

Examples

Input


4
onetwone
testme
oneoneone
twotwo


Output


2
6 3
0

3
4 1 7 
2
1 4


Input


10
onetwonetwooneooonetwooo
two
one
twooooo
ttttwo
ttwwoo
ooone
onnne
oneeeee
oneeeeeeetwooooo


Output


6
18 11 12 1 6 21 
1
1 
1
3 
1
2 
1
6 
0

1
4 
0

1
1 
2
1 11 

Note

In the first example, answers are:

  * "onetwone", 
  * "testme" — Polycarp likes it, there is nothing to remove, 
  * "oneoneone", 
  * "twotwo". 



In the second example, answers are: 

  * "onetwonetwooneooonetwooo", 
  * "two", 
  * "one", 
  * "twooooo", 
  * "ttttwo", 
  * "ttwwoo" — Polycarp likes it, there is nothing to remove, 
  * "ooone", 
  * "onnne" — Polycarp likes it, there is nothing to remove, 
  * "oneeeee", 
  * "oneeeeeeetwooooo". 

Solution (in PYTHON3):

Solution:

class state():
    def __init__(self,states,key,keys):
        self.stringe=[]
        self.cur=[]
        self.rem=[]
        self.action=None
        self.states=None
        self.children_keys=keys
        self.children={}
        self.key=None
        self.cur_string=[]

class states():
    def __init__(self):
        self.states={}
        self.current_state=None
        self.total=0
    def assing(self,stringe,cur,rem):
        self.total=0
        self.current_state=self.states.get('o1')
        for state in states.states.values():
            state.states=self
            state.cur=cur
            state.rem=rem
            state.stringe=stringe


states=states()

o1=state(states,'o1',['n1','w1'])
def o1_action(state):
#    print('o1')
    stringe=state.stringe[0]
    cur=state.cur[0]
    states=state.states
    letter=stringe[cur];
    if letter=='o':
        #states.current_state=state.children.get('n1')
        states.current_state=state.children[0]
        o1.cur[0]=o1.cur[0]+1
    elif letter=='t':
        #states.current_state=state.children.get('w1')
        states.current_state=state.children[1]
        state.cur[0]=state.cur[0]+1
    else:
        state.cur[0]=state.cur[0]+1

o1.action=o1_action
states.states.update({'o1' : o1})

n1=state(states,'n1',['w1','o1','e1'])

def n1_action(state):
#    print('n1')
    stringe=state.stringe[0]
    cur=state.cur[0]
    states=state.states
    letter=stringe[cur]
    if letter=='n':
#        states.current_state=state.children.get('e1')
        states.current_state=state.children[0]
        state.cur[0]=state.cur[0]+1
    elif letter=='o':
        state.cur[0]=state.cur[0]+1
    elif letter=='t':
#        states.current_state=state.children.get('w1')
        states.current_state=state.children[1]
        state.cur[0]=state.cur[0]+1
    else:
#        states.current_state=state.children.get('o1')
        states.current_state=state.children[2]
        state.cur[0]=state.cur[0]+1

n1.action=n1_action
states.states.update({'n1' : n1})

e1=state(states,'e1',['o1','n1','w1'])

def e1_action(state):
#    print('e1')
    stringe=state.stringe[0]
    cur=state.cur[0]
    states=state.states
    letter=stringe[cur]
    if letter=='e':
        state.rem[states.total]=str(cur)
        states.total=states.total+1
#        states.current_state=state.children.get('o1')
        states.current_state=state.children[0]
        state.cur[0]=state.cur[0]+1
    elif letter=='o':
#        states.current_state=state.children.get('n1')
        states.current_state=state.children[1]
        state.cur[0]=state.cur[0]+1
    elif letter=='t':
#        states.current_state=state.children.get('w1')
        states.current_state=state.children[2]
        state.cur[0]=state.cur[0]+1
    else:
#        states.current_state=state.children.get('o1')
        states.current_state=state.children[0]
        state.cur[0]=state.cur[0]+1

e1.action=e1_action
states.states.update({'e1' : e1})

w1=state(states,'w1',['o2','o1','w1','n1'])

def w1_action(state):
#    print('w1')
    stringe=state.stringe[0]
    cur=state.cur[0]
    states=state.states
    letter=stringe[cur]
    if letter=='w':
#        states.current_state=state.children.get('o2')
        states.current_state=state.children[0]
        state.cur[0]=state.cur[0]+1
    elif letter=='t':
#        states.current_state=state.children.get('w1')
        states.current_state=state.children[1]
        state.cur[0]=state.cur[0]+1
    elif letter=='o':
#        states.current_state=state.children.get('n1')
        states.current_state=state.children[2]
        state.cur[0]=state.cur[0]+1
    else:
#        states.current_state=state.children.get('o1')
        states.current_state=state.children[3]
        state.cur[0]=state.cur[0]+1

w1.action=w1_action
states.states.update({'w1' : w1})

o2=state(states,'o2',['n2','o1','w1'])

def o2_action(state):
#    print('o2')
    stringe=state.stringe[0]
    cur=state.cur[0]
    states=state.states
    letter=stringe[cur]
    if letter=='o':
        if cur+1==len(stringe):
            state.rem[states.total]=str(cur)
            states.total=states.total+1
            state.cur[0]=state.cur[0]+1
        else:
#            states.current_state=state.children.get('n2')
            states.current_state=state.children[0]
            state.cur[0]=state.cur[0]+1
    elif letter=='t':
#        states.current_state=state.children.get('w1')
        states.current_state=state.children[1]
        state.cur[0]=state.cur[0]+1
    else:
#        states.current_state=state.children.get('o1')
        states.current_state=state.children[2]
        state.cur[0]=state.cur[0]+1

o2.action=o2_action
states.states.update({'o2' : o2})

n2=state(states,'n2',['e2','n1','w1','o1'])

def n2_action(state):
#    print('n2')
    stringe=state.stringe[0]
    cur=state.cur[0]
    states=state.states
    letter=stringe[cur]
    if letter=='n':
        if cur+1==len(stringe):
            state.rem[states.total]=str(cur)
            states.total=states.total+1
            state.cur[0]=state.cur[0]+1
        else:
#            states.current_state=state.children.get('e2')
            states.current_state=state.children[0]
            state.cur[0]=state.cur[0]+1
    elif letter=='o':
        state.rem[states.total]=str(cur-1)
        states.total=states.total+1
#        states.current_state=state.children.get('n1')
        states.current_state=state.children[1]
        state.cur[0]=state.cur[0]+1
    elif letter=='t':
        state.rem[states.total]=str(cur-1)
        states.total=states.total+1
#        states.current_state=state.children.get('w1')
        states.current_state=state.children[2]
        state.cur[0]=state.cur[0]+1
    else:
        state.rem[states.total]=str(cur-1)
        states.total=states.total+1
#        states.current_state=state.children.get('o1')
        states.current_state=state.children[3]
        state.cur[0]=state.cur[0]+1

n2.action=n2_action
states.states.update({'n2' : n2})

e2=state(states,'e2',['n1','w1','o1'])

def e2_action(state):
#    print('e2')
    stringe=state.stringe[0]
    cur=state.cur[0]
    states=state.states
    letter=stringe[cur]
    if letter=='e':
        state.rem[states.total]=str(cur-1)
        states.total=states.total+1
#        states.current_state=state.children.get('o1')
        states.current_state=state.children[0]
        state.cur[0]=state.cur[0]+1
    elif letter=='o':
        state.rem[states.total]=str(cur-2)
        states.total=states.total+1
#        states.current_state=state.children.get('n1')
        states.current_state=state.children[1]
        state.cur[0]=state.cur[0]+1
    elif letter=='t':
        state.rem[states.total]=str(cur-2)
        states.total=states.total+1
#        states.current_state=state.children.get('w1')
        states.current_state=state.children[2]
        state.cur[0]=state.cur[0]+1
    else:
        state.rem[states.total]=str(cur-2)
        states.total=states.total+1
#        states.current_state=state.children.get('o1')
        states.current_state=state.children[3]
        state.cur[0]=state.cur[0]+1

e2.action=e2_action
states.states.update({'e2' : e2})

o1.children=[n1,w1]
n1.children=[e1,w1,o1]
e1.children=[o1,n1,w1]
w1.children=[o2,w1,n1,o1]
o2.children=[n2,w1,o1]
n2.children=[e2,n1,w1,o1]
e2.children=[o1,n1,w1,o1]

N=int(input())
k=0
while k<N:
    stringe=[input()]
    cur=[0]
    rem=['']*int(1500000/N)
    states.assing(stringe,cur,rem)
    n=len(stringe[0])
    while cur[0]<n:
        state=states.current_state
        state.action(state)
    print(states.total)
    if states.total>0:
        print(' '.join(state.rem[0:states.total]))
    k=k+1