#include <bits/stdc++.h>
using namespace std;
const long long INF64 = 1e18;
clock_t time_p = clock();
void time() {
  time_p = clock() - time_p;
  cerr << "Time Taken : " << (float)(time_p) / CLOCKS_PER_SEC << "\n";
}
void doc() {
  freopen("input.txt", "r", stdin);
  freopen("output.txt", "w", stdout);
}
void fast() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
}
int main() {
  fast();
  string s;
  cin >> s;
  long long i, j;
  long long n = s.length();
  long long m = 0, idx = -1, x = 0, y = 0;
  for (i = 0; i < n; i++) {
    if (s[i] == '(') {
      x++;
      y = 0;
      for (j = i + 1; j < n; j++) {
        if (s[j] == ')') y++;
      }
      if (y >= x) {
        if (x > m) {
          m = x;
          idx = i;
        }
      }
    }
  }
  vector<long long> ans;
  for (i = 0; i <= idx; i++)
    if (s[i] == '(') ans.emplace_back(i + 1);
  for (i = n - 1, j = 0; i >= 0 and j < m; i--)
    if (s[i] == ')') {
      ans.emplace_back(i + 1);
      j++;
    }
  sort(ans.begin(), ans.end());
  if (ans.size() == 0) {
    cout << "0";
    exit(0);
  }
  cout << "1" << endl << ans.size() << endl;
  for (auto i : ans) cout << i << " ";
  cout << "\n";
}
