Transit....

I wouldn’t take the risk. 5 hours is a bit too short and you might miss your onward flight.