print the flights separated in an array