#include <bits/stdc++.h>
using namespace std;
const long long inf = 2e9;
const long long base = 998244353;
long long mod = 1e9 + 7;
const long double eps = 1e-5;
int main() {
  std::ios_base::sync_with_stdio(false);
  std::cin.tie(nullptr);
  string s;
  cin >> s;
  vector<int> a, b;
  for (int i = 0; i < s.size(); ++i) {
    if (s[i] == '(') {
      a.push_back(i + 1);
    } else {
      b.push_back(i + 1);
    }
  }
  sort(a.begin(), a.end());
  sort(b.begin(), b.end());
  reverse(b.begin(), b.end());
  vector<int> res;
  int cur = 0;
  while (cur < a.size() && cur < b.size() && a[cur] < b[cur]) {
    res.push_back(a[cur]);
    res.push_back(b[cur]);
    ++cur;
  }
  sort(res.begin(), res.end());
  if (res.empty()) {
    cout << 0 << endl;
    return 0;
  } else {
    cout << 1 << endl;
    cout << res.size() << endl;
  }
  for (auto c : res) {
    cout << c << ' ';
  }
  return 0;
}
