#include <bits/stdc++.h>
using namespace std;
int v[1005];
int a[1005], b[1005];
char s[1005];
vector<int> c, d;
int main() {
  cin >> s + 1;
  int len = strlen(s + 1);
  int num = 0;
  for (int i = 1; i <= len; i++) {
    if (s[i] == '(') {
      a[i]++;
      c.push_back(i);
    }
    a[i] += a[i - 1];
  }
  for (int i = len; i; i--) {
    if (s[i] == ')') {
      d.push_back(i);
      b[i]++;
    }
    b[i] += b[i - 1];
  }
  sort((d).begin(), (d).end());
  int l = 0, r = d.size() - 1;
  while (l < c.size() && r >= 0 && c[l] < d[r]) {
    l++;
    r--;
    num++;
  }
  if (!num)
    puts("0");
  else {
    puts("1");
    cout << l + d.size() - r - 1 << endl;
    for (int i = 0; i < l; i++) cout << c[i] << " ";
    for (int i = r + 1; i < d.size(); i++) cout << d[i] << " ";
  }
  return 0;
}
