#include using namespace std; int main(){ int m,d; int ans = 0; int i,j; for(i = 1; i < 13; i++){ if(i==4 || i==6 || i==9 || i==10){ d = 30; }else if(i==2){ d = 28; }else{ d = 31; } for(j = 1; j <= d; j++){ if((j%10) + (j/10) == i){ ans++; } } } cout << ans << endl; return 0; }