#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  string s;
  cin >> s;
  vector<int> open, close;
  int i, n = s.size();
  for (i = 0; i < n; i++) {
    if (s[i] == '(')
      open.push_back(i + 1);
    else
      close.push_back(i + 1);
  }
  if (open.empty() || close.empty() || open.front() > close.back()) {
    cout << "0\n";
    return 0;
  }
  vector<int> res;
  while (!open.empty() && !close.empty() && open.front() < close.back()) {
    res.push_back(open.front());
    res.push_back(close.back());
    close.pop_back();
    open.erase(begin(open), begin(open) + 1);
  }
  sort(begin(res), end(res));
  cout << "1\n";
  cout << res.size() << "\n";
  for (auto x : res) cout << x << " ";
}
