#!/usr/bin/env kotlin import java.lang.RuntimeException import java.util.Scanner val scanner = Scanner(System.`in`) if (!scanner.hasNext()) { throw RuntimeException("No input given.") } val fileSystem = scanner.nextLine().split("").filter { it.isNotEmpty() }.map { it.toInt() }.toMutableList()