val result = Regex("""\d+""") .findAll(input) .map { it.value.toInt() } .drop(6) .chunked(8){ it[0] * it[1] - it.drop(2).sumOf(9::times) } .count { it >= 0 }