#include
using namespace std;
const int N = 6;
int min, max,srednee;
int main()
{
int arr[N];
min = 15001;
max = -1;
for (int i = 0; i < N; i++)
{
cin >> arr[i];
}
for (int i = 0; i < N; i++)
{
if (arr[i] % 2 == 0)
{
if (arr[i] < min)
{
min = arr[i];
}
if (arr[i] > max)
{
max = arr[i];
}
}
}
srednee = (min + max) / 2;
for (int i = 0; i < N; i++)
{
arr[i] = arr[i] - srednee;
cout
}
return 0;
}