#include <iostream>
#include <cmath>
using namespace std;
int main()
{
int i;
double avg, val;
avg = 0.0;
for(i=0; i<5; i++) {
cout << "Enter a value: ";
cin >> val;
avg = avg + abs(val);
}
avg = avg / 5;
cout << "Average of absolute values: " << avg;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y21hdGg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpCnsKICBpbnQgaTsKICBkb3VibGUgYXZnLCB2YWw7CgogIGF2ZyA9IDAuMDsKCiAgZm9yKGk9MDsgaTw1OyBpKyspIHsKICAgIGNvdXQgPDwgIkVudGVyIGEgdmFsdWU6ICI7CiAgICBjaW4gPj4gdmFsOwoKICAgIGF2ZyA9IGF2ZyArIGFicyh2YWwpOwogIH0KICBhdmcgPSBhdmcgLyA1OwoKCiAgY291dCA8PCAiQXZlcmFnZSBvZiBhYnNvbHV0ZSB2YWx1ZXM6ICIgPDwgYXZnOwoKICByZXR1cm4gMDsKfQo=