#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; const int MAX = 1000000000; const int MOD = 1000000007; void solve() { int a, b; cin >> a >> b; if (a == b) {cout << a + b - 1; return;} cout << 2 * min(a, b); } int main() { ios::sync_with_stdio(false); cin.tie(nullptr); //int tt; cin >> tt; for (int i = 1; i <= tt; i++) {solve(); cout << endl;} solve(); }