let E = readLine()! var L = Array(E)//.map{String($0)} var S = Set(L[1...]) var ans = -1 if L[0] == "1" && S.count == 1 && L[1] == "3"{ ans = L.count - 1 } print(ans)