Republic in the ussr (1922–1991) and sovereign state (1917–1922 and 1990–1991, then it was renamed to russia)