Let 75⋯5r7 denote the (r+2) digit number where the first and the last digits are 7 and the remaining r digits are 5. Consider the sum S=77+757+7557+⋯+75⋯5987. If S=n75⋯5997+m, where m and n are natural numbers less than 3000, then the value of m+n is ____.