What was the rank of McCain during his military service?

**********