#include <bits/stdc++.h>
using namespace std;
long long b[5],i,n,k,dem,kt;
int main()
{
n=5;
for (i=1; i<=n; i++) cin>>b[i];
for (i=1; i<=n; i++) cout<<b[i]<<" ";
cout<<endl;
dem=0;
for (i=1; i<=n; i++) if (b[i]%2==0) dem++;
cout<<"So so chan la: "<<dem<<endl;
cin>>k;
kt=0;
for (i=1; i<=n; i++) if (b[i]==k)
{
cout<<i<<" ";
kt=1;
}
if (kt==0) cout<<"Khong co k trong day";
sort(b+1,b+n+1);
for (i=1; i<=n; i++) cout<<b[i]<<" ";
return 0;
}