1// Check whether the string is a palindrome or not.
2#include <bits/stdc++.h>
3
4using namespace std;
5
6int main(){
7 string s;
8 cin >> s;
9
10 int l = 0;
11 int h = s.length()-1;
12
13 while(h > l){
14 if(s[l++] != s[h--]){
15 cout << "Not a palindrome" << endl;
16 return 0;
17 }
18 }
19 cout << "Is a palindrome" << endl;
20 return 0;
21
22}