Serbia and Montenegro (Srbija i Crna Gora), known until 2003 as the Federal Republic of Yugoslavia (Savezna Republika Jugoslavija), FR Yugoslavia or simply Yugoslavia (Jugoslavija), was a country in Southeast Europe located in the Balkans that existed from 1992 to 2006, following the breakup of the Socialist Federal Republic of Yugoslavia (SFR Yugoslavia). The country bordered Hungary to the north, Romania to the northeast, Bulgaria to the southeast, North Macedonia to the south, Croatia and Bosnia and Herzegovina to the west, and Albania to the southwest. The state was founded on 27 April 1992 as a federation comprising the Republic of Serbia and the Republic of Montenegro. In February 2003, it was transformed from a federal republic to a political union until Montenegro seceded from the union in June 2006, leading to the full independence of both Serbia and Montenegro. Its aspirations to be the sole legal successor state to SFR Yugoslavia were not recognized by the United Nations, following the passing of United Nations Security Council Resolution 777, which affirmed that the Socialist Federal Republic of Yugoslavia had ceased to exist, and the Federal Republic of Yugoslavia was a new state. All former republics were entitled to state succession while none of them continued SFR Yugoslavia's international legal personality. However, the government of Slobodan Milošević opposed any such claims, and as such, FR Yugoslavia was not allowed to join the United Nations. Throughout its existence, FR Yugoslavia had a tense relationship with the international community, as economic sanctions were issued against the state during the course of the Yugoslav Wars and Kosovo War. This also resulted in hyperinflation between 1992 and 1994. FR Yugoslavia's involvement in the Yugoslav Wars ended with the Dayton Agreement, which recognized the independence of the Republics of Croatia, Slovenia, and Bosnia and Herzegovina, as well as establishing diplomatic relationships between the states, and a guaranteed role of the Serbian population within Bosnian politics.