#include <bits/stdc++.h>
using namespace std;
vector<int> v;
int main() {
  string s;
  cin >> s;
  int n = s.size();
  int l = 0, r = n - 1;
  while (l < r) {
    while (l < r && s[l] != '(') ++l;
    while (l < r && s[r] != ')') --r;
    if (l < r) {
      v.push_back(l + 1);
      v.push_back(r + 1);
      ++l, --r;
    }
  }
  sort(v.begin(), v.end());
  int sz = v.size();
  if (!sz) {
    printf("0\n");
    return 0;
  }
  printf("1\n");
  printf("%d\n", sz);
  for (int i = 0; i < sz; ++i) printf("%d%c", v[i], i == sz - 1 ? '\n' : ' ');
  return 0;
}
