A palindrome is a positive integer that reads the same forwards and backwards; e.g., 101 and 2552 are both palindromes.

What is the smallest $x$ for which $x$ and $x+2016$ are both palindromes?

The answer is 646.

**
This section requires Javascript.
**

You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.