e)
cin >> a >> b >> c;
if(a > b && a > a+b-c ) cout << 4-2*a;
else if(b > a && b > a+b-c ) cout << 4-2*b;
else cout << 4-2*(a+b-c);
f)
cin >> a >> b >> c;
if(a-b > b-c && a-b > a-c) cout << (a-b)*(a-b) - 1;
else if(b-c > a-b && b-c > a-c) cout << (b-c)*(b-c) - 1;
else cout << (a-c)*(a-c) - 1;