import java.util.Scanner; import java.util.Calendar; class test{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); Calendar cl = Calendar.getInstance(); cl.set(2014,12,31); int cnt = 0; for(int i=0;i<365;i++){ cl.add(Calendar.DATE,1); int month = cl.get(Calendar.MONTH); if(month==0){ month = 12; } int date = cl.get(Calendar.DATE); int dateSum = (date/10)+(date%10); if (month==dateSum){ cnt++; } } System.out.println(cnt); } }