In each box of a $9\times 9$ grid we write a positive integer such that, between any $2$ boxes on the same row or column that have the same number $n$ written, there's at least $n$ boxes between them. What is the minimum sum possible for the numbers on the grid?