(function(input) {
  'use strict';
  const lines = input.split("\n")
  lines.forEach(line => {
    if(!line) return
    const S = line.split('')
    const length = S.length
    if (S[length-1] != '0' || S[0] != '1') {
      console.log('-1')
      return
    }
    let i = 1
    while(true) {
      if (i == length-2) break
      if (S[i] != S[length-i-2]) {
        console.log('-1')
        return
      }
      i++
    }

    console.log('1 2')
    let j = 2
    let curVertice = 3
    while(true) {
      if (j >= length) break
      let next = j - 2
      while(true) {
        if ( S[next] == '1') break
        next-- 
      }
      const addCount = j - next - 1
      for(let k=0; k<addCount; k++)
      {
        console.log(`${j} ${curVertice}`)
        curVertice++
      }
      console.log(`${j} ${curVertice}`)
      j=curVertice
    }
    
  });
  
})(require('fs').readFileSync('/dev/stdin', 'utf8'))