#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  string s;
  cin >> s;
  vector<int> res;
  int l = 0, r = s.size() - 1;
  while (l < r) {
    if (s[l] == '(' && s[r] == ')') {
      res.push_back(l);
      res.push_back(r);
      ++l;
      --r;
    } else if (l < r && s[l] != '(')
      ++l;
    else if (l < r && s[r] != ')')
      --r;
  }
  sort(res.begin(), res.end());
  if (res.size() == 0)
    cout << 0 << endl;
  else {
    cout << 1 << endl;
    cout << res.size() << endl;
    for (auto x : res) cout << x + 1 << " ";
    cout << endl;
  }
  return 0;
}
