#include <iostream>
#include <algorithm>
using namespace std;
int main()
{
    char arr[] = "WORLD";
    cout << "Enter a letter to search for\n";

    char c;
    cin >> c;

    char* beg = arr;
    char* end = arr + sizeof arr;
    char* pos = find(beg, end, c);
    int cnt = count(beg, end, c);

    if(pos == end)
        cout << "Not found\n";
    else
       cout << "The letter " << c << " found " << cnt << " times. "
            << "The first time at position " << 1 + pos - beg << '\n';}