#include <iostream>
#include <algorithm>
#include <vector>

using namespace std;

int main() {
	vector<string> v1 = {"A","B","C"};
	vector<string> v3 = {"A","C","C"};
	vector<string> v2 = {"X","Y","A","B","C","D"};
	
	auto res = search(begin(v2), end(v2), begin(v1), end(v1));
	auto found = res != end(v2);
	cout << boolalpha << found;
	
	auto res2 = search(begin(v2), end(v2), begin(v3), end(v3));
	auto found2 = res2 != end(v2);
	cout << boolalpha << found2;
	
	
	return 0;
}