import java.time.LocalDate; import java.util.Scanner; public class No188 { public static void main(String[] args) { LocalDate targetDate = LocalDate.of(2015, 1, 1); LocalDate endDate = LocalDate.of(2016, 1, 1); int ans = 0; while (targetDate.isBefore(endDate)) { int month = targetDate.getMonth().getValue(); int day = targetDate.getDayOfMonth(); if (month == (day/10 + day%10)) { ans++; } targetDate = targetDate.plusDays(1); } System.out.println(ans); } }