package net.ipipip0129.kotlin.yukicoder fun main(args: Array) { val list = readLine()!!.split(" ").map { it.toInt() } var count = 0 list.forEach { count += if (it % 5 == 0 && it % 3 == 0) { 8 } else if (it % 5 == 0|| it % 3 == 0) { 4 } else { it.toString().length } } println(count) }