#include <bits/stdc++.h>
using namespace std;
const int S = 1003;
bool a[S];
bool b[S];
string s;
int k;
int i, j;
int main() {
  cin >> s;
  j = s.size() - 1;
  while (i < j) {
    if (s[i] == '(' && s[j] == ')') {
      b[i] = 1;
      b[j] = 1;
      k++;
      i++;
      j--;
    } else {
      if (s[i] == ')') i++;
      if (s[j] == '(') j--;
    }
  }
  if (k == 0) {
    cout << "0";
    return 0;
  };
  cout << 1 << endl;
  cout << 2 * k << endl;
  for (int i = 0; i < s.size(); i++)
    if (b[i]) cout << i + 1 << " ";
  return 0;
}
