#include <vector>
#include <algorithm>
#include <iostream>
#include <iterator>
using namespace std;
int main()
{
std::vector<int> Array = {3,6,9,5,10,21,3,25,14,12,32,41,3,24,15,26,7,8,11,4};
Array.erase(remove_if(Array.begin(), Array.end(), [](int n) { return n > 9; }),
Array.end());
copy(Array.begin(), Array.end(), ostream_iterator<int>(cout, " "));
}
ICAgICAgI2luY2x1ZGUgPHZlY3Rvcj4KICAgICAgI2luY2x1ZGUgPGFsZ29yaXRobT4KICAgICAgI2luY2x1ZGUgPGlvc3RyZWFtPgogICAgICAjaW5jbHVkZSA8aXRlcmF0b3I+CiAgICAKICAgICAgdXNpbmcgbmFtZXNwYWNlIHN0ZDsKICAgIAogICAgICBpbnQgbWFpbigpCiAgICAgIHsKICAgICAgICAgc3RkOjp2ZWN0b3I8aW50PiBBcnJheSA9IHszLDYsOSw1LDEwLDIxLDMsMjUsMTQsMTIsMzIsNDEsMywyNCwxNSwyNiw3LDgsMTEsNH07CiAgICAgICAgIAogICAgICAgICBBcnJheS5lcmFzZShyZW1vdmVfaWYoQXJyYXkuYmVnaW4oKSwgQXJyYXkuZW5kKCksIFtdKGludCBuKSB7IHJldHVybiBuID4gOTsgfSksCiAgICAgICAgICAgICAgICAgICAgIEFycmF5LmVuZCgpKTsKICAgICAgICAgY29weShBcnJheS5iZWdpbigpLCBBcnJheS5lbmQoKSwgb3N0cmVhbV9pdGVyYXRvcjxpbnQ+KGNvdXQsICIgIikpOwogICAgICAgICAKICAgICAgfQo=