object Main {
    def main(args: Array[String]): Unit = {
        val num: String = "ABCDEF"
        println("%15d".format(java.lang.Integer.parseInt(num.toString, 16)))
    }
}