In triangle ABC, let angle bisectors BD and CE intersect at I. The line through I parallel to BC intersects AB and AC at M and N, respectively. If AB = 17, AC = 24, and BC = 38, then find the perimeter of triangle AMN.