#include #include #include #include using namespace std; typedef long long ll; typedef unsigned long long ull; int main(){ cin.tie(nullptr); ios::sync_with_stdio(false); int m,d; cin >> m >> d; if(m==4&&d==1){ cout << 1 << endl; return 0; } cout << m+d << endl; }