#include <bits/stdc++.h>
using namespace std;
mt19937 mrand(random_device());
int main() {
  string s;
  cin >> s;
  int i = 0, j = s.size() - 1;
  vector<int> ans;
  while (i < j) {
    while (i < s.size() && s[i] != '(') ++i;
    while (j >= 0 && s[j] != ')') --j;
    if (i < j) ans.push_back(i), ans.push_back(j), ++i, --j;
  }
  if (ans.size() == 0)
    cout << 0 << '\n';
  else {
    cout << 1 << '\n';
    cout << ans.size() << '\n';
    sort(ans.begin(), ans.end());
    for (int i : ans) cout << 1 + i << " ";
    cout << '\n';
  }
}
