They also "accepted" Gorbachev's resignation