Niloy added three digit number to $523$ such that the new six digit number is divisible by $7,8,9$. What is the minimum value of the new three-digit number that he added?