#include using namespace std; int main() { int arr[10]; int size = sizeof(arr) / sizeof(arr[0]); for (int i = 0; i < 10; i++) { cin >> arr[i]; } for (int i = 0; i < size; i++) { if (arr[i] % 2 != 0) { std::cout << arr[i] << " "; } } for (int i = 0; i < size; i++) { if (arr[i] % 2 == 0) { std::cout << arr[i] << " "; } } std::cout << std::endl; return 0; }