#include using namespace std; int a[] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; int main(){ int ans = 0; for(int i=1;i<13;i++) for(int j=1;j<=a[i];j++) if(i == (a[j]%10 + a[j]/10)) ans++; cout << ans << endl; }