Palindrome check

Read a string and print YES if it reads the same forwards and backwards (ignoring case), otherwise NO.

Reported in: Infosys (2021–26), Accenture, Cognizant GenC, Deloitte (Feb 2026), LTIMindtree (memory-based)

Input

One line: the string.

Output

YES or NO.

Constraints

1 ≤ length ≤ 10^5.

Example 1

Input:
Level

Output:
YES

Example 2

Input:
Placement

Output:
NO

Hint: Compare characters from both ends moving inwards.

All coding practice