#include #include using namespace std; int main(void) { int A,B,S; cin >> A >> B >> S; if(abs(S-A)