#include <iostream>
#include <algorithm>
#include <iterator>

int main() {
	int array [] = { 1, 1, 1, 1 };
	
	bool allAreOne = std::all_of (std::begin (array), std::end (array), [](auto x) { return x == 1; });
	
	std::cout << std::boolalpha << allAreOne << std::endl;
	
	return 0;
}