In the following statement, each of the capital letters in bold represent a different decimal digit from 0 to 9.
TEN is precisely 2 away from a positive perfect cube and there are TEN positive perfect cubes not more than THOUSAND.
What is the number represented by THEN?
Note: T is not zero.