Input (grade 8): The condition attached to the construction was that the Devil would get the soul of the first to pass over the bridge.
Output (grade 6): The condition attached was that the devil should get the soul of the first to pass over the bridge.