#include <iostream>
#include <string>

using namespace std;

int main() {
    string word;
    cout << "Enter a word: ";
    cin >> word;

    string reverseWord = "";
    for (int i = word.length() - 1; i >= 0; i--) {
        reverseWord += word[i];
    }

    if (word == reverseWord) {
        cout << word << " is a palindrome." << endl;
    } else {
        cout << word << " is not a palindrome." << endl;
    }

    return 0;
}