#include <bits/stdc++.h>
using namespace std;
const int N = 5e5 + 5;
const long long int MOD = 1e9 + 7;
int32_t main() {
  string str;
  cin >> str;
  long long int num = str.length();
  vector<long long int> se, ul;
  for (long long int i = 0; i < num; i++) {
    if (str[i] == '(') se.push_back(i + 1);
  }
  for (long long int i = num - 1; i >= 0; i--) {
    if (str[i] == ')') ul.push_back(i + 1);
  }
  long long int hl = std::min(ul.size(), se.size());
  long long int cnt = 0;
  for (long long int i = 0; i < hl; i++) {
    if (ul[i] > se[i])
      cnt++;
    else
      break;
  }
  std::vector<long long int> vrr;
  if (cnt != 0) {
    cout << 1 << "\n";
    cout << cnt * 2 << "\n";
    for (long long int i = 0; i < cnt; i++) vrr.push_back(se[i]);
    for (long long int i = 0; i < cnt; i++) vrr.push_back(ul[i]);
    sort(vrr.begin(), vrr.end());
    for (long long int i = 0; i < vrr.size(); i++) cout << vrr[i] << " ";
  } else
    cout << 0;
}
