#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  bool ttf = true;
  int c = 0;
  while (c < s.size() && s[c] != '(') c++;
  for (; c < s.size(); c++) {
    if (s[c] != '(') {
      ttf = false;
    }
  }
  if (ttf) {
    cout << "0";
    return 0;
  }
  int ans = 0;
  int len = s.size();
  bool tf[len];
  memset(tf, false, sizeof(tf));
  for (int i = 0, j = len - 1; i < j; i++, j--) {
    while (i < j && s[i] != '(') i++;
    while (i < j && s[j] != ')') j--;
    if (i < j) tf[i] = true, tf[j] = true, ans += 2;
  }
  cout << "1\n" << ans << endl;
  for (int i = 0; i < len; i++) {
    if (tf[i]) cout << i + 1 << " ";
  }
  return 0;
}
