# include # define endl "\n" using namespace std; typedef long long int ll; void solve() { int a, b; cin >> a >> b; cout << 2 * min(a, b) << endl; } int main() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); # ifndef ONLINE_JUDGE freopen("input.txt", "r", stdin); freopen("output.txt", "w", stdout); # endif // int t; // cin >> t; // while (t--) solve(); return 0; }