#include <bits/stdc++.h>
using namespace std;
char s[1010];
int n, suf[1010], pre[1010];
int main() {
  cin >> s + 1;
  n = strlen(s + 1);
  for (register int i = 1; i <= n; i++) pre[i] = pre[i - 1] + (s[i] == '(');
  for (register int i = n; i >= 1; i--) suf[i] = suf[i + 1] + (s[i] == ')');
  int ans = -1;
  for (register int i = 1; i < n; i++) {
    if (s[i] == '(' && s[i + 1] == ')') {
      if (ans == -1) {
        ans = i;
      } else {
        if (min(pre[ans], suf[ans + 1]) < min(pre[i], suf[i + 1])) ans = i;
      }
    }
  }
  if (ans == -1) {
    puts("0");
    return 0;
  }
  cout << 1 << endl;
  cout << min(pre[ans], suf[ans + 1]) * 2 << endl;
  pre[ans] = suf[ans + 1] = min(pre[ans], suf[ans + 1]);
  for (register int i = 1; i <= ans; i++) {
    if (!pre[ans]) break;
    if (s[i] == ')') continue;
    pre[ans]--;
    cout << i << " ";
  }
  stack<int> st;
  while (!st.empty()) st.pop();
  for (register int i = n; i > ans; i--) {
    if (!suf[ans + 1]) break;
    if (s[i] == '(') continue;
    suf[ans + 1]--;
    st.push(i);
  }
  while (!st.empty()) cout << st.top() << " ", st.pop();
  return 0;
}
