#include using namespace std; using ll = long long; #define itn int #define rep2(i,a,n) for(int i = (a);i < (n);i++) #define rep(i,n) rep2(i,0,n) using P = pair; int main(void){ int ans = 0; for(int i = 0;i <= 3;i++){ for(int j = 0;j <= 9;j++){ if(i == 0 && j == 0)continue; if(i * 10 + j > 31)continue; if(i + j <= 12)ans++; } } cout << ans << endl; }