Input (grade 12): James Ramsay MacDonald (12 October 1866 9 November 1937) was a British politician and twice Prime Minister of the United Kingdom.
Output (grade 11): James Ramsay MacDonald (12 October 1866 9 November 1937) was a British politician and Prime Minister of the United Kingdom three times.