Solve UVa 869 - Airline Comparison.