#include <bits/stdc++.h>
using namespace std;
int main() {
  string str;
  cin >> str;
  int n = str.length();
  int i = 0, j = n - 1;
  vector<int> v;
  while (i < n && j >= 0 && i <= j) {
    if (str[i] == '(' && str[j] == ')') {
      v.push_back(i + 1);
      v.push_back(j + 1);
      i++;
      j--;
    } else {
      if (str[i] == ')') i++;
      if (str[j] == '(') j--;
    }
  }
  if (v.empty())
    printf("0\n");
  else {
    printf("1\n");
    sort(v.begin(), v.end());
    printf("%d\n", v.size());
    for (int i = 0; i < v.size(); i++) printf("%d ", v[i]);
    printf("\n");
  }
  return 0;
}
