var inpt = readLine()!.map({$0}) func isValid() -> Bool { for i in 1..