#include <bits/stdc++.h>
using namespace std;
int read() {
  int res = 0, f = 1;
  char c = getchar();
  while (!isdigit(c) && c != '-') c = getchar();
  if (c == '-') f = -1, c = getchar();
  while (isdigit(c)) res = (res << 3) + (res << 1) + (c ^ 48), c = getchar();
  return res * f;
}
const int maxn = 1e3 + 10;
int n;
char s[maxn];
vector<int> a, b;
int main() {
  scanf("%s", s + 1);
  n = strlen(s + 1);
  int x = 0, y = n + 1;
  while (233) {
    x++;
    while (x < y && s[x] != '(') x++;
    if (x == y) break;
    a.push_back(x);
    y--;
    while (y > x && s[y] != ')') y--;
    if (x == y) break;
    b.push_back(y);
  }
  int k = min(a.size(), b.size());
  if (k == 0) {
    printf("0\n");
    return 0;
  }
  printf("1\n%d\n", k * 2);
  for (int i = 0; i < k; i++) printf("%d ", a[i]);
  for (int i = k - 1; i >= 0; i--) printf("%d ", b[i]);
  return 0;
}
