#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(0);
  cin.sync_with_stdio(0);
  string s;
  cin >> s;
  set<int> zero, one;
  for (int i = 0; i < s.size(); ++i) {
    if (s[i] == '0') {
      zero.insert(i + 1);
    } else {
      one.insert(i + 1);
    }
  }
  vector<vector<int> > ans;
  while (!one.empty()) {
    if (zero.empty()) {
      cout << -1 << '\n';
      return 0;
    }
    vector<int> v;
    int now = *zero.begin();
    v.push_back(now);
    zero.erase(now);
    while (true) {
      auto it1 = one.lower_bound(now + 1);
      if (it1 == one.end()) break;
      auto it2 = zero.lower_bound(*it1 + 1);
      if (it2 == zero.end()) break;
      v.push_back(*it1);
      v.push_back(*it2);
      now = *it2;
      one.erase(it1);
      zero.erase(it2);
    }
    ans.push_back(v);
  }
  while (!zero.empty()) {
    vector<int> v;
    auto it = zero.begin();
    v.push_back(*it);
    ans.push_back(v);
    zero.erase(it);
  }
  cout << ans.size() << '\n';
  for (auto v : ans) {
    cout << v.size();
    for (auto i : v) {
      cout << ' ' << i;
    }
    cout << '\n';
  }
}
