#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  string s;
  cin >> s;
  vector<int> a;
  int i = 0, j = s.size() - 1;
  while (i <= j) {
    if (s[i] == '(' && s[j] == ')') {
      a.push_back(i + 1);
      a.push_back(j + 1);
      i++;
      j--;
    } else if (s[i] == '(') {
      j--;
    } else {
      i++;
    }
  }
  if (a.size() == 0)
    cout << 0 << endl;
  else {
    sort(a.begin(), a.end());
    cout << 1 << endl;
    cout << a.size() << endl;
    for (auto &it : a) {
      cout << it << " ";
    }
  }
  return 0;
}
