#include <bits/stdc++.h>
using namespace std;
stack<char> st;
string s;
int viz[10000];
bool verif(string s) {
  bool ok = 1;
  st = stack<char>();
  for (int i = 0; i < s.size() && ok; i++)
    if (s[i] == '(')
      st.push(s[i]);
    else if (!st.empty())
      if (st.top() == '(')
        st.pop();
      else
        ok = 0;
    else
      ok = 0;
  if (!st.empty()) ok = 0;
  return ok;
}
int main() {
  cin >> s;
  int p = 0, nrop = 0;
  for (int i = 0, j = s.size() - 1; i < j;) {
    if (s[i] == '(' && s[j] == ')') {
      viz[++p] = i;
      viz[++p] = j;
      i++;
      j--;
    }
    while (s[j] != ')') j--;
    while (s[i] == ')') i++;
  }
  sort(viz + 1, viz + p + 1);
  if (p) {
    cout << "1\n";
    cout << p << '\n';
    for (int i = 1; i <= p; i++) cout << viz[i] + 1 << ' ';
  } else
    cout << "0";
  return 0;
}
