import java.util.Calendar; import java.util.GregorianCalendar; import java.util.Scanner; public class Main_yukicoder188 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); Calendar c = new GregorianCalendar(2015, 0, 1); int happy = 0; while (c.get(Calendar.YEAR) < 2016) { int m = c.get(Calendar.MONTH) + 1; int d = c.get(Calendar.DAY_OF_MONTH); if (m == d % 10 + d / 10) { happy++; } // int y = c.get(Calendar.YEAR); // System.out.println(y + "/" + m + "/" + d); c.add(Calendar.DAY_OF_YEAR, 1); } System.out.println(happy); sc.close(); } }