#define _GLIBCXX_DEBUG #define ll long long #include using namespace std; using Graph = vector>; int main(){ int M, D; cin >> M >> D; if(M == 4 and D == 1) cout << 41 << endl; else cout << M+D << endl; }