1
5
0
7
3
6
4
2

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

Let the number be $n$ and let its sum of digits is denoted by $S(n)$ , then we have that $n - S(n)$ is divisible by $9$ .

According to the question, if you extract one number from it, the sum of its digits is $2018$ , therefore we must have an integer $0 \le x \le 9$ such that $2018+x$ is divisible by $9$ .

We see that the only such number is $\boxed{7}$ , since $2025$ is divisible by $9$ .