Input (grade 12): Independence was restored in 1813 and on August 4, 1815 the Valais finally entered the Swiss confederation as a canton.
Output (grade 12): Valais became independent again in 1813 and on August 4, 1815 decided to join the Swiss confederation as a canton (state).