#include <bits/stdc++.h>
using namespace std;
const long long MaxN = 2e5 + 10;
long long a[MaxN], b[MaxN];
int main() {
  string s;
  cin >> s;
  int n = s.length();
  int l = 0, r = n - 1;
  int Lbr = 0, Rbr = 0;
  while (l <= r) {
    if (Lbr == Rbr) {
      if (s[l] == '(') {
        a[Lbr] = l;
        Lbr++;
      }
      l++;
    } else {
      if (s[r] == ')') {
        b[Rbr] = r;
        Rbr++;
      }
      r--;
    }
  }
  int m = min(Lbr, Rbr);
  if (m > 0) {
    cout << 1 << endl;
    cout << 2 * m << endl;
    for (int i = 0; i < m; i++) cout << ++a[i] << ' ';
    for (int i = m - 1; i >= 0; i--) cout << ++b[i] << ' ';
  } else {
    cout << 0;
  }
}
