#include <bits/stdc++.h>
using namespace std;
int main() {
  string second;
  cin >> second;
  int i, j;
  i = -1, j = second.size();
  vector<int> ans1;
  deque<int> dq;
  int count = 0;
  while (i < j) {
    do {
      i++;
    } while (second[i] != '(' && i < j);
    if (i >= j) break;
    do {
      j--;
    } while (second[j] != ')' && j > i);
    if (j <= i) break;
    ans1.push_back(i);
    dq.push_front(j);
    count = count + 2;
  }
  if (count != 0) cout << 1 << endl;
  cout << count << endl;
  for (i = 0; i < ans1.size(); i++) {
    cout << ans1[i] + 1 << " ";
  }
  for (auto it = dq.begin(); it != dq.end(); it++) {
    cout << (*it) + 1 << " ";
  }
  cout << endl;
  return 0;
}
