When you leave a conutry you must first check-in with the ailine to get your boarding pass.If there are a lot of people you must queue Then you go through immigration,where they check travel documcnts and the departure lounge to wait for your flight.