#include
#include
using namespace std;
int main()
{
setlocale(LC_ALL, "Russian");
const int arrSize = 10;
int arr[arrSize];
bool mistake = false;
for (int i = 0; i < arrSize; i++)
{
cout
cin >> arr[i];
}
for (int j = 0; j < arrSize - 1; j++)
{
if ((arr[j] % 2 == 0 && arr[j + 1] % 2 == 0) || (arr[j] % 2 != 0 && arr[j + 1] % 2 != 0))
{
mistake = true;
break;
}
}
if (mistake)
cout
else
cout
return 0;
}