text: #include <iostream>
  
  using namespace std;
  int main()
  {
      int n;
      cin >> n;
  
      char arr[n];
      cin >> arr;
      int i = n;
      bool check = 1;
      for (int i = 0; i < n; i++)
      {
          if (arr[i] != arr[n - 1 - i])
          {
              check = 0;
              break;
          }
      }
      if (check)
      {
          cout << "palindrome !" << endl;
      }
      else
      {
          cout << "not palindrome !" << endl;
      }
  
      return 0;
  }