#include
#include
using namespace std;
int main() {
const int n = 5;
float arr[n],A=0.0,B;
for (int i = 0;i < n;i++) {
cin >> arr[i];
}
B = arr[0];
for (int i = 0;i < n;i++) {
if (arr[i] > A) {
A = arr[i];
}
if (arr[i] < B) {
B = arr[i];
}
}
cout << "A= " << A << endl;</p>
cout << "B = " << B << endl;</p>
cout << " A + B = " << A + B << endl;</p>
cout << " A - B = " << A - B << endl;</p>
_getche();
return 0;
}