Input (grade 3): He served as Prime Minister from 1940 to 1945 and again from 1951 to 1955.
Output (grade 5): In 1951 he became Prime Minister again. In 1955 he retired from being Prime Minister.