A boy write three times the natural number $n$ in a blackboard. He then performed an operation of the following type several times: He erased one of the numbers and wrote in its place the sum of the two others minus $1$. After several moves, one of the three numbers in the blackboard is $900$. Find all the posible values of $n$.