fun main(args: Array<String>) {
  val s = readLine()!!
  val n = s.length
  val f = (0 until n / 2).any { s[it] != s[n - it - 2] }
  if (s[0] != '1' || s[n - 1] != '0' || f) {
    println(-1)
    return
  }
  val list = Array<Int>(n + 1) { it }.filter { it > 0 && s[it - 1] == '1' }.sorted()
  var p = 1
  var c = 1
  for (m in list) {
    while (c < m + 1) {
      c++
      println("$p $c")
    }
    p = c
  }
}
