first Socialist president