#include <iostream>
using namespace std;
int main()
{
int n, a, b, i, num, pare=0;
cout << "n= "; cin >> n;
cout << "a= "; cin >> a;
cout << "b= "; cin >> b;
cout << "introdu " << n << " numere naturale:" << endl;
for (i=1; i<=n; ++i)
{
cin >> num;
if (num>a) num=num-5;
else
{
if (num<b) num=num+3;
}
if (num%2==0) ++pare;
cout << num << " ";
}
cout << endl;
cout << "total pare= " << pare;
return 0;
}