Input (grade 12): Mohammed Zahir Shah (15 October 1914 23 July 2007) was the last King (Shah) of Afghanistan, reigning for four decades, from 1933 until he was ousted by a coup in 1973.
Output (grade 9): Mohammed Zahir Shah (16 October 1914 23 July 2007) was the last King (Shah) of Afghanistan, reigning for four decades, from 1933 to 1973.