Input (grade 13): However, independence was temporarily interrupted on 9 April 1940 until 8 May 1945, when Norway was occupied by Nazi Germany.
Output (grade 8): Norway tried to stay neutral in World War II, but was occupied by German forces from 9 April 1940 to 8 May 1945.