Morse with exceptions

Sign in to test your solution.