Total Palindromic Numbers

hard
Check the link

Input Format

Check the link

Output Format

Check the link

Constraints

Check the link

Notice

Check the link

Example

Input
Check the link
Output
Check the link
Previous
Classy Numbers

Related Questions