Title: Navy
Content:  of ranks, one for enlisted personnel and one for officers. Typical ranks for commissioned officers include the following, in ascending order (Commonwealth ranks are listed first on each line; USA ranks are listed second in those instances where they differ from Commonwealth ranks): "Flag officers" include any rank that includes the word "admiral" (or commodore in services other than the US Navy), and are generally in command of a battle group, strike group or similar flotilla of ships, rather than a single ship or aspect of a ship. However, commodores can also be temporary or honorary positions. For example, during 
Title: Yeoman (United States Navy)
Content:  (1896) The US Navy has a hierarchy that is unique among the US armed forces. "Rank" is reserved for naval officers and warrant officers. "Rate" and "Rating" is applied to enlisted personnel. "Rate" refers to a seaman's pay grade; "rating" refers to the occupational specialty. The approximate naval equivalent of the US Army infantry sergeant would be a Boatswain's Mate Second Class. Following is brief listing of the various yeoman rates and ratings between 1797 and 1896:  Note that this list illustrates the gradual shift towards administrative and clerical duties between 1800 and 1900, tasks which are familiar to modern US Navy yeomen.
Title: List of United States Navy ratings
Content:   United States Navy ratings are general enlisted occupations used by the U.S. Navy since the 18th century, which denote the specific skills and abilities of the sailor. Each naval rating has its own specialty badge, which is worn on the left sleeve of dress uniforms of enlisted personnel. U.S. naval ratings are the equivalent of military occupational specialty codes (MOS codes) used by the United States Army and the United States Marine Corps, the ratings system used by the United States Coast Guard, and Air Force Specialty Codes (AFSC) used by the United States Air Force and United States Space Force. Ratings should not be confused with rates, which describe the Navy's enlisted rank and pay-grades. Enlisted service members (sailors) are often referred to by a combination of both their rating and their pay-grade. For example, if a sailor has the pay-grade of 
Title: Personnel of the United States Navy
Content:   Commissioned officers in the navy have pay grades ranging from O-1 to O-10, with O-10 being the highest; those with paygrades between O-1 through O-4 are considered junior officers and O-5 and O-6 as senior officers. Officers in the O-7 to O-10 range are called flag officers or "the admiralty". Promotion through O-8 is based on performance in an officer's current paygrade, which is recorded in "FITREPS" (fitness reports). Promotions to Vice Admiral (O-9) and Admiral (O-10) are based on assignment to specific positions and subject to U.S. Senate confirmation. Above the rank of admiral is Fleet Admiral, which was awarded to only four officers in World War II and is intended to be used only during a declared war. In 1899, a special rank called 
Title: Naval officer ranks
Content: OF-1(junior): Midshipman, acting sub-lieutenant, ensign, corvette lieutenant, ship-of-the-line ensign 2nd class. ; OF-1(senior): Sub-lieutenant, lieutenant (junior grade), frigate lieutenant, ship-of-the-line ensign 1st class. ; OF-2: Lieutenant, lieutenant (senior grade) ship-of-the-line lieutenant, captain-lieutenant. ; OF-3: Lieutenant-commander, corvette captain. ; OF-4: Commander, frigate captain. ; OF-5: Captain, ship-of-the-line captain, captain of sea and war. In most navies, captain is the common address to commanding officers of a naval ship, regardless of their actual rank. As a rank, naval ranks of captain are almost always senior to army captains. Exceptions are the Polish Navy and the Republic of Singapore Navy, where "captain" refers to the same rank in the navy as 
Title: Naval officer ranks
Content:  Navies have military rank systems that often are quite different from those of armies or air forces. Sometimes, services that are considered parts of the navy &ndash; marine or amphibious corps &ndash; use the army-style ranks instead, while the ranks listed here are reserved for fleets.
Title: Navy
Content: Midshipman / Ensign / Corvette Lieutenant ; Sub Lieutenant / Lieutenant Junior Grade / Frigate Lieutenant ; Lieutenant (Commonwealth & USA)/ Ship-of-the-Line Lieutenant / Captain Lieutenant ; Lieutenant Commander (Commonwealth & USA)/ Corvette Captain ; Commander (Commonwealth & USA)/ Frigate Captain ; Captain (Commonwealth & USA)/ Ship-of-the-Line Captain ; Commodore / Flotilla Admiral (in USA only: Rear Admiral (lower half)) ; Rear Admiral (in USA only: Rear Admiral (upper half)) ; Vice Admiral (Commonwealth & USA) ; Admiral (Commonwealth & USA) ; Admiral of the Fleet (Commonwealth) / Fleet Admiral (USA) / Grand Admiral  A navy will typically have two 
Title: History of United States Navy ratings
Content:  The structure, ranks, and enlisted ratings of the early Continental Navy were direct carryovers from the Royal Navy hierarchy of uniforms, ranks, and insignia. The first American naval ranks consisted of simply captain, lieutenant (navy), and midshipman. Shipboard warrant officer ranks, such as sailing master, boatswain, carpenter, gunner, and purser, were also copied from the British system. The earliest form of U.S. Navy enlisted ratings may be traced to the petty officers assigned as assistants to the shipboard warrant officers. The oldest such ratings, still in use today, are boatswain's mate, quartermaster, and gunner's mate. The rating of armourer was also in use as an assistant to the gunner, as was the rating of carpenter's mate for members of the ship's carpenter's crew. Informally, the shipboard title of yeoman was also frequently used, even though this would not be an official rating of the United States Navy until 1835. The remainder of a Continental Navy ship's crew were simply referred to as "seamen", who were "signed on" to the ship for the duration of a campaign and "paid off" once the ship had returned to port.
Title: Personnel of the United States Navy
Content:  Enlisted members of the navy have pay grades from E-1 to E-9, with E-9 being the highest. All enlisted sailors with paygrades of E-4 and higher are considered Petty Officers while those at E-7 and higher are further named Chief Petty Officers. Those who demonstrate superior performance are given an increase in paygrade; the official navy term is to be advanced. Two notable advancements are from Seaman to Petty Officer Third Class (E-3 to E-4) and from Petty Officer First Class to Chief Petty Officer (E-6 to E-7). Advancement to Chief Petty Officer is especially significant and is marked by a 
Title: United States Naval Academy
Content:  The student body is known as the Brigade of Midshipmen. Students attending the U.S. Naval Academy are appointed to the rank of midshipman and serve on active duty in that rank. "Naval Academy midshipmen are classified as officers of the line but are officers only in a qualified sense. They rank just below chief warrant officers." Legally, midshipmen are a special grade of officer that ranks above the most senior enlisted grades (E-9) and below the lowest grade of chief warrant officer (W-2) in the Navy and Coast Guard (the Navy and Coast Guard discontinued the rank of warrant officer, WO-1, in 1975). Additionally, midshipmen rank below warrant officer (W-1) in the Marine Corps and the Army, and below second lieutenant (O-1) in the 

Question: what are the ranks in the us navy?
Answer: E-8s senior chief petty officer.
E-9s master chief petty officer.