When a baby is born mid-flight, the immediate priority is the medical safety of the mother and child. Cabin crew are trained in basic first aid, and they will immediately call for any medical professionals on board (doctors, nurses, or EMTs) to assist. The captain will typically declare a medical emergency and may choose to divert the aircraft to the nearest suitable airport with medical facilities. Regarding the "legal" aspects, the baby's citizenship is the most complex part. It is generally determined by one of three factors: Jus sanguinis (right of blood), where the baby takes the parents' citizenship; Jus soli (right of soil), where the baby takes the citizenship of the country whose airspace they were in; or the country where the aircraft is registered. Contrary to popular myth, being born on a plane does not usually grant "free flights for life," though some airlines (like Polar Air or Shorthaul carriers in the past) have occasionally granted such gifts for publicity. The birth is officially recorded in the flight log, and the "place of birth" on the birth certificate is often listed as the latitude and longitude of the aircraft at the time of delivery.