#include <algorithm>
#include <iostream>
using namespace std;
int main( void )
{
const unsigned buf[] = { 1, 2, 3, 4, 5, 6, 7 };
const unsigned upr = 5;
const unsigned lwr = 2;
size_t a = count_if( begin(buf), end(buf), [](const auto& value){return value
>upr;} );
size_t b = count_if( begin(buf), end(buf), [](const auto& value){return value
<lwr;} );
cout << a << '\n' << b << endl;
}