A Palindrome is an integer that reads the same forwards as backwards. For example, 12321 is a Palindrome.

2018 is not a Palindrome. If I added an integer X to 2018, the resulting number is a Palindrome!

What is the smallest possible value of X?

The answer is -2018.

**
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.

The smallest integer palindrome is 0. Notice that negative integers are not palindromic. Hence, the smallest possible value of integer X must be -2018.