#include <bits/stdc++.h>
using namespace std;
string s;
set<int> z, o;
vector<vector<int> > ans;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  cin >> s;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == '1')
      o.insert(i + 1);
    else
      z.insert(i + 1);
  }
  bool can = true;
  while (!o.empty()) {
    if (z.empty()) {
      can = false;
      break;
    }
    int prev = -1;
    vector<int> seq;
    while (true) {
      if (seq.size() % 2 == 0) {
        set<int>::iterator it = z.lower_bound(prev);
        if (it == z.end()) break;
        seq.push_back(*it);
        prev = *it;
        z.erase(it);
      } else {
        set<int>::iterator it = o.lower_bound(prev);
        if (it == o.end()) break;
        prev = *it;
        seq.push_back(*it);
        o.erase(it);
      }
    }
    if (seq.size() % 2 == 0 && seq.size() != 0) {
      int ele = seq.back();
      seq.pop_back();
      o.insert(ele);
    }
    ans.push_back(seq);
  }
  if (can) {
    for (auto u : z) {
      vector<int> seq;
      seq.push_back(u);
      ans.push_back(seq);
    }
  }
  if (!can) {
    cout << -1;
  } else {
    cout << ans.size() << '\n';
    for (auto u : ans) {
      cout << u.size() << ' ';
      for (auto v : u) cout << v << " ";
      cout << '\n';
    }
  }
  return 0;
}
