Russia had lost two of its three fleets. Only its Black Sea Fleet remained, and this was the result of an earlier treaty that had prevented the fleet from leaving the Black Sea. Japan became the sixth-most powerful naval force by combined tonnage, while the Russian Navy declined to one barely stronger than that of Austria–Hungary. The actual costs of the war were large enough to affect the Russian economy and, despite grain exports, the nation developed an external balance of payments deficit. The cost of military re-equipment and re-expansion after 1905 pushed the economy further into deficit, although the size of the deficit was obscured.