#include <bits/stdc++.h>
using namespace std;
long long n, t, s1, s2, s;
char x[1001];
long long ans[1001], bns[1001];
int main() {
  cin >> x;
  s1 = 0;
  s2 = 0;
  n = strlen(x);
  for (int i = 0; i < n; i++) {
    if (x[i] == '(')
      s1++;
    else
      s2++;
  }
  if (s1 == n || s2 == n) {
    cout << 0 << endl;
  } else {
    s = 0;
    for (int i = 0, j = n - 1; i < j;) {
      if (x[i] == ')') {
        i++;
        continue;
      }
      if (x[j] == '(') {
        j--;
        continue;
      }
      if (x[i] == '(' && x[j] == ')') {
        s++;
        ans[s] = i + 1;
        bns[s] = j + 1;
        i++;
        j--;
      }
    }
    if (s == 0)
      cout << 0 << endl;
    else {
      cout << 1 << endl;
      cout << s * 2 << endl;
      for (int i = 1; i <= s; i++) cout << ans[i] << " ";
      for (int i = s; i >= 1; i--) cout << bns[i] << " ";
    }
  }
}
