#include <bits/stdc++.h>
using namespace std;
const int maxn = 3e5 + 12;
char s[maxn];
vector<int> ans;
int n, l, r;
int main() {
  scanf("%s", s + 1);
  n = strlen(s + 1);
  l = 1, r = n;
  while (l <= r) {
    while (l <= n && s[l] != '(') l++;
    while (r >= l && s[r] != ')') r--;
    if (l <= r)
      ans.push_back(l), ans.push_back(r), l++, r--;
    else
      break;
  }
  sort(ans.begin(), ans.end());
  if (ans.size()) {
    cout << 1 << endl << ans.size() << endl;
    for (auto x : ans) cout << x << " ";
  } else
    cout << 0;
  return 0;
}
