Ship passing through locks