#include <iostream> using namespace std; #define rep(i,n) for(int i=0;i<n;i++) int main(void){ int ans = 0; rep(i,13) { rep(j,32) { if(i == 4 && j == 31); else { int plus = (j / 10); plus += j - plus*10; if(i == plus)ans++; } } } cout << ans << endl; }