Олимпиадный тренинг

Задача 23089. Changeling


Задача

Темы: Строки Символы
The word is given. Check if it is a "changeling", (that is, it is read the same way both from the beginning and from the end).

Solve the problem without using the built-in string functions, except for a function that returns the length of a string.

Input: The first line is a word.

Output: need to output the word "YES" if the word is a shifter, and the word "NO" - otherwise

Sample input and output
Test number Input Output
1 foresete NO
2 halah YES

Запрещенные операторы:::-1;reverse