what president was after andrew johnson?