Kubica leaves hospital after surgery