#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  long long n = s.size();
  long long i = 0;
  long long j = n - 1;
  bool nafisa = false;
  vector<long long> v;
  while (i < j) {
    if (s[i] == ')') i++;
    if (s[j] == '(') j--;
    if (s[i] == '(' && s[j] == ')' && i < j) {
      v.push_back(i + 1);
      i++;
      v.push_back(j + 1);
      j--;
      nafisa = true;
    }
  }
  if (!nafisa) {
    cout << 0 << endl;
    return 0;
  } else {
    cout << 1 << endl;
    cout << v.size() << endl;
    sort(v.begin(), v.end());
    for (long long i = 0; i < v.size(); i++) {
      cout << v[i] << " ";
    }
    cout << endl;
    return 0;
  }
  return 0;
}
