import java.util.Scanner; class no188{ public static void main(String[] args) { Scanner stdIn=new Scanner(System.in); int a[]= {31,28,31,30,31,30,31,31,30,31,30,31},i,j,s=0; for(i=0;i<12;i++) for(j=a[i];j>0;j--) if(i+1==j/10%10+j%10) s++; System.out.print(s); } }