#include using namespace std; void solve() { int a, b; cin >> a >> b; cout << (min(a, b) * 2) << endl; } int main() { cin.tie(0); ios::sync_with_stdio(false); solve(); getchar(); }