// FHY
//
#include "stdafx.h"
#include <iostream>
#include <conio.h>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
const int n = 10;
int x[n], y[n], z[n];
cout << "Enter array: ";
for (int i = 0; i < n; i++)
cin >> x[i];
int k = 0, f = 0;
for (int i = 0; i < n; i++)
{
if (x[i] % 2 != 0)
{
y[k] = x[i];
k++;
}
if (x[i] % 5 == 0)
{
z[f] = x[i];
f++;
}
}
cout << "\nY: ";
for (int i = 0; i < k; i++)
cout << y[i] << " ";
cout << "\nZ: ";
for (int i = 0; i < f; i++)
cout << z[i] << " ";
_getch();
return 0;
}