Where did John McCain rank in the Naval Academy 1958 class?

After high school, McCain was accepted to the United States Naval Academy, though he was not a strong student. He was often disciplined for misbehavior and ultimately graduated 894 of 899 of the class of 1958.