#include <bits/stdc++.h>
using namespace std;
char s[1005];
int main() {
  scanf("%s", s + 1);
  int len = strlen(s + 1);
  vector<int> v1, v2;
  for (int i = 1; i <= len; i++) {
    if (s[i] == '(') v1.push_back(i);
  }
  for (int i = len; i >= 1; i--) {
    if (s[i] == ')') v2.push_back(i);
  }
  int x = min(v1.size(), v2.size());
  for (int i = 0; i < min(v1.size(), v2.size()); i++) {
    if (v1[i] > v2[i]) {
      x = i;
      break;
    }
  }
  if (x > 0) {
    printf("1\n%d\n", 2 * x);
    for (int i = 0; i < x; i++) {
      printf("%d ", v1[i]);
    }
    for (int i = x - 1; i >= 0; i--) {
      printf("%d", v2[i]);
      if (i != 0)
        printf(" ");
      else
        printf("\n");
    }
  } else
    printf("0\n");
  return 0;
}
