import java.util.* fun main() { val builder = StringBuilder() var ans = 0 val currentDay = GregorianCalendar(2015, 0, 1) while (currentDay.get(Calendar.YEAR) == 2015) { val month = currentDay.get(Calendar.MONTH) + 1 val day = currentDay.get(Calendar.DAY_OF_MONTH) if (month == day / 10 + day % 10) { ans++ } currentDay.add(Calendar.DAY_OF_MONTH, 1) } builder.appendln(ans) print(builder.toString()) } fun readInputLine(): String { return readLine()!! }