check for given condition
if ( ( int ( length / breadth ) + int ( breadth / length ) ) > ( int ( arr_pairs [ i ] / arr_pairs [ i - 1 ] ) + int ( arr_pairs [ i - 1 ] / arr_pairs [ i ] ) ) ) : NEW_LINE INDENT length = arr_pairs [ i ] NEW_LINE breadth = arr_pairs [ i - 1 ] NEW_LINE DEDENT