let n = Array(readLine()!).map{String($0)} var c = n.count % 3 var s = "" for (j,i) in n.enumerated(){ s += i c -= 1 if c == 0{ print(j) s += "," c = 3 } } print(s.prefix(s.count - 1))