Input (grade 6): Gyeongju is 370 k southeast of Seoul, and 55 k east of the provincial capital, Daegu.
Output (grade 7): From southeast, Gyeongju is 370 k away from Seoul, and from the east, 55 k away from the provincial capital, Daegu.