when you leave a country you must first check in with the airline to get your boarding pass. If there are a lot of people you must queue. then you go through departure lounge,where they check you travel documents and then to the immigration to wait for your flight