fun main() { var count = 0 for (i in 1..12) { for (j in 1..31) { if (i == (j % 10) + (j / 10)) { count += 1 } } } println(count - 1) }