How may 50 cities be connected by the least possible number of airlines so that from any city one could get to any other by changing airplanes not more than once (i.e., using two planes)? Please provide the number of airlines needed.

Let's think step by step and output the final answer within \boxed{}.
user