There are 6049 trees planted side by side on one side of a highway, each of which is a group of several adjacent trees, a total of 2016 groups, in which the first group has m trees, the last group has n trees, if there are 39 trees in any of the 13 groups of adjacent trees, then what is m+n=