#include using namespace std; int main(int argc, char const *argv[]){ int n, m; cin >> n >> m; long long ans = n + m - 2; cout << ans; return 0; }