#include <bits/stdc++.h>
using namespace std;
int st, dr, l;
string s;
bool m[1001], gata;
int main() {
  cin >> s;
  st = 0;
  dr = s.size() - 1;
  while (st < dr and 0 <= st and dr <= s.size() - 1) {
    while (s[st] == ')') st++;
    while (s[dr] == '(') dr--;
    if (st < dr and 0 <= st and dr <= s.size() - 1) {
      m[st] = m[dr] = true;
      st++;
      dr--;
      l++;
    }
  }
  if (l == 0)
    cout << 0;
  else {
    cout << 1 << endl;
    cout << 2 * l << endl;
    for (st = 0; st <= s.size() - 1; st++)
      if (m[st]) cout << st + 1 << ' ';
  }
  return 0;
}
