that a great degree of political power would be given to a newly created bicameral legislature. It also created a new post of president to act as head of state and chief executive. Solidarity was also declared a legal organization. During the following Polish elections the Communists won 65 percent of the seats in the Sejm, though the seats won were guaranteed and the Communists were unable to gain a majority, while 99 out of the 100 seats in the Senate — all freely contested — were won by Solidarity-backed candidates. Jaruzelski won the presidential ballot by one vote. Jaruzelski was unsuccessful in convincing Wałęsa to include Solidarity in a "grand coalition" with the Communists and resigned his position of general secretary of the Polish United Workers Party. The PZPR' two allied parties broke their long-standing alliance, forcing Jaruzelski to appoint Solidarity's Tadeusz Mazowiecki as the country's first non-communist prime minister since 1948. Jaruzelski resigned as Poland's President in 1990, being succeeded by Wałęsa in December. Dissolution of the PZPR Starting from January 1990, the collapse of the PZPR became inevitable. All over the country, public occupations of the party buildings started in order to prevent stealing the party's possessions and destroying or taking the archives. On 29 January 1990, XI Congress was held, which was supposed to recreate the party. Finally, the PZPR dissolved, and some of its members decided to establish two new social-democratic parties. They got over $1 million from the Communist Party of the Soviet Union known as the Moscow loan. The former activists of the PZPR established the Social Democracy of the Republic of Poland (in Polish: Socjaldemokracja Rzeczpospolitej Polskiej, SdRP), of which the main organizers were Leszek Miller and Mieczysław Rakowski. The SdRP was supposed (among other things) to take over all rights and duties of the PZPR, and help to divide out the property. Up to the end of the 1980s, it had considerable incomes mainly from managed properties and from the RSW company ‘Press- Book-Traffic’, which in turn had special tax concessions. During this period, the income from membership fees constituted only 30% of the PZPR's revenues. After the dissolution of the Polish United Workers' Party and the establishment of the SdRP, the rest of the activists formed the Social Democratic Union of the Republic of Poland (USdRP), which changed its name to the Polish Social Democratic Union, and The 8th July