#include using namespace std; using ll = long long; void solve() { int b, c, h; cin>>b>>c>>h; if(b==c+h) cout<c+h) cout<<2*(c+h)+1<> TC; cin.ignore(); while (TC--) solve(); }