#include using namespace std; int main() { cin.tie(nullptr); ios::sync_with_stdio(false); int m, d; cin >> m >> d; cout << m + d - 1 << '\n'; }