Tribal Pursuit

Problem A