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

int main()
{
    std::vector<std::string> words 
    {
        "chuffed", 
        "apparent", 
        "buckle", 
        "awful", 
        "besides", 
        "check",
    };

    std::string input;

    while (std::cout << "Enter a word\n> " && std::cin >> input && input != "quit")
    {
        auto it = std::find(words.begin(), words.end(), input);

        if (it != words.end())
            std::cout << '"' << input << "\" is string number " << (it - words.begin()) + 1 << '\n';
        else
            std::cout << '"' << input << "\" is not found!\n";
    }
}