val fr = FileReader("f.txt")
val array=fr.readText()
.substringAfter(':')
.substringBefore('К')
.split(' ')
.toList()
.filter { !it.contains('0') && !it.contains('-') }
println(array)
fr.close()
val newFw = FileWriter("g4.txt")
var numbers = ""
numbers = array.toString()
.substringAfter('[')
.substringBefore("]")
.filter { !it.isWhitespace() && !it.equals(',') }
newFw.append(numbers)
newFw.close()