#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int cases = 1;
  while (cases--) {
    string s;
    cin >> s;
    long long int n = s.length();
    long long int l = 0, r = n - 1, c1 = 0;
    vector<long long int> a;
    while (l < r) {
      if (s[l] != '(') l++;
      if (s[r] != ')') r--;
      if (s[l] == '(' && s[r] == ')' && l < r) {
        c1++;
        a.push_back(l);
        a.push_back(r);
        l++;
        r--;
      }
    }
    long long int t = a.size();
    if (t == 0)
      cout << "0\n";
    else {
      sort(a.begin(), a.end());
      cout << "1\n";
      cout << c1 * 2 << "\n";
      for (long long int i = 0; i < t; i++) cout << a[i] + 1 << " ";
      cout << "\n";
    }
  }
  return 0;
}
