#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
using namespace std;



bool existWord(vector<string> word_list, string word)
{
	vector<string>:: iterator it;
	
	it= find(word_list.begin(), word_list.end(), word);
	if(it== word_list.end())
	return 0;
	else
	return 1;
}
int main() {
	
	vector<string > word_list(3);
	
	word_list[0]= "hello";
	word_list[1]= "world";
	word_list[2]= "working";
	
	cout<< existWord(word_list, "hi")<< endl;
	cout<< existWord(word_list, "hello")<< endl;
	cout<< existWord(word_list, "world")<< endl;
	cout<< existWord(word_list, "work")<< endl;
	return 0;
}