#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  int n, ans = 0, a[1005], b[1005], p = 0, q = 0;
  cin >> s;
  n = s.size();
  for (int i = 0; i < n; i++) {
    if (s[i] == '(') {
      a[p] = i;
      p++;
    }
  }
  for (int i = n - 1; i >= 0; i--) {
    if (s[i] == ')') {
      b[q] = i;
      q++;
    }
  }
  for (int i = 0; i < min(p, q); i++) {
    if (a[i] > b[i]) {
      break;
    } else {
      ans++;
    }
  }
  if (ans >= 1) {
    cout << 1 << '\n';
    cout << 2 * ans << '\n';
    for (int i = 0; i < ans; i++) {
      cout << a[i] + 1 << " ";
    }
    for (int i = ans - 1; i >= 0; i--) {
      cout << b[i] + 1 << " ";
    }
  } else {
    cout << 0;
  }
}
