import java.util.Calendar; import java.util.Scanner; public class Main{ static final Scanner s=new Scanner(System.in); public static void main(String args[]){ input(); solve(); } private static void input(){ } private static void solve(){ Calendar calendar = Calendar.getInstance(); calendar.setLenient(true); calendar.set(2015,0,1); int res=1; for(int i=1;i<365;i++) { calendar.add(Calendar.DAY_OF_YEAR,1); int m=calendar.get(Calendar.MONTH)+1, d=calendar.get(Calendar.DAY_OF_MONTH); if(m==d/10+(d%10)) res++; } System.out.println(res); //System.out.println(calendar.toString().replaceAll(",",",\n")); } }