#include using namespace std; typedef long long ll; typedef unsigned long long ull; typedef vector VI; typedef vector VVI; #define REP(i, n) for(int(i)=0;(i)<(n);++(i)) #define FOR(i, f, t) for(int(i)=(f);(i)<(t);(++i)) #define RREP(i, n) for(int(i)=(n)-1;(i)>=0;--(i)) const int MOD = int(1e9+7); int N,M,W,H; int res = 0; int day[] = {31,28,31,30,31,30,31,31,30,31,30,31}; int main(){ do { cin.tie(0); ios_base::sync_with_stdio(false); } while(0); int c = 0; REP(i,12){ int m = i+1; REP(d,day[i]){ int d1 = (d+1) / 10, d2 = (d+1) % 10; if(m == d1+d2)c++; } } cout << c << endl; return 0; }