#include using namespace std; typedef long long ll; const ll LongINF=1e13+7; const int INF=1e9+7; const int dx[]={0,1,0,-1}; const int dy[]={1,0,-1,0}; template inline bool chmin(T& a, T b) {if (a > b) {a = b;return true;}return false;} template inline bool chmax(T& a, T b) {if (a < b) {a = b;return true;}return false;} template T GCD(T a, Y b){if(a> &q){queue> empty;swap(q, empty);} //queueの中身の型は適時変更を忘れない #define rep(i,n) for(int i=0;i<(n);i++) int main(){ int X,Y,Z; cin>>X>>Y>>Z; int ANS=0; int MAX=max(X,Y); int Dif=abs(X-Y); ANS+=MAX-Dif; if(Z