%% first row f_c,B_c,T_c  means: f_c number of features, 
%%                               B_c number of binary constraints, 
%%                               T_c which constraints from [>,<,<>]
%% second row f_u,p_u,w   means: f_u number of featurs selected random from f_c
%%                               p_u numberof user constraints between pairs selected from f_u
%%                               w   the range of the weights

%% There are 10 random tests of each type - each one starts from a different random cataloge

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%%  test(id,(f_c,B_c,T_c),(f_u,p_u,w),(F,C,U,W_F,W_U)).
%% 
%% for each test we have
%% id (from 1 to 10)
%% (f_c,B_c,T_c)
%% (f_u,p_u,w) 
%% F   f_u elements from 1...f_c
%% C   projection of B_c pairs onto on F 
%% U   p_u user constraints
%% W_F given as pairs 
%% W_U given as pairs

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%% 50, 250, [<, >]
%% 10, 5, 4

test(1, (50, 250, [<, >]), (10, 5, 4), ([33, 21, 25, 32, 19, 27, 42, 13, 2, 50], [33>42, 21>33, 21>32, 25>33, 25>32, 42>50, 13>27], [19>2, 33<32, 21>25, 32<2, 33>19], [ (33, 1), (21, 2), (25, 1), (32, 3), (19, 3), (27, 3), (42, 2), (13, 2), (2, 1), (50, 3)], [ (19>2, 3), (33<32, 2), (21>25, 2), (32<2, 3), (33>19, 2)])).

test(2, (50, 250, [<, >]), (10, 5, 4), ([16, 22, 8, 49, 6, 33, 38, 47, 30, 15], [16>47, 6>49, 33>49], [49<47, 47<30, 6>47, 8<15, 22<6], [ (16, 1), (22, 3), (8, 4), (49, 3), (6, 3), (33, 3), (38, 2), (47, 2), (30, 4), (15, 1)], [ (49<47, 2), (47<30, 3), (6>47, 4), (8<15, 2), (22<6, 3)])).

test(3, (50, 250, [<, >]), (10, 5, 4), ([8, 27, 16, 10, 49, 5, 4, 31, 29, 17], [27>31, 10>16, 10>31, 5>27, 5>49], [8<27, 27<10, 10>17, 27<29, 27>31], [ (8, 3), (27, 4), (16, 1), (10, 3), (49, 1), (5, 4), (4, 3), (31, 3), (29, 4), (17, 2)], [ (8<27, 1), (27<10, 3), (10>17, 4), (27<29, 3), (27>31, 2)])).

test(4, (50, 250, [<, >]), (10, 5, 4), ([13, 36, 15, 42, 48, 50, 38, 40, 7, 9], [42>48, 38>40], [42>48, 13<15, 40>7, 13<38, 15<50], [ (13, 3), (36, 1), (15, 4), (42, 1), (48, 4), (50, 4), (38, 4), (40, 2), (7, 4), (9, 4)], [ (42>48, 4), (13<15, 4), (40>7, 2), (13<38, 2), (15<50, 1)])).

test(5, (50, 250, [<, >]), (10, 5, 4), ([5, 47, 38, 19, 13, 35, 37, 40, 22, 24], [5>24, 19>38], [13>37, 5<13, 5<37, 35<40, 19<24], [ (5, 1), (47, 4), (38, 2), (19, 3), (13, 1), (35, 1), (37, 1), (40, 3), (22, 2), (24, 3)], [ (13>37, 1), (5<13, 3), (5<37, 4), (35<40, 1), (19<24, 4)])).

test(6, (50, 250, [<, >]), (10, 5, 4), ([39, 2, 42, 22, 31, 4, 3, 49, 10, 13], [2>42, 2>3, 4>31, 3>42], [39<22, 2<10, 22>13, 22<4, 2<3], [ (39, 3), (2, 1), (42, 1), (22, 4), (31, 4), (4, 4), (3, 3), (49, 3), (10, 1), (13, 3)], [ (39<22, 2), (2<10, 1), (22>13, 2), (22<4, 1), (2<3, 1)])).

test(7, (50, 250, [<, >]), (10, 5, 4), ([5, 15, 40, 24, 49, 1, 13, 12, 14, 20], [40>49, 12>40, 14>20, 20>49], [5>40, 40>20, 5<13, 5<49, 24>1], [ (5, 1), (15, 2), (40, 1), (24, 2), (49, 4), (1, 4), (13, 1), (12, 1), (14, 4), (20, 2)], [ (5>40, 4), (40>20, 2), (5<13, 2), (5<49, 4), (24>1, 1)])).

test(8, (50, 250, [<, >]), (10, 5, 4), ([6, 2, 40, 8, 35, 14, 48, 27, 19, 11], [6>40, 2>48, 8>35, 8>48, 19>27], [48<27, 48<19, 40>27, 14>27, 2<8], [ (6, 2), (2, 3), (40, 2), (8, 2), (35, 2), (14, 1), (48, 3), (27, 3), (19, 1), (11, 2)], [ (48<27, 4), (48<19, 2), (40>27, 3), (14>27, 3), (2<8, 1)])).

test(9, (50, 250, [<, >]), (10, 5, 4), ([23, 36, 37, 50, 48, 17, 43, 19, 5, 11], [23>50, 23>43, 37>43, 19>23, 11>43], [36>37, 50<17, 48>5, 17>11, 50>43], [ (23, 1), (36, 2), (37, 2), (50, 1), (48, 3), (17, 2), (43, 1), (19, 4), (5, 4), (11, 4)], [ (36>37, 4), (50<17, 4), (48>5, 2), (17>11, 3), (50>43, 1)])).

test(10, (50, 250, [<, >]), (10, 5, 4), ([13, 23, 7, 15, 46, 2, 9, 41, 24, 8], [24>46], [7<46, 13<15, 13>46, 23>46, 9>24], [ (13, 1), (23, 3), (7, 4), (15, 4), (46, 4), (2, 3), (9, 2), (41, 3), (24, 1), (8, 1)], [ (7<46, 1), (13<15, 3), (13>46, 1), (23>46, 4), (9>24, 2)])).

%% 50, 250, [<, >]
%% 15, 20, 4

test(1, (50, 250, [<, >]), (15, 20, 4), ([47, 48, 35, 9, 3, 2, 33, 10, 39, 1, 28, 11, 22, 41, 23], [9>28, 10>47, 10>11, 1>33, 28>35, 22>41], [28<11, 3<2, 48<22, 33>41, 10<39, 35<11, 47>3, 2>11, 9<10, 11>41, 3>39, 39<1, 47>10, 10<28, 2<10, 47<39, 33>10, 28<23, 48<41, 2<22], [ (47, 2), (48, 3), (35, 1), (9, 4), (3, 3), (2, 4), (33, 4), (10, 2), (39, 3), (1, 3), (28, 4), (11, 3), (22, 1), (41, 2), (23, 3)], [ (28<11, 2), (3<2, 3), (48<22, 2), (33>41, 1), (10<39, 3), (35<11, 3), (47>3, 1), (2>11, 4), (9<10, 3), (11>41, 3), (3>39, 2), (39<1, 3), (47>10, 4), (10<28, 4), (2<10, 3), (47<39, 2), (33>10, 2), (28<23, 1), (48<41, 2), (2<22, 3)])).

test(2, (50, 250, [<, >]), (15, 20, 4), ([30, 35, 24, 9, 39, 4, 46, 42, 41, 37, 5, 15, 11, 13, 18], [24>41, 9>30, 37>39, 37>46, 5>39, 5>41, 15>37, 11>24, 18>39, 18>41], [5>15, 35>11, 42<15, 41>13, 46>5, 4<13, 41>5, 24<5, 37<13, 30>4, 4<37, 30>24, 39>11, 46<13, 9>4, 9<37, 41<18, 24>13, 39>41, 5>11], [ (30, 4), (35, 2), (24, 4), (9, 1), (39, 1), (4, 2), (46, 3), (42, 4), (41, 2), (37, 4), (5, 1), (15, 4), (11, 1), (13, 2), (18, 1)], [ (5>15, 4), (35>11, 3), (42<15, 4), (41>13, 2), (46>5, 4), (4<13, 3), (41>5, 2), (24<5, 3), (37<13, 1), (30>4, 3), (4<37, 3), (30>24, 4), (39>11, 2), (46<13, 3), (9>4, 4), (9<37, 1), (41<18, 4), (24>13, 4), (39>41, 2), (5>11, 2)])).

test(3, (50, 250, [<, >]), (15, 20, 4), ([47, 46, 30, 43, 48, 32, 15, 35, 24, 36, 41, 17, 28, 5, 14], [30>48, 30>36, 24>47, 24>30, 24>43, 36>47, 41>43, 17>35, 17>28, 14>48, 14>32, 14>28], [30<43, 46<32, 46<24, 43>24, 32<24, 15>36, 48>32, 46<36, 30>48, 43>15, 24<28, 17>5, 48<28, 36>28, 47<28, 35>36, 35<14, 15<28, 46<48, 48>15], [ (47, 3), (46, 4), (30, 3), (43, 3), (48, 4), (32, 4), (15, 4), (35, 4), (24, 2), (36, 3), (41, 1), (17, 1), (28, 4), (5, 3), (14, 2)], [ (30<43, 1), (46<32, 1), (46<24, 1), (43>24, 3), (32<24, 2), (15>36, 2), (48>32, 2), (46<36, 4), (30>48, 1), (43>15, 3), (24<28, 1), (17>5, 1), (48<28, 4), (36>28, 1), (47<28, 3), (35>36, 4), (35<14, 1), (15<28, 3), (46<48, 4), (48>15, 3)])).

test(4, (50, 250, [<, >]), (15, 20, 4), ([1, 22, 47, 27, 3, 45, 23, 19, 6, 17, 48, 35, 10, 39, 4], [1>23, 1>6, 1>10, 1>39, 6>27, 17>47, 10>22, 10>48, 39>48, 4>6], [27<10, 47<35, 47<4, 19<17, 1>10, 23>10, 17>35, 1<19, 10<39, 45>39, 3<39, 45<4, 47>19, 22<23, 1>23, 47<3, 27>6, 48>4, 27<19, 1<27], [ (1, 2), (22, 3), (47, 3), (27, 2), (3, 4), (45, 3), (23, 3), (19, 4), (6, 3), (17, 2), (48, 1), (35, 1), (10, 1), (39, 4), (4, 2)], [ (27<10, 4), (47<35, 4), (47<4, 4), (19<17, 3), (1>10, 1), (23>10, 4), (17>35, 1), (1<19, 3), (10<39, 1), (45>39, 2), (3<39, 4), (45<4, 4), (47>19, 3), (22<23, 4), (1>23, 4), (47<3, 2), (27>6, 1), (48>4, 4), (27<19, 3), (1<27, 1)])).

test(5, (50, 250, [<, >]), (15, 20, 4), ([48, 32, 42, 35, 26, 4, 5, 27, 43, 10, 44, 7, 28, 11, 30], [42>48, 26>28, 26>30, 5>42, 5>35, 5>10, 5>44, 5>30, 27>32, 10>48, 11>43], [42>44, 42>26, 32>30, 10<11, 44<7, 28<11, 43>7, 27<7, 10<7, 27>28, 5<28, 32<26, 5<27, 43<28, 5<44, 5<10, 48>27, 32<27, 7<30, 5<30], [ (48, 1), (32, 2), (42, 1), (35, 4), (26, 1), (4, 3), (5, 3), (27, 4), (43, 1), (10, 4), (44, 1), (7, 3), (28, 2), (11, 1), (30, 2)], [ (42>44, 1), (42>26, 1), (32>30, 1), (10<11, 3), (44<7, 3), (28<11, 4), (43>7, 3), (27<7, 1), (10<7, 2), (27>28, 1), (5<28, 2), (32<26, 3), (5<27, 3), (43<28, 1), (5<44, 4), (5<10, 2), (48>27, 3), (32<27, 1), (7<30, 3), (5<30, 2)])).

test(6, (50, 250, [<, >]), (15, 20, 4), ([26, 47, 20, 32, 33, 13, 25, 7, 31, 38, 23, 8, 44, 36, 11], [13>36, 25>44, 7>47, 7>25, 7>38, 8>44, 36>44, 11>33], [33>13, 33>36, 26>33, 13>25, 26<25, 13>38, 25<11, 20>8, 38<36, 7<8, 20>36, 32>7, 20<25, 13<11, 44>11, 33<38, 32<25, 33>44, 47<11, 25<23], [ (26, 4), (47, 1), (20, 4), (32, 3), (33, 3), (13, 1), (25, 3), (7, 4), (31, 3), (38, 4), (23, 3), (8, 1), (44, 2), (36, 4), (11, 4)], [ (33>13, 4), (33>36, 4), (26>33, 2), (13>25, 3), (26<25, 4), (13>38, 3), (25<11, 2), (20>8, 1), (38<36, 4), (7<8, 2), (20>36, 1), (32>7, 1), (20<25, 4), (13<11, 2), (44>11, 1), (33<38, 1), (32<25, 3), (33>44, 1), (47<11, 2), (25<23, 3)])).

test(7, (50, 250, [<, >]), (15, 20, 4), ([34, 50, 6, 7, 16, 19, 26, 27, 39, 49, 18, 42, 8, 41, 3], [6>8, 16>34, 16>50, 16>39, 42>50, 8>26, 8>27, 8>39, 8>49, 3>50, 3>16], [49>3, 16<49, 16<27, 27>3, 34>3, 6>3, 7>8, 39<42, 19>27, 16<42, 42>8, 16>39, 19>26, 49<18, 39>18, 8>41, 50<19, 50>8, 34<50, 7<27], [ (34, 3), (50, 2), (6, 2), (7, 3), (16, 2), (19, 2), (26, 2), (27, 3), (39, 3), (49, 3), (18, 2), (42, 2), (8, 3), (41, 1), (3, 3)], [ (49>3, 1), (16<49, 4), (16<27, 2), (27>3, 4), (34>3, 4), (6>3, 4), (7>8, 3), (39<42, 2), (19>27, 3), (16<42, 3), (42>8, 1), (16>39, 3), (19>26, 2), (49<18, 1), (39>18, 2), (8>41, 4), (50<19, 4), (50>8, 4), (34<50, 3), (7<27, 1)])).

test(8, (50, 250, [<, >]), (15, 20, 4), ([35, 18, 10, 7, 1, 41, 34, 27, 43, 46, 22, 17, 21, 39, 8], [35>39, 18>35, 18>43, 7>35, 34>46, 22>27, 17>39, 21>43, 8>46], [41<34, 35<46, 34>39, 41>27, 17<8, 43>8, 27>39, 46>17, 27<8, 18>17, 18>22, 10>17, 43>21, 10<41, 7>21, 10>1, 7>1, 7<46, 1<34, 1<39], [ (35, 2), (18, 1), (10, 4), (7, 2), (1, 2), (41, 3), (34, 3), (27, 3), (43, 3), (46, 1), (22, 1), (17, 3), (21, 4), (39, 4), (8, 3)], [ (41<34, 1), (35<46, 3), (34>39, 3), (41>27, 3), (17<8, 2), (43>8, 2), (27>39, 4), (46>17, 1), (27<8, 1), (18>17, 2), (18>22, 4), (10>17, 1), (43>21, 1), (10<41, 1), (7>21, 3), (10>1, 1), (7>1, 3), (7<46, 1), (1<34, 1), (1<39, 1)])).

test(9, (50, 250, [<, >]), (15, 20, 4), ([21, 22, 45, 26, 40, 29, 19, 36, 44, 30, 5, 32, 39, 1, 20], [21>36, 29>36, 19>22, 19>36, 19>32, 19>39, 39>40, 1>45, 1>36], [29<32, 22>5, 22>36, 32<20, 29<30, 21<19, 22>44, 22<39, 22<20, 30>32, 44<32, 40<5, 19<1, 21>44, 30>5, 29<5, 19>39, 21<22, 40<36, 22<29], [ (21, 1), (22, 4), (45, 1), (26, 2), (40, 2), (29, 4), (19, 4), (36, 4), (44, 1), (30, 2), (5, 3), (32, 3), (39, 2), (1, 2), (20, 3)], [ (29<32, 1), (22>5, 1), (22>36, 2), (32<20, 2), (29<30, 1), (21<19, 2), (22>44, 3), (22<39, 3), (22<20, 2), (30>32, 4), (44<32, 2), (40<5, 3), (19<1, 4), (21>44, 2), (30>5, 4), (29<5, 1), (19>39, 3), (21<22, 3), (40<36, 1), (22<29, 3)])).

test(10, (50, 250, [<, >]), (15, 20, 4), ([47, 1, 48, 15, 44, 38, 28, 33, 35, 30, 20, 8, 4, 40, 12], [1>44, 15>47, 15>48, 15>33, 44>47, 38>44, 33>38, 35>40, 30>44, 30>38, 20>38, 20>28, 8>20, 4>47, 4>33, 12>47, 12>48, 12>33], [38>35, 1<12, 48>15, 33>20, 44<30, 44<40, 35>8, 35<20, 40>12, 47<28, 44<4, 47>38, 1>20, 38>20, 30<4, 28<40, 8<12, 44<12, 33>12, 15<35], [ (47, 3), (1, 1), (48, 4), (15, 1), (44, 4), (38, 2), (28, 3), (33, 2), (35, 3), (30, 2), (20, 3), (8, 2), (4, 1), (40, 1), (12, 4)], [ (38>35, 1), (1<12, 4), (48>15, 1), (33>20, 2), (44<30, 2), (44<40, 4), (35>8, 4), (35<20, 3), (40>12, 3), (47<28, 3), (44<4, 2), (47>38, 4), (1>20, 4), (38>20, 3), (30<4, 4), (28<40, 1), (8<12, 3), (44<12, 1), (33>12, 3), (15<35, 3)])).

%% 50, 250, [<, >]
%% 20, 10, 4

test(1, (50, 250, [<, >]), (20, 10, 4), ([10, 50, 31, 19, 44, 36, 27, 47, 6, 25, 33, 3, 42, 29, 14, 46, 9, 18, 40, 8], [10>44, 10>47, 31>44, 31>42, 6>27, 6>18, 25>42, 25>46, 33>40, 3>19, 3>44, 3>46, 14>18, 46>47, 9>19, 9>36, 9>27, 9>25, 9>42, 9>18, 18>19], [33>46, 6<18, 50>46, 44>42, 31>33, 19<29, 31<46, 19>44, 46>18, 47>8], [ (10, 3), (50, 3), (31, 4), (19, 2), (44, 2), (36, 4), (27, 3), (47, 3), (6, 1), (25, 1), (33, 1), (3, 3), (42, 4), (29, 2), (14, 2), (46, 4), (9, 4), (18, 1), (40, 2), (8, 2)], [ (33>46, 4), (6<18, 1), (50>46, 3), (44>42, 2), (31>33, 4), (19<29, 2), (31<46, 3), (19>44, 1), (46>18, 4), (47>8, 3)])).

test(2, (50, 250, [<, >]), (20, 10, 4), ([30, 21, 31, 14, 28, 27, 16, 1, 7, 20, 10, 43, 17, 33, 44, 41, 8, 46, 3, 12], [21>44, 21>46, 31>41, 31>46, 14>41, 28>41, 27>44, 16>21, 16>31, 16>41, 1>7, 1>41, 7>8, 20>30, 20>33, 20>44, 10>46, 10>12, 3>28, 3>20, 3>10, 3>43], [28<16, 43>33, 16<12, 44>3, 21<44, 30<14, 31>10, 21>10, 31<41, 27>1], [ (30, 4), (21, 4), (31, 2), (14, 1), (28, 1), (27, 1), (16, 1), (1, 1), (7, 4), (20, 2), (10, 4), (43, 4), (17, 2), (33, 1), (44, 3), (41, 1), (8, 3), (46, 3), (3, 4), (12, 2)], [ (28<16, 4), (43>33, 4), (16<12, 2), (44>3, 2), (21<44, 3), (30<14, 1), (31>10, 2), (21>10, 1), (31<41, 4), (27>1, 2)])).

test(3, (50, 250, [<, >]), (20, 10, 4), ([41, 37, 32, 7, 40, 23, 45, 28, 9, 47, 21, 30, 22, 19, 31, 2, 8, 36, 24, 11], [37>41, 7>47, 40>41, 28>40, 9>47, 21>36, 30>47, 19>41, 31>32, 2>28, 8>40, 24>36, 11>22], [19<8, 31<2, 22>24, 40<36, 2>24, 40<24, 7<40, 37<28, 41<9, 40>8], [ (41, 3), (37, 4), (32, 4), (7, 2), (40, 1), (23, 1), (45, 1), (28, 3), (9, 1), (47, 2), (21, 2), (30, 2), (22, 4), (19, 1), (31, 3), (2, 2), (8, 2), (36, 2), (24, 2), (11, 4)], [ (19<8, 2), (31<2, 4), (22>24, 2), (40<36, 1), (2>24, 2), (40<24, 1), (7<40, 2), (37<28, 4), (41<9, 4), (40>8, 4)])).

test(4, (50, 250, [<, >]), (20, 10, 4), ([10, 46, 4, 22, 18, 25, 43, 12, 33, 45, 47, 13, 17, 21, 32, 40, 42, 44, 26, 31], [10>18, 10>45, 4>46, 4>22, 4>33, 4>47, 22>43, 18>46, 25>45, 13>45, 13>17, 13>31, 21>32, 32>47, 42>43, 42>45, 31>40], [33<17, 32>26, 43>32, 12>13, 46<40, 13<42, 10<42, 25>17, 25>26, 25>31], [ (10, 1), (46, 3), (4, 4), (22, 4), (18, 1), (25, 3), (43, 4), (12, 4), (33, 4), (45, 2), (47, 1), (13, 2), (17, 3), (21, 4), (32, 2), (40, 2), (42, 2), (44, 2), (26, 2), (31, 4)], [ (33<17, 3), (32>26, 2), (43>32, 4), (12>13, 1), (46<40, 1), (13<42, 3), (10<42, 4), (25>17, 2), (25>26, 4), (25>31, 1)])).

test(5, (50, 250, [<, >]), (20, 10, 4), ([47, 43, 30, 21, 45, 12, 6, 46, 25, 50, 49, 26, 40, 29, 7, 37, 24, 35, 17, 9], [47>50, 30>43, 21>37, 21>24, 12>43, 12>25, 12>37, 6>45, 6>46, 25>35, 26>47, 40>45, 7>50, 37>47, 24>26, 35>46, 9>43, 9>45], [12>7, 29<17, 7>17, 50<26, 12>50, 30<12, 7<24, 6<40, 37>17, 6>9], [ (47, 3), (43, 3), (30, 4), (21, 2), (45, 2), (12, 1), (6, 1), (46, 1), (25, 2), (50, 1), (49, 3), (26, 1), (40, 2), (29, 4), (7, 2), (37, 2), (24, 3), (35, 1), (17, 2), (9, 2)], [ (12>7, 4), (29<17, 1), (7>17, 3), (50<26, 2), (12>50, 2), (30<12, 4), (7<24, 2), (6<40, 1), (37>17, 2), (6>9, 3)])).

test(6, (50, 250, [<, >]), (20, 10, 4), ([36, 18, 29, 9, 19, 25, 12, 46, 27, 21, 6, 43, 33, 8, 26, 14, 50, 5, 39, 23], [29>43, 29>33, 9>23, 19>29, 19>39, 25>43, 25>26, 12>43, 27>43, 27>50, 27>39, 6>29, 6>9, 26>46, 14>29, 14>46, 14>21, 5>27, 5>8, 5>50, 39>46], [36>5, 19<5, 43>50, 6<50, 27<23, 43>39, 25<23, 36<43, 26>50, 36<8], [ (36, 3), (18, 3), (29, 3), (9, 2), (19, 1), (25, 1), (12, 3), (46, 4), (27, 4), (21, 1), (6, 1), (43, 1), (33, 1), (8, 2), (26, 1), (14, 3), (50, 4), (5, 2), (39, 4), (23, 1)], [ (36>5, 4), (19<5, 1), (43>50, 2), (6<50, 2), (27<23, 2), (43>39, 4), (25<23, 4), (36<43, 4), (26>50, 1), (36<8, 2)])).

test(7, (50, 250, [<, >]), (20, 10, 4), ([2, 16, 34, 32, 26, 40, 30, 47, 11, 35, 27, 31, 18, 17, 13, 46, 1, 3, 42, 33], [2>40, 2>3, 16>30, 16>31, 16>17, 16>33, 26>46, 11>31, 27>40, 17>18, 17>33, 13>46, 1>40, 3>34, 3>32, 3>30, 3>17], [35>46, 47<11, 26>11, 27>42, 32>47, 32>31, 2<32, 2>31, 30>31, 32>40], [ (2, 3), (16, 2), (34, 2), (32, 4), (26, 4), (40, 1), (30, 1), (47, 3), (11, 1), (35, 4), (27, 1), (31, 4), (18, 1), (17, 2), (13, 4), (46, 1), (1, 4), (3, 3), (42, 3), (33, 1)], [ (35>46, 3), (47<11, 3), (26>11, 4), (27>42, 4), (32>47, 1), (32>31, 4), (2<32, 1), (2>31, 2), (30>31, 3), (32>40, 3)])).

test(8, (50, 250, [<, >]), (20, 10, 4), ([25, 41, 17, 33, 13, 5, 47, 10, 23, 27, 26, 4, 36, 34, 48, 8, 32, 49, 7, 20], [25>47, 25>27, 25>26, 25>49, 17>25, 17>41, 17>32, 17>20, 33>49, 13>47, 13>26, 5>10, 5>48, 5>32, 47>48, 10>34, 23>47, 23>48, 4>32, 34>48, 7>25, 20>27], [17>20, 41<27, 47<4, 13>5, 47<32, 4<32, 41<26, 27<32, 10>4, 10>26], [ (25, 4), (41, 1), (17, 3), (33, 1), (13, 2), (5, 4), (47, 4), (10, 1), (23, 3), (27, 1), (26, 2), (4, 1), (36, 2), (34, 4), (48, 3), (8, 1), (32, 2), (49, 3), (7, 3), (20, 1)], [ (17>20, 3), (41<27, 4), (47<4, 1), (13>5, 1), (47<32, 2), (4<32, 3), (41<26, 4), (27<32, 4), (10>4, 2), (10>26, 1)])).

test(9, (50, 250, [<, >]), (20, 10, 4), ([13, 16, 11, 34, 38, 2, 21, 43, 50, 26, 41, 37, 28, 18, 42, 24, 8, 12, 27, 19], [13>43, 16>34, 16>42, 11>43, 11>26, 34>41, 2>28, 2>19, 26>43, 26>50, 26>42, 28>38, 28>37, 12>37, 12>42, 27>28], [26<8, 43>24, 21>8, 13<42, 13>24, 21<37, 16>26, 11>8, 16<43, 21<27], [ (13, 1), (16, 2), (11, 1), (34, 1), (38, 4), (2, 3), (21, 2), (43, 3), (50, 3), (26, 4), (41, 2), (37, 2), (28, 3), (18, 1), (42, 3), (24, 1), (8, 2), (12, 1), (27, 4), (19, 3)], [ (26<8, 4), (43>24, 3), (21>8, 3), (13<42, 4), (13>24, 3), (21<37, 4), (16>26, 4), (11>8, 4), (16<43, 2), (21<27, 2)])).

test(10, (50, 250, [<, >]), (20, 10, 4), ([35, 47, 19, 39, 20, 29, 23, 11, 33, 24, 8, 3, 44, 50, 7, 9, 2, 5, 48, 38], [19>47, 19>29, 19>44, 19>50, 19>48, 39>44, 29>33, 11>33, 33>48, 24>50, 3>35, 3>44, 7>11, 7>50, 7>9, 9>11, 9>33, 9>44, 2>47, 5>33, 5>48, 5>38], [47<39, 47>2, 47>7, 7<5, 20<9, 23<5, 35>8, 29>48, 19<7, 24>3], [ (35, 4), (47, 2), (19, 1), (39, 4), (20, 2), (29, 2), (23, 1), (11, 1), (33, 1), (24, 2), (8, 2), (3, 1), (44, 1), (50, 3), (7, 1), (9, 3), (2, 1), (5, 1), (48, 4), (38, 3)], [ (47<39, 2), (47>2, 1), (47>7, 2), (7<5, 2), (20<9, 1), (23<5, 1), (35>8, 2), (29>48, 4), (19<7, 1), (24>3, 3)])).

%% 50, 250, [<, >]
%% 25, 40, 4

test(1, (50, 250, [<, >]), (25, 40, 4), ([4, 28, 6, 3, 1, 49, 35, 9, 21, 32, 20, 30, 25, 18, 23, 2, 12, 43, 26, 34, 8, 11, 7, 10, 46], [4>12, 4>46, 6>11, 3>6, 3>20, 3>30, 3>23, 1>30, 1>18, 1>10, 35>49, 9>18, 9>34, 21>32, 20>43, 25>30, 25>34, 18>34, 23>46, 2>4, 2>25, 43>49, 26>28, 26>34, 8>30, 8>46, 11>21, 7>11, 7>10, 10>49], [20>18, 49>7, 8>10, 25>18, 1<26, 4>21, 49>20, 32<2, 28>49, 32>11, 21<10, 3<43, 32<46, 6<2, 28>18, 1<21, 2<11, 3>30, 2<7, 4<9, 12>11, 18<43, 9<46, 28>10, 4>1, 30<26, 4>2, 28<25, 21>20, 21>30, 32>34, 6>43, 9<12, 30>7, 30>43, 49<34, 35<23, 4<6, 3<23, 4>46], [ (4, 1), (28, 1), (6, 2), (3, 4), (1, 3), (49, 4), (35, 4), (9, 1), (21, 2), (32, 2), (20, 2), (30, 3), (25, 2), (18, 3), (23, 2), (2, 3), (12, 3), (43, 2), (26, 3), (34, 3), (8, 2), (11, 3), (7, 3), (10, 3), (46, 1)], [ (20>18, 3), (49>7, 3), (8>10, 1), (25>18, 1), (1<26, 1), (4>21, 1), (49>20, 3), (32<2, 1), (28>49, 3), (32>11, 2), (21<10, 3), (3<43, 3), (32<46, 4), (6<2, 4), (28>18, 1), (1<21, 3), (2<11, 1), (3>30, 1), (2<7, 4), (4<9, 1), (12>11, 2), (18<43, 2), (9<46, 4), (28>10, 4), (4>1, 4), (30<26, 3), (4>2, 4), (28<25, 3), (21>20, 2), (21>30, 1), (32>34, 2), (6>43, 1), (9<12, 3), (30>7, 4), (30>43, 1), (49<34, 1), (35<23, 4), (4<6, 2), (3<23, 3), (4>46, 2)])).

test(2, (50, 250, [<, >]), (25, 40, 4), ([45, 28, 23, 44, 50, 41, 13, 26, 46, 33, 3, 38, 10, 2, 49, 48, 32, 39, 40, 24, 19, 35, 42, 1, 12], [28>46, 28>38, 23>28, 44>50, 44>46, 41>50, 41>49, 13>45, 13>23, 13>38, 13>40, 13>19, 13>42, 26>32, 33>46, 3>45, 3>46, 3>38, 3>39, 3>19, 38>50, 38>40, 10>45, 10>50, 10>46, 10>32, 2>19, 32>35, 39>42, 24>32, 19>50, 19>46, 19>39, 19>40, 35>49, 1>46, 1>2, 1>48, 12>48, 12>40], [3>12, 2<19, 28<38, 13<12, 38>35, 19<42, 13>42, 23>39, 48<39, 41<19, 32<42, 28<41, 46>19, 13>32, 45>39, 41<38, 44>10, 46>24, 13<49, 49<12, 26>1, 49<1, 50>40, 41>39, 44<46, 48>19, 44<33, 35<1, 23<35, 10>24, 44>32, 33>48, 39>40, 50>10, 41<13, 41>33, 28>35, 2<42, 50<13, 2<12], [ (45, 4), (28, 1), (23, 4), (44, 4), (50, 4), (41, 1), (13, 2), (26, 3), (46, 2), (33, 2), (3, 3), (38, 3), (10, 4), (2, 1), (49, 3), (48, 2), (32, 1), (39, 1), (40, 4), (24, 1), (19, 3), (35, 2), (42, 4), (1, 2), (12, 2)], [ (3>12, 3), (2<19, 2), (28<38, 2), (13<12, 4), (38>35, 2), (19<42, 2), (13>42, 4), (23>39, 4), (48<39, 3), (41<19, 4), (32<42, 1), (28<41, 3), (46>19, 2), (13>32, 2), (45>39, 2), (41<38, 2), (44>10, 2), (46>24, 1), (13<49, 1), (49<12, 4), (26>1, 2), (49<1, 4), (50>40, 4), (41>39, 1), (44<46, 1), (48>19, 4), (44<33, 1), (35<1, 3), (23<35, 3), (10>24, 1), (44>32, 2), (33>48, 4), (39>40, 1), (50>10, 2), (41<13, 4), (41>33, 2), (28>35, 2), (2<42, 2), (50<13, 3), (2<12, 2)])).

test(3, (50, 250, [<, >]), (25, 40, 4), ([17, 9, 47, 50, 20, 38, 6, 24, 34, 25, 40, 46, 44, 37, 23, 8, 7, 36, 28, 30, 10, 43, 1, 49, 14], [9>47, 9>23, 20>40, 6>20, 6>25, 6>44, 24>40, 34>37, 25>47, 25>38, 25>34, 8>23, 7>34, 7>28, 7>43, 7>49, 36>38, 36>43, 28>44, 30>37, 10>38, 10>40, 10>37, 43>46, 1>49, 14>44, 14>37], [24>25, 34<30, 7<49, 50>43, 9>6, 24<40, 20>10, 17<7, 6>34, 9<44, 28>14, 47<50, 44>8, 6>14, 7>36, 20>14, 24>28, 17>25, 17<8, 34<40, 25>1, 40<44, 8>7, 38>40, 6>46, 20<30, 17<40, 34>23, 40>23, 10>1, 44>36, 47>10, 6<24, 17>46, 7<14, 37>36, 8>14, 34<43, 36<10, 50<44], [ (17, 1), (9, 2), (47, 4), (50, 4), (20, 3), (38, 1), (6, 2), (24, 2), (34, 1), (25, 2), (40, 4), (46, 1), (44, 4), (37, 3), (23, 1), (8, 1), (7, 1), (36, 4), (28, 2), (30, 4), (10, 2), (43, 1), (1, 3), (49, 3), (14, 4)], [ (24>25, 2), (34<30, 4), (7<49, 1), (50>43, 3), (9>6, 3), (24<40, 3), (20>10, 3), (17<7, 1), (6>34, 3), (9<44, 1), (28>14, 3), (47<50, 1), (44>8, 1), (6>14, 4), (7>36, 3), (20>14, 3), (24>28, 1), (17>25, 2), (17<8, 1), (34<40, 3), (25>1, 2), (40<44, 3), (8>7, 3), (38>40, 2), (6>46, 1), (20<30, 3), (17<40, 4), (34>23, 1), (40>23, 3), (10>1, 3), (44>36, 2), (47>10, 4), (6<24, 2), (17>46, 2), (7<14, 4), (37>36, 2), (8>14, 4), (34<43, 1), (36<10, 2), (50<44, 4)])).

test(4, (50, 250, [<, >]), (25, 40, 4), ([25, 12, 5, 19, 1, 10, 21, 18, 8, 30, 49, 6, 41, 46, 35, 50, 34, 4, 7, 20, 17, 37, 32, 36, 26], [25>46, 12>25, 12>36, 5>8, 5>35, 5>32, 19>49, 1>25, 1>5, 1>30, 1>34, 1>17, 1>32, 10>18, 10>46, 21>26, 8>12, 8>30, 8>34, 6>10, 6>50, 6>7, 6>37, 41>49, 41>50, 34>36, 4>34, 4>7, 4>32, 7>34, 7>26, 20>30, 20>41, 20>34, 20>36, 17>50, 17>34, 32>41, 32>37, 26>41, 26>32], [25<21, 19<17, 25<36, 8<50, 49<46, 19<35, 6>20, 34<4, 21<35, 5<37, 49<32, 46>17, 18<35, 25<7, 6>36, 5<21, 25>34, 5<30, 19<34, 50>4, 1<10, 25>46, 12>21, 19>4, 1>49, 1>30, 18>49, 7>36, 35>17, 20<37, 49<34, 30<49, 5<8, 34>36, 18<32, 8<26, 17<32, 21>32, 4>17, 10>30], [ (25, 1), (12, 2), (5, 1), (19, 1), (1, 2), (10, 1), (21, 4), (18, 2), (8, 1), (30, 1), (49, 1), (6, 2), (41, 1), (46, 3), (35, 4), (50, 2), (34, 4), (4, 1), (7, 4), (20, 2), (17, 3), (37, 1), (32, 4), (36, 4), (26, 4)], [ (25<21, 4), (19<17, 4), (25<36, 1), (8<50, 4), (49<46, 1), (19<35, 2), (6>20, 2), (34<4, 1), (21<35, 4), (5<37, 2), (49<32, 1), (46>17, 2), (18<35, 2), (25<7, 2), (6>36, 4), (5<21, 4), (25>34, 4), (5<30, 4), (19<34, 3), (50>4, 2), (1<10, 1), (25>46, 1), (12>21, 3), (19>4, 3), (1>49, 4), (1>30, 3), (18>49, 4), (7>36, 4), (35>17, 1), (20<37, 1), (49<34, 1), (30<49, 4), (5<8, 2), (34>36, 4), (18<32, 2), (8<26, 3), (17<32, 4), (21>32, 4), (4>17, 3), (10>30, 1)])).

test(5, (50, 250, [<, >]), (25, 40, 4), ([32, 2, 23, 5, 13, 24, 27, 41, 12, 29, 31, 26, 37, 21, 6, 8, 11, 49, 7, 44, 30, 16, 19, 25, 9], [32>49, 2>23, 2>13, 2>27, 2>30, 5>32, 5>23, 5>19, 13>27, 13>31, 24>30, 41>49, 12>44, 29>30, 31>32, 21>49, 6>13, 6>12, 6>30, 6>25, 8>11, 8>44, 11>41, 11>44, 7>11, 7>25, 19>32, 19>24, 19>41, 25>29, 9>41, 9>44], [27>31, 23<26, 41<26, 12>31, 8>7, 2>44, 5<26, 32<13, 8<30, 31<11, 2>19, 27<30, 23>8, 32<29, 26<9, 29<11, 12<44, 23<21, 26>49, 8>19, 23<12, 23>27, 23<7, 32<12, 12>19, 44<30, 23<19, 13<6, 44>19, 6<7, 12<49, 5>12, 27<44, 12<11, 2<26, 32>23, 8>9, 27>7, 23<41, 11<44], [ (32, 2), (2, 4), (23, 2), (5, 2), (13, 4), (24, 1), (27, 1), (41, 2), (12, 3), (29, 3), (31, 3), (26, 3), (37, 3), (21, 4), (6, 3), (8, 4), (11, 2), (49, 4), (7, 2), (44, 4), (30, 1), (16, 2), (19, 1), (25, 3), (9, 2)], [ (27>31, 1), (23<26, 1), (41<26, 2), (12>31, 3), (8>7, 4), (2>44, 1), (5<26, 1), (32<13, 2), (8<30, 1), (31<11, 4), (2>19, 4), (27<30, 3), (23>8, 2), (32<29, 4), (26<9, 1), (29<11, 4), (12<44, 1), (23<21, 3), (26>49, 4), (8>19, 3), (23<12, 2), (23>27, 2), (23<7, 1), (32<12, 1), (12>19, 3), (44<30, 4), (23<19, 4), (13<6, 3), (44>19, 4), (6<7, 4), (12<49, 4), (5>12, 4), (27<44, 4), (12<11, 2), (2<26, 3), (32>23, 1), (8>9, 2), (27>7, 1), (23<41, 2), (11<44, 2)])).

test(6, (50, 250, [<, >]), (25, 40, 4), ([47, 14, 5, 41, 35, 39, 24, 10, 45, 4, 18, 32, 21, 27, 29, 20, 22, 50, 7, 19, 2, 31, 28, 13, 40], [14>39, 14>24, 14>32, 41>47, 35>41, 39>50, 24>47, 10>47, 10>39, 10>27, 10>29, 10>20, 4>35, 4>39, 4>18, 4>20, 4>7, 18>28, 21>47, 27>45, 27>40, 29>45, 29>32, 29>50, 20>39, 20>32, 22>31, 7>39, 2>21, 2>27, 31>39, 28>41, 13>20], [50>7, 18<2, 21>31, 47<40, 18<40, 5<19, 5<50, 5>28, 19<13, 24>13, 10<40, 14<27, 35<2, 32>50, 22>50, 4<20, 47<20, 47<29, 20<19, 19>40, 45<19, 7<40, 32<2, 41<27, 14<19, 21<50, 5<45, 45<40, 39<19, 35<19, 7>28, 10>7, 24>4, 4>32, 32<29, 5<32, 39>31, 14>7, 4>13, 21>27], [ (47, 4), (14, 3), (5, 4), (41, 3), (35, 3), (39, 3), (24, 2), (10, 4), (45, 2), (4, 1), (18, 3), (32, 2), (21, 2), (27, 3), (29, 3), (20, 4), (22, 1), (50, 2), (7, 3), (19, 2), (2, 3), (31, 4), (28, 2), (13, 1), (40, 1)], [ (50>7, 2), (18<2, 4), (21>31, 4), (47<40, 2), (18<40, 1), (5<19, 1), (5<50, 1), (5>28, 1), (19<13, 1), (24>13, 3), (10<40, 3), (14<27, 1), (35<2, 1), (32>50, 1), (22>50, 4), (4<20, 1), (47<20, 4), (47<29, 4), (20<19, 2), (19>40, 1), (45<19, 4), (7<40, 1), (32<2, 2), (41<27, 2), (14<19, 4), (21<50, 3), (5<45, 1), (45<40, 4), (39<19, 1), (35<19, 1), (7>28, 2), (10>7, 1), (24>4, 1), (4>32, 4), (32<29, 4), (5<32, 3), (39>31, 2), (14>7, 3), (4>13, 4), (21>27, 1)])).

test(7, (50, 250, [<, >]), (25, 40, 4), ([32, 20, 24, 42, 22, 39, 12, 16, 9, 47, 41, 29, 23, 21, 40, 43, 15, 35, 46, 19, 17, 48, 36, 10, 13], [20>22, 24>43, 24>35, 24>48, 42>46, 22>32, 22>24, 22>40, 22>46, 12>47, 12>29, 12>40, 12>43, 16>24, 16>22, 9>17, 9>36, 41>48, 29>36, 23>35, 21>22, 15>39, 35>47, 19>29, 17>23, 17>21, 36>41, 36>48, 10>20, 10>23, 10>35, 10>13], [29>10, 23<40, 36<13, 20>22, 9<41, 16<19, 9>29, 43>36, 9>17, 47<17, 43>46, 32>23, 42>43, 39>17, 47<15, 15>19, 20<16, 39>10, 29>48, 9<19, 24<9, 48<13, 47<23, 24>43, 17<10, 41<13, 42<40, 17>13, 32>40, 24<47, 35<46, 16>29, 24<41, 24<46, 41>21, 24>23, 24<48, 42>47, 24>13, 12>21], [ (32, 4), (20, 4), (24, 3), (42, 3), (22, 4), (39, 2), (12, 1), (16, 2), (9, 4), (47, 1), (41, 4), (29, 2), (23, 2), (21, 2), (40, 3), (43, 2), (15, 1), (35, 1), (46, 4), (19, 1), (17, 1), (48, 2), (36, 3), (10, 2), (13, 4)], [ (29>10, 2), (23<40, 2), (36<13, 2), (20>22, 4), (9<41, 1), (16<19, 1), (9>29, 4), (43>36, 3), (9>17, 4), (47<17, 4), (43>46, 4), (32>23, 2), (42>43, 4), (39>17, 3), (47<15, 2), (15>19, 4), (20<16, 4), (39>10, 3), (29>48, 4), (9<19, 3), (24<9, 4), (48<13, 2), (47<23, 4), (24>43, 4), (17<10, 2), (41<13, 3), (42<40, 2), (17>13, 2), (32>40, 4), (24<47, 2), (35<46, 2), (16>29, 1), (24<41, 2), (24<46, 2), (41>21, 4), (24>23, 4), (24<48, 4), (42>47, 3), (24>13, 2), (12>21, 2)])).

test(8, (50, 250, [<, >]), (25, 40, 4), ([35, 29, 16, 2, 22, 23, 18, 30, 10, 5, 9, 6, 41, 14, 37, 24, 17, 42, 43, 27, 39, 12, 28, 11, 40], [35>39, 29>30, 22>23, 22>42, 23>40, 18>41, 10>37, 10>40, 5>24, 5>12, 9>16, 9>22, 9>37, 9>39, 9>12, 6>16, 6>18, 6>12, 14>18, 14>42, 14>40, 24>30, 24>42, 17>28, 27>43, 27>39, 11>23, 11>37, 11>24, 11>28, 11>40], [35<23, 9<17, 23>5, 2<42, 10<39, 9>37, 18<14, 23>17, 37<17, 5>17, 35<5, 17>11, 17>27, 10<6, 29>37, 2<17, 23>37, 30<9, 23>39, 22>37, 37>40, 30<27, 5>27, 35>12, 24<27, 30>41, 37>24, 35>41, 18<10, 2<12, 2>23, 10<27, 30>12, 14<37, 9>6, 37>39, 35>27, 30>17, 6>11, 22>24], [ (35, 1), (29, 4), (16, 3), (2, 2), (22, 4), (23, 2), (18, 1), (30, 4), (10, 4), (5, 4), (9, 2), (6, 3), (41, 2), (14, 3), (37, 1), (24, 2), (17, 4), (42, 2), (43, 1), (27, 1), (39, 2), (12, 1), (28, 1), (11, 3), (40, 1)], [ (35<23, 1), (9<17, 4), (23>5, 3), (2<42, 4), (10<39, 3), (9>37, 2), (18<14, 1), (23>17, 4), (37<17, 3), (5>17, 4), (35<5, 3), (17>11, 1), (17>27, 3), (10<6, 4), (29>37, 1), (2<17, 3), (23>37, 1), (30<9, 1), (23>39, 4), (22>37, 4), (37>40, 3), (30<27, 1), (5>27, 2), (35>12, 1), (24<27, 3), (30>41, 3), (37>24, 2), (35>41, 4), (18<10, 3), (2<12, 1), (2>23, 2), (10<27, 1), (30>12, 2), (14<37, 2), (9>6, 4), (37>39, 2), (35>27, 2), (30>17, 1), (6>11, 1), (22>24, 3)])).

test(9, (50, 250, [<, >]), (25, 40, 4), ([17, 47, 12, 18, 26, 28, 23, 43, 5, 31, 21, 37, 20, 1, 34, 2, 27, 16, 7, 44, 24, 29, 50, 45, 4], [17>43, 17>31, 17>27, 17>44, 17>45, 12>16, 18>28, 18>29, 26>28, 23>37, 23>24, 5>17, 5>24, 31>45, 21>29, 21>45, 37>47, 20>47, 20>37, 20>50, 20>45, 1>21, 34>37, 34>44, 27>34, 16>18, 16>24, 7>12, 7>43, 7>21, 29>37], [12<5, 17<50, 18>29, 27<44, 23>45, 5>31, 21<16, 43>20, 23<7, 45>4, 29>45, 44<45, 31<45, 23>4, 20<34, 23>20, 1<29, 1>2, 31>27, 1<44, 18>4, 28>37, 31<1, 12>23, 47>43, 12>28, 12>26, 43>16, 16<50, 28<45, 43<34, 31>37, 47>34, 26<1, 50<45, 43>44, 21>44, 26<5, 47>21, 26<7], [ (17, 4), (47, 1), (12, 1), (18, 3), (26, 1), (28, 2), (23, 1), (43, 4), (5, 3), (31, 4), (21, 4), (37, 2), (20, 2), (1, 2), (34, 3), (2, 1), (27, 1), (16, 2), (7, 3), (44, 1), (24, 3), (29, 2), (50, 4), (45, 2), (4, 2)], [ (12<5, 1), (17<50, 4), (18>29, 1), (27<44, 2), (23>45, 4), (5>31, 4), (21<16, 3), (43>20, 2), (23<7, 4), (45>4, 3), (29>45, 3), (44<45, 2), (31<45, 3), (23>4, 4), (20<34, 4), (23>20, 1), (1<29, 1), (1>2, 2), (31>27, 1), (1<44, 2), (18>4, 4), (28>37, 1), (31<1, 1), (12>23, 1), (47>43, 1), (12>28, 1), (12>26, 4), (43>16, 2), (16<50, 3), (28<45, 2), (43<34, 1), (31>37, 2), (47>34, 1), (26<1, 1), (50<45, 2), (43>44, 2), (21>44, 4), (26<5, 2), (47>21, 3), (26<7, 4)])).

test(10, (50, 250, [<, >]), (25, 40, 4), ([19, 28, 18, 16, 31, 27, 9, 1, 8, 10, 7, 32, 20, 40, 35, 49, 12, 23, 2, 17, 24, 4, 48, 5, 37], [19>28, 19>48, 28>40, 16>28, 16>20, 16>48, 27>37, 1>8, 1>20, 1>40, 1>17, 8>18, 8>27, 8>23, 10>28, 10>16, 7>31, 7>8, 7>20, 20>31, 12>20, 12>48, 23>28, 23>40, 2>27, 2>7, 2>35, 17>19, 17>31, 24>28, 4>20, 4>49, 5>16, 5>35], [35<4, 48<37, 10>32, 9<48, 31>9, 23>5, 10<17, 4<48, 40>48, 23<37, 20>17, 8<48, 27>9, 19<40, 31>48, 8>23, 23<2, 19>1, 7>32, 28<37, 19<16, 19>31, 16<4, 27>7, 18<4, 18<2, 19<17, 27<2, 28>35, 12>2, 1<8, 20<23, 24>5, 17<24, 7>2, 19<35, 1<49, 40<24, 16>7, 9>10], [ (19, 1), (28, 4), (18, 3), (16, 4), (31, 3), (27, 3), (9, 3), (1, 4), (8, 1), (10, 3), (7, 2), (32, 3), (20, 3), (40, 1), (35, 2), (49, 1), (12, 3), (23, 4), (2, 2), (17, 3), (24, 1), (4, 4), (48, 3), (5, 2), (37, 4)], [ (35<4, 2), (48<37, 3), (10>32, 4), (9<48, 3), (31>9, 4), (23>5, 2), (10<17, 3), (4<48, 4), (40>48, 1), (23<37, 4), (20>17, 4), (8<48, 3), (27>9, 2), (19<40, 2), (31>48, 4), (8>23, 3), (23<2, 3), (19>1, 1), (7>32, 2), (28<37, 1), (19<16, 4), (19>31, 2), (16<4, 2), (27>7, 3), (18<4, 2), (18<2, 4), (19<17, 1), (27<2, 4), (28>35, 3), (12>2, 4), (1<8, 3), (20<23, 2), (24>5, 4), (17<24, 2), (7>2, 2), (19<35, 2), (1<49, 4), (40<24, 2), (16>7, 4), (9>10, 3)])).

%% 50, 250, [<, >]
%% 30, 20, 4

test(1, (50, 250, [<, >]), (30, 20, 4), ([50, 27, 20, 44, 9, 36, 3, 5, 41, 49, 13, 4, 42, 25, 43, 32, 10, 7, 35, 30, 1, 11, 21, 47, 38, 34, 39, 33, 26, 24], [27>43, 27>33, 20>32, 20>33, 9>47, 9>38, 9>33, 36>47, 3>27, 3>9, 3>5, 3>32, 3>47, 5>43, 5>38, 41>44, 41>43, 49>50, 13>33, 4>20, 4>41, 4>34, 25>38, 32>34, 7>20, 7>41, 7>24, 35>49, 30>42, 1>9, 1>43, 1>32, 1>30, 1>34, 11>41, 11>26, 21>44, 21>42, 21>35, 21>24, 38>41, 34>36, 34>49, 34>35, 34>38, 26>36, 24>49, 24>32, 24>47], [9>34, 47>26, 39<33, 32<30, 43>7, 36>33, 43<32, 9<47, 5<26, 50<13, 9>41, 36>7, 27<11, 20>7, 20>32, 43>35, 36>35, 50>39, 25>10, 4<35], [ (50, 4), (27, 4), (20, 3), (44, 3), (9, 2), (36, 4), (3, 2), (5, 1), (41, 4), (49, 2), (13, 2), (4, 4), (42, 2), (25, 4), (43, 4), (32, 2), (10, 3), (7, 2), (35, 4), (30, 3), (1, 4), (11, 2), (21, 2), (47, 3), (38, 2), (34, 2), (39, 4), (33, 1), (26, 3), (24, 4)], [ (9>34, 2), (47>26, 1), (39<33, 2), (32<30, 1), (43>7, 2), (36>33, 2), (43<32, 1), (9<47, 2), (5<26, 1), (50<13, 3), (9>41, 3), (36>7, 1), (27<11, 4), (20>7, 3), (20>32, 2), (43>35, 4), (36>35, 2), (50>39, 3), (25>10, 1), (4<35, 4)])).

test(2, (50, 250, [<, >]), (30, 20, 4), ([26, 22, 48, 7, 41, 13, 36, 1, 6, 37, 32, 44, 34, 27, 33, 5, 3, 21, 39, 10, 38, 30, 43, 16, 35, 20, 9, 4, 19, 47], [26>48, 22>37, 22>27, 22>30, 7>39, 7>19, 41>43, 13>27, 13>38, 13>20, 36>37, 1>6, 1>43, 1>4, 6>27, 6>9, 37>41, 37>44, 27>48, 27>37, 27>34, 33>41, 33>36, 5>21, 5>30, 5>43, 3>7, 3>32, 3>39, 3>47, 21>41, 21>35, 10>33, 10>43, 30>38, 16>48, 16>41, 16>19, 35>44, 35>38, 20>26, 20>27, 20>47, 9>10, 9>30, 9>16, 4>10, 19>44, 19>47], [32>5, 32<44, 22>10, 22>21, 1<16, 27<10, 36<39, 26<36, 20>47, 22>6, 22<13, 13<20, 6<33, 5>38, 44<35, 41<44, 37>16, 26>48, 5<16, 21>30], [ (26, 2), (22, 1), (48, 4), (7, 1), (41, 3), (13, 4), (36, 3), (1, 2), (6, 3), (37, 3), (32, 2), (44, 4), (34, 2), (27, 2), (33, 4), (5, 3), (3, 3), (21, 1), (39, 1), (10, 4), (38, 1), (30, 3), (43, 4), (16, 4), (35, 4), (20, 4), (9, 3), (4, 2), (19, 2), (47, 2)], [ (32>5, 2), (32<44, 3), (22>10, 2), (22>21, 2), (1<16, 4), (27<10, 4), (36<39, 3), (26<36, 2), (20>47, 2), (22>6, 3), (22<13, 3), (13<20, 3), (6<33, 1), (5>38, 1), (44<35, 3), (41<44, 3), (37>16, 2), (26>48, 3), (5<16, 4), (21>30, 1)])).

test(3, (50, 250, [<, >]), (30, 20, 4), ([3, 29, 41, 10, 35, 18, 9, 21, 40, 23, 39, 22, 32, 5, 11, 34, 48, 12, 33, 30, 19, 50, 24, 15, 25, 4, 16, 20, 38, 31], [3>41, 3>9, 3>30, 3>4, 3>20, 29>38, 35>41, 35>40, 35>48, 18>21, 18>39, 18>24, 9>18, 9>23, 9>39, 9>34, 9>20, 21>50, 23>38, 22>29, 22>41, 22>34, 22>50, 22>31, 32>35, 32>50, 5>18, 5>40, 5>39, 5>31, 11>41, 48>50, 33>35, 33>40, 30>40, 30>32, 19>32, 19>50, 24>35, 24>32, 24>34, 15>50, 15>20, 15>38, 15>31, 25>35, 4>29, 4>10, 4>32, 4>34, 4>24, 4>38, 16>33, 31>34, 31>50], [5>25, 18>32, 21<25, 40>50, 11<31, 23>20, 23>31, 22>24, 5<16, 40>33, 23>48, 48>25, 18>4, 4>31, 34>20, 32<19, 9<20, 3>5, 10<11, 19>4], [ (3, 2), (29, 2), (41, 1), (10, 3), (35, 1), (18, 1), (9, 1), (21, 3), (40, 1), (23, 1), (39, 1), (22, 2), (32, 1), (5, 2), (11, 2), (34, 4), (48, 1), (12, 4), (33, 3), (30, 3), (19, 3), (50, 3), (24, 3), (15, 1), (25, 1), (4, 2), (16, 2), (20, 2), (38, 2), (31, 3)], [ (5>25, 1), (18>32, 2), (21<25, 3), (40>50, 3), (11<31, 3), (23>20, 4), (23>31, 3), (22>24, 4), (5<16, 4), (40>33, 4), (23>48, 2), (48>25, 1), (18>4, 1), (4>31, 1), (34>20, 1), (32<19, 1), (9<20, 4), (3>5, 3), (10<11, 2), (19>4, 3)])).

test(4, (50, 250, [<, >]), (30, 20, 4), ([18, 12, 23, 27, 20, 5, 45, 15, 31, 34, 49, 16, 13, 24, 17, 43, 40, 11, 10, 7, 14, 6, 19, 39, 36, 47, 29, 32, 25, 8], [18>34, 18>47, 12>13, 12>40, 12>19, 23>49, 23>43, 23>29, 27>29, 27>32, 20>45, 5>20, 5>36, 15>40, 15>47, 16>23, 16>20, 16>45, 16>17, 13>45, 24>43, 24>39, 11>19, 11>29, 10>23, 10>19, 7>12, 7>24, 14>16, 14>40, 14>36, 6>40, 6>47, 19>40, 36>43, 29>40, 32>45, 25>27, 8>23, 8>16], [15>13, 20>8, 18>16, 45<14, 23>19, 15>29, 16>7, 36>25, 5<34, 31>11, 24<14, 17<25, 31<19, 7<29, 49<29, 10>6, 16<10, 31<29, 10>29, 12>23], [ (18, 3), (12, 1), (23, 1), (27, 1), (20, 4), (5, 2), (45, 3), (15, 3), (31, 3), (34, 2), (49, 4), (16, 1), (13, 3), (24, 3), (17, 3), (43, 1), (40, 3), (11, 4), (10, 1), (7, 1), (14, 4), (6, 1), (19, 4), (39, 3), (36, 3), (47, 2), (29, 1), (32, 1), (25, 4), (8, 3)], [ (15>13, 1), (20>8, 4), (18>16, 4), (45<14, 1), (23>19, 2), (15>29, 3), (16>7, 3), (36>25, 3), (5<34, 1), (31>11, 3), (24<14, 1), (17<25, 1), (31<19, 2), (7<29, 3), (49<29, 1), (10>6, 4), (16<10, 1), (31<29, 4), (10>29, 1), (12>23, 4)])).

test(5, (50, 250, [<, >]), (30, 20, 4), ([14, 24, 42, 3, 16, 25, 21, 2, 46, 6, 34, 4, 44, 47, 13, 41, 45, 17, 27, 30, 39, 40, 23, 26, 36, 38, 11, 19, 29, 37], [14>21, 14>30, 14>23, 24>44, 24>30, 3>25, 3>40, 3>11, 3>37, 25>42, 25>41, 21>47, 21>23, 21>26, 2>25, 2>27, 6>11, 34>42, 34>45, 34>37, 4>29, 13>25, 13>17, 13>27, 13>38, 17>29, 30>40, 23>24, 23>46, 23>34, 23>44, 23>26, 36>45, 36>39, 11>24, 11>46, 11>39, 11>38, 29>44, 29>41, 29>39, 37>42], [2<29, 24>26, 2>45, 45>30, 3>26, 3>19, 21<39, 16>29, 4<13, 3>34, 16<21, 27>37, 24<30, 40>29, 3>23, 41>11, 21<13, 6<30, 14<6, 6>23], [ (14, 1), (24, 3), (42, 3), (3, 4), (16, 2), (25, 1), (21, 4), (2, 1), (46, 3), (6, 3), (34, 4), (4, 2), (44, 3), (47, 3), (13, 3), (41, 3), (45, 1), (17, 3), (27, 1), (30, 3), (39, 4), (40, 1), (23, 2), (26, 4), (36, 3), (38, 2), (11, 1), (19, 1), (29, 2), (37, 2)], [ (2<29, 1), (24>26, 3), (2>45, 4), (45>30, 3), (3>26, 4), (3>19, 1), (21<39, 4), (16>29, 1), (4<13, 2), (3>34, 1), (16<21, 2), (27>37, 2), (24<30, 1), (40>29, 1), (3>23, 1), (41>11, 3), (21<13, 1), (6<30, 1), (14<6, 2), (6>23, 4)])).

test(6, (50, 250, [<, >]), (30, 20, 4), ([44, 38, 2, 46, 33, 21, 6, 19, 23, 3, 15, 24, 26, 17, 10, 22, 34, 20, 41, 28, 31, 29, 30, 18, 16, 37, 14, 40, 39, 47], [38>41, 2>44, 2>3, 2>10, 33>34, 21>24, 21>22, 6>46, 6>21, 6>41, 23>40, 3>26, 3>37, 15>38, 15>37, 24>38, 24>28, 24>37, 24>47, 26>33, 17>38, 17>33, 17>24, 17>34, 17>30, 10>46, 10>22, 20>22, 20>30, 28>37, 29>46, 18>31, 16>46, 16>24, 16>39, 14>21, 14>22, 14>29], [33<37, 44<22, 44<21, 24<20, 17<34, 2>6, 21<47, 23<20, 19>18, 46<23, 15>30, 2<10, 6>10, 38<6, 26<28, 23<30, 10<29, 44>38, 3<26, 21>6], [ (44, 4), (38, 3), (2, 4), (46, 4), (33, 3), (21, 3), (6, 2), (19, 2), (23, 2), (3, 3), (15, 1), (24, 3), (26, 4), (17, 4), (10, 2), (22, 4), (34, 2), (20, 4), (41, 2), (28, 1), (31, 2), (29, 2), (30, 4), (18, 2), (16, 3), (37, 2), (14, 2), (40, 2), (39, 4), (47, 4)], [ (33<37, 4), (44<22, 1), (44<21, 2), (24<20, 1), (17<34, 2), (2>6, 2), (21<47, 4), (23<20, 1), (19>18, 2), (46<23, 3), (15>30, 1), (2<10, 2), (6>10, 4), (38<6, 3), (26<28, 1), (23<30, 3), (10<29, 2), (44>38, 1), (3<26, 2), (21>6, 1)])).

test(7, (50, 250, [<, >]), (30, 20, 4), ([33, 21, 6, 13, 48, 4, 16, 22, 34, 31, 42, 2, 36, 50, 8, 30, 41, 25, 10, 35, 12, 29, 39, 46, 18, 15, 11, 19, 27, 14], [33>34, 21>34, 21>29, 6>48, 6>12, 6>27, 13>16, 48>50, 4>33, 4>35, 4>46, 16>30, 16>27, 22>46, 31>33, 31>42, 31>41, 2>46, 8>21, 8>42, 8>10, 8>11, 30>48, 25>29, 10>50, 10>12, 10>29, 10>46, 10>11, 12>13, 12>36, 12>15, 29>35, 46>48, 18>27, 15>27, 11>13, 11>36, 11>35, 11>27, 19>33, 19>36, 27>30, 14>50, 14>41, 14>35, 14>27], [31<35, 21>31, 34>46, 4>22, 34>15, 16<19, 10<46, 50>29, 6<41, 21>36, 4>18, 8<29, 31<10, 33>31, 16<12, 31<42, 50<27, 50<30, 22>46, 41<10], [ (33, 2), (21, 4), (6, 3), (13, 3), (48, 1), (4, 3), (16, 1), (22, 4), (34, 3), (31, 2), (42, 1), (2, 2), (36, 4), (50, 3), (8, 4), (30, 4), (41, 1), (25, 3), (10, 3), (35, 4), (12, 3), (29, 3), (39, 1), (46, 4), (18, 3), (15, 4), (11, 1), (19, 2), (27, 3), (14, 4)], [ (31<35, 4), (21>31, 3), (34>46, 1), (4>22, 3), (34>15, 3), (16<19, 2), (10<46, 3), (50>29, 4), (6<41, 2), (21>36, 3), (4>18, 3), (8<29, 2), (31<10, 3), (33>31, 2), (16<12, 2), (31<42, 2), (50<27, 4), (50<30, 1), (22>46, 2), (41<10, 4)])).

test(8, (50, 250, [<, >]), (30, 20, 4), ([33, 7, 34, 12, 22, 17, 50, 18, 24, 3, 10, 41, 28, 44, 35, 27, 26, 38, 11, 2, 15, 9, 6, 29, 30, 19, 42, 32, 45, 14], [33>38, 7>17, 7>38, 7>15, 7>9, 34>38, 34>42, 12>34, 12>17, 12>38, 12>15, 12>14, 22>50, 22>26, 22>30, 17>45, 18>34, 18>28, 18>35, 18>27, 24>34, 24>30, 3>34, 3>27, 10>26, 10>42, 28>33, 28>29, 28>42, 27>33, 27>44, 26>35, 26>38, 38>41, 11>12, 2>26, 2>32, 2>14, 9>22, 9>24, 9>11, 30>44, 30>38, 30>42, 32>33, 32>50, 14>33, 14>22, 14>24, 14>38], [7<12, 2>15, 33>26, 10>27, 15<29, 6>45, 27<11, 18>11, 44<11, 18<29, 7>15, 12<35, 33<45, 15<45, 28>15, 34<29, 10<2, 33<12, 11>32, 28<44], [ (33, 2), (7, 2), (34, 3), (12, 3), (22, 2), (17, 3), (50, 4), (18, 2), (24, 1), (3, 1), (10, 1), (41, 3), (28, 1), (44, 1), (35, 1), (27, 2), (26, 1), (38, 4), (11, 4), (2, 3), (15, 4), (9, 1), (6, 2), (29, 3), (30, 1), (19, 4), (42, 4), (32, 4), (45, 3), (14, 1)], [ (7<12, 4), (2>15, 1), (33>26, 1), (10>27, 2), (15<29, 1), (6>45, 4), (27<11, 2), (18>11, 2), (44<11, 1), (18<29, 1), (7>15, 3), (12<35, 1), (33<45, 3), (15<45, 1), (28>15, 3), (34<29, 4), (10<2, 3), (33<12, 2), (11>32, 3), (28<44, 2)])).

test(9, (50, 250, [<, >]), (30, 20, 4), ([15, 47, 2, 6, 40, 26, 38, 44, 46, 36, 33, 24, 4, 21, 5, 25, 7, 20, 49, 8, 9, 11, 37, 16, 30, 10, 32, 34, 48, 3], [15>33, 47>48, 2>6, 2>8, 6>15, 6>25, 6>20, 26>47, 26>33, 26>37, 44>46, 33>46, 24>46, 24>25, 4>15, 4>44, 4>33, 21>46, 21>36, 5>6, 5>48, 25>30, 25>48, 20>44, 20>21, 20>48, 8>44, 8>36, 8>16, 9>37, 9>30, 11>21, 11>49, 11>16, 11>30, 37>47, 30>44, 30>37, 30>32, 10>46, 10>24, 10>32, 32>38, 32>44, 34>49, 3>38, 3>8], [4<16, 38<36, 40<49, 20<8, 10>34, 47<3, 15<21, 46>20, 26<7, 46<5, 6<9, 24<32, 47>24, 8<34, 15<16, 20>48, 6>40, 2<7, 30<10, 37<10], [ (15, 4), (47, 4), (2, 2), (6, 1), (40, 1), (26, 1), (38, 4), (44, 4), (46, 2), (36, 3), (33, 1), (24, 2), (4, 3), (21, 2), (5, 3), (25, 2), (7, 4), (20, 2), (49, 3), (8, 2), (9, 4), (11, 3), (37, 3), (16, 4), (30, 4), (10, 1), (32, 1), (34, 4), (48, 2), (3, 4)], [ (4<16, 4), (38<36, 2), (40<49, 2), (20<8, 4), (10>34, 4), (47<3, 4), (15<21, 3), (46>20, 3), (26<7, 3), (46<5, 4), (6<9, 4), (24<32, 3), (47>24, 2), (8<34, 3), (15<16, 3), (20>48, 3), (6>40, 4), (2<7, 1), (30<10, 3), (37<10, 1)])).

test(10, (50, 250, [<, >]), (30, 20, 4), ([45, 4, 30, 40, 34, 20, 50, 22, 29, 32, 1, 18, 42, 8, 5, 21, 46, 14, 6, 11, 16, 28, 25, 17, 13, 31, 37, 7, 43, 49], [45>46, 4>28, 40>49, 34>50, 20>34, 20>43, 22>46, 32>40, 32>46, 1>43, 18>50, 18>25, 8>30, 8>42, 8>46, 8>25, 5>14, 5>16, 5>7, 46>50, 14>22, 6>42, 11>45, 11>46, 11>43, 28>29, 25>42, 25>37, 25>49, 17>34, 13>32, 13>21, 13>46, 13>28, 7>37, 43>45], [29>18, 4>34, 42>21, 14>6, 37>7, 5<17, 30>8, 45>18, 42>46, 29<13, 20<22, 1>43, 30<37, 29>32, 28>17, 11<17, 40<11, 29>21, 28>37, 1>46], [ (45, 4), (4, 1), (30, 4), (40, 3), (34, 4), (20, 3), (50, 2), (22, 3), (29, 4), (32, 1), (1, 2), (18, 4), (42, 4), (8, 3), (5, 4), (21, 1), (46, 4), (14, 3), (6, 3), (11, 3), (16, 1), (28, 2), (25, 2), (17, 3), (13, 3), (31, 2), (37, 3), (7, 4), (43, 3), (49, 3)], [ (29>18, 4), (4>34, 4), (42>21, 1), (14>6, 3), (37>7, 2), (5<17, 1), (30>8, 1), (45>18, 4), (42>46, 3), (29<13, 3), (20<22, 1), (1>43, 4), (30<37, 4), (29>32, 2), (28>17, 1), (11<17, 4), (40<11, 3), (29>21, 3), (28>37, 1), (1>46, 2)])).

%% 50, 250, [<, >]
%% 35, 35, 4

test(1, (50, 250, [<, >]), (35, 35, 4), ([11, 21, 50, 40, 43, 27, 22, 1, 13, 25, 4, 17, 48, 37, 19, 31, 12, 26, 5, 30, 24, 16, 18, 45, 42, 8, 9, 39, 14, 15, 38, 6, 32, 36, 34], [11>37, 11>26, 27>37, 22>43, 22>25, 22>48, 22>31, 22>26, 22>39, 1>40, 1>16, 1>36, 13>17, 13>18, 13>34, 4>24, 4>34, 19>50, 19>45, 19>42, 31>50, 12>30, 12>32, 12>34, 5>43, 5>25, 5>31, 5>26, 5>38, 5>36, 30>48, 24>27, 24>34, 16>50, 16>43, 16>25, 16>31, 16>26, 18>42, 8>21, 8>13, 8>17, 8>38, 9>19, 39>40, 39>45, 15>27, 6>48, 6>26, 6>8, 6>32, 36>43, 34>36], [27<14, 50<9, 25>48, 13<17, 43<26, 32<34, 11<43, 30<42, 37<16, 19<26, 48<45, 40>37, 16<14, 11>27, 38>6, 30<14, 16>39, 16>15, 27<31, 43<13, 17<34, 48<31, 43<18, 4<34, 26>45, 16>36, 26<30, 27>9, 42>14, 37>32, 42<39, 22<6, 13>30, 25>39, 15<32], [ (11, 2), (21, 2), (50, 3), (40, 2), (43, 3), (27, 1), (22, 1), (1, 3), (13, 3), (25, 2), (4, 3), (17, 4), (48, 2), (37, 2), (19, 3), (31, 2), (12, 3), (26, 3), (5, 2), (30, 4), (24, 1), (16, 4), (18, 2), (45, 4), (42, 4), (8, 4), (9, 2), (39, 2), (14, 1), (15, 4), (38, 1), (6, 3), (32, 1), (36, 3), (34, 1)], [ (27<14, 1), (50<9, 2), (25>48, 1), (13<17, 3), (43<26, 3), (32<34, 4), (11<43, 4), (30<42, 4), (37<16, 1), (19<26, 4), (48<45, 4), (40>37, 1), (16<14, 2), (11>27, 3), (38>6, 2), (30<14, 2), (16>39, 4), (16>15, 3), (27<31, 3), (43<13, 4), (17<34, 2), (48<31, 3), (43<18, 1), (4<34, 2), (26>45, 2), (16>36, 4), (26<30, 4), (27>9, 3), (42>14, 1), (37>32, 4), (42<39, 4), (22<6, 1), (13>30, 1), (25>39, 4), (15<32, 3)])).

test(2, (50, 250, [<, >]), (35, 35, 4), ([26, 34, 15, 48, 1, 6, 31, 28, 40, 11, 33, 29, 9, 21, 32, 39, 50, 16, 35, 27, 37, 20, 45, 47, 22, 24, 8, 36, 17, 46, 7, 30, 14, 10, 41], [26>28, 26>32, 26>46, 34>48, 34>35, 15>46, 1>31, 1>24, 1>17, 6>8, 28>40, 28>35, 28>41, 11>15, 11>32, 11>30, 29>48, 29>31, 29>40, 9>34, 9>36, 9>10, 21>29, 21>41, 32>39, 16>26, 16>47, 16>36, 16>17, 16>30, 16>41, 35>50, 27>34, 27>32, 27>37, 27>36, 22>37, 24>27, 8>29, 8>9, 8>37, 8>41, 36>47, 36>41, 17>33, 7>28, 7>39, 7>37, 30>48, 30>40, 14>45, 14>30, 10>26, 10>21, 10>32, 10>36], [21<22, 29<30, 1>10, 31<46, 35<27, 27>46, 20<7, 21<20, 33>35, 26>35, 15>45, 48<30, 34<27, 31<29, 34<39, 40<17, 34>9, 47<8, 48>11, 50<24, 40<14, 26>14, 9<21, 15>40, 45<17, 28<29, 26>36, 11<7, 34<35, 37>20, 40>22, 26>29, 9>17, 16>45, 33>41], [ (26, 2), (34, 4), (15, 4), (48, 3), (1, 4), (6, 3), (31, 4), (28, 3), (40, 2), (11, 1), (33, 1), (29, 4), (9, 3), (21, 4), (32, 4), (39, 4), (50, 4), (16, 4), (35, 4), (27, 4), (37, 4), (20, 3), (45, 3), (47, 3), (22, 2), (24, 1), (8, 3), (36, 2), (17, 1), (46, 4), (7, 2), (30, 2), (14, 1), (10, 4), (41, 3)], [ (21<22, 3), (29<30, 2), (1>10, 1), (31<46, 2), (35<27, 3), (27>46, 1), (20<7, 1), (21<20, 3), (33>35, 3), (26>35, 2), (15>45, 3), (48<30, 1), (34<27, 4), (31<29, 1), (34<39, 2), (40<17, 2), (34>9, 4), (47<8, 1), (48>11, 2), (50<24, 2), (40<14, 4), (26>14, 3), (9<21, 1), (15>40, 1), (45<17, 4), (28<29, 2), (26>36, 1), (11<7, 2), (34<35, 3), (37>20, 3), (40>22, 4), (26>29, 4), (9>17, 3), (16>45, 3), (33>41, 1)])).

test(3, (50, 250, [<, >]), (35, 35, 4), ([37, 32, 10, 42, 40, 50, 16, 12, 19, 48, 46, 25, 13, 8, 5, 33, 24, 35, 23, 14, 45, 21, 39, 34, 41, 11, 31, 29, 17, 38, 44, 28, 15, 7, 27], [37>48, 32>45, 10>50, 10>13, 10>23, 10>34, 10>38, 16>33, 16>28, 12>37, 12>25, 12>31, 19>46, 19>44, 25>37, 25>34, 13>50, 13>41, 8>12, 5>35, 5>21, 5>38, 5>28, 5>27, 33>48, 33>39, 33>41, 24>48, 24>29, 24>28, 35>50, 23>46, 23>34, 23>27, 14>37, 14>35, 14>21, 14>31, 21>40, 21>48, 21>33, 21>35, 34>46, 11>37, 11>48, 11>24, 11>15, 31>46, 31>33, 31>35, 31>45, 31>39, 31>41, 31>38, 29>38, 29>44, 38>46, 38>41, 44>50, 28>35, 15>21, 7>35, 7>23, 7>39], [50>27, 19<7, 28>15, 13>8, 11<28, 37>33, 42<12, 46>21, 37>38, 21>41, 28<27, 13>21, 16>45, 37>46, 37>15, 16<39, 33>39, 33<21, 40>41, 46>39, 24<38, 46<41, 16<31, 16>24, 13<15, 5<23, 40<14, 25>17, 10>17, 8>15, 37>35, 19<27, 24<29, 19>46, 42>11], [ (37, 3), (32, 1), (10, 2), (42, 3), (40, 3), (50, 3), (16, 2), (12, 4), (19, 2), (48, 3), (46, 3), (25, 4), (13, 3), (8, 2), (5, 1), (33, 4), (24, 2), (35, 1), (23, 1), (14, 1), (45, 1), (21, 1), (39, 3), (34, 1), (41, 2), (11, 2), (31, 3), (29, 4), (17, 4), (38, 3), (44, 2), (28, 2), (15, 2), (7, 2), (27, 1)], [ (50>27, 4), (19<7, 1), (28>15, 3), (13>8, 3), (11<28, 3), (37>33, 1), (42<12, 3), (46>21, 2), (37>38, 1), (21>41, 4), (28<27, 4), (13>21, 1), (16>45, 4), (37>46, 2), (37>15, 4), (16<39, 4), (33>39, 3), (33<21, 3), (40>41, 3), (46>39, 3), (24<38, 1), (46<41, 2), (16<31, 3), (16>24, 2), (13<15, 3), (5<23, 1), (40<14, 1), (25>17, 2), (10>17, 4), (8>15, 2), (37>35, 1), (19<27, 2), (24<29, 4), (19>46, 4), (42>11, 2)])).

test(4, (50, 250, [<, >]), (35, 35, 4), ([23, 33, 44, 12, 36, 14, 5, 17, 45, 3, 8, 21, 42, 29, 9, 7, 18, 32, 47, 43, 6, 28, 19, 16, 48, 22, 37, 35, 30, 11, 15, 10, 38, 39, 40], [23>35, 33>43, 12>28, 12>22, 36>37, 14>21, 14>15, 5>33, 5>29, 5>16, 5>35, 5>39, 17>40, 3>23, 3>32, 3>47, 3>43, 3>10, 8>47, 8>19, 8>38, 21>37, 29>48, 9>33, 9>47, 9>28, 7>17, 18>32, 18>43, 18>28, 32>36, 32>47, 43>44, 6>16, 28>43, 28>37, 16>23, 16>47, 16>30, 16>38, 22>44, 22>40, 37>45, 35>48, 30>33, 30>32, 11>12, 11>45, 11>19, 11>35, 11>15, 15>29, 15>35, 15>40, 10>44, 10>43, 10>28, 10>39, 39>44, 39>43], [36<39, 10<40, 17<3, 19<38, 37<38, 23>8, 21<9, 17>11, 22<35, 47>28, 5<37, 44<19, 23>48, 23>39, 44>16, 23<43, 32<37, 19<11, 23<18, 3<28, 14>10, 45>39, 43>28, 29>9, 33>8, 5<38, 8<21, 7>35, 17<7, 36<15, 30>39, 3>9, 16>11, 3<8, 32>35], [ (23, 4), (33, 2), (44, 3), (12, 3), (36, 4), (14, 1), (5, 1), (17, 2), (45, 1), (3, 4), (8, 4), (21, 2), (42, 1), (29, 4), (9, 2), (7, 1), (18, 1), (32, 1), (47, 3), (43, 4), (6, 2), (28, 2), (19, 1), (16, 2), (48, 1), (22, 4), (37, 4), (35, 2), (30, 3), (11, 4), (15, 3), (10, 4), (38, 1), (39, 2), (40, 2)], [ (36<39, 1), (10<40, 1), (17<3, 1), (19<38, 1), (37<38, 2), (23>8, 2), (21<9, 4), (17>11, 2), (22<35, 4), (47>28, 1), (5<37, 4), (44<19, 2), (23>48, 1), (23>39, 3), (44>16, 1), (23<43, 3), (32<37, 3), (19<11, 3), (23<18, 4), (3<28, 4), (14>10, 3), (45>39, 2), (43>28, 2), (29>9, 2), (33>8, 4), (5<38, 4), (8<21, 4), (7>35, 2), (17<7, 4), (36<15, 2), (30>39, 1), (3>9, 1), (16>11, 3), (3<8, 2), (32>35, 1)])).

test(5, (50, 250, [<, >]), (35, 35, 4), ([30, 9, 35, 20, 29, 28, 16, 36, 46, 22, 24, 21, 11, 14, 41, 39, 45, 10, 4, 1, 31, 43, 3, 37, 33, 18, 6, 2, 17, 49, 38, 34, 44, 42, 26], [9>21, 9>41, 20>45, 20>31, 29>34, 29>44, 28>41, 28>38, 16>18, 16>38, 36>45, 36>42, 22>33, 24>42, 11>33, 11>34, 11>26, 14>49, 14>34, 39>41, 10>30, 10>29, 10>49, 4>39, 4>33, 4>38, 1>30, 1>36, 1>46, 31>35, 3>16, 3>14, 3>39, 3>37, 3>49, 3>44, 33>49, 18>38, 18>34, 6>29, 6>24, 6>34, 6>26, 2>11, 2>45, 2>33, 17>29, 17>36, 17>33, 38>42, 34>39, 34>42, 26>35], [22<34, 20>31, 30<22, 14<6, 11<31, 36<26, 46>42, 4<26, 21<14, 35>10, 35>41, 3>6, 49<38, 20<39, 30>36, 39<34, 24<10, 16<43, 37>38, 9>33, 30<16, 28<24, 10>37, 20<44, 18>38, 11<41, 36<6, 22<24, 24>18, 29>6, 43>2, 29>46, 9>11, 41>31, 2<42], [ (30, 3), (9, 4), (35, 4), (20, 2), (29, 4), (28, 2), (16, 3), (36, 1), (46, 4), (22, 2), (24, 3), (21, 1), (11, 4), (14, 2), (41, 2), (39, 1), (45, 2), (10, 3), (4, 4), (1, 2), (31, 2), (43, 3), (3, 3), (37, 4), (33, 3), (18, 3), (6, 4), (2, 3), (17, 4), (49, 3), (38, 1), (34, 2), (44, 2), (42, 2), (26, 4)], [ (22<34, 4), (20>31, 2), (30<22, 1), (14<6, 1), (11<31, 3), (36<26, 1), (46>42, 3), (4<26, 4), (21<14, 3), (35>10, 4), (35>41, 4), (3>6, 4), (49<38, 1), (20<39, 1), (30>36, 2), (39<34, 1), (24<10, 4), (16<43, 2), (37>38, 2), (9>33, 4), (30<16, 4), (28<24, 1), (10>37, 4), (20<44, 3), (18>38, 2), (11<41, 2), (36<6, 2), (22<24, 2), (24>18, 2), (29>6, 4), (43>2, 1), (29>46, 3), (9>11, 2), (41>31, 1), (2<42, 2)])).

test(6, (50, 250, [<, >]), (35, 35, 4), ([5, 4, 2, 20, 38, 11, 12, 29, 17, 35, 14, 19, 42, 13, 46, 25, 24, 10, 49, 21, 45, 8, 31, 3, 1, 36, 7, 18, 28, 26, 43, 22, 9, 34, 47], [5>10, 5>22, 5>9, 5>47, 4>11, 4>17, 4>19, 4>18, 2>38, 2>18, 2>28, 2>43, 11>38, 11>14, 11>46, 11>18, 12>20, 12>38, 12>17, 12>35, 12>46, 29>34, 17>46, 17>25, 17>21, 14>20, 14>46, 14>18, 14>43, 14>34, 19>46, 19>24, 13>18, 25>26, 25>43, 24>31, 10>17, 21>49, 21>45, 21>26, 8>12, 8>9, 8>34, 31>38, 31>35, 31>42, 1>4, 1>2, 1>42, 1>46, 7>29, 7>13, 7>34, 18>24, 18>21, 26>47, 22>29, 22>46, 9>13, 9>28, 34>43], [42>25, 36>28, 12>10, 10<49, 29<43, 3<28, 20>1, 4>49, 20<12, 38>47, 12>22, 21<26, 46<8, 14<18, 10>31, 35<1, 35>36, 35>47, 4>13, 17>19, 2<36, 42<49, 11<46, 38>46, 46>47, 21>31, 21>3, 5>1, 1<9, 46<43, 10>9, 11>1, 36<18, 22>47, 36>43], [ (5, 2), (4, 3), (2, 4), (20, 1), (38, 1), (11, 1), (12, 4), (29, 1), (17, 2), (35, 3), (14, 1), (19, 2), (42, 2), (13, 1), (46, 1), (25, 4), (24, 4), (10, 2), (49, 2), (21, 2), (45, 1), (8, 3), (31, 2), (3, 3), (1, 3), (36, 2), (7, 2), (18, 3), (28, 3), (26, 1), (43, 3), (22, 1), (9, 2), (34, 4), (47, 4)], [ (42>25, 1), (36>28, 3), (12>10, 4), (10<49, 1), (29<43, 2), (3<28, 3), (20>1, 2), (4>49, 1), (20<12, 4), (38>47, 3), (12>22, 2), (21<26, 3), (46<8, 2), (14<18, 4), (10>31, 3), (35<1, 2), (35>36, 2), (35>47, 2), (4>13, 3), (17>19, 4), (2<36, 1), (42<49, 2), (11<46, 2), (38>46, 2), (46>47, 1), (21>31, 4), (21>3, 4), (5>1, 4), (1<9, 2), (46<43, 2), (10>9, 1), (11>1, 3), (36<18, 2), (22>47, 4), (36>43, 1)])).

test(7, (50, 250, [<, >]), (35, 35, 4), ([47, 29, 14, 7, 38, 16, 12, 18, 43, 28, 50, 23, 46, 44, 27, 36, 17, 9, 10, 3, 20, 30, 33, 40, 24, 21, 26, 11, 25, 1, 41, 49, 37, 13, 42], [29>50, 14>20, 7>47, 7>14, 7>41, 38>41, 16>26, 12>27, 12>41, 18>33, 28>46, 28>41, 23>46, 23>37, 44>47, 27>38, 27>50, 27>37, 36>42, 17>42, 9>43, 9>23, 9>30, 9>11, 9>37, 10>23, 10>30, 10>40, 3>7, 3>38, 3>43, 3>36, 3>17, 20>28, 20>27, 20>30, 30>47, 30>43, 30>50, 30>42, 24>43, 21>38, 26>30, 26>33, 11>44, 25>44, 25>30, 25>41, 25>49, 1>9, 1>41, 41>47, 41>43, 41>46, 37>38, 37>40, 13>18, 13>46, 13>44, 13>26, 13>25, 13>41, 13>37, 42>46], [38<10, 11>13, 11>37, 14<50, 38>23, 43<10, 23<41, 47<16, 30>49, 1<37, 16>21, 44>3, 28<13, 28<17, 27<30, 14<16, 44<11, 26<1, 9<37, 44<33, 47<11, 29<24, 40<49, 7<44, 29>11, 43<21, 47>9, 7>3, 7>46, 14<28, 29<40, 46<33, 26>11, 16>13, 29<27], [ (47, 1), (29, 1), (14, 3), (7, 3), (38, 1), (16, 3), (12, 1), (18, 2), (43, 4), (28, 4), (50, 1), (23, 4), (46, 3), (44, 4), (27, 2), (36, 2), (17, 3), (9, 1), (10, 1), (3, 4), (20, 1), (30, 3), (33, 4), (40, 2), (24, 1), (21, 2), (26, 3), (11, 1), (25, 3), (1, 3), (41, 2), (49, 1), (37, 1), (13, 4), (42, 4)], [ (38<10, 1), (11>13, 1), (11>37, 4), (14<50, 3), (38>23, 2), (43<10, 2), (23<41, 3), (47<16, 3), (30>49, 4), (1<37, 3), (16>21, 4), (44>3, 1), (28<13, 3), (28<17, 1), (27<30, 2), (14<16, 1), (44<11, 3), (26<1, 1), (9<37, 4), (44<33, 2), (47<11, 1), (29<24, 3), (40<49, 2), (7<44, 2), (29>11, 1), (43<21, 3), (47>9, 3), (7>3, 3), (7>46, 1), (14<28, 2), (29<40, 2), (46<33, 4), (26>11, 2), (16>13, 1), (29<27, 3)])).

test(8, (50, 250, [<, >]), (35, 35, 4), ([49, 7, 10, 28, 12, 33, 20, 44, 14, 47, 9, 35, 16, 38, 50, 22, 8, 37, 29, 40, 3, 41, 45, 27, 21, 32, 43, 18, 25, 36, 1, 13, 15, 2, 46], [7>10, 7>14, 7>16, 7>21, 7>36, 7>13, 10>44, 10>37, 10>29, 10>40, 28>47, 12>27, 12>43, 12>13, 20>28, 20>22, 20>40, 20>43, 44>47, 14>44, 14>29, 14>40, 9>40, 9>32, 35>49, 16>33, 16>25, 22>28, 22>25, 8>49, 8>10, 8>16, 37>50, 37>41, 37>46, 29>41, 3>20, 3>50, 41>43, 41>46, 45>47, 27>41, 21>28, 32>36, 43>46, 18>49, 18>47, 18>38, 25>28, 25>33, 25>29, 25>45, 1>21, 13>16, 13>36, 15>50, 15>37, 15>46, 2>21, 2>36], [38<8, 49>22, 14>25, 22>25, 33<50, 32<15, 21>32, 7<45, 3<32, 50<22, 49>43, 14>36, 20<43, 18<13, 12>8, 7<8, 47>46, 44<22, 49<47, 3<21, 27>43, 47<21, 14>16, 18>46, 20<2, 33<47, 10>25, 35>29, 20>44, 37<29, 7<21, 33>9, 9<36, 35>16, 38<21], [ (49, 1), (7, 3), (10, 2), (28, 1), (12, 2), (33, 4), (20, 4), (44, 2), (14, 2), (47, 2), (9, 2), (35, 1), (16, 3), (38, 1), (50, 3), (22, 1), (8, 2), (37, 2), (29, 1), (40, 3), (3, 4), (41, 4), (45, 2), (27, 1), (21, 3), (32, 1), (43, 1), (18, 1), (25, 1), (36, 2), (1, 3), (13, 1), (15, 1), (2, 2), (46, 4)], [ (38<8, 2), (49>22, 1), (14>25, 2), (22>25, 3), (33<50, 4), (32<15, 1), (21>32, 4), (7<45, 4), (3<32, 3), (50<22, 2), (49>43, 2), (14>36, 1), (20<43, 3), (18<13, 1), (12>8, 1), (7<8, 3), (47>46, 3), (44<22, 4), (49<47, 4), (3<21, 3), (27>43, 2), (47<21, 3), (14>16, 3), (18>46, 1), (20<2, 2), (33<47, 4), (10>25, 1), (35>29, 1), (20>44, 1), (37<29, 2), (7<21, 1), (33>9, 3), (9<36, 2), (35>16, 3), (38<21, 3)])).

test(9, (50, 250, [<, >]), (35, 35, 4), ([14, 37, 17, 46, 10, 13, 24, 7, 49, 3, 47, 21, 11, 27, 28, 30, 45, 15, 40, 48, 18, 38, 33, 26, 8, 6, 22, 42, 39, 2, 20, 43, 41, 35, 4], [14>24, 14>18, 14>33, 14>41, 17>45, 17>48, 10>18, 10>41, 13>15, 13>48, 7>46, 7>21, 7>30, 7>38, 3>10, 3>39, 21>46, 21>45, 21>35, 11>18, 27>49, 27>45, 27>42, 27>39, 28>40, 28>39, 30>45, 30>38, 30>39, 15>30, 15>42, 18>45, 18>38, 6>37, 6>10, 6>49, 6>40, 6>18, 6>33, 6>8, 6>43, 42>46, 42>45, 42>43, 39>49, 39>41, 2>14, 2>37, 2>10, 2>21, 2>18, 2>26, 20>24, 20>27, 20>22, 41>47, 41>42, 35>47, 35>40, 35>38, 35>42, 4>17, 4>46], [46>42, 37<15, 21>43, 18>35, 27>45, 37>18, 14>21, 17>26, 30>2, 45>39, 27>33, 14>41, 26>41, 14<26, 48>8, 13<41, 46>7, 18>33, 3<30, 48>6, 28<33, 21<38, 41>35, 3<28, 10<2, 3>18, 15>41, 24<48, 7<40, 17<21, 46<40, 3<42, 46>30, 8<6, 47>30], [ (14, 2), (37, 3), (17, 4), (46, 1), (10, 3), (13, 1), (24, 2), (7, 3), (49, 4), (3, 1), (47, 4), (21, 4), (11, 4), (27, 4), (28, 1), (30, 2), (45, 3), (15, 1), (40, 1), (48, 3), (18, 3), (38, 3), (33, 2), (26, 3), (8, 1), (6, 2), (22, 3), (42, 1), (39, 1), (2, 3), (20, 3), (43, 4), (41, 3), (35, 3), (4, 4)], [ (46>42, 3), (37<15, 4), (21>43, 1), (18>35, 2), (27>45, 3), (37>18, 2), (14>21, 2), (17>26, 4), (30>2, 1), (45>39, 2), (27>33, 1), (14>41, 3), (26>41, 1), (14<26, 3), (48>8, 1), (13<41, 1), (46>7, 3), (18>33, 3), (3<30, 1), (48>6, 2), (28<33, 2), (21<38, 2), (41>35, 3), (3<28, 1), (10<2, 1), (3>18, 2), (15>41, 1), (24<48, 1), (7<40, 2), (17<21, 1), (46<40, 1), (3<42, 4), (46>30, 4), (8<6, 2), (47>30, 2)])).

test(10, (50, 250, [<, >]), (35, 35, 4), ([35, 48, 26, 46, 13, 15, 49, 12, 38, 31, 8, 44, 10, 50, 24, 33, 5, 36, 16, 18, 17, 14, 32, 19, 25, 28, 20, 27, 1, 4, 47, 40, 42, 43, 37], [35>46, 35>47, 48>50, 26>48, 26>27, 26>42, 46>47, 13>31, 13>18, 13>20, 15>46, 15>16, 15>25, 15>37, 49>50, 12>32, 12>28, 12>27, 12>42, 31>35, 31>33, 31>32, 8>31, 8>33, 44>50, 10>46, 24>25, 24>28, 24>40, 36>49, 16>32, 18>25, 18>27, 17>50, 17>25, 17>20, 14>26, 14>24, 14>32, 32>48, 32>50, 32>47, 19>35, 25>50, 25>32, 20>38, 20>50, 20>27, 27>46, 27>33, 27>28, 1>16, 4>48, 4>8, 4>32, 4>25, 4>27, 42>50, 37>44, 37>40], [13<44, 31>47, 8>25, 31<8, 10>24, 35<15, 12<42, 15>36, 46>25, 50>42, 26>15, 46<38, 35>46, 24>33, 12>18, 13>40, 46>50, 10<1, 14>20, 32>1, 12<28, 28>1, 15>14, 46<27, 33>28, 10>47, 24>32, 36<47, 16>32, 38>1, 36>32, 8>27, 25>4, 44>10, 50<28], [ (35, 2), (48, 4), (26, 1), (46, 2), (13, 2), (15, 2), (49, 2), (12, 4), (38, 3), (31, 2), (8, 2), (44, 2), (10, 1), (50, 2), (24, 4), (33, 1), (5, 3), (36, 4), (16, 4), (18, 3), (17, 3), (14, 4), (32, 4), (19, 2), (25, 2), (28, 1), (20, 1), (27, 3), (1, 3), (4, 1), (47, 3), (40, 2), (42, 2), (43, 4), (37, 1)], [ (13<44, 1), (31>47, 3), (8>25, 3), (31<8, 3), (10>24, 3), (35<15, 2), (12<42, 3), (15>36, 4), (46>25, 3), (50>42, 4), (26>15, 3), (46<38, 4), (35>46, 4), (24>33, 1), (12>18, 1), (13>40, 1), (46>50, 1), (10<1, 1), (14>20, 4), (32>1, 3), (12<28, 3), (28>1, 4), (15>14, 2), (46<27, 2), (33>28, 1), (10>47, 2), (24>32, 3), (36<47, 4), (16>32, 2), (38>1, 1), (36>32, 1), (8>27, 4), (25>4, 4), (44>10, 4), (50<28, 3)])).

%% 50, 250, [<, >]
%% 40, 40, 4

test(1, (50, 250, [<, >]), (40, 40, 4), ([40, 28, 45, 37, 42, 33, 1, 9, 50, 6, 48, 8, 18, 32, 29, 14, 25, 43, 20, 3, 35, 19, 24, 49, 10, 2, 15, 44, 23, 26, 11, 17, 7, 41, 22, 39, 5, 12, 13, 4], [40>45, 37>42, 37>44, 42>43, 33>41, 1>8, 1>7, 1>22, 1>12, 9>28, 9>24, 9>23, 6>48, 6>20, 6>44, 6>7, 6>12, 8>10, 8>41, 18>29, 18>25, 18>20, 18>23, 18>41, 18>39, 29>42, 14>17, 25>26, 43>45, 20>28, 3>24, 3>49, 3>15, 3>23, 3>11, 3>41, 3>22, 3>4, 35>40, 19>50, 19>29, 19>35, 24>40, 24>32, 10>42, 10>33, 10>13, 2>25, 2>49, 2>5, 2>4, 15>40, 15>24, 15>41, 23>40, 23>24, 11>42, 11>25, 11>12, 17>40, 17>29, 7>28, 7>33, 7>19, 7>10, 7>15, 22>25, 39>40, 39>49, 5>40, 5>20, 5>22, 12>40, 12>50, 12>32, 12>43, 12>20, 12>49, 12>44, 12>23, 13>18, 13>24, 4>50, 4>18, 4>10, 4>5], [28<35, 37>19, 9>11, 8<4, 26>39, 3>49, 50>29, 1>48, 39>12, 26<12, 18>25, 1<44, 3<10, 29<35, 45<26, 28<4, 44>23, 29<24, 23<17, 9<7, 8<26, 6<19, 48<24, 10>7, 2<22, 33>5, 41>12, 40<26, 18>2, 50<23, 32>23, 8<15, 18<23, 8<12, 6>11, 42<41, 45<15, 49>22, 3<24, 20<13], [ (40, 3), (28, 1), (45, 2), (37, 1), (42, 3), (33, 1), (1, 3), (9, 2), (50, 4), (6, 4), (48, 1), (8, 3), (18, 3), (32, 2), (29, 3), (14, 3), (25, 4), (43, 4), (20, 2), (3, 4), (35, 4), (19, 2), (24, 3), (49, 1), (10, 1), (2, 1), (15, 3), (44, 2), (23, 3), (26, 1), (11, 1), (17, 1), (7, 1), (41, 1), (22, 3), (39, 2), (5, 4), (12, 4), (13, 1), (4, 4)], [ (28<35, 3), (37>19, 3), (9>11, 3), (8<4, 2), (26>39, 3), (3>49, 2), (50>29, 4), (1>48, 2), (39>12, 2), (26<12, 2), (18>25, 3), (1<44, 2), (3<10, 1), (29<35, 4), (45<26, 4), (28<4, 3), (44>23, 2), (29<24, 3), (23<17, 4), (9<7, 2), (8<26, 2), (6<19, 4), (48<24, 1), (10>7, 1), (2<22, 4), (33>5, 3), (41>12, 1), (40<26, 3), (18>2, 1), (50<23, 3), (32>23, 4), (8<15, 2), (18<23, 1), (8<12, 2), (6>11, 3), (42<41, 2), (45<15, 1), (49>22, 1), (3<24, 2), (20<13, 4)])).

test(2, (50, 250, [<, >]), (40, 40, 4), ([7, 39, 2, 34, 6, 1, 14, 24, 10, 32, 18, 41, 16, 47, 30, 31, 17, 43, 5, 49, 19, 13, 45, 27, 37, 50, 46, 33, 28, 23, 20, 40, 15, 48, 42, 9, 3, 29, 8, 4], [7>16, 7>19, 7>48, 2>34, 2>32, 2>47, 2>31, 2>50, 2>46, 2>9, 6>14, 6>41, 6>16, 6>43, 6>46, 6>23, 6>29, 1>14, 1>49, 1>46, 1>23, 1>3, 14>24, 14>32, 14>37, 24>30, 24>50, 10>30, 10>17, 10>33, 32>41, 32>43, 32>48, 18>27, 18>37, 18>20, 18>29, 16>43, 16>45, 16>37, 16>40, 47>48, 30>39, 30>48, 31>34, 31>46, 17>34, 17>24, 17>43, 17>46, 5>14, 5>15, 13>24, 13>18, 45>47, 27>34, 27>49, 27>29, 33>41, 33>48, 28>39, 28>43, 23>24, 23>45, 23>37, 23>48, 20>41, 20>27, 15>30, 15>19, 15>29, 48>49, 9>19, 3>39, 29>34, 29>43, 8>19, 8>45, 4>13, 4>27, 4>15], [18>42, 43>8, 27>46, 39>40, 24>19, 2<47, 24>30, 27>40, 39>23, 41<3, 1>19, 6<41, 16>13, 24<43, 43>28, 32>42, 6<48, 32>29, 18<40, 10<13, 16<49, 6<3, 31>48, 50<9, 41<5, 7<18, 33>4, 47>33, 47>29, 49>15, 10<49, 1>24, 6<47, 30<29, 17<29, 49>20, 14<40, 9<4, 1>42, 17<4], [ (7, 3), (39, 1), (2, 2), (34, 3), (6, 3), (1, 4), (14, 3), (24, 2), (10, 1), (32, 1), (18, 2), (41, 3), (16, 4), (47, 1), (30, 1), (31, 2), (17, 2), (43, 3), (5, 1), (49, 1), (19, 3), (13, 4), (45, 4), (27, 2), (37, 2), (50, 4), (46, 2), (33, 4), (28, 1), (23, 2), (20, 1), (40, 1), (15, 1), (48, 4), (42, 4), (9, 1), (3, 4), (29, 2), (8, 1), (4, 3)], [ (18>42, 1), (43>8, 1), (27>46, 1), (39>40, 3), (24>19, 4), (2<47, 2), (24>30, 4), (27>40, 2), (39>23, 1), (41<3, 1), (1>19, 2), (6<41, 1), (16>13, 1), (24<43, 4), (43>28, 1), (32>42, 2), (6<48, 1), (32>29, 2), (18<40, 2), (10<13, 1), (16<49, 1), (6<3, 1), (31>48, 4), (50<9, 3), (41<5, 4), (7<18, 3), (33>4, 4), (47>33, 1), (47>29, 1), (49>15, 4), (10<49, 3), (1>24, 1), (6<47, 3), (30<29, 3), (17<29, 2), (49>20, 1), (14<40, 1), (9<4, 1), (1>42, 3), (17<4, 4)])).

test(3, (50, 250, [<, >]), (40, 40, 4), ([30, 38, 47, 50, 8, 14, 39, 26, 2, 45, 21, 6, 23, 44, 9, 27, 15, 4, 29, 41, 32, 48, 31, 10, 22, 24, 35, 42, 5, 13, 49, 12, 34, 37, 17, 20, 16, 3, 25, 43], [30>35, 30>42, 30>34, 8>35, 8>17, 8>25, 14>30, 14>50, 14>20, 26>48, 2>50, 2>8, 2>26, 2>4, 2>29, 2>10, 2>20, 2>25, 21>45, 21>22, 6>38, 6>8, 6>21, 6>32, 6>12, 23>30, 23>44, 9>50, 9>27, 9>43, 27>47, 27>31, 4>38, 4>35, 4>16, 29>50, 32>47, 32>48, 10>45, 10>15, 10>49, 10>16, 22>38, 22>39, 22>44, 24>26, 24>27, 24>29, 35>48, 42>45, 5>45, 5>17, 13>47, 13>45, 13>35, 13>34, 49>50, 12>38, 12>29, 12>22, 12>16, 12>43, 34>47, 34>39, 34>44, 34>41, 17>22, 17>20, 20>30, 20>38, 20>45, 20>42, 20>43, 16>38, 16>26, 16>48, 16>49, 3>47, 3>8, 3>44, 3>22, 3>24, 25>38, 25>45, 25>29, 25>34, 43>48, 43>49], [50>29, 47<12, 14>2, 20>3, 9<48, 26>3, 21<31, 9>31, 50<39, 26<6, 39<35, 27<5, 39<43, 38<23, 48<31, 47>8, 47>27, 30>42, 24>37, 23<16, 22<49, 41>34, 4>31, 9<15, 23<29, 30<2, 26<22, 9<32, 39<10, 27<32, 47<16, 16<25, 15>20, 14>41, 39<2, 21>13, 50>9, 21>12, 9<17, 26>5], [ (30, 1), (38, 2), (47, 3), (50, 3), (8, 1), (14, 2), (39, 2), (26, 4), (2, 3), (45, 2), (21, 3), (6, 2), (23, 4), (44, 2), (9, 1), (27, 4), (15, 1), (4, 1), (29, 1), (41, 1), (32, 3), (48, 4), (31, 3), (10, 3), (22, 3), (24, 2), (35, 4), (42, 1), (5, 4), (13, 3), (49, 3), (12, 1), (34, 3), (37, 1), (17, 3), (20, 4), (16, 3), (3, 1), (25, 3), (43, 2)], [ (50>29, 3), (47<12, 1), (14>2, 2), (20>3, 1), (9<48, 3), (26>3, 1), (21<31, 1), (9>31, 3), (50<39, 2), (26<6, 1), (39<35, 3), (27<5, 1), (39<43, 4), (38<23, 2), (48<31, 3), (47>8, 2), (47>27, 2), (30>42, 3), (24>37, 3), (23<16, 4), (22<49, 2), (41>34, 1), (4>31, 1), (9<15, 4), (23<29, 1), (30<2, 1), (26<22, 4), (9<32, 4), (39<10, 1), (27<32, 4), (47<16, 3), (16<25, 1), (15>20, 3), (14>41, 4), (39<2, 2), (21>13, 1), (50>9, 3), (21>12, 4), (9<17, 3), (26>5, 4)])).

test(4, (50, 250, [<, >]), (40, 40, 4), ([4, 46, 7, 12, 29, 45, 38, 13, 23, 31, 3, 39, 9, 19, 37, 11, 28, 5, 34, 6, 24, 50, 36, 43, 14, 2, 35, 25, 16, 22, 33, 21, 47, 15, 17, 18, 30, 41, 1, 42], [4>13, 4>23, 4>31, 4>6, 12>45, 29>36, 29>33, 29>47, 29>41, 38>39, 38>47, 38>41, 13>31, 13>17, 23>46, 23>37, 23>25, 23>41, 31>36, 31>35, 3>31, 3>37, 3>6, 3>50, 3>25, 39>47, 9>23, 9>37, 9>50, 9>14, 19>46, 37>43, 37>42, 11>12, 11>23, 11>19, 11>14, 28>38, 5>7, 5>9, 5>37, 5>6, 5>22, 5>33, 34>39, 34>36, 6>14, 6>42, 24>46, 24>25, 36>46, 36>39, 36>41, 14>29, 14>39, 14>30, 14>42, 2>39, 2>19, 2>34, 2>36, 2>14, 2>16, 35>46, 35>36, 16>38, 16>34, 16>50, 16>36, 16>41, 22>23, 22>31, 22>47, 33>45, 21>46, 21>50, 15>22, 15>33, 17>37, 17>25, 18>36, 18>33, 30>41, 1>35, 1>25, 1>41, 42>46], [12<37, 46<11, 35<41, 28<18, 11<33, 50<2, 7<14, 2>18, 31>11, 13<35, 39>17, 12>34, 14<42, 5>17, 41>42, 4<9, 37<15, 45>21, 19>16, 23>50, 13>39, 16>33, 38<50, 31<16, 31>3, 23>42, 31>6, 39<9, 29<16, 28<35, 13>23, 31>14, 39>6, 43<17, 13>34, 47<42, 45<28, 13>1, 21<47, 30<41], [ (4, 1), (46, 4), (7, 1), (12, 1), (29, 2), (45, 3), (38, 4), (13, 1), (23, 4), (31, 1), (3, 2), (39, 4), (9, 1), (19, 2), (37, 3), (11, 3), (28, 4), (5, 3), (34, 2), (6, 4), (24, 2), (50, 1), (36, 3), (43, 3), (14, 2), (2, 1), (35, 2), (25, 1), (16, 3), (22, 4), (33, 4), (21, 3), (47, 4), (15, 2), (17, 4), (18, 4), (30, 3), (41, 1), (1, 1), (42, 3)], [ (12<37, 2), (46<11, 4), (35<41, 2), (28<18, 4), (11<33, 2), (50<2, 4), (7<14, 1), (2>18, 3), (31>11, 4), (13<35, 4), (39>17, 1), (12>34, 4), (14<42, 3), (5>17, 3), (41>42, 3), (4<9, 4), (37<15, 3), (45>21, 2), (19>16, 4), (23>50, 4), (13>39, 3), (16>33, 2), (38<50, 2), (31<16, 2), (31>3, 4), (23>42, 3), (31>6, 1), (39<9, 2), (29<16, 2), (28<35, 2), (13>23, 1), (31>14, 3), (39>6, 4), (43<17, 3), (13>34, 4), (47<42, 4), (45<28, 2), (13>1, 1), (21<47, 4), (30<41, 3)])).

test(5, (50, 250, [<, >]), (40, 40, 4), ([19, 45, 8, 47, 39, 1, 50, 37, 15, 11, 27, 34, 16, 42, 33, 32, 44, 6, 41, 22, 43, 9, 10, 40, 7, 49, 3, 48, 26, 30, 20, 21, 18, 24, 25, 14, 13, 28, 38, 29], [19>25, 8>15, 8>11, 8>41, 1>49, 1>21, 1>25, 1>38, 15>50, 15>20, 15>24, 15>28, 11>19, 11>33, 11>26, 34>47, 34>50, 16>45, 16>34, 16>42, 16>25, 32>41, 6>11, 6>42, 6>9, 6>26, 41>45, 41>42, 41>44, 41>43, 22>50, 22>43, 22>30, 43>50, 43>49, 9>15, 9>33, 9>18, 10>15, 10>20, 40>47, 40>48, 7>11, 7>13, 7>29, 3>39, 3>11, 3>43, 3>7, 3>48, 3>14, 26>50, 26>44, 26>41, 30>40, 20>32, 20>43, 20>26, 20>24, 21>33, 21>44, 21>41, 21>49, 18>45, 18>50, 18>32, 18>26, 18>21, 18>28, 25>50, 25>37, 25>40, 25>48, 25>29, 14>37, 14>33, 14>32, 14>40, 14>30, 13>15, 13>34, 13>49, 13>20, 28>44, 28>43, 28>30, 38>43, 29>37], [11>16, 7>20, 48>25, 16<43, 44>6, 9<49, 40>26, 16>38, 16>42, 33>29, 15<34, 24<38, 44<28, 32<18, 15<32, 50<27, 22>7, 39<49, 20<24, 24>29, 42<10, 8<25, 15<44, 32>43, 32<40, 37>40, 37<6, 32<7, 34>29, 47>32, 19<39, 47>9, 22>20, 8<41, 1<3, 45>39, 16<32, 34<33, 47<43, 16<48], [ (19, 3), (45, 3), (8, 2), (47, 2), (39, 4), (1, 2), (50, 3), (37, 1), (15, 3), (11, 4), (27, 3), (34, 3), (16, 4), (42, 2), (33, 1), (32, 2), (44, 1), (6, 4), (41, 1), (22, 2), (43, 1), (9, 1), (10, 4), (40, 3), (7, 3), (49, 4), (3, 4), (48, 4), (26, 1), (30, 4), (20, 4), (21, 4), (18, 4), (24, 2), (25, 4), (14, 1), (13, 3), (28, 3), (38, 1), (29, 4)], [ (11>16, 2), (7>20, 4), (48>25, 1), (16<43, 3), (44>6, 4), (9<49, 2), (40>26, 2), (16>38, 4), (16>42, 4), (33>29, 1), (15<34, 4), (24<38, 3), (44<28, 1), (32<18, 4), (15<32, 1), (50<27, 4), (22>7, 1), (39<49, 2), (20<24, 2), (24>29, 3), (42<10, 1), (8<25, 1), (15<44, 1), (32>43, 2), (32<40, 4), (37>40, 2), (37<6, 3), (32<7, 1), (34>29, 4), (47>32, 4), (19<39, 2), (47>9, 1), (22>20, 2), (8<41, 4), (1<3, 1), (45>39, 4), (16<32, 1), (34<33, 2), (47<43, 3), (16<48, 4)])).

test(6, (50, 250, [<, >]), (40, 40, 4), ([8, 9, 36, 28, 18, 42, 19, 30, 37, 35, 49, 25, 5, 14, 4, 26, 38, 16, 47, 41, 48, 29, 6, 46, 34, 11, 44, 1, 31, 27, 12, 15, 33, 2, 21, 20, 23, 39, 45, 32], [8>19, 8>37, 8>35, 9>19, 9>48, 9>32, 36>41, 36>45, 28>34, 28>33, 18>41, 18>46, 18>33, 42>49, 42>47, 42>48, 30>42, 37>49, 35>47, 25>41, 25>33, 5>36, 5>49, 5>48, 5>11, 5>15, 14>18, 14>33, 14>23, 4>25, 4>20, 4>45, 4>32, 26>29, 26>39, 26>45, 38>49, 16>45, 41>48, 29>36, 29>37, 29>44, 6>42, 6>19, 6>15, 6>21, 11>38, 31>49, 27>30, 27>34, 27>39, 27>32, 12>32, 15>49, 15>47, 33>42, 33>37, 33>47, 2>8, 2>4, 2>41, 2>34, 21>25, 21>41, 21>31, 20>38, 20>47, 20>46, 20>31, 23>28, 23>38, 39>42, 45>47, 32>37, 32>47], [23<39, 47<34, 35<39, 30>49, 49>31, 16<44, 18>37, 8>11, 25<23, 38>1, 8>34, 15>21, 48<20, 39>45, 25<4, 5<38, 49>2, 42<12, 30<35, 29>1, 49>4, 14<47, 28>12, 28>23, 14>48, 5>26, 38<33, 41>44, 11>44, 5>11, 38<44, 8>2, 8>16, 38>23, 47>32, 30<27, 25<48, 5<2, 35<5, 27>32], [ (8, 3), (9, 4), (36, 4), (28, 2), (18, 1), (42, 4), (19, 2), (30, 2), (37, 3), (35, 4), (49, 4), (25, 4), (5, 1), (14, 2), (4, 1), (26, 4), (38, 3), (16, 3), (47, 1), (41, 1), (48, 1), (29, 1), (6, 1), (46, 1), (34, 3), (11, 4), (44, 4), (1, 1), (31, 4), (27, 2), (12, 4), (15, 3), (33, 3), (2, 3), (21, 1), (20, 3), (23, 3), (39, 2), (45, 4), (32, 1)], [ (23<39, 2), (47<34, 3), (35<39, 2), (30>49, 4), (49>31, 2), (16<44, 4), (18>37, 1), (8>11, 2), (25<23, 3), (38>1, 1), (8>34, 3), (15>21, 3), (48<20, 1), (39>45, 3), (25<4, 2), (5<38, 2), (49>2, 2), (42<12, 3), (30<35, 3), (29>1, 3), (49>4, 2), (14<47, 4), (28>12, 4), (28>23, 4), (14>48, 1), (5>26, 1), (38<33, 2), (41>44, 3), (11>44, 4), (5>11, 2), (38<44, 3), (8>2, 4), (8>16, 2), (38>23, 2), (47>32, 4), (30<27, 4), (25<48, 1), (5<2, 3), (35<5, 4), (27>32, 3)])).

test(7, (50, 250, [<, >]), (40, 40, 4), ([11, 13, 25, 42, 41, 34, 19, 22, 30, 1, 23, 50, 47, 49, 3, 20, 35, 38, 7, 31, 36, 10, 32, 40, 21, 39, 8, 29, 15, 48, 45, 17, 9, 16, 43, 24, 26, 4, 12, 28], [11>13, 11>50, 11>47, 11>36, 11>21, 11>39, 11>29, 11>17, 13>42, 13>22, 25>34, 42>43, 41>49, 34>39, 19>42, 19>48, 22>31, 22>24, 30>32, 30>43, 1>11, 1>49, 1>3, 1>29, 1>15, 1>9, 23>41, 23>36, 23>45, 49>50, 3>49, 3>39, 3>45, 3>43, 20>50, 35>48, 7>23, 7>24, 7>12, 36>47, 10>23, 10>31, 32>41, 32>50, 40>42, 21>34, 21>47, 21>36, 21>39, 21>48, 8>11, 29>34, 15>19, 15>31, 15>39, 15>26, 45>49, 17>48, 17>24, 9>25, 9>19, 9>16, 16>42, 16>50, 16>47, 16>35, 16>31, 16>40, 16>17, 16>28, 24>34, 24>36, 24>32, 26>42, 26>47, 26>39, 4>20, 12>30, 12>36, 12>45, 12>28], [49>26, 15>48, 50>28, 50<15, 13>48, 21>29, 38<48, 31<10, 25>10, 23>3, 34<47, 3>7, 16<26, 34<38, 50>17, 1<36, 1<48, 40<12, 49>17, 8<15, 20<45, 45>24, 25<7, 36>24, 50>35, 31<48, 3>31, 34>12, 21<28, 38>31, 13<19, 42<3, 39>48, 34>20, 40<16, 21>43, 11>8, 35>48, 20>38, 15>24], [ (11, 3), (13, 4), (25, 4), (42, 2), (41, 2), (34, 4), (19, 3), (22, 4), (30, 4), (1, 3), (23, 4), (50, 2), (47, 1), (49, 3), (3, 4), (20, 2), (35, 4), (38, 2), (7, 3), (31, 2), (36, 3), (10, 1), (32, 1), (40, 1), (21, 4), (39, 4), (8, 2), (29, 2), (15, 4), (48, 4), (45, 1), (17, 4), (9, 3), (16, 4), (43, 1), (24, 4), (26, 1), (4, 3), (12, 3), (28, 1)], [ (49>26, 1), (15>48, 4), (50>28, 1), (50<15, 1), (13>48, 4), (21>29, 2), (38<48, 1), (31<10, 1), (25>10, 2), (23>3, 3), (34<47, 4), (3>7, 4), (16<26, 1), (34<38, 1), (50>17, 1), (1<36, 4), (1<48, 4), (40<12, 4), (49>17, 4), (8<15, 3), (20<45, 3), (45>24, 4), (25<7, 1), (36>24, 2), (50>35, 3), (31<48, 4), (3>31, 2), (34>12, 1), (21<28, 1), (38>31, 1), (13<19, 1), (42<3, 3), (39>48, 4), (34>20, 4), (40<16, 1), (21>43, 2), (11>8, 2), (35>48, 2), (20>38, 4), (15>24, 4)])).

test(8, (50, 250, [<, >]), (40, 40, 4), ([12, 46, 39, 9, 17, 37, 8, 35, 2, 22, 43, 20, 14, 45, 28, 25, 42, 31, 21, 38, 16, 3, 44, 23, 15, 11, 5, 41, 1, 30, 10, 6, 32, 26, 29, 24, 7, 18, 4, 34], [12>39, 12>22, 12>43, 12>41, 9>24, 17>37, 17>21, 17>23, 17>24, 37>45, 8>35, 8>43, 8>42, 8>31, 8>44, 8>15, 8>10, 35>38, 2>9, 2>8, 2>22, 2>14, 2>16, 2>5, 2>24, 2>18, 22>43, 22>28, 22>32, 22>34, 20>45, 14>31, 14>21, 28>35, 25>46, 25>37, 25>32, 31>35, 31>41, 31>32, 21>39, 21>37, 21>35, 21>25, 21>38, 16>35, 16>20, 3>45, 23>35, 23>43, 23>38, 15>39, 15>29, 11>43, 11>45, 11>25, 11>42, 5>12, 5>45, 5>32, 5>7, 1>39, 1>37, 1>20, 30>45, 10>22, 10>38, 6>17, 6>43, 6>25, 32>38, 26>37, 26>42, 7>8, 7>28, 7>42, 18>43, 18>21, 18>26, 4>14, 4>42, 4>41, 4>24, 4>34, 34>41], [28<42, 17<30, 37<29, 15<18, 17<44, 20>42, 41<10, 35>4, 22<31, 9>2, 35>11, 23>32, 16>30, 39<25, 38<11, 9<42, 20<28, 42>24, 20>21, 22<32, 14>18, 1<6, 44<7, 45<18, 25>4, 12>29, 15<7, 1<29, 2<24, 23>26, 43>30, 9>29, 9>15, 5>41, 39<20, 26>18, 8>15, 16>5, 22<45, 37>34], [ (12, 1), (46, 4), (39, 2), (9, 3), (17, 4), (37, 1), (8, 1), (35, 2), (2, 2), (22, 1), (43, 3), (20, 2), (14, 3), (45, 1), (28, 2), (25, 4), (42, 1), (31, 3), (21, 1), (38, 4), (16, 4), (3, 3), (44, 3), (23, 2), (15, 4), (11, 4), (5, 4), (41, 2), (1, 4), (30, 1), (10, 2), (6, 4), (32, 3), (26, 4), (29, 3), (24, 4), (7, 2), (18, 2), (4, 2), (34, 4)], [ (28<42, 4), (17<30, 3), (37<29, 4), (15<18, 1), (17<44, 1), (20>42, 1), (41<10, 4), (35>4, 1), (22<31, 1), (9>2, 2), (35>11, 3), (23>32, 1), (16>30, 2), (39<25, 4), (38<11, 4), (9<42, 4), (20<28, 1), (42>24, 2), (20>21, 1), (22<32, 4), (14>18, 2), (1<6, 4), (44<7, 3), (45<18, 3), (25>4, 3), (12>29, 2), (15<7, 4), (1<29, 1), (2<24, 3), (23>26, 1), (43>30, 2), (9>29, 4), (9>15, 2), (5>41, 2), (39<20, 2), (26>18, 3), (8>15, 4), (16>5, 4), (22<45, 1), (37>34, 1)])).

test(9, (50, 250, [<, >]), (40, 40, 4), ([16, 35, 34, 18, 11, 42, 7, 21, 19, 50, 5, 24, 13, 23, 33, 41, 26, 39, 8, 28, 32, 27, 43, 40, 1, 3, 9, 17, 29, 47, 44, 22, 14, 30, 6, 46, 15, 45, 37, 48], [16>50, 16>27, 16>22, 35>50, 34>42, 34>45, 18>23, 18>29, 18>44, 11>24, 11>41, 11>28, 11>43, 11>30, 11>45, 7>8, 7>30, 21>42, 21>40, 21>47, 21>44, 5>9, 5>29, 5>44, 24>28, 24>44, 13>42, 13>21, 13>28, 13>46, 23>45, 23>48, 33>34, 33>43, 33>48, 26>33, 26>32, 26>47, 26>30, 39>42, 39>41, 39>48, 8>34, 8>14, 8>48, 28>43, 28>45, 28>37, 27>34, 43>48, 40>43, 1>24, 1>17, 1>37, 3>35, 3>7, 3>24, 3>39, 3>32, 3>47, 3>46, 9>19, 9>23, 9>26, 9>32, 9>43, 17>18, 17>43, 17>44, 17>22, 17>45, 22>23, 22>28, 22>29, 22>44, 14>30, 14>48, 30>42, 30>50, 6>33, 6>39, 6>48, 15>24, 15>33, 15>41, 15>28, 37>40], [24<32, 13>46, 50<8, 21>33, 50<45, 28>43, 28<15, 24>44, 34<18, 8<48, 44>15, 35>41, 39<45, 42>19, 41<14, 5<8, 29>47, 21<13, 35<21, 39>17, 1<48, 41>47, 22<46, 1>3, 19<26, 21>6, 5<41, 35>5, 39>47, 26<15, 19<24, 22<15, 16>29, 34>41, 34>29, 29>6, 42>13, 24>47, 40>14, 33>40], [ (16, 2), (35, 1), (34, 1), (18, 1), (11, 3), (42, 2), (7, 3), (21, 1), (19, 4), (50, 1), (5, 1), (24, 2), (13, 4), (23, 3), (33, 3), (41, 1), (26, 1), (39, 2), (8, 2), (28, 3), (32, 1), (27, 3), (43, 3), (40, 2), (1, 1), (3, 4), (9, 3), (17, 4), (29, 3), (47, 1), (44, 4), (22, 4), (14, 3), (30, 1), (6, 4), (46, 3), (15, 2), (45, 3), (37, 1), (48, 1)], [ (24<32, 1), (13>46, 2), (50<8, 4), (21>33, 1), (50<45, 3), (28>43, 2), (28<15, 2), (24>44, 1), (34<18, 2), (8<48, 3), (44>15, 3), (35>41, 1), (39<45, 3), (42>19, 3), (41<14, 3), (5<8, 3), (29>47, 2), (21<13, 2), (35<21, 1), (39>17, 2), (1<48, 2), (41>47, 4), (22<46, 4), (1>3, 3), (19<26, 1), (21>6, 2), (5<41, 3), (35>5, 3), (39>47, 4), (26<15, 3), (19<24, 4), (22<15, 1), (16>29, 1), (34>41, 2), (34>29, 3), (29>6, 3), (42>13, 2), (24>47, 3), (40>14, 1), (33>40, 1)])).

test(10, (50, 250, [<, >]), (40, 40, 4), ([14, 49, 17, 24, 12, 20, 29, 5, 32, 1, 15, 25, 9, 3, 40, 37, 13, 35, 22, 19, 42, 26, 44, 28, 33, 6, 2, 16, 46, 8, 41, 30, 47, 11, 43, 34, 10, 4, 21, 23], [14>47, 14>34, 17>28, 17>30, 24>42, 12>24, 12>29, 12>26, 12>43, 20>40, 20>42, 29>42, 5>24, 5>29, 5>42, 5>44, 5>30, 5>11, 5>10, 1>15, 1>37, 1>13, 1>44, 15>49, 15>32, 15>30, 25>35, 9>29, 9>32, 9>37, 9>19, 9>44, 9>16, 3>5, 3>16, 3>21, 40>43, 37>47, 13>35, 42>43, 28>42, 28>44, 28>30, 33>42, 6>44, 6>16, 6>21, 2>32, 2>15, 2>11, 2>34, 2>21, 16>40, 16>47, 8>13, 8>44, 8>28, 41>42, 30>35, 30>44, 30>33, 30>47, 11>17, 11>30, 43>49, 10>49, 10>25, 10>19, 10>41, 10>47, 4>15, 4>35, 4>28, 4>30, 4>43, 21>28, 23>49, 23>28, 23>47, 23>34], [37>10, 5>1, 2>10, 15>10, 35>28, 41<23, 25>16, 32>22, 32>8, 40>43, 2>11, 41>34, 42>26, 15>43, 24<41, 12<9, 37>28, 26>8, 12>44, 15>4, 20>35, 37<22, 28<30, 19>43, 24>37, 47<4, 35>10, 29>26, 14<1, 9<11, 40>2, 3>34, 1<19, 15<42, 32>33, 1<11, 8>34, 14<46, 9<22, 2<34], [ (14, 3), (49, 3), (17, 3), (24, 1), (12, 4), (20, 3), (29, 1), (5, 3), (32, 1), (1, 2), (15, 3), (25, 1), (9, 3), (3, 1), (40, 4), (37, 4), (13, 3), (35, 2), (22, 4), (19, 3), (42, 2), (26, 2), (44, 1), (28, 1), (33, 1), (6, 3), (2, 4), (16, 2), (46, 1), (8, 1), (41, 2), (30, 1), (47, 2), (11, 1), (43, 3), (34, 3), (10, 4), (4, 2), (21, 4), (23, 4)], [ (37>10, 4), (5>1, 2), (2>10, 2), (15>10, 4), (35>28, 4), (41<23, 1), (25>16, 4), (32>22, 4), (32>8, 3), (40>43, 1), (2>11, 3), (41>34, 1), (42>26, 3), (15>43, 1), (24<41, 3), (12<9, 1), (37>28, 2), (26>8, 4), (12>44, 4), (15>4, 4), (20>35, 4), (37<22, 3), (28<30, 1), (19>43, 4), (24>37, 2), (47<4, 3), (35>10, 3), (29>26, 1), (14<1, 4), (9<11, 3), (40>2, 1), (3>34, 4), (1<19, 1), (15<42, 1), (32>33, 3), (1<11, 3), (8>34, 4), (14<46, 4), (9<22, 4), (2<34, 2)])).

%% 50, 250, [<, >]
%% 45, 90, 4

test(1, (50, 250, [<, >]), (45, 90, 4), ([46, 49, 30, 31, 37, 25, 8, 45, 3, 50, 15, 7, 20, 33, 13, 19, 2, 40, 39, 26, 23, 4, 43, 35, 27, 42, 47, 14, 1, 44, 10, 11, 17, 5, 29, 6, 22, 28, 32, 12, 36, 21, 48, 38, 24], [30>44, 30>38, 31>39, 37>40, 37>39, 37>38, 25>31, 25>43, 25>32, 8>26, 45>50, 3>40, 3>39, 3>26, 3>23, 3>10, 3>22, 3>38, 15>17, 15>32, 7>8, 7>43, 7>42, 20>26, 20>35, 20>22, 20>32, 33>50, 33>35, 33>42, 13>30, 13>31, 13>45, 13>20, 13>39, 13>35, 13>27, 13>28, 19>30, 19>21, 2>45, 2>7, 2>4, 39>50, 39>47, 23>43, 23>44, 23>38, 4>25, 4>50, 4>7, 4>29, 43>45, 27>31, 27>39, 42>46, 47>48, 14>25, 14>48, 1>46, 1>8, 1>20, 1>23, 1>10, 1>5, 44>49, 10>50, 11>26, 11>47, 11>48, 17>33, 17>40, 17>39, 17>44, 17>48, 5>31, 5>33, 5>22, 5>28, 5>48, 29>37, 29>43, 6>13, 6>47, 6>44, 6>36, 22>49, 22>45, 22>29, 22>24, 28>42, 28>48, 12>42, 12>17, 21>31, 21>38, 38>39, 38>43, 24>40, 24>48], [31<33, 23>14, 30<12, 50>35, 3>42, 37>38, 8<44, 45>23, 49<5, 30>4, 2<32, 6>28, 19>29, 49<38, 27>22, 7<1, 31<1, 50<11, 8<36, 37>11, 50<1, 49<26, 43>11, 46<6, 31<44, 13<27, 3>29, 5<38, 4<44, 49<43, 33<2, 8>2, 15<24, 31>32, 30<11, 15>40, 29>6, 3<50, 19>26, 49<50, 47>11, 23<10, 46<4, 3>38, 50<22, 8>17, 11<12, 33<29, 37<14, 25<50, 33<43, 28<48, 25>32, 25>12, 37<19, 33<47, 13<39, 50<38, 27>36, 29<12, 43<38, 30<27, 46<20, 31>5, 29<22, 30<37, 46>35, 46<13, 49<2, 3>5, 37>35, 14>17, 27<12, 22>36, 23<48, 46<31, 30<28, 30<29, 42>21, 31<48, 20>19, 39<17, 43<5, 50>43, 7<13, 43<36, 4<17, 49<48, 31>14, 40>35], [ (46, 3), (49, 2), (30, 4), (31, 2), (37, 2), (25, 1), (8, 2), (45, 2), (3, 3), (50, 4), (15, 2), (7, 4), (20, 4), (33, 3), (13, 3), (19, 1), (2, 3), (40, 2), (39, 4), (26, 2), (23, 3), (4, 4), (43, 2), (35, 2), (27, 4), (42, 3), (47, 3), (14, 1), (1, 4), (44, 4), (10, 4), (11, 3), (17, 2), (5, 3), (29, 3), (6, 2), (22, 2), (28, 4), (32, 2), (12, 3), (36, 2), (21, 2), (48, 4), (38, 1), (24, 1)], [ (31<33, 1), (23>14, 4), (30<12, 1), (50>35, 3), (3>42, 1), (37>38, 3), (8<44, 1), (45>23, 4), (49<5, 2), (30>4, 1), (2<32, 2), (6>28, 2), (19>29, 1), (49<38, 4), (27>22, 3), (7<1, 1), (31<1, 4), (50<11, 3), (8<36, 4), (37>11, 3), (50<1, 2), (49<26, 2), (43>11, 4), (46<6, 2), (31<44, 2), (13<27, 2), (3>29, 4), (5<38, 1), (4<44, 3), (49<43, 1), (33<2, 4), (8>2, 4), (15<24, 4), (31>32, 4), (30<11, 3), (15>40, 3), (29>6, 3), (3<50, 1), (19>26, 1), (49<50, 3), (47>11, 1), (23<10, 4), (46<4, 2), (3>38, 4), (50<22, 3), (8>17, 1), (11<12, 1), (33<29, 2), (37<14, 2), (25<50, 3), (33<43, 2), (28<48, 3), (25>32, 1), (25>12, 2), (37<19, 1), (33<47, 2), (13<39, 4), (50<38, 1), (27>36, 4), (29<12, 1), (43<38, 4), (30<27, 4), (46<20, 4), (31>5, 1), (29<22, 1), (30<37, 4), (46>35, 4), (46<13, 2), (49<2, 1), (3>5, 4), (37>35, 3), (14>17, 2), (27<12, 1), (22>36, 2), (23<48, 1), (46<31, 1), (30<28, 2), (30<29, 1), (42>21, 1), (31<48, 2), (20>19, 3), (39<17, 4), (43<5, 3), (50>43, 1), (7<13, 4), (43<36, 4), (4<17, 4), (49<48, 3), (31>14, 2), (40>35, 3)])).

test(2, (50, 250, [<, >]), (45, 90, 4), ([11, 3, 8, 50, 47, 19, 18, 5, 41, 45, 10, 37, 46, 22, 2, 7, 26, 49, 23, 44, 38, 21, 27, 34, 35, 17, 48, 33, 4, 31, 29, 6, 15, 20, 16, 32, 42, 14, 36, 43, 25, 13, 12, 30, 9], [11>26, 11>35, 11>33, 11>16, 11>25, 3>50, 3>27, 3>34, 3>29, 3>20, 3>14, 8>19, 8>37, 8>33, 19>48, 19>33, 19>36, 18>47, 18>41, 18>45, 18>23, 5>45, 5>10, 5>23, 5>21, 5>6, 5>20, 45>48, 10>45, 10>21, 10>30, 37>44, 37>48, 22>49, 22>23, 22>27, 2>3, 2>18, 2>10, 2>34, 7>8, 7>19, 7>17, 7>20, 26>41, 26>35, 26>29, 26>43, 23>48, 21>38, 21>48, 21>29, 27>35, 27>36, 34>35, 35>36, 17>47, 17>35, 17>48, 17>33, 17>29, 17>42, 17>43, 48>50, 33>50, 33>49, 4>47, 4>26, 4>6, 29>41, 29>49, 29>32, 6>18, 6>33, 6>20, 15>20, 15>16, 15>32, 15>42, 20>41, 20>44, 20>38, 20>34, 20>32, 20>36, 20>30, 16>19, 16>26, 32>41, 32>49, 32>48, 42>45, 42>44, 14>46, 14>27, 43>49, 25>26, 25>27, 25>34, 25>43, 13>43, 12>36, 30>41, 30>31, 30>43, 9>50, 9>10, 9>26, 9>16, 9>32, 9>13], [49>32, 5<27, 47<33, 31<43, 8<21, 7>23, 19>17, 11<14, 23<29, 20>12, 37>20, 22>16, 42<43, 41<15, 44>27, 45<33, 32>25, 2>36, 19<36, 50<27, 12<30, 26>49, 38>16, 47<18, 47<25, 31>29, 45>4, 21>14, 2>27, 2<23, 4>32, 38<34, 23<17, 22>21, 11<6, 37>46, 41<21, 20<25, 11<22, 36<12, 41<36, 37<31, 10<23, 5<21, 17<12, 5>41, 6<20, 26>43, 7<29, 26<13, 45>34, 45<46, 6<36, 14<25, 21>9, 37>7, 5<26, 42<12, 49<44, 16>36, 44<34, 32<13, 16>12, 38<36, 10<42, 33>4, 23<14, 37<42, 50<10, 17>4, 6>42, 11>49, 21>25, 33>31, 38<27, 41>4, 26<23, 29>30, 2>17, 17<42, 10>48, 46>48, 41<30, 18<23, 49<9, 22>9, 22>44, 15<20, 35<29, 22>49], [ (11, 4), (3, 1), (8, 1), (50, 3), (47, 2), (19, 3), (18, 4), (5, 1), (41, 4), (45, 3), (10, 2), (37, 3), (46, 3), (22, 3), (2, 2), (7, 4), (26, 4), (49, 2), (23, 2), (44, 3), (38, 4), (21, 4), (27, 1), (34, 2), (35, 4), (17, 1), (48, 2), (33, 1), (4, 3), (31, 1), (29, 2), (6, 4), (15, 4), (20, 1), (16, 4), (32, 3), (42, 4), (14, 1), (36, 1), (43, 4), (25, 3), (13, 4), (12, 3), (30, 4), (9, 2)], [ (49>32, 1), (5<27, 3), (47<33, 4), (31<43, 1), (8<21, 2), (7>23, 2), (19>17, 3), (11<14, 2), (23<29, 2), (20>12, 2), (37>20, 2), (22>16, 1), (42<43, 3), (41<15, 1), (44>27, 1), (45<33, 1), (32>25, 1), (2>36, 1), (19<36, 1), (50<27, 3), (12<30, 2), (26>49, 3), (38>16, 2), (47<18, 3), (47<25, 2), (31>29, 3), (45>4, 3), (21>14, 1), (2>27, 3), (2<23, 3), (4>32, 3), (38<34, 3), (23<17, 3), (22>21, 3), (11<6, 1), (37>46, 1), (41<21, 2), (20<25, 1), (11<22, 3), (36<12, 1), (41<36, 3), (37<31, 3), (10<23, 2), (5<21, 3), (17<12, 4), (5>41, 2), (6<20, 4), (26>43, 1), (7<29, 4), (26<13, 1), (45>34, 1), (45<46, 1), (6<36, 4), (14<25, 4), (21>9, 4), (37>7, 1), (5<26, 2), (42<12, 4), (49<44, 2), (16>36, 3), (44<34, 2), (32<13, 3), (16>12, 1), (38<36, 3), (10<42, 2), (33>4, 3), (23<14, 4), (37<42, 3), (50<10, 3), (17>4, 4), (6>42, 1), (11>49, 1), (21>25, 3), (33>31, 2), (38<27, 1), (41>4, 1), (26<23, 4), (29>30, 3), (2>17, 2), (17<42, 3), (10>48, 4), (46>48, 1), (41<30, 3), (18<23, 1), (49<9, 1), (22>9, 4), (22>44, 4), (15<20, 3), (35<29, 3), (22>49, 2)])).

test(3, (50, 250, [<, >]), (45, 90, 4), ([22, 7, 46, 15, 49, 36, 20, 11, 2, 50, 19, 24, 6, 26, 1, 47, 13, 32, 10, 40, 12, 38, 45, 27, 28, 35, 48, 17, 4, 43, 37, 39, 41, 34, 25, 29, 21, 31, 5, 3, 16, 30, 42, 23, 9], [22>38, 22>28, 7>15, 7>11, 7>26, 7>39, 7>16, 15>22, 15>41, 36>46, 36>50, 36>42, 20>22, 20>46, 20>26, 20>34, 20>29, 11>50, 11>13, 11>12, 11>25, 11>23, 2>37, 2>3, 24>46, 6>28, 6>48, 6>17, 6>34, 26>32, 26>27, 26>39, 26>41, 26>30, 1>37, 1>34, 13>42, 32>46, 32>47, 32>43, 32>37, 10>20, 10>50, 10>26, 10>13, 10>34, 10>29, 10>23, 40>48, 12>49, 12>47, 12>37, 12>34, 27>32, 27>39, 35>46, 35>49, 35>38, 35>42, 17>22, 17>40, 17>34, 17>21, 4>22, 4>49, 4>35, 4>29, 4>5, 4>16, 4>42, 39>43, 34>48, 25>26, 25>47, 25>34, 21>50, 21>45, 21>37, 31>38, 5>22, 5>7, 5>38, 5>27, 5>21, 5>42, 3>50, 3>24, 16>27, 16>31, 30>49, 30>48, 42>50, 23>25, 9>45, 9>16, 9>23], [27<29, 49>38, 39>21, 20>5, 5<3, 4<16, 36>26, 38<45, 20>50, 49>6, 22<31, 45>39, 7>43, 27>5, 11<40, 11>26, 50>38, 15<16, 32>4, 22<32, 38<25, 1>21, 41>21, 22<10, 40<12, 40>30, 26<4, 38>48, 47<23, 13>32, 36<48, 24>45, 36<37, 35>41, 23<9, 34<5, 38>35, 12>41, 48<30, 2>47, 48>4, 11>45, 38<27, 36>27, 2>21, 7<24, 11<6, 50<48, 17>29, 48>9, 7<15, 47<12, 47<30, 10>17, 19>40, 12>43, 35>17, 24<3, 26<16, 32>27, 10<28, 41>42, 49<36, 26<35, 46>50, 50>32, 49<9, 11<39, 27<31, 50>34, 19>32, 24<29, 12<23, 22<13, 6>10, 46<15, 27<39, 46<36, 7<32, 50>40, 15<21, 38>4, 10>27, 25>31, 6<9, 22<12, 20<24, 12>39, 22<15, 20>26], [ (22, 2), (7, 3), (46, 2), (15, 2), (49, 2), (36, 2), (20, 1), (11, 2), (2, 3), (50, 3), (19, 2), (24, 3), (6, 2), (26, 1), (1, 2), (47, 2), (13, 3), (32, 3), (10, 1), (40, 2), (12, 1), (38, 2), (45, 4), (27, 4), (28, 2), (35, 4), (48, 3), (17, 4), (4, 4), (43, 1), (37, 1), (39, 4), (41, 2), (34, 4), (25, 1), (29, 4), (21, 4), (31, 2), (5, 4), (3, 4), (16, 3), (30, 3), (42, 1), (23, 4), (9, 2)], [ (27<29, 1), (49>38, 3), (39>21, 1), (20>5, 1), (5<3, 2), (4<16, 1), (36>26, 3), (38<45, 1), (20>50, 2), (49>6, 1), (22<31, 4), (45>39, 3), (7>43, 4), (27>5, 4), (11<40, 4), (11>26, 4), (50>38, 2), (15<16, 4), (32>4, 1), (22<32, 2), (38<25, 1), (1>21, 2), (41>21, 1), (22<10, 3), (40<12, 2), (40>30, 2), (26<4, 2), (38>48, 3), (47<23, 4), (13>32, 1), (36<48, 2), (24>45, 2), (36<37, 1), (35>41, 2), (23<9, 1), (34<5, 3), (38>35, 1), (12>41, 4), (48<30, 2), (2>47, 3), (48>4, 4), (11>45, 1), (38<27, 4), (36>27, 3), (2>21, 1), (7<24, 1), (11<6, 2), (50<48, 1), (17>29, 3), (48>9, 2), (7<15, 1), (47<12, 4), (47<30, 4), (10>17, 1), (19>40, 4), (12>43, 4), (35>17, 3), (24<3, 4), (26<16, 3), (32>27, 1), (10<28, 4), (41>42, 4), (49<36, 3), (26<35, 2), (46>50, 2), (50>32, 4), (49<9, 3), (11<39, 2), (27<31, 1), (50>34, 3), (19>32, 1), (24<29, 3), (12<23, 2), (22<13, 1), (6>10, 4), (46<15, 2), (27<39, 1), (46<36, 4), (7<32, 1), (50>40, 1), (15<21, 4), (38>4, 4), (10>27, 3), (25>31, 4), (6<9, 4), (22<12, 3), (20<24, 4), (12>39, 3), (22<15, 2), (20>26, 4)])).

test(4, (50, 250, [<, >]), (45, 90, 4), ([13, 26, 20, 41, 8, 38, 28, 47, 21, 50, 10, 49, 34, 15, 37, 40, 7, 27, 33, 18, 43, 24, 4, 9, 32, 2, 5, 44, 23, 11, 46, 6, 1, 35, 30, 42, 31, 14, 48, 12, 22, 45, 29, 39, 25], [13>38, 13>50, 13>35, 13>25, 26>41, 26>34, 26>27, 26>48, 20>47, 20>35, 20>42, 20>39, 41>49, 8>27, 8>39, 28>47, 28>30, 28>31, 21>28, 21>27, 21>24, 21>30, 21>45, 21>39, 10>44, 10>42, 34>37, 15>49, 15>39, 40>47, 40>49, 40>48, 7>32, 27>31, 27>29, 33>37, 33>40, 24>25, 4>50, 4>34, 4>27, 4>43, 4>23, 4>29, 9>21, 9>34, 9>40, 32>44, 2>26, 2>41, 2>8, 2>28, 2>32, 2>23, 2>46, 2>6, 2>30, 2>12, 2>39, 44>47, 23>33, 23>32, 11>34, 11>42, 11>14, 11>45, 6>21, 6>49, 6>24, 1>38, 1>21, 1>49, 1>27, 35>46, 30>41, 42>43, 42>46, 31>38, 31>43, 31>39, 14>50, 14>44, 48>50, 12>13, 12>27, 12>30, 12>45, 22>26, 22>33, 22>24, 22>48, 22>39, 29>38, 39>40, 25>34, 25>40, 25>42], [5>39, 20<1, 41>23, 50>45, 13>32, 43<25, 18>44, 1>45, 26<41, 37<42, 31<22, 20>5, 38<37, 10>2, 4<29, 40>24, 49>30, 4>25, 20>40, 11<12, 26<21, 37<18, 2>23, 4<45, 10<18, 41>5, 35<29, 7>42, 1<39, 11>48, 14>39, 47<32, 44<45, 27<5, 49<48, 41>35, 8>34, 22<25, 44>35, 4>11, 5<35, 4<9, 50<5, 11>30, 4>32, 40>30, 20<30, 49<6, 43>14, 4>35, 13>37, 13>11, 27<25, 4>30, 28>48, 46<6, 20<35, 47<34, 20>10, 47>37, 10>48, 34>44, 11<31, 41<49, 8<27, 37<44, 28<14, 24<48, 33>32, 8>46, 40<42, 21<37, 37<30, 5>29, 47<9, 40>31, 11>1, 49<15, 7<43, 45<29, 31<45, 7<45, 18<12, 47>31, 32<44, 34>25, 6>14, 11<35, 37>1, 26>18], [ (13, 2), (26, 2), (20, 2), (41, 3), (8, 3), (38, 1), (28, 4), (47, 4), (21, 4), (50, 1), (10, 3), (49, 2), (34, 2), (15, 1), (37, 3), (40, 3), (7, 3), (27, 4), (33, 4), (18, 4), (43, 1), (24, 2), (4, 1), (9, 3), (32, 3), (2, 4), (5, 2), (44, 4), (23, 2), (11, 4), (46, 2), (6, 3), (1, 2), (35, 4), (30, 4), (42, 2), (31, 3), (14, 3), (48, 4), (12, 3), (22, 3), (45, 2), (29, 4), (39, 3), (25, 1)], [ (5>39, 4), (20<1, 4), (41>23, 2), (50>45, 3), (13>32, 1), (43<25, 4), (18>44, 1), (1>45, 1), (26<41, 1), (37<42, 3), (31<22, 2), (20>5, 1), (38<37, 1), (10>2, 4), (4<29, 4), (40>24, 1), (49>30, 1), (4>25, 4), (20>40, 1), (11<12, 4), (26<21, 4), (37<18, 3), (2>23, 1), (4<45, 3), (10<18, 3), (41>5, 3), (35<29, 2), (7>42, 2), (1<39, 3), (11>48, 1), (14>39, 4), (47<32, 1), (44<45, 1), (27<5, 3), (49<48, 3), (41>35, 3), (8>34, 4), (22<25, 2), (44>35, 4), (4>11, 4), (5<35, 2), (4<9, 1), (50<5, 2), (11>30, 1), (4>32, 3), (40>30, 2), (20<30, 1), (49<6, 2), (43>14, 3), (4>35, 3), (13>37, 1), (13>11, 2), (27<25, 1), (4>30, 4), (28>48, 4), (46<6, 1), (20<35, 2), (47<34, 3), (20>10, 3), (47>37, 2), (10>48, 3), (34>44, 2), (11<31, 2), (41<49, 1), (8<27, 3), (37<44, 4), (28<14, 3), (24<48, 4), (33>32, 4), (8>46, 3), (40<42, 2), (21<37, 3), (37<30, 4), (5>29, 1), (47<9, 4), (40>31, 2), (11>1, 2), (49<15, 2), (7<43, 2), (45<29, 2), (31<45, 4), (7<45, 4), (18<12, 1), (47>31, 4), (32<44, 1), (34>25, 3), (6>14, 1), (11<35, 1), (37>1, 3), (26>18, 1)])).

test(5, (50, 250, [<, >]), (45, 90, 4), ([2, 16, 25, 46, 4, 42, 12, 18, 13, 22, 8, 36, 45, 21, 11, 23, 43, 15, 49, 20, 50, 1, 3, 41, 33, 29, 37, 5, 7, 48, 28, 10, 19, 40, 38, 30, 6, 9, 39, 31, 14, 27, 35, 44, 47], [2>11, 2>49, 2>7, 2>14, 16>33, 16>48, 16>19, 16>39, 16>47, 25>35, 46>49, 4>49, 4>33, 4>5, 4>40, 42>43, 12>18, 12>45, 12>21, 12>47, 13>42, 13>23, 13>41, 13>30, 13>44, 22>36, 22>49, 22>33, 22>37, 22>30, 8>42, 8>20, 8>41, 8>19, 8>35, 36>38, 21>45, 21>40, 11>49, 11>37, 11>19, 11>38, 11>39, 43>46, 15>36, 15>19, 20>41, 20>47, 1>42, 1>37, 1>48, 1>38, 1>47, 3>36, 3>23, 3>37, 3>28, 3>10, 3>39, 3>35, 29>46, 29>49, 29>33, 29>48, 29>39, 37>40, 5>41, 5>10, 5>35, 5>47, 7>18, 7>8, 7>45, 7>28, 7>30, 7>9, 48>49, 48>50, 28>36, 28>45, 28>40, 28>39, 10>12, 10>18, 10>45, 10>23, 10>29, 10>48, 10>40, 10>35, 19>36, 19>50, 19>41, 19>28, 19>30, 30>49, 30>50, 30>44, 6>42, 6>13, 6>45, 9>25, 9>11, 9>41, 39>40, 31>36, 14>22, 14>37, 14>28, 27>37, 44>45, 44>50], [33>37, 4>35, 19>39, 49<10, 18<50, 27<44, 4>41, 12<49, 49<41, 5<30, 20<3, 21<5, 15<29, 4>33, 22<40, 48>14, 15<5, 25>29, 29<10, 15>35, 11>47, 16<49, 48<28, 25<48, 43>47, 25>43, 9<44, 10<14, 1<19, 43>1, 33>35, 2<30, 16<35, 46>6, 13<14, 19<30, 20>29, 43>35, 22<20, 37>6, 35>47, 29>27, 16>33, 20<48, 7<31, 9<27, 16>47, 21>48, 13>50, 36>41, 8<6, 21<15, 10<47, 16>6, 15>40, 33<40, 15>7, 11<30, 18>47, 7<28, 9>47, 23>43, 18>20, 21>6, 49<47, 21<14, 41<6, 4<44, 12>20, 46<11, 39>35, 21>23, 13>21, 46>42, 23<47, 22<44, 25<11, 18<14, 5<19, 2>4, 46<29, 36>45, 28<6, 15<41, 36<6, 12<9, 36<37, 18<21, 2>7, 42>19], [ (2, 4), (16, 1), (25, 3), (46, 4), (4, 1), (42, 2), (12, 3), (18, 2), (13, 1), (22, 1), (8, 4), (36, 4), (45, 2), (21, 3), (11, 2), (23, 2), (43, 2), (15, 4), (49, 4), (20, 1), (50, 2), (1, 4), (3, 3), (41, 3), (33, 1), (29, 1), (37, 3), (5, 3), (7, 3), (48, 3), (28, 1), (10, 4), (19, 1), (40, 2), (38, 3), (30, 1), (6, 3), (9, 4), (39, 4), (31, 1), (14, 4), (27, 4), (35, 4), (44, 1), (47, 3)], [ (33>37, 2), (4>35, 3), (19>39, 1), (49<10, 4), (18<50, 4), (27<44, 3), (4>41, 2), (12<49, 3), (49<41, 2), (5<30, 2), (20<3, 2), (21<5, 2), (15<29, 2), (4>33, 4), (22<40, 3), (48>14, 1), (15<5, 1), (25>29, 4), (29<10, 3), (15>35, 2), (11>47, 1), (16<49, 1), (48<28, 4), (25<48, 2), (43>47, 4), (25>43, 3), (9<44, 3), (10<14, 3), (1<19, 1), (43>1, 2), (33>35, 3), (2<30, 2), (16<35, 1), (46>6, 3), (13<14, 1), (19<30, 4), (20>29, 3), (43>35, 3), (22<20, 2), (37>6, 4), (35>47, 3), (29>27, 3), (16>33, 2), (20<48, 1), (7<31, 2), (9<27, 1), (16>47, 3), (21>48, 3), (13>50, 4), (36>41, 2), (8<6, 1), (21<15, 4), (10<47, 1), (16>6, 1), (15>40, 2), (33<40, 4), (15>7, 2), (11<30, 4), (18>47, 2), (7<28, 1), (9>47, 1), (23>43, 2), (18>20, 4), (21>6, 3), (49<47, 1), (21<14, 2), (41<6, 1), (4<44, 3), (12>20, 3), (46<11, 4), (39>35, 3), (21>23, 3), (13>21, 4), (46>42, 3), (23<47, 2), (22<44, 3), (25<11, 4), (18<14, 1), (5<19, 4), (2>4, 1), (46<29, 3), (36>45, 4), (28<6, 3), (15<41, 4), (36<6, 1), (12<9, 4), (36<37, 1), (18<21, 3), (2>7, 3), (42>19, 4)])).

test(6, (50, 250, [<, >]), (45, 90, 4), ([18, 20, 24, 3, 19, 48, 7, 11, 13, 29, 2, 33, 23, 38, 28, 31, 16, 35, 36, 25, 40, 10, 50, 9, 32, 17, 22, 8, 27, 41, 37, 21, 45, 47, 39, 46, 5, 4, 1, 30, 15, 34, 49, 12, 42], [18>38, 18>31, 18>22, 18>47, 18>34, 20>31, 20>36, 24>48, 24>38, 24>32, 3>20, 3>19, 3>28, 3>46, 3>15, 7>23, 7>27, 7>41, 11>35, 11>25, 13>29, 29>48, 29>31, 29>30, 2>18, 2>38, 2>32, 2>27, 33>41, 33>39, 23>48, 23>33, 23>32, 38>42, 28>38, 31>35, 31>50, 16>24, 16>29, 16>25, 16>32, 16>17, 16>22, 16>42, 25>39, 40>48, 40>45, 10>40, 10>42, 9>25, 9>45, 9>34, 9>12, 32>33, 32>41, 32>39, 32>42, 17>20, 17>24, 17>19, 17>46, 22>38, 22>25, 22>40, 22>50, 22>37, 22>39, 22>30, 8>50, 8>49, 27>48, 27>28, 27>39, 37>48, 37>42, 21>40, 21>22, 45>47, 5>15, 4>17, 4>12, 1>40, 1>50, 1>27, 1>45, 1>46, 15>38, 15>31, 34>36, 34>40, 34>50, 34>42, 12>45, 12>49], [22<5, 25>5, 50>5, 25<1, 22<4, 9<39, 34>49, 33<32, 20<16, 13>32, 29>4, 47<49, 24<41, 11>8, 9<27, 40<34, 31<27, 11>33, 41<21, 7>41, 24>35, 11>41, 40<47, 24<30, 17<1, 35>40, 13>39, 23<27, 3<50, 40>10, 10<34, 35>32, 7>1, 11>30, 25>10, 38>15, 17>15, 33>38, 20>37, 7>31, 19>33, 47>5, 47<1, 11>35, 3>37, 38>17, 48<15, 21>1, 48<30, 18<49, 30<42, 32<37, 1<42, 38<22, 38<10, 50>45, 33>49, 48>9, 13>47, 18<25, 12<42, 29<5, 48<31, 20>42, 29<8, 45<1, 31>35, 16<22, 45>15, 9<8, 9<22, 3<45, 11>50, 20>7, 23>39, 23<49, 36>9, 5<12, 34<42, 32>21, 8>49, 50<34, 20<13, 20>17, 8>41, 40>46, 33>47, 35>15, 3<22, 48<37], [ (18, 2), (20, 2), (24, 4), (3, 2), (19, 3), (48, 2), (7, 4), (11, 4), (13, 1), (29, 2), (2, 1), (33, 2), (23, 1), (38, 1), (28, 3), (31, 3), (16, 4), (35, 1), (36, 1), (25, 3), (40, 4), (10, 3), (50, 3), (9, 1), (32, 3), (17, 1), (22, 1), (8, 2), (27, 4), (41, 3), (37, 1), (21, 1), (45, 4), (47, 3), (39, 3), (46, 3), (5, 2), (4, 2), (1, 2), (30, 2), (15, 4), (34, 2), (49, 3), (12, 4), (42, 1)], [ (22<5, 3), (25>5, 3), (50>5, 1), (25<1, 1), (22<4, 2), (9<39, 4), (34>49, 1), (33<32, 4), (20<16, 4), (13>32, 4), (29>4, 1), (47<49, 3), (24<41, 2), (11>8, 1), (9<27, 3), (40<34, 2), (31<27, 2), (11>33, 1), (41<21, 2), (7>41, 1), (24>35, 3), (11>41, 2), (40<47, 1), (24<30, 1), (17<1, 1), (35>40, 1), (13>39, 2), (23<27, 3), (3<50, 1), (40>10, 3), (10<34, 4), (35>32, 4), (7>1, 4), (11>30, 3), (25>10, 4), (38>15, 3), (17>15, 3), (33>38, 2), (20>37, 4), (7>31, 2), (19>33, 2), (47>5, 1), (47<1, 2), (11>35, 2), (3>37, 2), (38>17, 4), (48<15, 4), (21>1, 2), (48<30, 3), (18<49, 4), (30<42, 3), (32<37, 1), (1<42, 2), (38<22, 3), (38<10, 3), (50>45, 2), (33>49, 3), (48>9, 3), (13>47, 1), (18<25, 1), (12<42, 3), (29<5, 2), (48<31, 3), (20>42, 2), (29<8, 4), (45<1, 4), (31>35, 3), (16<22, 3), (45>15, 1), (9<8, 2), (9<22, 1), (3<45, 3), (11>50, 4), (20>7, 2), (23>39, 4), (23<49, 1), (36>9, 2), (5<12, 4), (34<42, 2), (32>21, 1), (8>49, 2), (50<34, 2), (20<13, 3), (20>17, 4), (8>41, 1), (40>46, 2), (33>47, 3), (35>15, 4), (3<22, 4), (48<37, 2)])).

test(7, (50, 250, [<, >]), (45, 90, 4), ([8, 47, 27, 37, 23, 42, 13, 29, 33, 45, 7, 48, 49, 24, 41, 16, 2, 26, 35, 18, 40, 6, 43, 4, 17, 20, 25, 31, 50, 36, 9, 21, 46, 39, 30, 22, 34, 5, 32, 11, 19, 12, 14, 3, 28], [8>22, 8>19, 27>35, 37>48, 37>46, 42>48, 42>43, 13>21, 33>42, 33>48, 7>42, 7>22, 7>32, 7>11, 48>50, 49>50, 24>31, 16>23, 16>42, 16>24, 16>20, 2>47, 2>39, 2>12, 2>14, 26>29, 35>37, 18>42, 18>41, 18>25, 40>42, 40>48, 6>20, 6>50, 43>45, 43>48, 4>37, 4>45, 4>6, 4>21, 4>11, 17>47, 17>21, 20>42, 20>45, 20>26, 20>40, 20>34, 25>27, 25>37, 25>42, 25>33, 25>35, 25>36, 25>32, 31>46, 9>18, 9>39, 21>40, 39>47, 30>47, 30>37, 30>48, 30>32, 22>23, 22>34, 34>35, 34>50, 5>49, 5>21, 5>34, 32>35, 11>33, 11>16, 11>25, 11>21, 11>30, 12>42, 12>31, 14>37, 14>40, 14>46, 3>47, 3>27, 3>23, 3>26, 3>20, 3>39, 3>28, 28>40, 28>32], [33<18, 26>43, 48>32, 8>16, 41<32, 46<34, 14<3, 25<19, 17>12, 47<17, 45>49, 40<46, 33>31, 4<32, 42<34, 24<41, 47<13, 33>11, 31<9, 18>5, 33<25, 27>35, 16>9, 5>32, 33>9, 17>20, 42<26, 20>34, 34>14, 16>46, 49<20, 4>36, 16<32, 47<21, 46<22, 29<17, 6>32, 48<41, 27<42, 32<19, 31<32, 45>31, 6>12, 33<5, 18>34, 18<12, 48<4, 7<17, 23>14, 23>30, 35>50, 26>12, 18<6, 23<32, 42<24, 7>24, 42<17, 45>21, 17<22, 48>40, 42<41, 26>35, 21>3, 8<9, 47>43, 29>16, 43>22, 43>28, 21>12, 6>14, 25<28, 45>41, 48<30, 40>32, 7>46, 18>46, 25<5, 7>43, 33>14, 7>40, 6<19, 41>30, 7<11, 47>7, 25>3, 26<14, 33<34, 47>26, 5<14, 40<22], [ (8, 4), (47, 4), (27, 3), (37, 2), (23, 1), (42, 1), (13, 1), (29, 3), (33, 4), (45, 4), (7, 3), (48, 1), (49, 2), (24, 4), (41, 1), (16, 1), (2, 4), (26, 2), (35, 1), (18, 3), (40, 2), (6, 4), (43, 3), (4, 1), (17, 3), (20, 1), (25, 4), (31, 4), (50, 4), (36, 4), (9, 2), (21, 4), (46, 4), (39, 4), (30, 3), (22, 4), (34, 4), (5, 2), (32, 4), (11, 4), (19, 1), (12, 3), (14, 1), (3, 4), (28, 4)], [ (33<18, 4), (26>43, 3), (48>32, 3), (8>16, 3), (41<32, 1), (46<34, 3), (14<3, 1), (25<19, 3), (17>12, 4), (47<17, 3), (45>49, 4), (40<46, 2), (33>31, 3), (4<32, 4), (42<34, 2), (24<41, 1), (47<13, 1), (33>11, 3), (31<9, 4), (18>5, 4), (33<25, 2), (27>35, 3), (16>9, 3), (5>32, 3), (33>9, 3), (17>20, 4), (42<26, 3), (20>34, 4), (34>14, 4), (16>46, 3), (49<20, 3), (4>36, 2), (16<32, 1), (47<21, 1), (46<22, 1), (29<17, 3), (6>32, 1), (48<41, 3), (27<42, 2), (32<19, 1), (31<32, 1), (45>31, 1), (6>12, 1), (33<5, 4), (18>34, 4), (18<12, 1), (48<4, 4), (7<17, 4), (23>14, 1), (23>30, 3), (35>50, 3), (26>12, 2), (18<6, 1), (23<32, 1), (42<24, 4), (7>24, 1), (42<17, 1), (45>21, 3), (17<22, 2), (48>40, 1), (42<41, 3), (26>35, 2), (21>3, 2), (8<9, 1), (47>43, 4), (29>16, 3), (43>22, 3), (43>28, 4), (21>12, 4), (6>14, 1), (25<28, 1), (45>41, 3), (48<30, 2), (40>32, 1), (7>46, 2), (18>46, 3), (25<5, 1), (7>43, 1), (33>14, 4), (7>40, 4), (6<19, 3), (41>30, 4), (7<11, 1), (47>7, 3), (25>3, 3), (26<14, 3), (33<34, 4), (47>26, 3), (5<14, 1), (40<22, 4)])).

test(8, (50, 250, [<, >]), (45, 90, 4), ([40, 20, 21, 4, 41, 14, 7, 1, 18, 2, 31, 19, 11, 37, 46, 15, 42, 9, 45, 38, 24, 48, 22, 25, 39, 12, 44, 27, 30, 35, 36, 33, 16, 3, 6, 43, 26, 8, 28, 47, 17, 23, 50, 32, 13], [20>21, 20>45, 20>24, 20>32, 4>37, 4>48, 4>25, 4>30, 4>28, 41>47, 41>50, 14>18, 7>37, 7>22, 1>11, 1>22, 1>43, 18>37, 18>45, 18>24, 2>21, 2>41, 2>19, 2>42, 2>25, 2>36, 2>26, 2>28, 31>42, 31>38, 19>31, 19>24, 19>48, 19>30, 19>33, 19>26, 19>23, 11>39, 37>46, 37>38, 15>41, 42>43, 9>27, 9>26, 9>28, 38>43, 24>39, 24>30, 24>47, 22>35, 22>47, 25>45, 25>48, 25>26, 25>32, 39>46, 39>42, 12>41, 12>31, 12>33, 12>32, 27>46, 27>42, 30>40, 35>37, 36>39, 33>41, 33>37, 33>36, 16>25, 16>26, 3>18, 3>47, 6>19, 6>33, 6>16, 6>23, 26>31, 26>37, 26>39, 26>44, 8>31, 8>12, 8>13, 28>50, 17>38, 17>30, 23>26, 23>50, 32>45, 13>41, 13>25, 13>28], [44>30, 19<50, 2<17, 37<6, 44>47, 46<39, 37<8, 14<18, 1>39, 41>16, 21>50, 7<44, 7>18, 1<48, 20<35, 11>30, 15<8, 11<15, 2>15, 25>47, 33<43, 1<46, 33>8, 21>37, 27>28, 11<39, 4>15, 4<26, 46<12, 19<39, 45<27, 37>26, 40>8, 7<17, 44>43, 14>15, 45>32, 12<50, 7>42, 11>23, 4<47, 19>33, 18<25, 4<30, 45>26, 11>17, 14>2, 11>36, 36<6, 37>35, 42>24, 41>26, 24>17, 41<28, 7<37, 11<24, 30>8, 4>23, 36<43, 40>3, 28<13, 30<6, 2>33, 2<11, 23>50, 17<32, 45>12, 12<17, 4<46, 21<47, 37<44, 11<48, 18<26, 38<48, 20<22, 6<13, 15<42, 4<32, 48<43, 46<47, 16>43, 18>9, 21<15, 18<11, 47>13, 37>17, 45>39, 22<36, 14<44, 24>39], [ (40, 1), (20, 3), (21, 3), (4, 4), (41, 4), (14, 2), (7, 2), (1, 4), (18, 2), (2, 3), (31, 1), (19, 3), (11, 4), (37, 1), (46, 2), (15, 1), (42, 2), (9, 4), (45, 2), (38, 2), (24, 4), (48, 1), (22, 1), (25, 3), (39, 4), (12, 2), (44, 4), (27, 3), (30, 1), (35, 3), (36, 4), (33, 3), (16, 2), (3, 4), (6, 4), (43, 3), (26, 3), (8, 3), (28, 3), (47, 4), (17, 1), (23, 1), (50, 1), (32, 3), (13, 1)], [ (44>30, 2), (19<50, 4), (2<17, 1), (37<6, 1), (44>47, 3), (46<39, 1), (37<8, 2), (14<18, 3), (1>39, 2), (41>16, 1), (21>50, 2), (7<44, 2), (7>18, 2), (1<48, 4), (20<35, 3), (11>30, 1), (15<8, 4), (11<15, 4), (2>15, 4), (25>47, 3), (33<43, 4), (1<46, 2), (33>8, 2), (21>37, 2), (27>28, 1), (11<39, 3), (4>15, 3), (4<26, 4), (46<12, 3), (19<39, 4), (45<27, 3), (37>26, 1), (40>8, 3), (7<17, 1), (44>43, 1), (14>15, 3), (45>32, 2), (12<50, 1), (7>42, 3), (11>23, 1), (4<47, 4), (19>33, 1), (18<25, 3), (4<30, 2), (45>26, 2), (11>17, 2), (14>2, 4), (11>36, 1), (36<6, 2), (37>35, 3), (42>24, 4), (41>26, 2), (24>17, 4), (41<28, 3), (7<37, 4), (11<24, 1), (30>8, 1), (4>23, 4), (36<43, 4), (40>3, 4), (28<13, 1), (30<6, 1), (2>33, 3), (2<11, 1), (23>50, 2), (17<32, 2), (45>12, 3), (12<17, 1), (4<46, 4), (21<47, 4), (37<44, 1), (11<48, 1), (18<26, 4), (38<48, 4), (20<22, 1), (6<13, 3), (15<42, 4), (4<32, 1), (48<43, 4), (46<47, 2), (16>43, 4), (18>9, 1), (21<15, 1), (18<11, 4), (47>13, 3), (37>17, 3), (45>39, 2), (22<36, 3), (14<44, 3), (24>39, 3)])).

test(9, (50, 250, [<, >]), (45, 90, 4), ([3, 45, 13, 29, 28, 41, 24, 42, 38, 37, 46, 21, 25, 15, 32, 31, 40, 27, 10, 35, 11, 4, 9, 49, 17, 34, 5, 26, 36, 47, 43, 30, 50, 48, 8, 16, 33, 12, 23, 7, 39, 2, 18, 44, 6], [3>13, 3>25, 3>40, 3>11, 3>17, 3>36, 3>18, 45>48, 13>48, 13>16, 29>39, 29>44, 24>25, 24>44, 42>46, 42>44, 37>45, 46>49, 21>37, 21>25, 21>49, 21>34, 25>35, 25>34, 15>36, 15>43, 15>48, 31>40, 31>36, 27>41, 27>40, 27>48, 10>25, 10>17, 10>47, 10>48, 35>40, 11>35, 4>41, 4>16, 4>23, 4>44, 9>21, 9>17, 9>30, 17>28, 17>41, 17>33, 17>23, 34>42, 34>38, 34>37, 34>36, 5>45, 5>37, 36>45, 36>46, 36>48, 47>48, 43>48, 30>42, 30>38, 30>37, 30>35, 30>49, 8>13, 8>41, 8>23, 16>48, 16>44, 33>34, 33>47, 12>42, 12>15, 12>31, 12>27, 12>34, 12>50, 23>40, 23>47, 7>13, 7>10, 7>34, 7>39, 2>41, 2>24, 2>10, 18>24, 18>27, 18>44, 44>46, 6>24, 6>37, 6>32, 6>40, 6>27, 6>43, 6>12], [16<6, 45>44, 30<48, 13<33, 3<29, 28>30, 28<50, 27>36, 15<16, 39>18, 28<35, 15<36, 45>29, 11<44, 45>42, 49<23, 41>47, 40>4, 45>25, 11>12, 38>47, 31<48, 48<6, 28>7, 15<47, 30<23, 34>47, 47>7, 38<50, 24>37, 33>18, 9<7, 40<43, 29<42, 34>5, 35<12, 9<2, 50<16, 46>35, 24>30, 42>50, 7>18, 31>43, 34>16, 13<32, 45>31, 21>27, 28<48, 10>7, 3>24, 7>2, 29<6, 3<39, 28<21, 3<50, 10<23, 21>11, 31<39, 25>36, 28<11, 29<28, 47>48, 40<44, 29<9, 44>6, 24>11, 32>47, 31<7, 3>21, 17<48, 27>8, 3>15, 9>6, 38>31, 4>39, 46<21, 38<44, 47<33, 10<6, 21>30, 45>12, 35>44, 48>8, 36>44, 42>27, 42<35, 40>35, 26<33, 34<50, 36<33], [ (3, 4), (45, 1), (13, 2), (29, 3), (28, 3), (41, 1), (24, 4), (42, 1), (38, 2), (37, 4), (46, 1), (21, 1), (25, 1), (15, 2), (32, 2), (31, 3), (40, 1), (27, 3), (10, 1), (35, 2), (11, 3), (4, 1), (9, 1), (49, 1), (17, 3), (34, 3), (5, 1), (26, 3), (36, 3), (47, 1), (43, 4), (30, 1), (50, 2), (48, 3), (8, 4), (16, 1), (33, 2), (12, 3), (23, 2), (7, 4), (39, 2), (2, 2), (18, 1), (44, 2), (6, 4)], [ (16<6, 3), (45>44, 2), (30<48, 3), (13<33, 2), (3<29, 1), (28>30, 1), (28<50, 2), (27>36, 2), (15<16, 4), (39>18, 3), (28<35, 2), (15<36, 4), (45>29, 2), (11<44, 3), (45>42, 3), (49<23, 2), (41>47, 1), (40>4, 4), (45>25, 1), (11>12, 4), (38>47, 2), (31<48, 3), (48<6, 1), (28>7, 4), (15<47, 3), (30<23, 2), (34>47, 2), (47>7, 3), (38<50, 1), (24>37, 3), (33>18, 3), (9<7, 4), (40<43, 2), (29<42, 2), (34>5, 4), (35<12, 3), (9<2, 4), (50<16, 1), (46>35, 1), (24>30, 4), (42>50, 1), (7>18, 2), (31>43, 2), (34>16, 2), (13<32, 2), (45>31, 1), (21>27, 3), (28<48, 3), (10>7, 3), (3>24, 1), (7>2, 4), (29<6, 3), (3<39, 4), (28<21, 2), (3<50, 2), (10<23, 2), (21>11, 2), (31<39, 1), (25>36, 4), (28<11, 1), (29<28, 1), (47>48, 4), (40<44, 1), (29<9, 2), (44>6, 1), (24>11, 1), (32>47, 1), (31<7, 2), (3>21, 2), (17<48, 4), (27>8, 4), (3>15, 1), (9>6, 1), (38>31, 4), (4>39, 2), (46<21, 4), (38<44, 1), (47<33, 4), (10<6, 1), (21>30, 4), (45>12, 3), (35>44, 1), (48>8, 3), (36>44, 3), (42>27, 1), (42<35, 2), (40>35, 4), (26<33, 1), (34<50, 3), (36<33, 3)])).

test(10, (50, 250, [<, >]), (45, 90, 4), ([23, 29, 11, 13, 15, 46, 27, 7, 9, 22, 40, 34, 3, 17, 42, 43, 41, 32, 6, 31, 44, 19, 5, 10, 47, 49, 12, 36, 8, 1, 21, 48, 45, 28, 20, 30, 39, 26, 16, 25, 24, 38, 18, 33, 35], [29>41, 11>44, 11>36, 11>26, 13>34, 13>44, 13>16, 13>24, 15>17, 46>49, 27>46, 27>36, 27>45, 7>23, 7>11, 7>34, 7>36, 9>27, 9>40, 9>44, 9>49, 9>36, 9>18, 22>32, 22>45, 34>43, 34>48, 34>45, 3>44, 3>5, 3>24, 3>18, 17>24, 41>43, 6>47, 6>21, 6>26, 6>16, 31>38, 19>24, 5>15, 5>40, 5>41, 5>45, 5>35, 10>22, 10>42, 10>16, 12>23, 12>27, 12>22, 12>34, 12>16, 36>45, 8>43, 8>36, 8>20, 8>24, 1>27, 1>41, 1>21, 1>16, 1>24, 1>35, 21>23, 21>29, 20>23, 20>40, 20>42, 20>41, 20>25, 30>34, 30>44, 39>47, 26>33, 26>35, 16>43, 16>48, 16>28, 16>24, 25>32, 25>44, 25>30, 24>28, 24>39, 38>40, 38>47, 38>49, 18>22, 33>47, 35>40], [27>17, 47<21, 31<35, 23>8, 13<45, 45>25, 23>22, 3<16, 10<28, 3>48, 6<10, 11>5, 6>49, 41>6, 23>45, 23<19, 11>45, 7>28, 15<25, 12>35, 11>42, 29<33, 1>33, 3>39, 9>38, 7<43, 13<24, 22<28, 7>30, 27>48, 7>45, 23<40, 46>49, 10<47, 24<33, 32<28, 32<30, 47<25, 32<38, 11>17, 23<9, 17<30, 34>36, 9>30, 46<21, 1>30, 29>13, 48<20, 40<1, 43>48, 49<26, 31<10, 43>10, 1<25, 17<38, 8<35, 7<18, 9<8, 44>30, 31<1, 29>16, 11<43, 45<33, 19<18, 15>1, 17<24, 20<30, 20>39, 41<39, 34<33, 45<24, 27>33, 29<27, 15>32, 29>10, 34<44, 15<34, 5>30, 46<12, 22<17, 36>26, 15<28, 3>49, 27<22, 15<5, 7<21, 41<36, 49<18, 31<8, 9>39], [ (23, 4), (29, 1), (11, 2), (13, 4), (15, 3), (46, 2), (27, 3), (7, 4), (9, 4), (22, 2), (40, 3), (34, 4), (3, 3), (17, 3), (42, 2), (43, 3), (41, 1), (32, 3), (6, 4), (31, 3), (44, 2), (19, 2), (5, 4), (10, 3), (47, 4), (49, 3), (12, 3), (36, 3), (8, 2), (1, 2), (21, 2), (48, 3), (45, 2), (28, 3), (20, 3), (30, 2), (39, 1), (26, 3), (16, 1), (25, 3), (24, 1), (38, 1), (18, 2), (33, 4), (35, 4)], [ (27>17, 1), (47<21, 4), (31<35, 3), (23>8, 4), (13<45, 1), (45>25, 3), (23>22, 1), (3<16, 1), (10<28, 3), (3>48, 4), (6<10, 4), (11>5, 1), (6>49, 2), (41>6, 4), (23>45, 1), (23<19, 1), (11>45, 4), (7>28, 4), (15<25, 4), (12>35, 4), (11>42, 1), (29<33, 2), (1>33, 4), (3>39, 4), (9>38, 3), (7<43, 2), (13<24, 2), (22<28, 2), (7>30, 4), (27>48, 4), (7>45, 4), (23<40, 4), (46>49, 4), (10<47, 1), (24<33, 3), (32<28, 3), (32<30, 1), (47<25, 4), (32<38, 2), (11>17, 2), (23<9, 2), (17<30, 1), (34>36, 1), (9>30, 3), (46<21, 3), (1>30, 3), (29>13, 2), (48<20, 1), (40<1, 2), (43>48, 1), (49<26, 1), (31<10, 2), (43>10, 3), (1<25, 1), (17<38, 1), (8<35, 3), (7<18, 2), (9<8, 1), (44>30, 1), (31<1, 2), (29>16, 1), (11<43, 1), (45<33, 2), (19<18, 3), (15>1, 2), (17<24, 2), (20<30, 2), (20>39, 2), (41<39, 1), (34<33, 3), (45<24, 1), (27>33, 2), (29<27, 3), (15>32, 3), (29>10, 1), (34<44, 3), (15<34, 4), (5>30, 3), (46<12, 4), (22<17, 4), (36>26, 4), (15<28, 2), (3>49, 4), (27<22, 4), (15<5, 1), (7<21, 4), (41<36, 2), (49<18, 2), (31<8, 4), (9>39, 3)])).

%% 50, 250, [<, >]
%% 50, 4, 4

test(1, (50, 250, [<, >]), (50, 4, 4), ([41, 24, 20, 12, 5, 27, 29, 43, 11, 16, 44, 21, 34, 15, 7, 38, 48, 23, 10, 19, 4, 33, 30, 1, 45, 17, 3, 6, 32, 9, 49, 46, 31, 26, 8, 50, 37, 42, 28, 14, 13, 35, 18, 40, 22, 47, 39, 36, 2, 25], [41>45, 41>49, 41>50, 24>30, 24>32, 24>26, 24>40, 20>21, 20>23, 20>28, 12>29, 12>16, 12>34, 12>47, 12>25, 5>21, 5>17, 5>8, 5>42, 5>14, 29>48, 29>32, 29>46, 29>35, 43>46, 11>41, 11>12, 11>29, 11>23, 11>33, 11>30, 16>41, 16>43, 16>30, 21>32, 21>50, 21>22, 34>39, 15>20, 15>43, 15>48, 15>46, 15>31, 7>29, 7>17, 7>32, 7>46, 7>50, 38>42, 38>39, 48>49, 23>27, 23>29, 23>28, 10>24, 10>43, 10>44, 10>28, 19>30, 19>49, 19>28, 19>40, 4>41, 4>45, 4>35, 4>39, 33>38, 33>37, 33>42, 33>40, 30>48, 30>32, 30>35, 1>21, 1>39, 17>41, 17>30, 17>39, 3>41, 3>19, 3>4, 3>9, 3>8, 6>15, 6>26, 6>35, 32>34, 32>45, 9>15, 9>48, 9>10, 9>45, 9>28, 9>22, 31>35, 31>36, 26>48, 8>19, 8>33, 8>50, 37>47, 42>50, 28>33, 28>31, 28>47, 14>24, 14>44, 14>34, 14>48, 14>19, 14>33, 14>46, 14>35, 14>39, 14>36, 13>44, 13>21, 13>38, 13>47, 13>36, 13>25, 18>43, 18>21, 18>45, 18>40, 18>22, 18>47, 22>24, 22>44, 22>30, 39>50, 36>48, 2>12, 2>21, 2>34, 2>48, 2>25, 25>31, 25>37], [47>2, 21>47, 15>6, 38>19], [ (41, 2), (24, 3), (20, 3), (12, 4), (5, 4), (27, 1), (29, 3), (43, 1), (11, 3), (16, 2), (44, 3), (21, 3), (34, 2), (15, 4), (7, 1), (38, 1), (48, 2), (23, 1), (10, 1), (19, 1), (4, 3), (33, 1), (30, 2), (1, 4), (45, 3), (17, 3), (3, 3), (6, 2), (32, 2), (9, 1), (49, 4), (46, 3), (31, 4), (26, 4), (8, 3), (50, 4), (37, 1), (42, 1), (28, 1), (14, 2), (13, 4), (35, 3), (18, 2), (40, 3), (22, 1), (47, 4), (39, 4), (36, 1), (2, 1), (25, 4)], [ (47>2, 4), (21>47, 4), (15>6, 3), (38>19, 3)])).

test(2, (50, 250, [<, >]), (50, 4, 4), ([1, 23, 30, 41, 18, 39, 9, 13, 43, 25, 17, 2, 19, 6, 35, 38, 34, 14, 37, 40, 12, 29, 31, 36, 50, 33, 10, 3, 46, 27, 28, 8, 32, 5, 24, 4, 45, 44, 26, 49, 42, 47, 20, 22, 21, 11, 16, 15, 48, 7], [1>29, 1>36, 1>8, 1>32, 23>30, 23>46, 23>44, 18>47, 39>44, 9>29, 9>31, 9>36, 9>45, 9>11, 9>48, 13>39, 13>24, 13>42, 43>50, 25>35, 25>40, 25>33, 25>46, 25>26, 17>23, 17>20, 2>18, 2>19, 2>3, 2>21, 19>39, 19>49, 19>20, 6>43, 6>19, 6>8, 6>24, 35>36, 35>45, 38>44, 38>42, 38>48, 34>41, 34>50, 34>48, 14>18, 14>25, 14>19, 14>29, 37>39, 37>43, 37>50, 37>49, 40>42, 12>30, 12>37, 12>29, 12>36, 12>33, 12>27, 29>33, 29>47, 29>48, 31>38, 31>37, 36>50, 33>44, 10>34, 10>33, 3>23, 46>48, 27>35, 28>38, 28>31, 28>47, 8>30, 8>41, 8>45, 32>50, 32>33, 32>42, 5>39, 5>10, 5>45, 24>31, 24>26, 4>12, 4>29, 4>36, 4>24, 4>48, 44>47, 26>28, 26>45, 20>38, 20>26, 20>22, 20>48, 22>41, 22>29, 21>23, 21>35, 21>36, 21>44, 21>42, 11>17, 11>40, 11>36, 11>33, 11>49, 16>39, 16>17, 15>23, 15>37, 15>45, 15>42, 15>48, 7>9, 7>13, 7>43, 7>25, 7>38, 7>31, 7>46, 7>47, 7>15], [39<24, 35>47, 37>8, 1>9], [ (1, 4), (23, 3), (30, 2), (41, 4), (18, 4), (39, 2), (9, 2), (13, 2), (43, 1), (25, 2), (17, 1), (2, 1), (19, 3), (6, 4), (35, 3), (38, 3), (34, 1), (14, 4), (37, 3), (40, 2), (12, 3), (29, 3), (31, 3), (36, 1), (50, 3), (33, 3), (10, 2), (3, 2), (46, 1), (27, 2), (28, 3), (8, 1), (32, 1), (5, 1), (24, 2), (4, 1), (45, 4), (44, 4), (26, 4), (49, 1), (42, 3), (47, 4), (20, 2), (22, 3), (21, 2), (11, 1), (16, 4), (15, 3), (48, 4), (7, 3)], [ (39<24, 4), (35>47, 1), (37>8, 2), (1>9, 1)])).

test(3, (50, 250, [<, >]), (50, 4, 4), ([16, 18, 2, 10, 23, 35, 12, 21, 46, 11, 47, 28, 27, 29, 9, 44, 25, 49, 1, 24, 14, 22, 15, 32, 3, 4, 41, 50, 33, 5, 38, 7, 8, 40, 6, 45, 19, 20, 17, 34, 36, 37, 43, 30, 48, 31, 26, 39, 42, 13], [16>27, 16>25, 16>50, 16>40, 16>19, 18>47, 2>27, 2>33, 2>5, 2>17, 2>39, 10>40, 23>24, 23>31, 23>42, 35>38, 35>40, 35>37, 12>18, 12>29, 12>25, 12>24, 12>30, 12>39, 21>46, 21>27, 21>34, 46>47, 11>49, 11>39, 28>50, 28>33, 27>48, 29>32, 29>36, 9>18, 9>35, 9>12, 9>44, 9>13, 25>42, 1>12, 1>47, 1>28, 1>32, 1>41, 1>50, 1>40, 1>19, 14>23, 14>27, 14>29, 22>35, 22>24, 22>32, 22>45, 15>25, 15>30, 32>35, 32>49, 32>33, 3>46, 3>44, 3>4, 3>19, 3>36, 3>13, 4>12, 4>19, 4>20, 4>48, 4>26, 4>42, 33>39, 5>31, 5>26, 5>42, 38>50, 7>18, 7>12, 7>24, 7>15, 7>40, 8>44, 8>41, 8>20, 8>37, 8>26, 40>42, 6>12, 6>34, 45>49, 45>48, 19>35, 19>42, 20>48, 17>35, 17>32, 17>48, 36>44, 36>41, 36>37, 36>48, 37>44, 37>43, 30>50, 30>40, 30>39, 31>33, 31>38, 39>40, 42>46, 13>18, 13>34, 13>31], [29<13, 46<39, 32>43, 25<32], [ (16, 4), (18, 3), (2, 2), (10, 3), (23, 3), (35, 1), (12, 2), (21, 1), (46, 1), (11, 4), (47, 3), (28, 4), (27, 4), (29, 3), (9, 3), (44, 1), (25, 1), (49, 3), (1, 2), (24, 4), (14, 2), (22, 2), (15, 2), (32, 4), (3, 1), (4, 3), (41, 3), (50, 1), (33, 1), (5, 2), (38, 3), (7, 1), (8, 1), (40, 1), (6, 3), (45, 2), (19, 1), (20, 3), (17, 4), (34, 3), (36, 2), (37, 3), (43, 3), (30, 2), (48, 2), (31, 2), (26, 1), (39, 4), (42, 4), (13, 3)], [ (29<13, 4), (46<39, 3), (32>43, 2), (25<32, 1)])).

test(4, (50, 250, [<, >]), (50, 4, 4), ([34, 13, 17, 40, 38, 39, 33, 36, 29, 22, 26, 16, 44, 11, 10, 50, 37, 32, 30, 45, 24, 43, 27, 25, 35, 9, 23, 31, 8, 28, 7, 2, 18, 6, 42, 4, 21, 19, 47, 3, 1, 49, 12, 14, 15, 48, 41, 20, 5, 46], [34>38, 13>32, 13>23, 13>31, 13>21, 13>47, 17>28, 17>41, 33>40, 36>44, 36>46, 29>36, 29>31, 22>27, 22>48, 22>41, 26>35, 16>38, 16>31, 16>20, 44>49, 11>22, 11>26, 11>44, 11>50, 10>43, 10>42, 10>46, 37>43, 37>47, 32>42, 32>48, 30>40, 30>38, 30>33, 30>32, 30>45, 24>30, 24>25, 43>47, 43>49, 27>34, 27>32, 27>43, 27>35, 27>28, 25>34, 25>39, 25>49, 35>45, 9>40, 9>29, 9>50, 9>28, 9>14, 23>38, 23>26, 23>46, 31>38, 31>33, 8>32, 28>36, 7>40, 7>33, 7>37, 7>12, 7>46, 2>49, 18>32, 18>27, 18>25, 18>35, 6>18, 6>20, 42>48, 4>25, 4>7, 21>27, 19>27, 19>21, 3>17, 3>38, 3>26, 3>16, 3>44, 3>32, 3>27, 3>25, 3>31, 3>7, 3>42, 3>46, 1>37, 1>2, 1>18, 1>47, 1>49, 1>14, 1>20, 1>5, 12>39, 12>29, 12>22, 12>25, 12>28, 12>48, 12>20, 14>44, 14>18, 14>47, 14>48, 15>33, 41>45, 41>43, 41>47, 20>35, 20>31, 5>38, 5>30, 5>45, 5>25, 5>9, 5>6, 5>42, 5>19, 5>41], [31>15, 32<35, 35>49, 24<20], [ (34, 1), (13, 2), (17, 4), (40, 1), (38, 4), (39, 4), (33, 1), (36, 3), (29, 4), (22, 3), (26, 2), (16, 3), (44, 1), (11, 4), (10, 4), (50, 1), (37, 3), (32, 1), (30, 1), (45, 3), (24, 2), (43, 4), (27, 4), (25, 1), (35, 4), (9, 3), (23, 2), (31, 3), (8, 3), (28, 1), (7, 1), (2, 2), (18, 3), (6, 4), (42, 3), (4, 2), (21, 3), (19, 1), (47, 3), (3, 4), (1, 3), (49, 3), (12, 2), (14, 3), (15, 2), (48, 1), (41, 3), (20, 4), (5, 4), (46, 3)], [ (31>15, 4), (32<35, 2), (35>49, 1), (24<20, 3)])).

test(5, (50, 250, [<, >]), (50, 4, 4), ([38, 44, 37, 1, 43, 11, 3, 34, 4, 26, 45, 21, 27, 14, 13, 9, 23, 2, 24, 28, 36, 30, 33, 12, 46, 20, 42, 17, 8, 50, 35, 16, 6, 7, 29, 49, 5, 18, 15, 41, 39, 48, 47, 40, 31, 32, 25, 19, 22, 10], [38>42, 44>47, 37>43, 1>43, 1>50, 1>22, 11>19, 3>43, 3>21, 3>13, 3>30, 3>33, 3>12, 3>20, 3>17, 3>5, 34>38, 34>37, 34>49, 4>26, 4>9, 4>46, 4>17, 4>18, 26>35, 26>41, 26>32, 45>50, 21>37, 21>26, 21>27, 21>28, 21>36, 27>38, 27>36, 14>43, 14>27, 14>18, 13>38, 13>26, 13>50, 9>14, 9>36, 9>49, 9>19, 23>37, 23>43, 23>45, 23>25, 24>33, 24>35, 24>29, 24>25, 28>30, 28>32, 30>42, 30>35, 33>43, 33>45, 33>42, 12>45, 12>23, 12>20, 12>42, 12>15, 20>26, 20>24, 20>30, 20>47, 42>49, 17>21, 17>33, 17>39, 8>44, 8>42, 8>19, 8>10, 35>38, 35>39, 35>47, 16>27, 16>50, 16>49, 16>32, 16>25, 6>45, 6>20, 6>47, 6>32, 6>22, 7>11, 7>47, 7>25, 29>41, 29>39, 5>38, 5>45, 5>28, 5>33, 15>34, 15>33, 15>35, 41>44, 39>43, 39>42, 48>49, 40>46, 31>39, 31>48, 31>32, 32>35, 25>26, 25>33, 25>50, 19>27, 19>39, 22>33, 22>48, 10>12, 10>40], [38<2, 2>32, 37>13, 2<41], [ (38, 1), (44, 4), (37, 3), (1, 2), (43, 2), (11, 3), (3, 3), (34, 3), (4, 1), (26, 3), (45, 3), (21, 3), (27, 4), (14, 3), (13, 3), (9, 2), (23, 4), (2, 1), (24, 3), (28, 4), (36, 3), (30, 2), (33, 4), (12, 2), (46, 2), (20, 3), (42, 2), (17, 2), (8, 2), (50, 4), (35, 3), (16, 3), (6, 2), (7, 4), (29, 1), (49, 4), (5, 4), (18, 4), (15, 1), (41, 3), (39, 1), (48, 1), (47, 1), (40, 3), (31, 2), (32, 3), (25, 3), (19, 1), (22, 4), (10, 4)], [ (38<2, 2), (2>32, 4), (37>13, 1), (2<41, 1)])).

test(6, (50, 250, [<, >]), (50, 4, 4), ([40, 31, 8, 1, 50, 39, 10, 35, 37, 32, 6, 2, 27, 14, 11, 48, 44, 30, 29, 4, 45, 26, 49, 21, 42, 33, 9, 17, 12, 38, 47, 23, 5, 43, 24, 13, 20, 7, 41, 22, 16, 3, 19, 36, 15, 25, 28, 46, 18, 34], [40>42, 31>40, 31>47, 31>36, 8>39, 8>30, 8>49, 8>47, 8>23, 8>43, 1>39, 1>2, 1>14, 1>44, 1>23, 1>5, 39>40, 10>21, 10>12, 10>38, 10>47, 10>16, 10>15, 10>18, 35>47, 6>31, 6>48, 6>29, 6>38, 6>13, 2>33, 2>24, 27>30, 27>43, 14>30, 14>16, 11>39, 11>12, 11>43, 29>35, 29>42, 4>8, 4>39, 4>30, 4>23, 4>20, 4>41, 26>33, 26>38, 26>46, 49>50, 33>40, 33>44, 33>34, 9>35, 9>44, 9>29, 9>33, 9>18, 17>35, 17>27, 17>29, 17>38, 17>46, 12>35, 12>48, 12>26, 12>20, 12>22, 12>16, 12>28, 38>45, 23>38, 23>24, 23>36, 5>50, 5>6, 5>13, 5>25, 5>28, 24>50, 24>39, 24>27, 24>43, 13>39, 13>44, 13>43, 13>16, 13>46, 20>50, 20>47, 20>24, 20>36, 7>11, 7>30, 7>45, 7>21, 7>12, 7>23, 7>16, 7>46, 22>37, 22>32, 22>26, 22>47, 16>20, 19>26, 19>46, 15>30, 15>26, 25>40, 25>39, 28>38, 18>50, 18>44, 34>37, 34>36], [49>41, 14<23, 9>7, 32<36], [ (40, 1), (31, 4), (8, 3), (1, 1), (50, 3), (39, 2), (10, 4), (35, 4), (37, 4), (32, 2), (6, 3), (2, 2), (27, 1), (14, 2), (11, 4), (48, 2), (44, 3), (30, 3), (29, 1), (4, 4), (45, 3), (26, 2), (49, 1), (21, 4), (42, 2), (33, 1), (9, 4), (17, 1), (12, 3), (38, 4), (47, 4), (23, 1), (5, 1), (43, 2), (24, 1), (13, 1), (20, 1), (7, 1), (41, 3), (22, 4), (16, 1), (3, 3), (19, 1), (36, 1), (15, 2), (25, 4), (28, 1), (46, 3), (18, 3), (34, 2)], [ (49>41, 1), (14<23, 3), (9>7, 4), (32<36, 2)])).

test(7, (50, 250, [<, >]), (50, 4, 4), ([43, 5, 42, 17, 36, 37, 3, 14, 25, 9, 6, 40, 11, 34, 39, 31, 8, 46, 15, 13, 12, 35, 48, 33, 41, 50, 22, 24, 28, 27, 4, 29, 7, 32, 18, 44, 26, 10, 19, 45, 49, 1, 47, 16, 2, 30, 21, 23, 20, 38], [5>41, 5>18, 5>16, 5>23, 17>25, 17>34, 17>27, 17>44, 17>19, 36>44, 37>41, 37>45, 3>6, 3>35, 3>41, 3>22, 14>36, 14>25, 14>22, 14>47, 9>14, 9>11, 9>50, 9>21, 6>42, 6>8, 6>13, 6>29, 40>47, 11>17, 11>21, 39>43, 39>45, 39>47, 31>36, 31>34, 31>48, 31>47, 8>41, 8>22, 8>28, 8>18, 8>19, 8>30, 15>17, 15>39, 15>46, 15>24, 15>18, 15>49, 15>38, 13>14, 13>48, 13>47, 12>17, 12>34, 12>31, 12>44, 48>49, 33>42, 22>25, 22>39, 22>32, 24>34, 24>48, 24>47, 27>36, 27>40, 27>34, 27>39, 27>38, 4>15, 4>27, 29>43, 29>46, 29>50, 29>32, 7>8, 7>48, 7>18, 7>10, 7>23, 32>47, 18>42, 18>48, 18>33, 18>19, 44>50, 44>49, 26>37, 26>31, 26>32, 10>11, 10>22, 10>29, 10>21, 19>34, 19>44, 19>45, 19>20, 1>39, 1>13, 1>12, 1>10, 1>49, 16>39, 16>33, 16>30, 16>20, 2>27, 2>29, 2>10, 2>19, 30>36, 30>37, 21>33, 21>41, 21>24, 21>49, 21>23, 23>25, 23>28, 23>45, 23>38, 20>42, 20>22, 20>38, 38>46], [13>2, 39>46, 15<19, 29>19], [ (43, 1), (5, 2), (42, 2), (17, 4), (36, 1), (37, 4), (3, 3), (14, 2), (25, 3), (9, 2), (6, 2), (40, 1), (11, 4), (34, 1), (39, 2), (31, 3), (8, 3), (46, 1), (15, 1), (13, 2), (12, 1), (35, 2), (48, 4), (33, 1), (41, 2), (50, 3), (22, 3), (24, 4), (28, 1), (27, 1), (4, 4), (29, 4), (7, 2), (32, 1), (18, 4), (44, 3), (26, 2), (10, 2), (19, 3), (45, 2), (49, 1), (1, 2), (47, 3), (16, 1), (2, 1), (30, 1), (21, 4), (23, 2), (20, 4), (38, 3)], [ (13>2, 4), (39>46, 3), (15<19, 1), (29>19, 2)])).

test(8, (50, 250, [<, >]), (50, 4, 4), ([34, 39, 44, 24, 3, 25, 31, 13, 26, 22, 29, 18, 9, 36, 20, 32, 40, 15, 46, 7, 38, 1, 4, 35, 48, 6, 50, 30, 45, 21, 28, 16, 27, 19, 17, 47, 42, 8, 43, 33, 49, 23, 37, 2, 12, 41, 10, 14, 11, 5], [34>47, 44>45, 44>47, 24>31, 24>49, 3>35, 3>33, 25>49, 31>38, 13>19, 26>38, 26>33, 22>46, 22>43, 22>41, 18>31, 18>46, 18>35, 9>34, 9>30, 9>27, 9>47, 9>10, 36>43, 20>46, 20>48, 20>30, 32>38, 15>27, 15>37, 7>47, 38>40, 1>22, 1>4, 1>6, 1>19, 4>26, 4>29, 4>40, 4>17, 4>5, 35>36, 6>21, 6>27, 6>47, 30>34, 30>48, 30>50, 30>45, 45>48, 21>26, 21>22, 21>46, 21>50, 21>33, 28>32, 28>38, 28>37, 28>41, 16>31, 16>46, 16>49, 27>41, 19>31, 19>45, 17>35, 17>48, 42>44, 8>13, 8>32, 8>48, 8>17, 8>47, 8>43, 8>14, 33>36, 33>35, 33>48, 23>31, 2>15, 2>45, 2>19, 12>39, 12>16, 12>37, 41>48, 10>25, 10>15, 10>30, 10>42, 10>41, 14>39, 14>30, 11>24, 11>48, 11>27, 11>47, 5>18, 5>21], [7<12, 8>2, 32<4, 31<1], [ (34, 1), (39, 3), (44, 1), (24, 3), (3, 3), (25, 3), (31, 1), (13, 4), (26, 1), (22, 1), (29, 1), (18, 4), (9, 3), (36, 4), (20, 2), (32, 2), (40, 3), (15, 2), (46, 3), (7, 4), (38, 4), (1, 2), (4, 1), (35, 4), (48, 1), (6, 3), (50, 4), (30, 3), (45, 3), (21, 1), (28, 2), (16, 2), (27, 2), (19, 3), (17, 2), (47, 1), (42, 4), (8, 1), (43, 3), (33, 4), (49, 4), (23, 3), (37, 1), (2, 1), (12, 3), (41, 3), (10, 3), (14, 4), (11, 2), (5, 4)], [ (7<12, 1), (8>2, 4), (32<4, 1), (31<1, 4)])).

test(9, (50, 250, [<, >]), (50, 4, 4), ([41, 48, 43, 8, 22, 26, 34, 7, 24, 20, 3, 49, 4, 18, 37, 35, 9, 19, 6, 28, 40, 5, 30, 10, 47, 31, 14, 27, 12, 32, 33, 39, 46, 23, 11, 1, 21, 36, 13, 15, 44, 25, 38, 29, 17, 50, 2, 16, 45, 42], [41>48, 48>49, 48>50, 8>12, 8>39, 8>46, 8>44, 22>31, 22>23, 22>36, 26>48, 7>20, 7>37, 7>46, 7>38, 24>28, 24>32, 24>29, 20>37, 20>31, 20>46, 3>7, 3>24, 3>18, 3>5, 3>27, 3>25, 18>30, 18>31, 18>36, 18>29, 37>49, 35>43, 35>37, 35>47, 35>44, 9>26, 9>15, 19>22, 19>49, 19>38, 19>45, 19>42, 6>8, 6>20, 6>49, 6>35, 6>40, 6>21, 6>45, 28>31, 40>48, 5>20, 5>49, 5>30, 5>47, 5>21, 5>36, 5>38, 5>45, 5>42, 10>37, 10>30, 10>47, 10>12, 47>48, 47>50, 31>38, 14>48, 14>22, 14>18, 14>37, 14>31, 27>34, 27>38, 27>45, 12>49, 12>28, 12>40, 12>47, 32>48, 33>35, 33>50, 23>42, 11>40, 11>17, 1>48, 1>43, 1>8, 1>31, 1>29, 1>50, 1>16, 21>33, 21>50, 13>48, 13>27, 13>36, 13>45, 15>26, 15>24, 15>49, 15>33, 15>39, 15>29, 15>42, 44>50, 25>43, 25>33, 25>36, 29>30, 29>36, 17>26, 17>47, 17>36, 17>50, 2>26, 2>3, 2>4, 2>9, 2>19, 2>39, 2>13, 2>44, 16>18, 16>27, 16>50, 42>46], [7<28, 10>15, 19>15, 41<13], [ (41, 1), (48, 4), (43, 2), (8, 1), (22, 3), (26, 3), (34, 4), (7, 4), (24, 2), (20, 1), (3, 4), (49, 2), (4, 1), (18, 2), (37, 4), (35, 1), (9, 3), (19, 3), (6, 1), (28, 1), (40, 2), (5, 2), (30, 1), (10, 3), (47, 1), (31, 1), (14, 1), (27, 1), (12, 2), (32, 2), (33, 4), (39, 1), (46, 1), (23, 1), (11, 2), (1, 3), (21, 4), (36, 4), (13, 2), (15, 1), (44, 2), (25, 2), (38, 4), (29, 3), (17, 4), (50, 1), (2, 1), (16, 4), (45, 1), (42, 2)], [ (7<28, 4), (10>15, 1), (19>15, 1), (41<13, 2)])).

test(10, (50, 250, [<, >]), (50, 4, 4), ([47, 28, 44, 4, 9, 18, 12, 41, 25, 32, 49, 38, 35, 33, 29, 34, 39, 6, 10, 13, 50, 42, 43, 46, 40, 30, 36, 20, 5, 24, 16, 8, 1, 17, 27, 7, 19, 48, 3, 11, 21, 37, 22, 23, 31, 14, 15, 2, 26, 45], [28>47, 28>38, 44>47, 4>25, 4>35, 4>8, 4>17, 4>21, 9>49, 9>38, 9>20, 9>27, 9>37, 9>15, 18>47, 18>45, 12>47, 12>25, 25>37, 25>45, 32>35, 32>43, 35>49, 35>50, 33>38, 33>50, 29>34, 29>48, 34>46, 39>47, 6>32, 6>38, 6>13, 6>19, 6>21, 6>15, 10>47, 10>18, 10>29, 10>43, 10>21, 13>38, 13>20, 13>21, 13>14, 13>26, 30>35, 30>43, 20>44, 20>29, 5>10, 5>20, 5>19, 5>15, 5>26, 24>28, 24>49, 24>40, 8>29, 8>13, 8>46, 8>37, 8>15, 1>28, 1>44, 1>18, 1>3, 1>23, 1>15, 17>49, 17>42, 17>46, 27>41, 27>49, 27>40, 7>35, 7>13, 7>20, 19>47, 19>30, 19>37, 3>10, 11>28, 11>49, 11>40, 11>30, 11>45, 21>47, 21>28, 22>35, 22>33, 22>42, 22>36, 23>38, 23>33, 23>30, 23>36, 23>27, 23>45, 31>33, 31>39, 31>42, 31>46, 31>48, 31>45, 14>41, 14>50, 14>24, 14>45, 15>29, 15>20, 2>28, 2>4, 2>40, 2>20, 26>50], [41>31, 6>26, 34<39, 14<15], [ (47, 1), (28, 3), (44, 2), (4, 2), (9, 2), (18, 1), (12, 2), (41, 2), (25, 3), (32, 2), (49, 1), (38, 2), (35, 3), (33, 2), (29, 2), (34, 3), (39, 1), (6, 1), (10, 3), (13, 1), (50, 2), (42, 4), (43, 1), (46, 4), (40, 4), (30, 4), (36, 1), (20, 1), (5, 2), (24, 2), (16, 4), (8, 1), (1, 4), (17, 1), (27, 2), (7, 1), (19, 1), (48, 2), (3, 4), (11, 3), (21, 2), (37, 2), (22, 3), (23, 1), (31, 4), (14, 2), (15, 1), (2, 2), (26, 2), (45, 1)], [ (41>31, 3), (6>26, 2), (34<39, 1), (14<15, 4)])).

%% 50, 500, [<, >, <>]
%% 10, 5, 4

test(1, (50, 500, [<, >, <>]), (10, 5, 4), ([43, 28, 11, 21, 4, 7, 26, 33, 34, 44], [21>44, 4>11, 4>7, 7>11, 7>34, 26>33], [4>26, 11<>44, 28<44, 4<>44, 11>4], [ (43, 2), (28, 4), (11, 1), (21, 4), (4, 3), (7, 2), (26, 4), (33, 3), (34, 3), (44, 2)], [ (4>26, 3), (11<>44, 4), (28<44, 1), (4<>44, 4), (11>4, 3)])).

test(2, (50, 500, [<, >, <>]), (10, 5, 4), ([10, 45, 8, 9, 5, 44, 6, 21, 27, 24], [5>44, 21>24, 27>45], [10<44, 5<27, 10<>8, 6>21, 8>21], [ (10, 3), (45, 4), (8, 4), (9, 4), (5, 2), (44, 3), (6, 2), (21, 4), (27, 3), (24, 4)], [ (10<44, 4), (5<27, 4), (10<>8, 1), (6>21, 1), (8>21, 2)])).

test(3, (50, 500, [<, >, <>]), (10, 5, 4), ([6, 40, 27, 7, 46, 29, 1, 23, 17, 26], [6>7, 6>46, 6>17, 7>40, 7>26, 29>40, 1>6, 23>29, 26>46], [46<>29, 40>46, 6<>46, 6>40, 7<26], [ (6, 1), (40, 2), (27, 1), (7, 4), (46, 4), (29, 3), (1, 1), (23, 3), (17, 1), (26, 1)], [ (46<>29, 1), (40>46, 3), (6<>46, 3), (6>40, 4), (7<26, 3)])).

test(4, (50, 500, [<, >, <>]), (10, 5, 4), ([22, 5, 1, 24, 3, 10, 13, 4, 29, 34], [1>5, 1>4, 10>22, 10>13, 13>29, 4>13], [1<>13, 24>4, 10<4, 3>13, 10>13], [ (22, 4), (5, 1), (1, 2), (24, 3), (3, 1), (10, 4), (13, 1), (4, 1), (29, 1), (34, 4)], [ (1<>13, 1), (24>4, 2), (10<4, 4), (3>13, 1), (10>13, 2)])).

test(5, (50, 500, [<, >, <>]), (10, 5, 4), ([7, 21, 34, 14, 2, 16, 22, 36, 15, 31], [7>15, 14>36, 2>16, 2>31, 16>21, 15>36], [7>15, 34>16, 7<>31, 34>31, 14<>36], [ (7, 3), (21, 2), (34, 4), (14, 4), (2, 1), (16, 1), (22, 2), (36, 3), (15, 2), (31, 1)], [ (7>15, 1), (34>16, 4), (7<>31, 2), (34>31, 4), (14<>36, 1)])).

test(6, (50, 500, [<, >, <>]), (10, 5, 4), ([1, 44, 22, 5, 13, 6, 37, 20, 47, 27], [1>13, 1>6, 22>27, 13>22, 13>47], [13<>37, 13<47, 44<>20, 1<>20, 1>47], [ (1, 3), (44, 2), (22, 3), (5, 4), (13, 1), (6, 1), (37, 1), (20, 4), (47, 4), (27, 2)], [ (13<>37, 4), (13<47, 1), (44<>20, 2), (1<>20, 2), (1>47, 2)])).

test(7, (50, 500, [<, >, <>]), (10, 5, 4), ([18, 26, 29, 39, 50, 1, 22, 31, 38, 43], [18>39, 18>22, 18>43, 29>50, 1>31, 22>43, 38>43], [29<39, 29>1, 26>29, 1>22, 29<>50], [ (18, 1), (26, 2), (29, 1), (39, 2), (50, 2), (1, 4), (22, 3), (31, 1), (38, 2), (43, 1)], [ (29<39, 2), (29>1, 1), (26>29, 2), (1>22, 1), (29<>50, 1)])).

test(8, (50, 500, [<, >, <>]), (10, 5, 4), ([14, 19, 33, 43, 20, 26, 18, 50, 39, 25], [14>43, 43>50, 20>50, 20>25, 18>25, 25>50], [14<>50, 43<25, 14>18, 20<>18, 14<>33], [ (14, 1), (19, 3), (33, 3), (43, 1), (20, 1), (26, 2), (18, 1), (50, 3), (39, 1), (25, 4)], [ (14<>50, 4), (43<25, 3), (14>18, 1), (20<>18, 2), (14<>33, 4)])).

test(9, (50, 500, [<, >, <>]), (10, 5, 4), ([31, 27, 48, 4, 2, 39, 37, 10, 6, 11], [4>27, 4>39, 2>48, 2>10, 37>48, 10>31, 6>48, 6>37, 6>10, 11>31], [31<6, 2>10, 31<39, 2<37, 27>37], [ (31, 4), (27, 4), (48, 2), (4, 4), (2, 3), (39, 2), (37, 1), (10, 3), (6, 3), (11, 4)], [ (31<6, 2), (2>10, 2), (31<39, 2), (2<37, 1), (27>37, 2)])).

test(10, (50, 500, [<, >, <>]), (10, 5, 4), ([36, 41, 3, 45, 12, 35, 4, 27, 29, 42], [36>45, 3>41, 3>4, 4>12, 27>36, 27>41, 27>45, 42>45], [35>42, 36>35, 36<3, 35>4, 41>45], [ (36, 3), (41, 1), (3, 1), (45, 2), (12, 4), (35, 3), (4, 1), (27, 4), (29, 4), (42, 3)], [ (35>42, 1), (36>35, 4), (36<3, 3), (35>4, 4), (41>45, 3)])).

%% 50, 500, [<, >, <>]
%% 15, 20, 4

test(1, (50, 500, [<, >, <>]), (15, 20, 4), ([27, 33, 38, 28, 40, 29, 46, 44, 14, 25, 19, 13, 8, 48, 26], [27>38, 27>28, 33>38, 33>46, 38>48, 28>29, 28>46, 14>33, 25>33, 25>44, 19>33, 13>27, 13>38, 13>28, 8>28, 8>48, 26>48], [33<8, 33<28, 38>26, 13<>8, 29>14, 40>25, 48>26, 40<>26, 25>26, 14>13, 44>26, 44<25, 29<46, 25<>8, 27>44, 27<>19, 28>14, 40>44, 27>40, 14<>48], [ (27, 2), (33, 2), (38, 2), (28, 4), (40, 2), (29, 3), (46, 2), (44, 2), (14, 3), (25, 1), (19, 4), (13, 3), (8, 4), (48, 2), (26, 3)], [ (33<8, 4), (33<28, 4), (38>26, 4), (13<>8, 3), (29>14, 4), (40>25, 1), (48>26, 2), (40<>26, 1), (25>26, 2), (14>13, 4), (44>26, 4), (44<25, 3), (29<46, 2), (25<>8, 2), (27>44, 3), (27<>19, 4), (28>14, 4), (40>44, 2), (27>40, 4), (14<>48, 2)])).

test(2, (50, 500, [<, >, <>]), (15, 20, 4), ([41, 8, 9, 40, 19, 13, 10, 44, 37, 16, 26, 30, 48, 3, 7], [9>19, 9>16, 13>44, 10>40, 10>37, 10>26, 10>48, 37>41, 26>37, 3>44, 3>37], [10<>3, 8<40, 44<>30, 8>30, 40>48, 40<>3, 48<3, 40<>16, 19>7, 41<>3, 10>16, 41<>16, 19<13, 26<48, 13<>37, 40>30, 44<>37, 9>7, 40>44, 16<>7], [ (41, 2), (8, 4), (9, 3), (40, 4), (19, 2), (13, 2), (10, 1), (44, 3), (37, 1), (16, 1), (26, 2), (30, 3), (48, 1), (3, 3), (7, 3)], [ (10<>3, 1), (8<40, 3), (44<>30, 3), (8>30, 3), (40>48, 4), (40<>3, 4), (48<3, 3), (40<>16, 3), (19>7, 4), (41<>3, 4), (10>16, 4), (41<>16, 4), (19<13, 4), (26<48, 2), (13<>37, 1), (40>30, 1), (44<>37, 3), (9>7, 1), (40>44, 4), (16<>7, 3)])).

test(3, (50, 500, [<, >, <>]), (15, 20, 4), ([18, 45, 22, 2, 25, 4, 40, 32, 3, 20, 50, 24, 5, 21, 34], [18>50, 45>50, 22>40, 22>32, 22>24, 2>32, 2>21, 4>32, 4>24, 4>34, 32>40, 3>25, 24>45, 24>50, 5>22, 34>50], [40<3, 2<34, 45>32, 24<21, 25>21, 45<>5, 32<20, 25<3, 20<34, 3<20, 45>20, 4<40, 18>3, 25>5, 4<34, 2>5, 2<>40, 21<>34, 32>24, 24>34], [ (18, 1), (45, 4), (22, 3), (2, 2), (25, 3), (4, 3), (40, 3), (32, 2), (3, 4), (20, 1), (50, 1), (24, 2), (5, 1), (21, 3), (34, 4)], [ (40<3, 3), (2<34, 3), (45>32, 2), (24<21, 4), (25>21, 2), (45<>5, 4), (32<20, 3), (25<3, 4), (20<34, 2), (3<20, 1), (45>20, 4), (4<40, 3), (18>3, 1), (25>5, 4), (4<34, 3), (2>5, 4), (2<>40, 4), (21<>34, 2), (32>24, 3), (24>34, 4)])).

test(4, (50, 500, [<, >, <>]), (15, 20, 4), ([40, 39, 32, 48, 9, 45, 12, 18, 22, 6, 1, 13, 43, 16, 37], [40>45, 39>43, 9>39, 9>32, 9>45, 9>43, 9>16, 12>18, 12>22, 18>32, 22>32, 22>43, 6>32, 1>22, 1>13, 13>39, 13>45, 13>22, 13>37, 43>45, 16>18, 16>37, 37>40], [32>9, 18>13, 12<37, 40<>13, 45>13, 12<13, 48<16, 18>16, 43<16, 32<1, 32<>12, 9<>1, 18>22, 6<>1, 40<18, 40<>45, 32<>45, 9<43, 39<43, 22<1], [ (40, 4), (39, 1), (32, 4), (48, 3), (9, 4), (45, 2), (12, 2), (18, 1), (22, 2), (6, 1), (1, 2), (13, 2), (43, 3), (16, 2), (37, 3)], [ (32>9, 4), (18>13, 1), (12<37, 4), (40<>13, 4), (45>13, 3), (12<13, 4), (48<16, 4), (18>16, 4), (43<16, 1), (32<1, 3), (32<>12, 3), (9<>1, 3), (18>22, 4), (6<>1, 1), (40<18, 2), (40<>45, 2), (32<>45, 2), (9<43, 2), (39<43, 2), (22<1, 3)])).

test(5, (50, 500, [<, >, <>]), (15, 20, 4), ([35, 21, 33, 3, 15, 24, 9, 38, 17, 19, 41, 47, 10, 36, 23], [21>38, 3>41, 3>47, 15>33, 24>35, 24>33, 24>47, 9>21, 38>41, 17>21, 17>36, 10>33, 10>15, 23>38, 23>47], [41<>47, 3<47, 24>19, 10>23, 21<>36, 36<23, 35>36, 33<23, 33>15, 47>10, 17<>47, 21<>38, 38>36, 33<24, 21>41, 15<>10, 3<36, 38<>19, 33<19, 19<41], [ (35, 4), (21, 4), (33, 3), (3, 1), (15, 4), (24, 1), (9, 4), (38, 4), (17, 2), (19, 4), (41, 3), (47, 3), (10, 4), (36, 3), (23, 3)], [ (41<>47, 2), (3<47, 2), (24>19, 1), (10>23, 3), (21<>36, 2), (36<23, 2), (35>36, 2), (33<23, 1), (33>15, 1), (47>10, 4), (17<>47, 1), (21<>38, 3), (38>36, 4), (33<24, 2), (21>41, 1), (15<>10, 2), (3<36, 1), (38<>19, 2), (33<19, 2), (19<41, 2)])).

test(6, (50, 500, [<, >, <>]), (15, 20, 4), ([42, 37, 49, 48, 31, 1, 38, 44, 32, 8, 12, 26, 35, 4, 39], [37>42, 31>44, 31>32, 1>48, 1>8, 38>48, 44>48, 32>38, 26>48, 4>49, 4>48], [49<38, 31<>26, 42<32, 49>39, 32>8, 12<35, 1<>32, 42<12, 48<>8, 48<38, 26>39, 31<39, 44<39, 1>12, 49>1, 37<26, 44<>8, 8<26, 49>31, 1<>35], [ (42, 1), (37, 1), (49, 3), (48, 4), (31, 4), (1, 2), (38, 3), (44, 3), (32, 3), (8, 3), (12, 4), (26, 3), (35, 2), (4, 4), (39, 1)], [ (49<38, 3), (31<>26, 2), (42<32, 2), (49>39, 3), (32>8, 2), (12<35, 1), (1<>32, 4), (42<12, 1), (48<>8, 1), (48<38, 3), (26>39, 3), (31<39, 3), (44<39, 4), (1>12, 3), (49>1, 2), (37<26, 4), (44<>8, 3), (8<26, 2), (49>31, 1), (1<>35, 1)])).

test(7, (50, 500, [<, >, <>]), (15, 20, 4), ([9, 35, 12, 24, 30, 3, 32, 48, 25, 34, 22, 23, 36, 47, 27], [9>48, 9>22, 9>27, 35>48, 12>30, 12>48, 24>47, 3>24, 3>27, 25>27, 34>48, 22>25, 36>48, 47>48], [35>25, 25<>34, 12<>30, 22<>47, 30<>32, 30<>36, 35<36, 32<23, 32>48, 22<23, 23>27, 25<47, 30<22, 34>23, 24<32, 9>25, 32<>22, 24>48, 35<34, 3>22], [ (9, 1), (35, 1), (12, 2), (24, 2), (30, 4), (3, 4), (32, 4), (48, 2), (25, 4), (34, 1), (22, 3), (23, 1), (36, 1), (47, 1), (27, 3)], [ (35>25, 1), (25<>34, 4), (12<>30, 2), (22<>47, 4), (30<>32, 4), (30<>36, 2), (35<36, 1), (32<23, 4), (32>48, 1), (22<23, 2), (23>27, 4), (25<47, 2), (30<22, 2), (34>23, 3), (24<32, 4), (9>25, 1), (32<>22, 4), (24>48, 1), (35<34, 1), (3>22, 4)])).

test(8, (50, 500, [<, >, <>]), (15, 20, 4), ([13, 50, 35, 37, 42, 1, 32, 10, 2, 49, 6, 46, 12, 33, 26], [1>49, 1>46, 32>50, 10>50, 10>37, 10>49, 2>50, 2>32, 2>46, 2>12, 6>35, 6>26, 12>35, 12>49, 26>35], [13>50, 42>10, 37>26, 10>33, 2>49, 49<>12, 2>33, 32<>10, 13>6, 49<>6, 35<>33, 32>12, 50>37, 10<>26, 32<46, 37>42, 37<>33, 32>6, 6>33, 1<46], [ (13, 1), (50, 3), (35, 1), (37, 2), (42, 1), (1, 1), (32, 3), (10, 4), (2, 4), (49, 1), (6, 1), (46, 1), (12, 3), (33, 4), (26, 3)], [ (13>50, 3), (42>10, 1), (37>26, 3), (10>33, 2), (2>49, 1), (49<>12, 2), (2>33, 4), (32<>10, 2), (13>6, 4), (49<>6, 3), (35<>33, 2), (32>12, 2), (50>37, 4), (10<>26, 3), (32<46, 1), (37>42, 3), (37<>33, 4), (32>6, 4), (6>33, 1), (1<46, 1)])).

test(9, (50, 500, [<, >, <>]), (15, 20, 4), ([27, 49, 41, 29, 42, 16, 35, 31, 11, 30, 25, 48, 21, 50, 14], [27>41, 29>41, 42>49, 16>27, 16>30, 16>21, 31>42, 31>48, 11>25, 11>50, 25>31, 25>50, 21>27, 21>42, 21>31, 14>41, 14>31], [27<>49, 49>48, 25<>50, 41<>21, 27>31, 25<>14, 29<14, 27<35, 49>16, 42<35, 27<25, 16<>35, 29<>25, 35<21, 41<29, 16<48, 16>50, 11>30, 49>21, 30<25], [ (27, 3), (49, 1), (41, 2), (29, 1), (42, 2), (16, 4), (35, 2), (31, 4), (11, 2), (30, 4), (25, 1), (48, 2), (21, 4), (50, 1), (14, 4)], [ (27<>49, 4), (49>48, 4), (25<>50, 4), (41<>21, 4), (27>31, 4), (25<>14, 3), (29<14, 1), (27<35, 4), (49>16, 1), (42<35, 1), (27<25, 1), (16<>35, 1), (29<>25, 2), (35<21, 1), (41<29, 2), (16<48, 2), (16>50, 2), (11>30, 1), (49>21, 2), (30<25, 2)])).

test(10, (50, 500, [<, >, <>]), (15, 20, 4), ([10, 33, 35, 34, 4, 20, 43, 18, 41, 37, 44, 26, 32, 6, 2], [10>34, 10>20, 10>18, 33>43, 35>41, 35>37, 34>41, 4>10, 4>18, 4>6, 20>26, 18>35, 18>34, 18>41, 41>44, 26>35, 32>34, 6>43, 6>44, 6>32, 2>43, 2>32], [43>32, 34>43, 26<>32, 10>26, 4<6, 35>20, 41<>44, 18>32, 10>37, 18>44, 6>2, 18<>41, 4<>2, 34<2, 41<>6, 18<>26, 4>20, 10<35, 35<>37, 10<>32], [ (10, 4), (33, 1), (35, 2), (34, 1), (4, 3), (20, 3), (43, 1), (18, 2), (41, 3), (37, 3), (44, 2), (26, 1), (32, 1), (6, 2), (2, 1)], [ (43>32, 1), (34>43, 4), (26<>32, 2), (10>26, 1), (4<6, 3), (35>20, 4), (41<>44, 4), (18>32, 1), (10>37, 3), (18>44, 2), (6>2, 4), (18<>41, 3), (4<>2, 4), (34<2, 1), (41<>6, 1), (18<>26, 1), (4>20, 4), (10<35, 2), (35<>37, 1), (10<>32, 3)])).

%% 50, 500, [<, >, <>]
%% 20, 10, 4

test(1, (50, 500, [<, >, <>]), (20, 10, 4), ([14, 37, 7, 2, 13, 11, 12, 39, 27, 36, 43, 34, 35, 22, 28, 40, 10, 8, 44, 3], [14>37, 14>39, 14>36, 7>13, 7>43, 2>35, 2>22, 13>27, 13>36, 11>14, 11>13, 11>27, 12>44, 39>40, 27>39, 34>43, 35>43, 22>39, 22>36, 22>35, 22>28, 28>36, 28>40, 10>36, 8>13, 8>11, 8>40, 3>27, 3>35, 3>40], [13>8, 34<40, 27<>40, 39<>40, 11<>44, 10<>44, 37>8, 11>10, 2<12, 12>27], [ (14, 1), (37, 4), (7, 2), (2, 4), (13, 2), (11, 4), (12, 4), (39, 2), (27, 1), (36, 3), (43, 2), (34, 1), (35, 4), (22, 4), (28, 1), (40, 4), (10, 4), (8, 4), (44, 1), (3, 2)], [ (13>8, 1), (34<40, 2), (27<>40, 3), (39<>40, 1), (11<>44, 4), (10<>44, 3), (37>8, 1), (11>10, 4), (2<12, 3), (12>27, 1)])).

test(2, (50, 500, [<, >, <>]), (20, 10, 4), ([23, 37, 24, 36, 31, 29, 35, 17, 1, 4, 16, 41, 38, 27, 49, 5, 43, 25, 13, 10], [23>36, 23>38, 29>38, 17>36, 17>27, 1>31, 1>17, 1>5, 1>10, 4>37, 4>36, 4>49, 4>25, 16>36, 16>31, 16>25, 38>43, 5>23, 5>29, 25>29, 25>35, 13>16, 13>43, 10>37, 10>41, 10>49], [17>4, 23<4, 16>10, 24<>31, 36>17, 49<5, 29>35, 31<>4, 4<>38, 4<13], [ (23, 4), (37, 3), (24, 4), (36, 1), (31, 4), (29, 1), (35, 1), (17, 3), (1, 3), (4, 4), (16, 1), (41, 4), (38, 3), (27, 2), (49, 1), (5, 4), (43, 1), (25, 3), (13, 3), (10, 3)], [ (17>4, 1), (23<4, 4), (16>10, 2), (24<>31, 4), (36>17, 2), (49<5, 4), (29>35, 3), (31<>4, 1), (4<>38, 2), (4<13, 3)])).

test(3, (50, 500, [<, >, <>]), (20, 10, 4), ([42, 49, 28, 7, 27, 15, 36, 2, 18, 22, 4, 1, 35, 44, 13, 20, 23, 48, 30, 16], [28>36, 28>44, 28>30, 7>23, 27>36, 15>28, 15>27, 15>30, 2>42, 2>22, 2>4, 2>44, 2>13, 2>48, 18>42, 18>20, 22>27, 4>49, 4>15, 4>36, 4>22, 1>2, 1>18, 13>42, 13>22, 13>35, 13>16, 20>27, 20>36, 20>23, 23>36, 23>44, 23>30, 48>49, 30>44, 16>27], [28>23, 7<>36, 36>48, 18<>20, 42<>28, 35<>23, 2>30, 44<>48, 13<>16, 42<>44], [ (42, 4), (49, 4), (28, 4), (7, 2), (27, 1), (15, 3), (36, 2), (2, 2), (18, 4), (22, 2), (4, 4), (1, 1), (35, 4), (44, 2), (13, 2), (20, 3), (23, 4), (48, 3), (30, 2), (16, 4)], [ (28>23, 2), (7<>36, 3), (36>48, 1), (18<>20, 4), (42<>28, 2), (35<>23, 2), (2>30, 2), (44<>48, 4), (13<>16, 1), (42<>44, 4)])).

test(4, (50, 500, [<, >, <>]), (20, 10, 4), ([44, 28, 25, 16, 27, 15, 31, 39, 36, 17, 48, 33, 49, 43, 1, 46, 50, 37, 3, 11], [44>49, 44>46, 44>50, 28>44, 16>44, 16>28, 16>27, 16>31, 16>33, 27>28, 27>36, 27>43, 15>31, 15>48, 31>44, 39>43, 36>48, 17>44, 17>46, 17>37, 33>48, 33>43, 1>27, 46>50, 3>48, 11>43], [16>31, 39<17, 15<43, 31<37, 27>43, 28>1, 28<49, 25<>27, 48>33, 15<>46], [ (44, 3), (28, 1), (25, 1), (16, 1), (27, 2), (15, 4), (31, 1), (39, 4), (36, 4), (17, 1), (48, 1), (33, 3), (49, 1), (43, 3), (1, 4), (46, 3), (50, 4), (37, 3), (3, 3), (11, 3)], [ (16>31, 3), (39<17, 3), (15<43, 2), (31<37, 4), (27>43, 4), (28>1, 4), (28<49, 2), (25<>27, 2), (48>33, 2), (15<>46, 3)])).

test(5, (50, 500, [<, >, <>]), (20, 10, 4), ([47, 3, 32, 41, 22, 20, 11, 45, 10, 23, 36, 29, 25, 2, 42, 49, 5, 38, 18, 13], [3>42, 3>49, 3>5, 32>47, 32>38, 41>47, 22>32, 22>29, 20>32, 11>42, 45>47, 10>47, 10>38, 10>13, 23>25, 2>32, 42>45, 5>32, 5>45, 38>47, 18>47, 13>41, 13>49], [20<10, 45>29, 47>23, 3<22, 3<>11, 20<>2, 10<>25, 29>49, 25<13, 25<49], [ (47, 4), (3, 4), (32, 2), (41, 3), (22, 1), (20, 1), (11, 4), (45, 4), (10, 3), (23, 3), (36, 4), (29, 3), (25, 1), (2, 1), (42, 4), (49, 1), (5, 2), (38, 4), (18, 4), (13, 4)], [ (20<10, 4), (45>29, 2), (47>23, 1), (3<22, 3), (3<>11, 1), (20<>2, 4), (10<>25, 3), (29>49, 4), (25<13, 2), (25<49, 3)])).

test(6, (50, 500, [<, >, <>]), (20, 10, 4), ([50, 16, 46, 37, 7, 17, 12, 27, 34, 30, 25, 20, 49, 35, 45, 23, 41, 13, 36, 32], [16>17, 16>20, 16>49, 16>45, 37>41, 17>27, 17>23, 12>16, 12>25, 12>23, 27>34, 27>41, 34>50, 25>50, 25>46, 25>41, 25>32, 20>30, 20>25, 35>46, 23>30, 23>35, 13>50, 13>17, 32>46, 32>45], [7>12, 20<45, 7<23, 7<27, 16>25, 50<>37, 50<>45, 45>41, 12<25, 50<23], [ (50, 2), (16, 1), (46, 2), (37, 1), (7, 4), (17, 4), (12, 3), (27, 3), (34, 4), (30, 1), (25, 3), (20, 3), (49, 1), (35, 3), (45, 3), (23, 3), (41, 2), (13, 1), (36, 1), (32, 3)], [ (7>12, 1), (20<45, 3), (7<23, 3), (7<27, 2), (16>25, 2), (50<>37, 2), (50<>45, 4), (45>41, 2), (12<25, 1), (50<23, 2)])).

test(7, (50, 500, [<, >, <>]), (20, 10, 4), ([5, 26, 38, 45, 36, 44, 24, 15, 7, 2, 47, 39, 18, 3, 50, 27, 12, 22, 23, 13], [5>26, 5>27, 26>45, 38>39, 36>39, 44>50, 24>38, 15>47, 15>22, 2>36, 3>47, 12>26, 12>39, 12>23, 22>38, 23>24, 23>47, 13>27], [3<>13, 7<>39, 7<23, 38<>24, 24<>7, 5<>23, 36<47, 3>23, 18<>3, 44>50], [ (5, 3), (26, 1), (38, 4), (45, 4), (36, 4), (44, 4), (24, 1), (15, 3), (7, 3), (2, 1), (47, 4), (39, 2), (18, 3), (3, 1), (50, 1), (27, 3), (12, 4), (22, 3), (23, 1), (13, 3)], [ (3<>13, 4), (7<>39, 1), (7<23, 1), (38<>24, 3), (24<>7, 1), (5<>23, 3), (36<47, 2), (3>23, 3), (18<>3, 1), (44>50, 2)])).

test(8, (50, 500, [<, >, <>]), (20, 10, 4), ([38, 29, 2, 8, 28, 49, 12, 20, 6, 21, 46, 27, 48, 26, 35, 37, 17, 39, 24, 34], [38>46, 29>35, 2>21, 2>27, 2>35, 8>29, 8>48, 8>17, 8>24, 20>28, 20>39, 6>20, 6>26, 21>46, 26>46, 26>27, 37>38, 17>38, 17>21, 39>48, 24>29, 24>46], [17<>39, 8<>20, 29<>6, 8<26, 8<49, 20>35, 37<34, 8<>46, 29<>12, 49<6], [ (38, 2), (29, 3), (2, 2), (8, 3), (28, 1), (49, 2), (12, 3), (20, 2), (6, 2), (21, 4), (46, 3), (27, 4), (48, 1), (26, 1), (35, 2), (37, 4), (17, 3), (39, 3), (24, 3), (34, 2)], [ (17<>39, 4), (8<>20, 1), (29<>6, 3), (8<26, 1), (8<49, 1), (20>35, 4), (37<34, 3), (8<>46, 4), (29<>12, 4), (49<6, 2)])).

test(9, (50, 500, [<, >, <>]), (20, 10, 4), ([2, 23, 19, 37, 16, 47, 27, 26, 48, 49, 8, 5, 21, 35, 7, 15, 9, 14, 50, 13], [2>49, 2>7, 2>50, 19>47, 37>47, 37>48, 16>21, 16>50, 47>48, 26>27, 8>14, 35>47, 7>23, 7>37, 7>48, 7>49, 7>15, 7>9, 15>47, 9>47, 14>23, 14>47, 14>27, 13>19, 13>16, 13>21, 13>15], [37<50, 47>50, 19>7, 37<>49, 19<50, 35>13, 16<14, 26<9, 19>48, 23>14], [ (2, 3), (23, 2), (19, 2), (37, 1), (16, 2), (47, 3), (27, 1), (26, 1), (48, 4), (49, 3), (8, 4), (5, 4), (21, 4), (35, 3), (7, 2), (15, 1), (9, 1), (14, 1), (50, 3), (13, 1)], [ (37<50, 1), (47>50, 2), (19>7, 3), (37<>49, 4), (19<50, 1), (35>13, 1), (16<14, 4), (26<9, 1), (19>48, 4), (23>14, 3)])).

test(10, (50, 500, [<, >, <>]), (20, 10, 4), ([18, 28, 5, 25, 36, 11, 9, 8, 33, 31, 40, 10, 39, 12, 24, 2, 30, 42, 48, 32], [18>25, 18>48, 28>40, 28>30, 28>32, 5>25, 5>36, 5>48, 25>42, 11>48, 9>10, 9>24, 8>11, 8>32, 33>48, 31>39, 31>42, 10>48, 12>33, 24>36, 24>40, 24>39, 2>33, 2>12, 2>42, 30>31, 30>32, 32>36, 32>42], [36>32, 18<24, 18>39, 8<>12, 31>2, 8<48, 33>48, 18>42, 28<10, 5<>8], [ (18, 2), (28, 1), (5, 3), (25, 3), (36, 1), (11, 1), (9, 2), (8, 3), (33, 1), (31, 2), (40, 2), (10, 3), (39, 3), (12, 3), (24, 1), (2, 4), (30, 1), (42, 3), (48, 2), (32, 1)], [ (36>32, 3), (18<24, 3), (18>39, 4), (8<>12, 2), (31>2, 2), (8<48, 3), (33>48, 2), (18>42, 3), (28<10, 1), (5<>8, 1)])).

%% 50, 500, [<, >, <>]
%% 25, 40, 4

test(1, (50, 500, [<, >, <>]), (25, 40, 4), ([21, 20, 38, 17, 31, 24, 41, 48, 37, 47, 4, 49, 35, 23, 40, 5, 30, 3, 34, 8, 22, 1, 16, 10, 19], [21>34, 20>24, 20>49, 20>22, 17>37, 17>40, 24>49, 24>35, 4>21, 4>38, 4>23, 4>22, 4>10, 35>48, 23>48, 23>35, 23>40, 40>48, 5>17, 5>47, 5>40, 5>30, 5>8, 5>16, 30>47, 30>40, 3>17, 3>35, 3>16, 3>10, 34>35, 8>41, 22>23, 1>20, 1>19, 16>20, 16>24, 16>47, 16>40, 16>22, 10>38, 10>31, 10>40, 10>16, 19>48], [37>8, 35>23, 21<>8, 5>19, 4<>19, 17>40, 17<1, 20<>31, 40<>8, 47<>1, 35<>34, 17<>31, 31<30, 23<>16, 38<8, 21<>40, 31<10, 48<23, 37<49, 4<8, 31<>40, 20<49, 37<>22, 38<49, 24>23, 4>16, 8<1, 20<>35, 30<3, 4>22, 30>19, 21<47, 31<49, 23<30, 34<>16, 38<>34, 41<>3, 23<>10, 41<30, 38<>17], [ (21, 4), (20, 3), (38, 2), (17, 2), (31, 1), (24, 2), (41, 4), (48, 1), (37, 3), (47, 4), (4, 2), (49, 2), (35, 2), (23, 3), (40, 3), (5, 1), (30, 1), (3, 2), (34, 2), (8, 3), (22, 3), (1, 2), (16, 4), (10, 2), (19, 1)], [ (37>8, 2), (35>23, 4), (21<>8, 1), (5>19, 4), (4<>19, 2), (17>40, 1), (17<1, 4), (20<>31, 2), (40<>8, 2), (47<>1, 4), (35<>34, 1), (17<>31, 4), (31<30, 4), (23<>16, 3), (38<8, 4), (21<>40, 1), (31<10, 4), (48<23, 1), (37<49, 1), (4<8, 3), (31<>40, 2), (20<49, 4), (37<>22, 3), (38<49, 1), (24>23, 4), (4>16, 4), (8<1, 3), (20<>35, 2), (30<3, 2), (4>22, 3), (30>19, 3), (21<47, 2), (31<49, 3), (23<30, 2), (34<>16, 2), (38<>34, 4), (41<>3, 3), (23<>10, 3), (41<30, 4), (38<>17, 1)])).

test(2, (50, 500, [<, >, <>]), (25, 40, 4), ([38, 27, 42, 41, 15, 7, 26, 3, 14, 45, 22, 48, 4, 16, 32, 18, 24, 29, 35, 12, 10, 31, 6, 40, 1], [27>40, 42>48, 41>45, 15>27, 15>45, 15>18, 15>24, 26>31, 3>41, 3>32, 3>18, 14>27, 14>32, 22>29, 22>31, 4>15, 4>7, 4>26, 4>6, 16>22, 16>48, 16>35, 32>42, 32>48, 18>27, 18>42, 18>45, 18>22, 18>31, 24>26, 24>35, 24>31, 35>38, 35>40, 12>14, 10>16, 6>32, 6>24, 1>27, 1>7, 1>12, 1>40], [45<35, 4>18, 14>6, 45<12, 26<>35, 27<3, 4<>32, 48<29, 29<>35, 14<>24, 22<32, 14<40, 45>48, 22<29, 3<>10, 7<22, 38>14, 42<26, 14>4, 26<3, 35<6, 18<29, 24>35, 27>35, 41<>10, 24<>40, 38<>15, 14<10, 48<32, 22>35, 7<14, 16<29, 22>12, 12<1, 22<>4, 42>6, 27<18, 27<10, 12>31, 26<31], [ (38, 3), (27, 3), (42, 1), (41, 1), (15, 4), (7, 2), (26, 4), (3, 4), (14, 3), (45, 1), (22, 4), (48, 1), (4, 1), (16, 2), (32, 4), (18, 3), (24, 2), (29, 2), (35, 3), (12, 3), (10, 3), (31, 2), (6, 2), (40, 3), (1, 3)], [ (45<35, 2), (4>18, 2), (14>6, 4), (45<12, 2), (26<>35, 4), (27<3, 1), (4<>32, 3), (48<29, 2), (29<>35, 3), (14<>24, 1), (22<32, 3), (14<40, 2), (45>48, 1), (22<29, 4), (3<>10, 3), (7<22, 2), (38>14, 4), (42<26, 1), (14>4, 1), (26<3, 1), (35<6, 3), (18<29, 2), (24>35, 2), (27>35, 4), (41<>10, 4), (24<>40, 1), (38<>15, 3), (14<10, 1), (48<32, 1), (22>35, 1), (7<14, 2), (16<29, 2), (22>12, 2), (12<1, 1), (22<>4, 3), (42>6, 2), (27<18, 1), (27<10, 1), (12>31, 3), (26<31, 1)])).

test(3, (50, 500, [<, >, <>]), (25, 40, 4), ([3, 4, 7, 17, 10, 15, 30, 28, 5, 40, 23, 39, 13, 19, 35, 6, 24, 38, 37, 49, 26, 48, 46, 20, 22], [3>10, 3>40, 3>39, 3>38, 3>46, 4>23, 4>13, 4>49, 7>24, 7>20, 17>24, 17>26, 10>17, 10>15, 28>30, 28>35, 28>38, 5>7, 5>10, 5>35, 5>6, 5>46, 40>48, 40>46, 23>30, 23>28, 23>38, 39>40, 39>46, 13>46, 13>20, 19>28, 19>38, 35>39, 35>46, 6>46, 6>20, 24>35, 37>49, 26>46, 46>48, 20>40], [15<48, 4<>20, 10>30, 30<>49, 17<>39, 35>24, 35>38, 15<5, 39>38, 19<6, 7<>30, 13>24, 13<>19, 5<35, 48>20, 7<22, 23>19, 7<38, 17>48, 40<26, 39<26, 6<38, 13<37, 40<35, 10<23, 17>49, 10<38, 10<>26, 37>20, 17>22, 3>13, 10>24, 48>22, 4>37, 17<>20, 24<>38, 10<>22, 19<48, 5>48, 49>46], [ (3, 2), (4, 4), (7, 2), (17, 2), (10, 3), (15, 4), (30, 2), (28, 2), (5, 4), (40, 1), (23, 2), (39, 2), (13, 4), (19, 4), (35, 2), (6, 1), (24, 4), (38, 1), (37, 2), (49, 4), (26, 4), (48, 2), (46, 2), (20, 3), (22, 2)], [ (15<48, 3), (4<>20, 3), (10>30, 2), (30<>49, 2), (17<>39, 3), (35>24, 1), (35>38, 2), (15<5, 3), (39>38, 1), (19<6, 4), (7<>30, 3), (13>24, 3), (13<>19, 4), (5<35, 2), (48>20, 4), (7<22, 1), (23>19, 2), (7<38, 2), (17>48, 4), (40<26, 1), (39<26, 2), (6<38, 1), (13<37, 1), (40<35, 1), (10<23, 2), (17>49, 4), (10<38, 2), (10<>26, 3), (37>20, 2), (17>22, 3), (3>13, 3), (10>24, 4), (48>22, 2), (4>37, 4), (17<>20, 4), (24<>38, 3), (10<>22, 4), (19<48, 4), (5>48, 1), (49>46, 4)])).

test(4, (50, 500, [<, >, <>]), (25, 40, 4), ([45, 23, 16, 41, 24, 48, 15, 35, 6, 39, 49, 47, 29, 31, 26, 13, 12, 21, 19, 50, 38, 33, 7, 11, 30], [45>50, 23>41, 16>30, 41>50, 24>30, 15>39, 15>21, 15>19, 35>39, 6>50, 39>45, 39>47, 29>41, 29>47, 29>31, 29>30, 31>35, 31>39, 26>31, 13>16, 13>26, 13>50, 12>21, 12>38, 12>33, 21>26, 21>50, 21>38, 21>33, 19>23, 19>49, 19>26, 19>21, 19>50, 19>33, 7>45, 7>47, 7>29, 7>11, 11>24, 30>35, 30>38], [15<29, 31>13, 16<12, 41<>48, 21<19, 15>30, 49>26, 29<11, 29<>19, 15<50, 49<50, 24<>38, 23<>29, 23<>39, 16<47, 24<21, 48<>31, 35>26, 38<>30, 50>38, 41>7, 31<>12, 24<26, 39<11, 48<>26, 24<>30, 41<>19, 41<>33, 15>6, 15<21, 35<>50, 41<>15, 23<19, 45<>41, 31<7, 16<>21, 24>35, 48<>12, 15<11, 23<35], [ (45, 2), (23, 2), (16, 2), (41, 2), (24, 1), (48, 1), (15, 3), (35, 1), (6, 4), (39, 4), (49, 3), (47, 2), (29, 1), (31, 2), (26, 4), (13, 3), (12, 4), (21, 4), (19, 3), (50, 1), (38, 1), (33, 3), (7, 1), (11, 1), (30, 1)], [ (15<29, 4), (31>13, 3), (16<12, 4), (41<>48, 3), (21<19, 3), (15>30, 4), (49>26, 3), (29<11, 4), (29<>19, 3), (15<50, 2), (49<50, 4), (24<>38, 3), (23<>29, 1), (23<>39, 4), (16<47, 3), (24<21, 1), (48<>31, 3), (35>26, 3), (38<>30, 3), (50>38, 2), (41>7, 3), (31<>12, 1), (24<26, 3), (39<11, 2), (48<>26, 2), (24<>30, 4), (41<>19, 1), (41<>33, 3), (15>6, 2), (15<21, 1), (35<>50, 2), (41<>15, 2), (23<19, 1), (45<>41, 2), (31<7, 1), (16<>21, 3), (24>35, 4), (48<>12, 3), (15<11, 2), (23<35, 4)])).

test(5, (50, 500, [<, >, <>]), (25, 40, 4), ([3, 4, 37, 42, 33, 7, 12, 14, 46, 35, 43, 31, 17, 49, 23, 19, 15, 8, 50, 21, 28, 32, 11, 41, 25], [3>42, 3>7, 3>35, 3>43, 3>23, 3>25, 4>31, 4>17, 4>8, 4>11, 37>46, 37>50, 42>50, 33>43, 33>49, 7>12, 7>11, 12>37, 12>31, 14>46, 14>32, 14>41, 14>25, 31>43, 49>50, 23>50, 19>37, 19>33, 19>43, 15>33, 15>31, 15>17, 15>28, 15>25, 8>35, 8>28, 8>25, 21>23, 28>41, 32>42, 11>12, 11>35, 11>43, 11>50, 11>41, 25>43, 25>31], [46<50, 35<25, 3<25, 35<23, 12<35, 31<>28, 3<>28, 33<>17, 7>19, 3<>37, 37<28, 4<>25, 33<>23, 42<>43, 35<15, 3>35, 17<11, 17<25, 46<31, 14<49, 8<25, 42<8, 46>43, 37>41, 31<23, 37<23, 46>49, 17>8, 4<28, 23>8, 37<49, 43<8, 35<>32, 12>28, 31>49, 37<25, 14>35, 15<11, 33>28, 4<>37], [ (3, 1), (4, 2), (37, 3), (42, 1), (33, 4), (7, 4), (12, 1), (14, 2), (46, 3), (35, 4), (43, 3), (31, 4), (17, 4), (49, 2), (23, 4), (19, 4), (15, 2), (8, 1), (50, 2), (21, 2), (28, 2), (32, 2), (11, 1), (41, 3), (25, 3)], [ (46<50, 3), (35<25, 2), (3<25, 4), (35<23, 3), (12<35, 1), (31<>28, 2), (3<>28, 2), (33<>17, 4), (7>19, 3), (3<>37, 3), (37<28, 1), (4<>25, 1), (33<>23, 3), (42<>43, 2), (35<15, 1), (3>35, 2), (17<11, 1), (17<25, 4), (46<31, 4), (14<49, 1), (8<25, 3), (42<8, 4), (46>43, 4), (37>41, 3), (31<23, 4), (37<23, 3), (46>49, 1), (17>8, 2), (4<28, 4), (23>8, 3), (37<49, 3), (43<8, 2), (35<>32, 3), (12>28, 3), (31>49, 2), (37<25, 1), (14>35, 4), (15<11, 1), (33>28, 3), (4<>37, 1)])).

test(6, (50, 500, [<, >, <>]), (25, 40, 4), ([48, 28, 42, 3, 4, 24, 31, 45, 32, 47, 46, 23, 20, 40, 26, 39, 8, 27, 2, 25, 22, 43, 49, 34, 12], [48>49, 28>48, 42>43, 3>32, 3>20, 3>25, 4>26, 4>8, 24>39, 24>34, 31>32, 31>40, 32>43, 46>48, 20>47, 20>27, 40>48, 26>28, 26>40, 26>49, 26>34, 39>47, 27>32, 2>32, 2>22, 2>43, 2>49, 2>12, 25>32, 25>27, 22>24, 22>23, 34>47, 12>32, 12>27], [42<12, 31<>32, 32<2, 46<20, 48<45, 42>43, 3<>34, 4>23, 42<>34, 45>27, 26<27, 40>26, 27>12, 47<>8, 48<>42, 31<>20, 2<22, 20<>25, 46<34, 2<>49, 31<>12, 48<>49, 42<49, 31<>43, 45<20, 8<>2, 25>34, 3<>32, 27<>43, 28<>27, 24<8, 47>12, 4<40, 8>12, 23>40, 42<>24, 46>12, 23>25, 42>47, 26<>8], [ (48, 4), (28, 4), (42, 2), (3, 1), (4, 2), (24, 3), (31, 3), (45, 3), (32, 2), (47, 2), (46, 2), (23, 4), (20, 2), (40, 2), (26, 1), (39, 2), (8, 4), (27, 4), (2, 4), (25, 1), (22, 2), (43, 1), (49, 3), (34, 3), (12, 4)], [ (42<12, 1), (31<>32, 3), (32<2, 2), (46<20, 2), (48<45, 4), (42>43, 2), (3<>34, 2), (4>23, 3), (42<>34, 3), (45>27, 4), (26<27, 2), (40>26, 2), (27>12, 2), (47<>8, 4), (48<>42, 4), (31<>20, 4), (2<22, 1), (20<>25, 3), (46<34, 3), (2<>49, 4), (31<>12, 2), (48<>49, 3), (42<49, 3), (31<>43, 3), (45<20, 2), (8<>2, 3), (25>34, 3), (3<>32, 1), (27<>43, 4), (28<>27, 4), (24<8, 4), (47>12, 2), (4<40, 1), (8>12, 1), (23>40, 4), (42<>24, 1), (46>12, 1), (23>25, 3), (42>47, 4), (26<>8, 3)])).

test(7, (50, 500, [<, >, <>]), (25, 40, 4), ([50, 22, 3, 34, 33, 27, 43, 21, 30, 24, 15, 37, 14, 17, 23, 47, 9, 18, 44, 40, 35, 16, 2, 38, 48], [22>33, 22>35, 3>23, 3>44, 3>35, 27>34, 21>48, 30>48, 24>43, 15>21, 15>30, 37>48, 14>24, 14>47, 14>35, 14>38, 17>34, 23>24, 9>24, 9>15, 9>14, 9>18, 18>22, 18>33, 18>37, 18>35, 44>47, 35>50, 35>40, 16>40, 2>50, 2>9, 2>35], [40<>2, 47>16, 37<47, 33<>9, 3<>15, 30<15, 35>2, 9<35, 22>9, 27>40, 50>18, 22>21, 47<>40, 21<>30, 47<>48, 50>34, 30<48, 22<16, 33>38, 3>23, 3>44, 23<35, 23>18, 44<>35, 23<2, 33<>14, 24<44, 30<24, 44<>48, 37>48, 27<47, 37<>16, 21<40, 18<16, 22>17, 3>18, 9<44, 15<40, 14>2, 15>48], [ (50, 2), (22, 3), (3, 2), (34, 2), (33, 4), (27, 2), (43, 3), (21, 2), (30, 1), (24, 1), (15, 2), (37, 1), (14, 3), (17, 2), (23, 1), (47, 4), (9, 3), (18, 1), (44, 2), (40, 4), (35, 2), (16, 3), (2, 2), (38, 1), (48, 3)], [ (40<>2, 1), (47>16, 4), (37<47, 1), (33<>9, 3), (3<>15, 4), (30<15, 4), (35>2, 2), (9<35, 4), (22>9, 1), (27>40, 3), (50>18, 2), (22>21, 4), (47<>40, 4), (21<>30, 3), (47<>48, 3), (50>34, 4), (30<48, 2), (22<16, 3), (33>38, 4), (3>23, 3), (3>44, 4), (23<35, 1), (23>18, 3), (44<>35, 2), (23<2, 1), (33<>14, 2), (24<44, 4), (30<24, 2), (44<>48, 2), (37>48, 2), (27<47, 2), (37<>16, 2), (21<40, 3), (18<16, 4), (22>17, 4), (3>18, 4), (9<44, 4), (15<40, 4), (14>2, 3), (15>48, 1)])).

test(8, (50, 500, [<, >, <>]), (25, 40, 4), ([15, 5, 33, 42, 41, 29, 24, 17, 28, 1, 20, 31, 49, 9, 48, 7, 35, 46, 47, 4, 44, 45, 14, 16, 11], [15>41, 15>46, 5>41, 5>24, 5>17, 33>47, 24>29, 17>42, 17>35, 1>41, 1>29, 20>48, 9>15, 9>33, 9>17, 9>28, 9>45, 9>11, 7>24, 35>49, 4>29, 4>28, 4>9, 45>48, 45>46, 14>42, 14>47, 16>45, 11>42, 11>24, 11>47, 11>14], [24>7, 9<45, 9<4, 31>48, 48<>46, 20<>49, 24<48, 1>16, 33<>42, 33<47, 24>49, 7>35, 47>11, 35<>45, 47>16, 9>11, 1<11, 9<>14, 33>20, 41<>11, 5<>29, 33<9, 1>45, 5>41, 17<>35, 35<>4, 35>44, 35>46, 33<29, 33>14, 28<>48, 29<>20, 15>44, 24<>4, 7>44, 28>1, 42<35, 15<1, 28<7, 49<7], [ (15, 3), (5, 3), (33, 4), (42, 2), (41, 1), (29, 1), (24, 1), (17, 2), (28, 1), (1, 1), (20, 1), (31, 1), (49, 4), (9, 3), (48, 2), (7, 4), (35, 1), (46, 2), (47, 3), (4, 1), (44, 4), (45, 1), (14, 1), (16, 3), (11, 3)], [ (24>7, 2), (9<45, 1), (9<4, 1), (31>48, 4), (48<>46, 4), (20<>49, 3), (24<48, 2), (1>16, 2), (33<>42, 3), (33<47, 1), (24>49, 2), (7>35, 4), (47>11, 3), (35<>45, 4), (47>16, 1), (9>11, 1), (1<11, 4), (9<>14, 4), (33>20, 4), (41<>11, 3), (5<>29, 1), (33<9, 2), (1>45, 4), (5>41, 4), (17<>35, 2), (35<>4, 1), (35>44, 4), (35>46, 1), (33<29, 4), (33>14, 3), (28<>48, 1), (29<>20, 2), (15>44, 3), (24<>4, 3), (7>44, 4), (28>1, 1), (42<35, 2), (15<1, 1), (28<7, 1), (49<7, 3)])).

test(9, (50, 500, [<, >, <>]), (25, 40, 4), ([21, 4, 8, 28, 7, 15, 41, 11, 24, 36, 29, 44, 49, 19, 32, 18, 50, 43, 38, 22, 3, 31, 33, 16, 9], [21>43, 4>32, 4>22, 8>21, 8>49, 8>50, 8>22, 8>33, 8>16, 28>41, 28>29, 28>32, 28>43, 7>21, 7>49, 7>38, 7>9, 11>41, 11>19, 11>18, 24>28, 24>36, 29>43, 29>31, 44>50, 19>21, 19>44, 19>22, 32>49, 32>33, 18>36, 22>29, 22>49, 3>41, 3>19, 3>32, 31>33, 16>29, 16>32, 9>19, 9>32, 9>16], [3>16, 21<>32, 41>22, 29>43, 28<>43, 29<>9, 21<>7, 3<31, 28<24, 8>50, 8<>38, 15>38, 49>3, 38>31, 21<50, 32<3, 15>24, 7>15, 44<>16, 38>33, 28<>29, 18<22, 36>22, 15<>44, 36<>18, 43<22, 7>11, 44<31, 28<>49, 41<18, 4>16, 44<49, 24<>32, 21<>29, 22>31, 50<31, 44<>32, 7>50, 18<>50, 8<>9], [ (21, 3), (4, 4), (8, 1), (28, 2), (7, 4), (15, 2), (41, 3), (11, 4), (24, 4), (36, 2), (29, 4), (44, 1), (49, 2), (19, 1), (32, 1), (18, 1), (50, 3), (43, 4), (38, 4), (22, 3), (3, 1), (31, 2), (33, 1), (16, 2), (9, 1)], [ (3>16, 2), (21<>32, 3), (41>22, 4), (29>43, 3), (28<>43, 3), (29<>9, 1), (21<>7, 2), (3<31, 3), (28<24, 1), (8>50, 2), (8<>38, 4), (15>38, 3), (49>3, 4), (38>31, 3), (21<50, 2), (32<3, 4), (15>24, 3), (7>15, 2), (44<>16, 2), (38>33, 3), (28<>29, 3), (18<22, 3), (36>22, 1), (15<>44, 4), (36<>18, 2), (43<22, 4), (7>11, 2), (44<31, 2), (28<>49, 4), (41<18, 2), (4>16, 3), (44<49, 4), (24<>32, 3), (21<>29, 3), (22>31, 1), (50<31, 4), (44<>32, 3), (7>50, 2), (18<>50, 2), (8<>9, 4)])).

test(10, (50, 500, [<, >, <>]), (25, 40, 4), ([33, 45, 32, 7, 41, 27, 13, 10, 39, 4, 3, 12, 44, 35, 24, 17, 31, 1, 38, 19, 16, 11, 18, 34, 6], [33>34, 32>34, 7>44, 7>31, 7>34, 10>41, 10>27, 10>13, 10>39, 10>35, 10>18, 39>41, 39>44, 4>45, 4>10, 4>34, 3>24, 3>17, 3>6, 12>39, 12>17, 12>31, 24>33, 24>41, 17>33, 17>32, 31>45, 31>35, 31>34, 1>32, 1>7, 1>13, 1>31, 19>27, 19>31, 16>27, 16>34, 11>41, 11>12, 11>35, 18>41, 18>31, 18>38, 6>33, 6>19], [27<16, 11<6, 45>34, 7<>18, 35<6, 38<>6, 4<>3, 32<>6, 10<38, 32>17, 35<>24, 45<27, 7<4, 41<17, 39<>24, 27<17, 41<>4, 27>35, 45>19, 45<10, 41<3, 19<6, 31<1, 17<16, 44<>16, 16<6, 45<7, 45<12, 7<>31, 4>11, 35>19, 38>16, 33<>12, 10<31, 41>44, 13<>4, 44<18, 10>11, 3<17, 44>35], [ (33, 2), (45, 1), (32, 1), (7, 4), (41, 2), (27, 1), (13, 3), (10, 2), (39, 2), (4, 4), (3, 3), (12, 2), (44, 2), (35, 3), (24, 4), (17, 3), (31, 2), (1, 3), (38, 1), (19, 1), (16, 4), (11, 2), (18, 4), (34, 4), (6, 1)], [ (27<16, 1), (11<6, 2), (45>34, 4), (7<>18, 4), (35<6, 4), (38<>6, 1), (4<>3, 4), (32<>6, 4), (10<38, 3), (32>17, 1), (35<>24, 2), (45<27, 4), (7<4, 1), (41<17, 3), (39<>24, 4), (27<17, 3), (41<>4, 1), (27>35, 1), (45>19, 3), (45<10, 1), (41<3, 3), (19<6, 4), (31<1, 2), (17<16, 1), (44<>16, 3), (16<6, 3), (45<7, 4), (45<12, 4), (7<>31, 4), (4>11, 4), (35>19, 4), (38>16, 2), (33<>12, 1), (10<31, 4), (41>44, 2), (13<>4, 1), (44<18, 1), (10>11, 2), (3<17, 2), (44>35, 2)])).

%% 50, 500, [<, >, <>]
%% 30, 20, 4

test(1, (50, 500, [<, >, <>]), (30, 20, 4), ([20, 26, 7, 35, 27, 42, 6, 17, 40, 18, 14, 13, 29, 5, 48, 3, 30, 21, 11, 49, 4, 24, 50, 38, 43, 46, 44, 19, 39, 2], [20>29, 26>49, 7>14, 7>29, 7>21, 7>24, 35>42, 35>39, 27>42, 27>50, 42>50, 6>42, 6>18, 6>13, 6>30, 17>21, 18>24, 14>27, 14>50, 14>43, 14>39, 13>35, 13>21, 13>46, 13>39, 29>30, 5>18, 5>48, 5>30, 5>24, 5>38, 3>30, 3>49, 3>19, 30>48, 21>26, 21>40, 21>24, 21>44, 11>13, 11>29, 11>44, 4>42, 4>43, 24>40, 24>44, 46>48, 46>49, 44>48, 44>49, 44>46, 19>26, 19>48, 19>30, 19>21, 39>50, 2>18], [20<>11, 18<29, 20>18, 35<11, 27>19, 48<39, 38<39, 18<>4, 42<>29, 7>19, 5<24, 17<4, 7<49, 40>2, 26>42, 27<4, 19>2, 43>19, 35<>21, 20>3], [ (20, 1), (26, 3), (7, 1), (35, 4), (27, 4), (42, 3), (6, 2), (17, 1), (40, 3), (18, 3), (14, 3), (13, 2), (29, 2), (5, 4), (48, 2), (3, 3), (30, 3), (21, 1), (11, 3), (49, 4), (4, 3), (24, 1), (50, 4), (38, 1), (43, 3), (46, 1), (44, 3), (19, 2), (39, 3), (2, 1)], [ (20<>11, 2), (18<29, 1), (20>18, 4), (35<11, 3), (27>19, 1), (48<39, 3), (38<39, 3), (18<>4, 2), (42<>29, 4), (7>19, 4), (5<24, 4), (17<4, 3), (7<49, 2), (40>2, 2), (26>42, 4), (27<4, 3), (19>2, 1), (43>19, 1), (35<>21, 1), (20>3, 1)])).

test(2, (50, 500, [<, >, <>]), (30, 20, 4), ([8, 20, 31, 16, 10, 37, 44, 14, 32, 43, 27, 38, 22, 13, 30, 19, 4, 28, 5, 24, 9, 49, 6, 11, 47, 25, 3, 39, 23, 2], [8>20, 8>14, 8>32, 8>13, 8>19, 20>27, 20>30, 20>23, 31>32, 31>39, 16>25, 16>23, 10>32, 10>13, 10>49, 14>16, 14>43, 14>47, 32>38, 27>43, 38>44, 22>27, 13>44, 13>25, 30>43, 30>38, 19>43, 19>30, 19>49, 4>22, 4>9, 4>25, 28>39, 5>43, 5>38, 5>30, 5>28, 5>6, 24>31, 24>44, 9>13, 9>24, 9>23, 6>8, 6>9, 11>32, 11>28, 11>49, 11>25, 11>39, 25>27, 25>38, 25>49, 3>8, 3>14, 3>27, 3>13, 3>30, 23>28, 2>47], [16<>30, 44>2, 19<6, 32>6, 49<6, 8<>24, 8<44, 31<49, 37>14, 16<44, 44<28, 28>25, 16<32, 37>6, 22<5, 49<25, 43<>23, 13<30, 8>9, 8<>37], [ (8, 3), (20, 2), (31, 3), (16, 1), (10, 3), (37, 1), (44, 1), (14, 2), (32, 2), (43, 1), (27, 4), (38, 2), (22, 1), (13, 4), (30, 1), (19, 3), (4, 4), (28, 4), (5, 4), (24, 3), (9, 1), (49, 2), (6, 4), (11, 4), (47, 1), (25, 1), (3, 2), (39, 4), (23, 2), (2, 2)], [ (16<>30, 2), (44>2, 1), (19<6, 3), (32>6, 3), (49<6, 1), (8<>24, 1), (8<44, 4), (31<49, 2), (37>14, 4), (16<44, 3), (44<28, 1), (28>25, 3), (16<32, 1), (37>6, 1), (22<5, 1), (49<25, 4), (43<>23, 1), (13<30, 3), (8>9, 4), (8<>37, 1)])).

test(3, (50, 500, [<, >, <>]), (30, 20, 4), ([11, 33, 13, 47, 46, 15, 8, 30, 29, 7, 40, 12, 25, 22, 14, 41, 42, 17, 31, 37, 10, 32, 26, 45, 24, 39, 18, 3, 34, 35], [33>41, 33>35, 13>29, 13>14, 13>41, 15>40, 15>32, 15>34, 8>30, 8>29, 8>12, 8>22, 29>47, 29>30, 29>32, 29>35, 7>18, 40>45, 12>15, 12>22, 12>31, 25>33, 25>30, 25>40, 25>31, 22>31, 22>34, 14>31, 14>24, 14>34, 17>41, 17>32, 17>18, 31>47, 31>42, 31>39, 10>33, 10>46, 10>14, 10>31, 32>33, 32>42, 32>45, 26>47, 26>30, 24>30, 24>26, 24>34, 24>35, 39>40, 18>46, 3>29, 3>14, 3>41, 3>37, 34>37, 35>46], [31<26, 14>24, 10<>32, 12<41, 39<35, 31<>24, 12<3, 11<>17, 46>12, 45>24, 10<35, 30>25, 39<>3, 46<>31, 33<45, 7<>41, 13<14, 7<26, 40>3, 26<>39], [ (11, 4), (33, 2), (13, 4), (47, 3), (46, 1), (15, 4), (8, 2), (30, 1), (29, 3), (7, 3), (40, 1), (12, 2), (25, 1), (22, 1), (14, 3), (41, 4), (42, 3), (17, 3), (31, 4), (37, 4), (10, 4), (32, 4), (26, 1), (45, 2), (24, 3), (39, 4), (18, 1), (3, 4), (34, 2), (35, 3)], [ (31<26, 2), (14>24, 2), (10<>32, 3), (12<41, 3), (39<35, 1), (31<>24, 2), (12<3, 4), (11<>17, 2), (46>12, 4), (45>24, 3), (10<35, 2), (30>25, 1), (39<>3, 3), (46<>31, 3), (33<45, 4), (7<>41, 4), (13<14, 2), (7<26, 1), (40>3, 2), (26<>39, 2)])).

test(4, (50, 500, [<, >, <>]), (30, 20, 4), ([23, 32, 27, 29, 1, 47, 48, 13, 50, 36, 14, 20, 37, 7, 12, 19, 34, 8, 22, 42, 38, 4, 41, 43, 49, 33, 10, 21, 5, 46], [32>36, 32>37, 32>34, 27>48, 27>37, 27>46, 29>32, 29>43, 1>47, 1>36, 1>37, 1>43, 47>50, 47>49, 13>23, 13>34, 13>49, 13>21, 36>41, 36>49, 14>20, 20>23, 20>33, 20>21, 7>12, 7>34, 7>41, 7>21, 12>36, 12>42, 12>43, 12>46, 19>43, 34>50, 34>46, 8>27, 8>50, 8>14, 8>19, 8>33, 8>21, 22>50, 22>34, 42>43, 4>29, 4>50, 4>36, 4>14, 4>33, 43>47, 43>48, 43>49, 43>46, 33>49, 10>27, 10>47, 10>46, 21>32, 21>42, 21>43, 21>33, 21>46, 5>32, 5>12, 46>47], [36>10, 34<22, 22<>43, 48>8, 37<>22, 47>43, 37<7, 37<>12, 27<>19, 42<>43, 41>43, 23<>36, 50<>8, 4<>41, 48<>41, 33<46, 43>46, 1<>33, 29<>33, 48>42], [ (23, 2), (32, 1), (27, 4), (29, 4), (1, 2), (47, 3), (48, 3), (13, 1), (50, 1), (36, 2), (14, 3), (20, 2), (37, 1), (7, 1), (12, 3), (19, 2), (34, 1), (8, 1), (22, 2), (42, 1), (38, 4), (4, 1), (41, 4), (43, 3), (49, 4), (33, 3), (10, 4), (21, 4), (5, 4), (46, 3)], [ (36>10, 1), (34<22, 2), (22<>43, 1), (48>8, 1), (37<>22, 2), (47>43, 1), (37<7, 1), (37<>12, 3), (27<>19, 1), (42<>43, 3), (41>43, 1), (23<>36, 3), (50<>8, 1), (4<>41, 3), (48<>41, 2), (33<46, 2), (43>46, 1), (1<>33, 2), (29<>33, 4), (48>42, 3)])).

test(5, (50, 500, [<, >, <>]), (30, 20, 4), ([40, 23, 17, 31, 1, 19, 32, 18, 46, 14, 13, 34, 39, 41, 22, 25, 28, 47, 21, 20, 16, 43, 9, 4, 44, 33, 38, 35, 10, 30], [40>41, 23>40, 23>35, 17>19, 17>41, 1>31, 1>19, 1>22, 1>43, 1>9, 1>4, 19>22, 19>25, 19>47, 18>40, 18>32, 18>34, 14>18, 14>46, 14>34, 14>20, 14>16, 13>40, 13>46, 13>47, 13>21, 13>43, 13>38, 34>43, 39>41, 41>46, 41>44, 22>32, 22>41, 22>28, 22>47, 22>43, 25>46, 25>41, 25>30, 28>35, 21>44, 20>31, 20>22, 20>30, 16>40, 16>28, 16>20, 16>44, 9>17, 9>22, 9>20, 9>38, 4>17, 4>21, 44>46, 33>34, 33>44, 38>40, 10>46, 10>34, 10>20, 30>32, 30>39], [23<39, 32<>16, 41<>30, 18<35, 34<30, 47>30, 21<30, 31<20, 18>13, 1<>22, 32<21, 32<>13, 18<44, 20>16, 25<>30, 46>34, 18<>16, 34<>22, 9<4, 19<>20], [ (40, 3), (23, 4), (17, 3), (31, 1), (1, 1), (19, 2), (32, 2), (18, 4), (46, 4), (14, 4), (13, 1), (34, 4), (39, 4), (41, 3), (22, 3), (25, 4), (28, 2), (47, 2), (21, 4), (20, 1), (16, 4), (43, 4), (9, 1), (4, 1), (44, 1), (33, 3), (38, 2), (35, 1), (10, 4), (30, 2)], [ (23<39, 3), (32<>16, 2), (41<>30, 3), (18<35, 4), (34<30, 1), (47>30, 1), (21<30, 1), (31<20, 1), (18>13, 3), (1<>22, 2), (32<21, 1), (32<>13, 3), (18<44, 1), (20>16, 3), (25<>30, 2), (46>34, 1), (18<>16, 4), (34<>22, 3), (9<4, 1), (19<>20, 3)])).

test(6, (50, 500, [<, >, <>]), (30, 20, 4), ([36, 14, 18, 9, 4, 47, 16, 8, 25, 1, 11, 43, 21, 39, 24, 19, 46, 32, 31, 33, 44, 29, 7, 22, 48, 10, 12, 34, 15, 27], [36>46, 14>18, 14>25, 14>43, 14>32, 14>44, 14>15, 18>32, 18>31, 9>11, 9>24, 9>46, 9>29, 4>14, 4>25, 4>39, 4>19, 4>46, 16>36, 16>18, 16>25, 16>46, 16>33, 16>48, 25>32, 25>27, 1>36, 1>16, 1>11, 1>43, 1>21, 1>32, 1>7, 1>10, 1>27, 11>18, 11>47, 11>29, 11>48, 11>12, 43>46, 21>25, 21>29, 21>22, 39>47, 39>43, 24>33, 33>39, 29>32, 7>43, 22>31, 22>48, 10>25, 10>24, 10>29, 12>14, 12>34, 34>48, 15>31, 15>34, 27>33], [16<39, 9<>44, 11<>43, 12>27, 44>7, 9<31, 21<33, 44>27, 47<39, 8>48, 32>27, 43>21, 43<34, 22>12, 16<>10, 4<>29, 31<48, 9<21, 43<46, 39>24], [ (36, 4), (14, 3), (18, 4), (9, 1), (4, 1), (47, 1), (16, 2), (8, 2), (25, 2), (1, 4), (11, 1), (43, 4), (21, 2), (39, 3), (24, 1), (19, 3), (46, 2), (32, 3), (31, 4), (33, 2), (44, 4), (29, 2), (7, 1), (22, 2), (48, 2), (10, 2), (12, 4), (34, 3), (15, 3), (27, 1)], [ (16<39, 2), (9<>44, 2), (11<>43, 3), (12>27, 3), (44>7, 3), (9<31, 1), (21<33, 2), (44>27, 3), (47<39, 4), (8>48, 3), (32>27, 1), (43>21, 3), (43<34, 1), (22>12, 2), (16<>10, 2), (4<>29, 1), (31<48, 4), (9<21, 2), (43<46, 2), (39>24, 3)])).

test(7, (50, 500, [<, >, <>]), (30, 20, 4), ([8, 21, 2, 48, 27, 38, 16, 20, 26, 24, 32, 41, 6, 22, 12, 18, 15, 34, 9, 13, 14, 25, 1, 19, 47, 17, 11, 35, 3, 7], [8>17, 8>11, 2>38, 2>41, 2>18, 27>48, 16>41, 16>47, 20>48, 20>26, 26>41, 41>48, 6>21, 6>12, 22>38, 22>26, 22>24, 22>41, 22>34, 12>48, 12>20, 12>26, 12>41, 12>15, 12>17, 18>32, 18>34, 18>35, 15>26, 15>22, 34>48, 9>21, 9>32, 9>18, 9>13, 13>21, 13>14, 14>41, 14>25, 1>16, 1>26, 1>32, 1>22, 1>7, 19>21, 19>27, 19>20, 19>24, 17>26, 17>25, 11>12, 3>32, 3>22, 3>14, 3>47, 3>11, 3>7, 7>32, 7>12, 7>15], [6<7, 21<>47, 15<>9, 9<35, 24>22, 14>47, 21>11, 20<>17, 19<>17, 26>19, 26<13, 24<>47, 32>11, 48<>14, 9<>1, 25<>19, 24<>1, 16<22, 16>12, 26<17], [ (8, 1), (21, 2), (2, 2), (48, 4), (27, 3), (38, 1), (16, 4), (20, 3), (26, 2), (24, 2), (32, 3), (41, 3), (6, 1), (22, 2), (12, 4), (18, 2), (15, 2), (34, 3), (9, 2), (13, 3), (14, 2), (25, 1), (1, 3), (19, 3), (47, 3), (17, 3), (11, 2), (35, 3), (3, 4), (7, 3)], [ (6<7, 2), (21<>47, 2), (15<>9, 2), (9<35, 3), (24>22, 1), (14>47, 4), (21>11, 4), (20<>17, 3), (19<>17, 2), (26>19, 1), (26<13, 1), (24<>47, 4), (32>11, 3), (48<>14, 3), (9<>1, 3), (25<>19, 4), (24<>1, 1), (16<22, 3), (16>12, 4), (26<17, 2)])).

test(8, (50, 500, [<, >, <>]), (30, 20, 4), ([41, 6, 14, 45, 12, 34, 31, 40, 35, 44, 49, 7, 33, 32, 9, 3, 28, 20, 24, 48, 11, 1, 5, 8, 46, 37, 26, 4, 30, 43], [41>44, 6>49, 14>35, 45>48, 12>14, 12>40, 31>35, 31>49, 31>32, 31>48, 40>45, 40>44, 35>37, 44>49, 7>49, 7>8, 32>37, 9>24, 9>46, 3>6, 3>14, 3>44, 3>4, 28>37, 28>30, 28>43, 20>40, 24>41, 24>34, 24>28, 24>46, 11>49, 11>48, 11>46, 1>32, 1>28, 1>4, 1>43, 5>41, 5>12, 5>35, 5>7, 5>48, 5>30, 8>31, 26>41, 26>37, 4>45, 4>40, 4>35, 4>49, 4>43, 30>35, 30>32, 30>43], [3>46, 3<24, 14>11, 6<14, 14>37, 44<>1, 45<5, 40<>8, 12>9, 6<>33, 44>49, 34<43, 28>43, 48<26, 7<30, 28>48, 11>43, 40<>30, 44>37, 31<46], [ (41, 3), (6, 3), (14, 4), (45, 4), (12, 3), (34, 3), (31, 2), (40, 1), (35, 4), (44, 1), (49, 3), (7, 4), (33, 1), (32, 1), (9, 1), (3, 2), (28, 2), (20, 2), (24, 2), (48, 4), (11, 3), (1, 3), (5, 3), (8, 2), (46, 3), (37, 2), (26, 1), (4, 1), (30, 3), (43, 4)], [ (3>46, 4), (3<24, 2), (14>11, 4), (6<14, 2), (14>37, 4), (44<>1, 1), (45<5, 3), (40<>8, 2), (12>9, 1), (6<>33, 3), (44>49, 2), (34<43, 1), (28>43, 4), (48<26, 2), (7<30, 1), (28>48, 1), (11>43, 2), (40<>30, 2), (44>37, 4), (31<46, 2)])).

test(9, (50, 500, [<, >, <>]), (30, 20, 4), ([8, 33, 25, 11, 28, 43, 16, 48, 40, 23, 37, 35, 24, 17, 29, 41, 13, 18, 21, 44, 47, 31, 39, 36, 2, 14, 9, 20, 19, 3], [8>35, 8>47, 8>36, 8>19, 25>43, 25>31, 11>40, 16>36, 40>48, 23>33, 37>44, 35>41, 24>47, 17>23, 17>18, 17>20, 41>48, 41>44, 13>33, 13>14, 18>28, 18>47, 21>43, 31>43, 31>47, 31>39, 36>41, 2>33, 2>11, 2>29, 2>13, 2>14, 14>16, 14>41, 14>21, 14>47, 20>28, 20>35, 20>21, 20>47, 19>25, 19>41, 3>17, 3>47, 3>36], [11>31, 8<39, 28>23, 8<3, 17>3, 25<28, 17<>31, 41>44, 16<>18, 21>2, 33<37, 24<>9, 48<>13, 24<20, 33<>2, 16>48, 11<24, 24>31, 43<>40, 20<>19], [ (8, 1), (33, 1), (25, 3), (11, 4), (28, 3), (43, 1), (16, 1), (48, 1), (40, 3), (23, 2), (37, 3), (35, 2), (24, 3), (17, 2), (29, 4), (41, 4), (13, 4), (18, 2), (21, 2), (44, 4), (47, 4), (31, 3), (39, 4), (36, 2), (2, 3), (14, 4), (9, 1), (20, 2), (19, 4), (3, 2)], [ (11>31, 2), (8<39, 4), (28>23, 1), (8<3, 3), (17>3, 2), (25<28, 1), (17<>31, 2), (41>44, 1), (16<>18, 1), (21>2, 2), (33<37, 1), (24<>9, 4), (48<>13, 3), (24<20, 3), (33<>2, 3), (16>48, 1), (11<24, 1), (24>31, 1), (43<>40, 1), (20<>19, 2)])).

test(10, (50, 500, [<, >, <>]), (30, 20, 4), ([37, 49, 12, 10, 30, 7, 1, 43, 6, 34, 13, 20, 46, 45, 4, 9, 39, 42, 18, 27, 15, 28, 44, 36, 38, 2, 23, 8, 24, 3], [12>13, 10>49, 10>34, 10>18, 10>15, 10>44, 10>36, 30>37, 30>34, 7>12, 7>43, 7>45, 1>34, 1>27, 1>28, 1>38, 6>7, 6>15, 6>23, 34>37, 13>42, 13>15, 13>28, 13>38, 20>46, 20>39, 45>49, 4>44, 9>10, 9>13, 9>27, 9>24, 39>49, 39>43, 39>44, 42>44, 15>37, 15>45, 15>39, 15>28, 15>38, 28>43, 28>39, 28>44, 28>36, 28>38, 36>46, 36>38, 2>9, 2>18, 23>37, 23>49, 23>45, 8>12, 8>30, 8>42, 3>7, 3>6, 3>8], [43<36, 4<3, 9<39, 23>24, 1<>38, 30<>34, 37<42, 20<>39, 34<39, 7<>36, 37<>43, 43<44, 10<>15, 37<39, 43>9, 6<28, 45<>15, 43<28, 37<>7, 37<>36], [ (37, 4), (49, 4), (12, 2), (10, 2), (30, 4), (7, 3), (1, 2), (43, 2), (6, 4), (34, 2), (13, 3), (20, 3), (46, 1), (45, 2), (4, 1), (9, 4), (39, 4), (42, 1), (18, 3), (27, 1), (15, 4), (28, 4), (44, 2), (36, 3), (38, 4), (2, 2), (23, 4), (8, 3), (24, 1), (3, 4)], [ (43<36, 1), (4<3, 4), (9<39, 1), (23>24, 1), (1<>38, 1), (30<>34, 1), (37<42, 3), (20<>39, 1), (34<39, 4), (7<>36, 1), (37<>43, 3), (43<44, 2), (10<>15, 2), (37<39, 1), (43>9, 4), (6<28, 3), (45<>15, 3), (43<28, 4), (37<>7, 2), (37<>36, 2)])).

%% 50, 500, [<, >, <>]
%% 35, 35, 4

test(1, (50, 500, [<, >, <>]), (35, 35, 4), ([16, 18, 28, 27, 32, 13, 30, 2, 48, 33, 26, 35, 45, 23, 46, 10, 38, 9, 7, 25, 34, 5, 36, 42, 50, 39, 21, 47, 49, 31, 14, 17, 8, 20, 15], [16>27, 16>42, 16>50, 18>48, 18>21, 18>47, 28>48, 28>33, 28>50, 28>31, 27>38, 27>34, 27>39, 32>48, 32>42, 13>27, 13>33, 13>26, 13>35, 13>23, 13>38, 13>31, 30>48, 2>26, 2>23, 2>8, 33>35, 33>45, 33>42, 26>27, 26>33, 26>38, 26>39, 35>38, 10>46, 10>38, 10>25, 10>36, 10>39, 9>14, 7>45, 7>25, 7>36, 7>15, 25>33, 25>39, 25>31, 34>48, 5>25, 5>42, 36>38, 39>46, 39>42, 21>45, 21>36, 21>31, 47>48, 49>50, 31>47, 14>32, 14>48, 17>28, 17>26, 17>38, 8>30, 8>45, 8>10, 8>9, 8>39, 20>26, 20>23, 20>25, 20>21, 20>31, 15>16, 15>18, 15>48, 15>21], [16>31, 47<>17, 32<7, 28<7, 45<39, 26>25, 27<46, 28<50, 18<45, 25<>17, 9<>20, 33<>20, 42<>31, 28>48, 33>26, 27<>32, 32<15, 45<>50, 26<>36, 46<10, 25<15, 23<>49, 26>50, 46>49, 9>21, 28<35, 48>23, 28<47, 35<46, 2>48, 18<>5, 18<46, 47<8, 50<47, 26<>46], [ (16, 2), (18, 4), (28, 4), (27, 2), (32, 2), (13, 3), (30, 2), (2, 1), (48, 2), (33, 3), (26, 4), (35, 1), (45, 4), (23, 4), (46, 3), (10, 4), (38, 3), (9, 1), (7, 3), (25, 2), (34, 3), (5, 3), (36, 4), (42, 1), (50, 3), (39, 4), (21, 2), (47, 2), (49, 3), (31, 2), (14, 2), (17, 1), (8, 1), (20, 2), (15, 3)], [ (16>31, 3), (47<>17, 3), (32<7, 1), (28<7, 3), (45<39, 3), (26>25, 4), (27<46, 3), (28<50, 1), (18<45, 2), (25<>17, 1), (9<>20, 4), (33<>20, 1), (42<>31, 3), (28>48, 4), (33>26, 3), (27<>32, 3), (32<15, 3), (45<>50, 2), (26<>36, 2), (46<10, 3), (25<15, 2), (23<>49, 1), (26>50, 3), (46>49, 4), (9>21, 4), (28<35, 3), (48>23, 3), (28<47, 2), (35<46, 3), (2>48, 4), (18<>5, 3), (18<46, 3), (47<8, 2), (50<47, 3), (26<>46, 4)])).

test(2, (50, 500, [<, >, <>]), (35, 35, 4), ([13, 47, 14, 4, 28, 37, 5, 6, 10, 19, 46, 35, 3, 15, 31, 20, 44, 43, 12, 30, 8, 33, 17, 26, 9, 16, 21, 29, 40, 39, 42, 34, 36, 24, 32], [13>47, 13>15, 13>20, 13>26, 13>40, 14>28, 14>37, 14>46, 14>43, 14>36, 4>33, 4>17, 4>9, 4>29, 4>36, 28>43, 28>30, 28>33, 37>39, 5>28, 5>19, 5>12, 5>21, 5>34, 6>14, 6>37, 6>19, 6>17, 6>39, 10>28, 10>33, 10>16, 19>40, 35>37, 35>40, 3>14, 3>6, 3>9, 3>40, 15>26, 31>46, 20>29, 20>40, 20>34, 20>32, 12>47, 12>15, 12>44, 12>16, 12>34, 12>24, 30>47, 30>39, 8>13, 8>10, 8>35, 8>39, 8>42, 8>24, 17>31, 17>26, 17>40, 26>40, 26>36, 9>10, 9>44, 16>47, 16>44, 16>30, 16>26, 16>21, 16>42, 21>47, 21>37, 21>46, 21>33, 21>39, 21>36, 29>39, 29>36, 39>46, 34>44, 34>43, 36>46, 36>39, 24>28, 24>30, 24>29, 32>35, 32>36], [47<9, 5<32, 33<>21, 6>10, 13<>26, 6>9, 46>30, 40<>39, 33<>32, 10<31, 37>40, 17>26, 44<21, 28<>6, 8<32, 20<9, 43>8, 14<>26, 19<>3, 44<26, 35<43, 37<>36, 47>21, 36>32, 29<>32, 19<9, 6<42, 37>42, 19>46, 47>15, 43<>34, 47<>8, 30>34, 37>12, 37<16], [ (13, 1), (47, 2), (14, 2), (4, 2), (28, 3), (37, 1), (5, 2), (6, 4), (10, 1), (19, 2), (46, 3), (35, 2), (3, 2), (15, 2), (31, 2), (20, 1), (44, 2), (43, 4), (12, 4), (30, 2), (8, 1), (33, 1), (17, 3), (26, 3), (9, 2), (16, 2), (21, 3), (29, 3), (40, 2), (39, 2), (42, 4), (34, 4), (36, 4), (24, 3), (32, 4)], [ (47<9, 4), (5<32, 2), (33<>21, 3), (6>10, 3), (13<>26, 3), (6>9, 4), (46>30, 1), (40<>39, 3), (33<>32, 2), (10<31, 2), (37>40, 2), (17>26, 1), (44<21, 1), (28<>6, 4), (8<32, 3), (20<9, 3), (43>8, 4), (14<>26, 2), (19<>3, 4), (44<26, 2), (35<43, 4), (37<>36, 2), (47>21, 3), (36>32, 2), (29<>32, 3), (19<9, 3), (6<42, 3), (37>42, 4), (19>46, 3), (47>15, 2), (43<>34, 3), (47<>8, 2), (30>34, 4), (37>12, 3), (37<16, 3)])).

test(3, (50, 500, [<, >, <>]), (35, 35, 4), ([20, 33, 12, 18, 15, 5, 13, 35, 3, 29, 23, 24, 1, 43, 9, 17, 28, 47, 37, 36, 45, 30, 7, 6, 4, 40, 44, 48, 32, 41, 49, 19, 26, 10, 8], [20>43, 33>43, 33>44, 18>19, 15>33, 15>23, 15>24, 15>30, 15>41, 5>29, 5>23, 5>43, 5>47, 5>19, 5>8, 13>28, 13>19, 3>35, 29>44, 29>48, 29>41, 23>35, 24>29, 24>32, 1>33, 1>15, 1>35, 1>23, 1>28, 1>40, 1>32, 9>20, 9>15, 9>41, 17>29, 17>44, 28>35, 28>37, 37>49, 45>47, 30>49, 7>20, 6>32, 6>8, 4>15, 4>23, 4>43, 4>48, 48>49, 41>47, 41>49, 19>24, 19>43, 19>40, 19>49, 26>45, 10>13, 10>28, 10>37, 10>30, 10>41, 8>33, 8>45, 8>48, 8>49], [20<>4, 45<49, 33<19, 24<>49, 20<15, 35<47, 37<>7, 40<>49, 1<45, 13<24, 18>4, 1<>10, 1>47, 20<>23, 45<>7, 15<>48, 15<>43, 33<49, 5<7, 23<41, 29<24, 24>47, 1<>30, 43<>45, 15<>8, 37<4, 35>28, 7>49, 20<>36, 30<>8, 12<18, 48<32, 12<>13, 20<41, 36<>45], [ (20, 4), (33, 3), (12, 2), (18, 3), (15, 3), (5, 1), (13, 1), (35, 1), (3, 1), (29, 4), (23, 1), (24, 3), (1, 3), (43, 3), (9, 4), (17, 3), (28, 3), (47, 3), (37, 3), (36, 1), (45, 4), (30, 3), (7, 1), (6, 4), (4, 1), (40, 1), (44, 2), (48, 3), (32, 4), (41, 2), (49, 2), (19, 1), (26, 1), (10, 3), (8, 3)], [ (20<>4, 4), (45<49, 3), (33<19, 2), (24<>49, 1), (20<15, 4), (35<47, 4), (37<>7, 2), (40<>49, 2), (1<45, 4), (13<24, 2), (18>4, 4), (1<>10, 2), (1>47, 2), (20<>23, 3), (45<>7, 1), (15<>48, 2), (15<>43, 4), (33<49, 1), (5<7, 3), (23<41, 2), (29<24, 2), (24>47, 1), (1<>30, 1), (43<>45, 3), (15<>8, 3), (37<4, 1), (35>28, 2), (7>49, 3), (20<>36, 4), (30<>8, 2), (12<18, 2), (48<32, 3), (12<>13, 3), (20<41, 2), (36<>45, 4)])).

test(4, (50, 500, [<, >, <>]), (35, 35, 4), ([40, 29, 47, 37, 13, 48, 1, 20, 31, 15, 9, 6, 22, 34, 32, 4, 19, 7, 30, 49, 16, 17, 36, 3, 18, 5, 41, 35, 44, 2, 39, 50, 45, 27, 21], [40>49, 40>45, 29>47, 29>45, 37>49, 13>47, 13>30, 13>41, 13>44, 1>15, 1>30, 1>16, 20>32, 20>30, 20>49, 31>34, 15>40, 15>29, 15>22, 15>41, 15>35, 15>21, 9>20, 6>48, 6>31, 6>30, 6>49, 6>17, 6>36, 6>18, 6>41, 6>39, 6>45, 6>27, 22>40, 22>31, 22>49, 22>27, 34>37, 34>44, 32>37, 32>36, 32>41, 32>39, 4>47, 4>13, 4>20, 4>6, 4>16, 4>36, 4>27, 19>37, 19>30, 7>48, 7>45, 30>36, 16>48, 16>19, 17>27, 36>40, 36>48, 3>29, 3>47, 3>19, 3>17, 3>41, 3>39, 18>47, 18>22, 18>19, 18>41, 18>50, 18>45, 5>37, 5>20, 5>6, 35>39, 44>47, 2>47, 2>37, 2>7, 2>5, 2>21, 39>40, 39>47, 45>47, 27>32, 27>41, 27>44, 21>30], [1<16, 47<>34, 1>7, 29>19, 50>45, 6>36, 41<>21, 29<>37, 17>44, 31<18, 9<>34, 29<>50, 13<>9, 9<>30, 1>4, 1<18, 49<45, 20<19, 32>50, 1<21, 48<34, 3<>41, 47<16, 1<19, 16<>5, 4>41, 40<30, 18<35, 31<50, 47>15, 18>45, 9<41, 29>36, 49<50, 20<35], [ (40, 3), (29, 1), (47, 1), (37, 3), (13, 1), (48, 4), (1, 4), (20, 1), (31, 2), (15, 4), (9, 4), (6, 3), (22, 2), (34, 1), (32, 3), (4, 1), (19, 1), (7, 2), (30, 1), (49, 2), (16, 4), (17, 1), (36, 2), (3, 2), (18, 3), (5, 3), (41, 4), (35, 1), (44, 1), (2, 2), (39, 1), (50, 4), (45, 3), (27, 1), (21, 2)], [ (1<16, 4), (47<>34, 2), (1>7, 4), (29>19, 4), (50>45, 1), (6>36, 2), (41<>21, 4), (29<>37, 4), (17>44, 2), (31<18, 4), (9<>34, 3), (29<>50, 1), (13<>9, 4), (9<>30, 3), (1>4, 1), (1<18, 1), (49<45, 1), (20<19, 3), (32>50, 1), (1<21, 4), (48<34, 4), (3<>41, 4), (47<16, 3), (1<19, 2), (16<>5, 3), (4>41, 3), (40<30, 4), (18<35, 3), (31<50, 1), (47>15, 2), (18>45, 1), (9<41, 1), (29>36, 3), (49<50, 4), (20<35, 1)])).

test(5, (50, 500, [<, >, <>]), (35, 35, 4), ([30, 22, 24, 29, 45, 42, 9, 48, 3, 25, 11, 8, 32, 19, 47, 13, 33, 7, 49, 18, 39, 28, 23, 4, 38, 35, 17, 41, 5, 12, 20, 15, 40, 2, 50], [22>29, 22>47, 22>39, 22>28, 24>42, 24>35, 24>50, 29>41, 45>48, 9>45, 9>19, 9>23, 9>15, 3>24, 3>48, 3>25, 3>18, 3>4, 3>41, 3>20, 3>50, 25>49, 25>39, 11>19, 11>47, 11>18, 11>41, 8>45, 8>47, 8>38, 8>35, 32>42, 19>22, 19>47, 19>35, 13>24, 13>42, 13>48, 13>25, 13>35, 33>45, 33>40, 7>47, 7>39, 7>38, 18>30, 18>42, 18>25, 18>47, 18>39, 18>38, 39>42, 28>47, 28>49, 23>45, 23>49, 23>39, 4>9, 4>8, 4>12, 38>47, 38>49, 38>39, 35>47, 35>39, 35>38, 17>22, 17>42, 17>33, 5>29, 5>42, 5>48, 5>23, 5>41, 5>40, 12>32, 12>19, 12>23, 12>35, 12>50, 20>30, 20>22, 20>49, 20>35, 15>42, 15>18, 2>45, 2>9, 2>13, 2>7, 2>23, 2>35, 2>20], [39<>15, 32<20, 8<40, 47<33, 24<40, 11>4, 33>12, 30>35, 32<>38, 3<>18, 47<>28, 32>19, 24<48, 29<>13, 22<38, 39<17, 7<>50, 29>7, 13>40, 28<12, 42<40, 30>49, 25>11, 45<35, 49>40, 29<>12, 24>19, 24<>5, 29<>41, 17<40, 3>8, 22>29, 13<>41, 45<41, 48<>47], [ (30, 2), (22, 4), (24, 3), (29, 4), (45, 2), (42, 1), (9, 2), (48, 2), (3, 1), (25, 3), (11, 3), (8, 3), (32, 3), (19, 2), (47, 3), (13, 1), (33, 2), (7, 4), (49, 2), (18, 1), (39, 1), (28, 1), (23, 4), (4, 4), (38, 2), (35, 4), (17, 3), (41, 3), (5, 1), (12, 3), (20, 2), (15, 2), (40, 4), (2, 2), (50, 4)], [ (39<>15, 3), (32<20, 2), (8<40, 2), (47<33, 1), (24<40, 4), (11>4, 2), (33>12, 3), (30>35, 1), (32<>38, 1), (3<>18, 1), (47<>28, 3), (32>19, 3), (24<48, 1), (29<>13, 1), (22<38, 2), (39<17, 4), (7<>50, 3), (29>7, 3), (13>40, 2), (28<12, 4), (42<40, 2), (30>49, 4), (25>11, 2), (45<35, 4), (49>40, 1), (29<>12, 1), (24>19, 2), (24<>5, 3), (29<>41, 4), (17<40, 3), (3>8, 2), (22>29, 1), (13<>41, 3), (45<41, 4), (48<>47, 2)])).

test(6, (50, 500, [<, >, <>]), (35, 35, 4), ([13, 47, 45, 12, 1, 24, 33, 7, 50, 2, 28, 35, 5, 9, 25, 21, 11, 48, 15, 31, 18, 14, 40, 20, 16, 43, 49, 29, 36, 26, 8, 19, 41, 6, 32], [13>15, 13>14, 13>16, 47>50, 12>21, 12>29, 1>47, 1>49, 24>49, 24>36, 33>49, 33>36, 7>49, 7>26, 2>24, 2>33, 2>32, 28>36, 28>41, 35>45, 35>50, 35>48, 5>33, 5>28, 5>11, 5>31, 5>40, 5>19, 9>28, 9>25, 9>11, 9>48, 9>40, 11>13, 11>45, 11>50, 11>14, 11>19, 48>49, 15>50, 15>35, 15>18, 15>16, 18>35, 18>43, 14>35, 14>31, 14>29, 40>41, 20>45, 20>49, 16>33, 16>25, 16>31, 16>18, 16>36, 29>35, 29>43, 29>49, 26>36, 8>24, 8>50, 8>35, 8>9, 8>43, 8>36, 19>26, 6>24, 6>25, 6>41, 32>47, 32>33, 32>41], [36<>8, 18<20, 13<>48, 13<28, 13>1, 47>35, 20>8, 5>16, 15<>19, 15<>40, 18<>8, 1<2, 45<16, 47>41, 45<>11, 28<26, 47<>5, 33<>25, 50<8, 31>43, 50>35, 45<6, 31>41, 20<>32, 24<>16, 7>26, 31>18, 18<>32, 47<26, 7<>9, 2<18, 50<>5, 15<26, 28<>35, 29<>32], [ (13, 4), (47, 1), (45, 1), (12, 4), (1, 1), (24, 3), (33, 3), (7, 3), (50, 3), (2, 3), (28, 1), (35, 3), (5, 4), (9, 1), (25, 4), (21, 4), (11, 2), (48, 4), (15, 4), (31, 1), (18, 2), (14, 2), (40, 4), (20, 1), (16, 4), (43, 2), (49, 3), (29, 4), (36, 4), (26, 4), (8, 2), (19, 1), (41, 2), (6, 2), (32, 3)], [ (36<>8, 1), (18<20, 1), (13<>48, 4), (13<28, 2), (13>1, 2), (47>35, 3), (20>8, 2), (5>16, 3), (15<>19, 3), (15<>40, 4), (18<>8, 4), (1<2, 4), (45<16, 4), (47>41, 3), (45<>11, 2), (28<26, 3), (47<>5, 2), (33<>25, 4), (50<8, 3), (31>43, 1), (50>35, 3), (45<6, 3), (31>41, 1), (20<>32, 4), (24<>16, 2), (7>26, 1), (31>18, 3), (18<>32, 4), (47<26, 1), (7<>9, 3), (2<18, 4), (50<>5, 3), (15<26, 4), (28<>35, 1), (29<>32, 4)])).

test(7, (50, 500, [<, >, <>]), (35, 35, 4), ([8, 22, 21, 12, 6, 30, 45, 41, 19, 27, 23, 14, 39, 31, 7, 36, 13, 3, 38, 24, 42, 49, 9, 44, 1, 5, 40, 29, 25, 34, 26, 17, 15, 28, 4], [8>27, 8>23, 8>42, 22>27, 21>22, 21>45, 21>24, 12>21, 12>41, 12>14, 12>29, 6>27, 6>14, 6>13, 30>39, 30>36, 30>38, 19>31, 19>42, 19>44, 27>41, 23>36, 23>25, 23>28, 14>22, 14>42, 14>40, 39>40, 31>42, 31>49, 7>41, 7>40, 7>26, 36>42, 13>22, 13>45, 13>27, 13>14, 13>38, 13>24, 13>25, 13>26, 13>15, 3>12, 3>19, 3>23, 3>28, 24>30, 9>21, 9>27, 9>23, 1>22, 1>6, 1>45, 1>19, 1>26, 5>6, 5>45, 5>41, 5>14, 5>36, 5>38, 5>25, 5>26, 40>45, 40>42, 29>36, 29>49, 29>34, 25>49, 25>28, 34>39, 34>42, 26>41, 26>36, 26>42, 26>44, 17>41, 17>36, 17>26, 15>41, 15>38, 15>44, 28>42, 28>44, 28>29, 4>8, 4>6, 4>23, 4>9, 4>44, 4>5, 4>26], [7<5, 39<>3, 45<>40, 24<4, 49<44, 49<25, 22<44, 23>14, 7<>49, 38<>29, 38<49, 21<45, 3<40, 21<27, 39<25, 6<>31, 3<26, 12>28, 3>28, 36>5, 36<>26, 23>26, 6>26, 21<24, 24>49, 13<>40, 9<>34, 3>17, 8>6, 6>13, 8>26, 1<>4, 8<>31, 24>34, 30<>41], [ (8, 2), (22, 2), (21, 2), (12, 2), (6, 4), (30, 3), (45, 4), (41, 3), (19, 2), (27, 2), (23, 2), (14, 1), (39, 4), (31, 2), (7, 1), (36, 3), (13, 1), (3, 4), (38, 3), (24, 1), (42, 1), (49, 4), (9, 2), (44, 3), (1, 3), (5, 2), (40, 4), (29, 3), (25, 3), (34, 3), (26, 4), (17, 1), (15, 1), (28, 2), (4, 1)], [ (7<5, 1), (39<>3, 1), (45<>40, 4), (24<4, 1), (49<44, 1), (49<25, 2), (22<44, 3), (23>14, 3), (7<>49, 4), (38<>29, 1), (38<49, 4), (21<45, 2), (3<40, 4), (21<27, 4), (39<25, 1), (6<>31, 3), (3<26, 4), (12>28, 4), (3>28, 4), (36>5, 1), (36<>26, 2), (23>26, 2), (6>26, 3), (21<24, 1), (24>49, 2), (13<>40, 3), (9<>34, 1), (3>17, 1), (8>6, 2), (6>13, 4), (8>26, 3), (1<>4, 2), (8<>31, 4), (24>34, 4), (30<>41, 4)])).

test(8, (50, 500, [<, >, <>]), (35, 35, 4), ([24, 17, 40, 46, 10, 4, 1, 41, 5, 43, 42, 16, 20, 49, 50, 32, 2, 18, 25, 14, 3, 48, 27, 15, 37, 13, 44, 19, 26, 30, 47, 11, 36, 29, 12], [24>44, 24>29, 17>24, 17>42, 17>49, 17>18, 17>27, 40>42, 46>48, 10>42, 10>44, 10>36, 4>40, 4>32, 4>44, 1>29, 41>49, 5>50, 5>48, 43>46, 16>20, 16>49, 16>25, 16>47, 16>36, 16>29, 20>32, 20>44, 49>50, 32>50, 32>47, 2>43, 2>20, 2>49, 2>18, 18>29, 25>40, 25>47, 14>49, 14>44, 14>30, 3>24, 3>50, 3>27, 3>11, 3>29, 27>43, 27>44, 27>47, 15>46, 15>41, 15>50, 37>48, 13>46, 13>20, 13>18, 13>29, 44>50, 19>42, 19>50, 19>37, 19>44, 26>49, 26>36, 30>42, 47>50, 11>40, 11>49, 11>18, 11>25, 11>37, 36>46, 36>41, 36>43, 29>50, 29>30, 29>47, 12>13, 12>29], [43<>42, 30<>36, 25<36, 43<15, 24<4, 17<>27, 24<25, 10<>42, 5<37, 10>30, 20<>26, 1>32, 1<42, 5<30, 2>11, 41<>26, 5>25, 42<>29, 40>5, 40<>3, 40>47, 1<>36, 5<27, 25<>48, 50>15, 5<44, 2>27, 16<11, 42<18, 24<11, 18>47, 32<>14, 24>27, 44<36, 50<>19], [ (24, 1), (17, 2), (40, 2), (46, 2), (10, 3), (4, 2), (1, 3), (41, 3), (5, 3), (43, 1), (42, 4), (16, 2), (20, 3), (49, 3), (50, 2), (32, 2), (2, 4), (18, 4), (25, 2), (14, 3), (3, 3), (48, 3), (27, 1), (15, 3), (37, 3), (13, 4), (44, 1), (19, 1), (26, 3), (30, 4), (47, 4), (11, 1), (36, 4), (29, 3), (12, 4)], [ (43<>42, 2), (30<>36, 4), (25<36, 3), (43<15, 4), (24<4, 3), (17<>27, 4), (24<25, 3), (10<>42, 3), (5<37, 2), (10>30, 2), (20<>26, 4), (1>32, 3), (1<42, 3), (5<30, 4), (2>11, 3), (41<>26, 1), (5>25, 1), (42<>29, 3), (40>5, 4), (40<>3, 3), (40>47, 3), (1<>36, 3), (5<27, 2), (25<>48, 4), (50>15, 1), (5<44, 1), (2>27, 2), (16<11, 4), (42<18, 4), (24<11, 1), (18>47, 1), (32<>14, 2), (24>27, 1), (44<36, 3), (50<>19, 2)])).

test(9, (50, 500, [<, >, <>]), (35, 35, 4), ([35, 7, 21, 28, 4, 44, 37, 30, 19, 26, 1, 42, 33, 36, 6, 16, 27, 9, 50, 20, 47, 40, 22, 34, 49, 18, 15, 12, 41, 11, 32, 13, 43, 17, 29], [35>47, 7>30, 7>19, 7>13, 21>41, 21>32, 28>44, 28>30, 28>42, 28>50, 28>47, 4>7, 4>40, 4>13, 30>37, 30>34, 30>32, 19>35, 19>36, 26>50, 1>30, 42>49, 33>35, 33>44, 6>22, 6>17, 16>37, 16>42, 16>40, 16>41, 16>32, 16>29, 9>28, 9>26, 9>33, 9>18, 9>29, 20>47, 20>49, 40>47, 22>30, 22>27, 34>42, 34>36, 18>35, 18>26, 18>22, 18>41, 15>21, 15>19, 15>20, 15>18, 12>28, 12>49, 12>43, 41>50, 11>35, 11>30, 11>27, 11>34, 32>47, 32>41, 13>21, 13>17, 17>50, 17>34, 29>37], [19<33, 28<20, 21<44, 50>18, 42<17, 7<>28, 4>32, 4>37, 7<30, 33<>12, 6<22, 1>41, 4>34, 12<>17, 44<>36, 26<>34, 36<>11, 6>29, 28>9, 42<36, 20<17, 37<>9, 19<34, 44<>50, 22<>32, 47<13, 49<>13, 47<17, 50<13, 20<>11, 1<6, 26>1, 26<>16, 42>15, 30<>6], [ (35, 4), (7, 4), (21, 3), (28, 4), (4, 2), (44, 3), (37, 3), (30, 4), (19, 4), (26, 3), (1, 1), (42, 2), (33, 4), (36, 4), (6, 1), (16, 1), (27, 4), (9, 4), (50, 1), (20, 2), (47, 3), (40, 1), (22, 4), (34, 1), (49, 4), (18, 4), (15, 1), (12, 3), (41, 2), (11, 4), (32, 4), (13, 2), (43, 1), (17, 4), (29, 3)], [ (19<33, 2), (28<20, 1), (21<44, 1), (50>18, 2), (42<17, 3), (7<>28, 3), (4>32, 4), (4>37, 2), (7<30, 4), (33<>12, 4), (6<22, 4), (1>41, 3), (4>34, 1), (12<>17, 1), (44<>36, 3), (26<>34, 1), (36<>11, 4), (6>29, 2), (28>9, 1), (42<36, 1), (20<17, 3), (37<>9, 4), (19<34, 3), (44<>50, 3), (22<>32, 3), (47<13, 4), (49<>13, 4), (47<17, 3), (50<13, 1), (20<>11, 4), (1<6, 3), (26>1, 3), (26<>16, 1), (42>15, 2), (30<>6, 2)])).

test(10, (50, 500, [<, >, <>]), (35, 35, 4), ([41, 4, 33, 37, 40, 42, 22, 13, 23, 49, 19, 20, 24, 31, 18, 46, 32, 45, 2, 34, 11, 36, 5, 8, 9, 26, 15, 6, 38, 25, 27, 14, 43, 17, 35], [41>43, 4>40, 4>13, 4>49, 4>26, 4>43, 33>36, 33>43, 37>42, 37>46, 40>42, 22>42, 22>26, 22>35, 13>33, 13>40, 13>35, 23>31, 23>26, 23>38, 19>41, 19>42, 19>22, 19>38, 20>23, 24>31, 24>26, 31>41, 31>42, 31>46, 18>38, 18>35, 32>35, 2>37, 2>13, 2>19, 2>5, 2>9, 2>38, 34>38, 34>35, 11>40, 11>13, 11>31, 36>40, 36>38, 5>33, 5>42, 5>19, 5>46, 5>8, 5>15, 5>27, 5>17, 8>46, 8>25, 8>43, 9>33, 9>13, 9>32, 9>17, 9>35, 26>33, 15>23, 15>36, 15>17, 6>40, 6>22, 6>46, 6>11, 6>36, 6>15, 25>31, 25>45, 25>35, 14>23, 14>49, 14>20, 14>15, 17>33, 17>32, 17>35, 35>42, 35>38], [42<27, 41<>8, 34<27, 42<17, 38>43, 20<11, 13<>19, 32>25, 18<27, 18>6, 18>43, 8>9, 40<19, 23>20, 49<15, 4>49, 41>31, 23<>8, 22<13, 8<14, 4>8, 11<26, 32<>5, 40>31, 42<>19, 2<>11, 33<>5, 41>18, 34>43, 24>11, 32<11, 22>38, 22<>24, 24<>18, 5>8], [ (41, 4), (4, 4), (33, 3), (37, 3), (40, 2), (42, 4), (22, 1), (13, 3), (23, 3), (49, 2), (19, 3), (20, 2), (24, 1), (31, 3), (18, 2), (46, 4), (32, 3), (45, 4), (2, 1), (34, 1), (11, 1), (36, 1), (5, 1), (8, 1), (9, 1), (26, 3), (15, 2), (6, 1), (38, 2), (25, 2), (27, 4), (14, 4), (43, 3), (17, 2), (35, 1)], [ (42<27, 2), (41<>8, 2), (34<27, 2), (42<17, 4), (38>43, 4), (20<11, 4), (13<>19, 2), (32>25, 1), (18<27, 2), (18>6, 4), (18>43, 1), (8>9, 4), (40<19, 1), (23>20, 2), (49<15, 2), (4>49, 4), (41>31, 3), (23<>8, 4), (22<13, 2), (8<14, 2), (4>8, 2), (11<26, 2), (32<>5, 1), (40>31, 4), (42<>19, 3), (2<>11, 1), (33<>5, 1), (41>18, 2), (34>43, 3), (24>11, 3), (32<11, 2), (22>38, 2), (22<>24, 2), (24<>18, 4), (5>8, 3)])).

%% 50, 500, [<, >, <>]
%% 40, 40, 4

test(1, (50, 500, [<, >, <>]), (40, 40, 4), ([44, 40, 27, 23, 42, 50, 12, 24, 15, 33, 4, 18, 48, 2, 38, 39, 9, 43, 7, 26, 1, 3, 34, 17, 20, 45, 11, 14, 21, 30, 28, 13, 47, 29, 41, 6, 46, 35, 36, 25], [44>50, 27>40, 27>48, 27>30, 23>43, 23>46, 42>43, 12>27, 12>48, 12>34, 12>17, 12>20, 12>45, 12>41, 12>35, 24>30, 24>46, 15>44, 15>40, 15>42, 15>50, 15>21, 15>35, 33>41, 4>42, 4>12, 4>14, 4>28, 18>39, 18>28, 2>50, 2>15, 2>48, 2>20, 2>41, 38>44, 38>41, 39>44, 39>50, 9>28, 9>47, 43>46, 7>40, 7>14, 7>35, 7>25, 1>33, 1>7, 3>39, 3>11, 3>14, 3>25, 34>50, 34>43, 17>27, 17>33, 17>18, 17>25, 20>33, 20>35, 11>40, 11>15, 11>21, 11>28, 11>35, 14>38, 14>17, 14>29, 14>41, 14>35, 21>40, 21>50, 21>39, 21>47, 30>50, 28>40, 28>43, 28>46, 13>40, 13>48, 13>29, 29>44, 29>50, 29>30, 29>47, 41>45, 6>38, 46>50, 35>39, 35>45, 35>41, 36>38, 36>47, 36>41, 25>26, 25>30], [1<45, 43<>6, 45<>25, 2>28, 18>38, 42<>1, 23<>35, 48<>6, 27<>24, 38<>41, 34<20, 7<>11, 15>41, 39<>17, 15<>7, 40>18, 14<>30, 45>36, 45<13, 4<>38, 38<>36, 42<>36, 9<>20, 3<36, 39>30, 15>20, 34>36, 33<3, 4>48, 39>3, 50<33, 28>13, 3>6, 39<20, 6<>25, 23<9, 26>1, 15<>11, 9>13, 40>13], [ (44, 4), (40, 4), (27, 1), (23, 3), (42, 2), (50, 4), (12, 3), (24, 4), (15, 3), (33, 3), (4, 3), (18, 4), (48, 2), (2, 2), (38, 2), (39, 3), (9, 3), (43, 4), (7, 1), (26, 2), (1, 2), (3, 3), (34, 4), (17, 1), (20, 4), (45, 4), (11, 2), (14, 1), (21, 1), (30, 3), (28, 4), (13, 4), (47, 2), (29, 2), (41, 4), (6, 4), (46, 4), (35, 1), (36, 4), (25, 1)], [ (1<45, 4), (43<>6, 1), (45<>25, 2), (2>28, 4), (18>38, 3), (42<>1, 4), (23<>35, 2), (48<>6, 1), (27<>24, 1), (38<>41, 1), (34<20, 4), (7<>11, 1), (15>41, 1), (39<>17, 2), (15<>7, 2), (40>18, 3), (14<>30, 1), (45>36, 1), (45<13, 3), (4<>38, 4), (38<>36, 1), (42<>36, 4), (9<>20, 2), (3<36, 1), (39>30, 1), (15>20, 2), (34>36, 4), (33<3, 3), (4>48, 3), (39>3, 4), (50<33, 2), (28>13, 4), (3>6, 4), (39<20, 4), (6<>25, 4), (23<9, 3), (26>1, 2), (15<>11, 2), (9>13, 1), (40>13, 4)])).

test(2, (50, 500, [<, >, <>]), (40, 40, 4), ([6, 37, 40, 36, 32, 19, 8, 42, 39, 15, 1, 18, 7, 45, 10, 26, 38, 31, 41, 27, 12, 34, 13, 49, 21, 35, 43, 23, 48, 2, 9, 16, 17, 22, 14, 5, 44, 28, 3, 25], [6>36, 6>39, 6>18, 6>12, 6>49, 6>21, 37>41, 37>43, 36>38, 36>48, 36>44, 19>43, 19>28, 8>19, 8>9, 8>16, 15>39, 15>35, 15>28, 15>25, 1>6, 1>42, 1>7, 1>16, 1>22, 18>19, 18>41, 18>25, 7>36, 7>32, 7>19, 7>21, 7>16, 45>49, 10>37, 10>19, 10>42, 10>15, 10>18, 10>34, 10>43, 10>48, 26>32, 26>45, 26>41, 26>27, 38>42, 38>39, 31>40, 31>32, 41>42, 41>44, 27>37, 12>45, 12>26, 12>13, 12>21, 12>43, 12>22, 34>37, 34>35, 13>39, 13>41, 13>49, 13>16, 13>17, 21>42, 21>26, 21>28, 35>49, 35>43, 23>27, 23>44, 2>37, 2>18, 2>7, 2>31, 2>34, 2>9, 9>36, 9>32, 9>10, 9>26, 9>38, 9>49, 16>19, 16>44, 17>42, 17>26, 17>49, 17>21, 17>43, 17>28, 17>25, 22>27, 14>42, 14>38, 14>31, 5>32, 5>42, 5>45, 28>37, 3>37, 3>42, 3>18, 3>10, 3>21, 3>9, 25>36, 25>32, 25>45], [15<>26, 26<17, 1<48, 32>15, 1>34, 42<26, 39<>3, 40<>32, 37<>3, 43<17, 32>16, 2>3, 38<14, 10<41, 32>19, 43<23, 19>18, 27<23, 34<>16, 19<>48, 1<>21, 45<22, 37<>15, 6>16, 42>17, 26<31, 32<>35, 10>35, 6>38, 1<26, 40<19, 13>49, 6<>1, 23>44, 48>16, 9<16, 40<>16, 31<>14, 48<>44, 17>22], [ (6, 3), (37, 3), (40, 2), (36, 1), (32, 1), (19, 3), (8, 1), (42, 3), (39, 1), (15, 3), (1, 3), (18, 4), (7, 1), (45, 3), (10, 2), (26, 2), (38, 3), (31, 1), (41, 4), (27, 1), (12, 4), (34, 4), (13, 3), (49, 3), (21, 3), (35, 3), (43, 1), (23, 3), (48, 1), (2, 3), (9, 4), (16, 2), (17, 4), (22, 1), (14, 3), (5, 2), (44, 1), (28, 2), (3, 4), (25, 1)], [ (15<>26, 1), (26<17, 2), (1<48, 4), (32>15, 2), (1>34, 1), (42<26, 2), (39<>3, 4), (40<>32, 2), (37<>3, 4), (43<17, 2), (32>16, 4), (2>3, 4), (38<14, 1), (10<41, 2), (32>19, 4), (43<23, 1), (19>18, 4), (27<23, 1), (34<>16, 1), (19<>48, 2), (1<>21, 1), (45<22, 2), (37<>15, 1), (6>16, 4), (42>17, 1), (26<31, 2), (32<>35, 4), (10>35, 3), (6>38, 1), (1<26, 3), (40<19, 1), (13>49, 4), (6<>1, 4), (23>44, 2), (48>16, 1), (9<16, 2), (40<>16, 2), (31<>14, 2), (48<>44, 1), (17>22, 3)])).

test(3, (50, 500, [<, >, <>]), (40, 40, 4), ([13, 48, 6, 10, 46, 8, 30, 21, 14, 47, 50, 39, 22, 41, 37, 45, 3, 29, 36, 5, 12, 16, 15, 34, 40, 1, 7, 44, 20, 25, 18, 49, 11, 32, 27, 9, 24, 4, 28, 33], [13>46, 13>32, 13>24, 13>28, 48>50, 6>21, 6>47, 6>37, 6>36, 10>21, 10>39, 10>22, 10>37, 10>29, 10>20, 46>50, 8>39, 8>9, 8>33, 30>36, 21>46, 21>39, 21>27, 14>48, 14>46, 14>50, 14>36, 14>34, 14>40, 14>25, 14>27, 14>33, 47>50, 47>49, 39>48, 39>49, 22>48, 22>25, 22>33, 45>48, 3>8, 3>37, 3>28, 29>47, 36>49, 5>48, 5>6, 5>8, 5>29, 5>40, 5>7, 5>27, 5>28, 12>13, 12>48, 12>14, 12>34, 12>40, 12>44, 16>30, 16>39, 16>29, 16>34, 16>27, 15>21, 15>37, 15>29, 15>36, 34>46, 40>41, 1>10, 1>8, 1>21, 1>14, 1>45, 1>44, 1>20, 7>20, 7>11, 7>9, 20>47, 20>25, 20>27, 20>28, 25>41, 25>36, 25>27, 25>28, 18>46, 18>44, 11>37, 11>36, 11>49, 11>33, 32>50, 32>36, 27>48, 27>29, 27>36, 9>22, 9>18, 9>11, 24>30, 24>40, 24>49, 24>32, 24>27, 24>33, 4>30, 4>21, 4>47, 4>5, 4>18, 4>32, 4>9, 28>48, 28>44, 28>49, 33>39, 33>41, 33>45], [10<>41, 13<>49, 48<>7, 40>11, 5<33, 40<27, 45<>9, 30>4, 7>27, 12<>20, 21<41, 6<>11, 21>5, 48<39, 3>40, 46<33, 39<40, 47<>50, 30<>15, 29<>5, 29<>20, 34<>7, 41<11, 6<8, 10>8, 36<16, 49>28, 3<16, 6<>24, 47<>4, 13<28, 30<>14, 1<32, 27<28, 18<28, 29<7, 40>33, 5<>40, 27<9, 10<14], [ (13, 2), (48, 3), (6, 3), (10, 1), (46, 3), (8, 4), (30, 1), (21, 3), (14, 4), (47, 3), (50, 3), (39, 3), (22, 1), (41, 3), (37, 1), (45, 1), (3, 1), (29, 1), (36, 3), (5, 4), (12, 1), (16, 3), (15, 4), (34, 3), (40, 3), (1, 2), (7, 4), (44, 2), (20, 3), (25, 3), (18, 3), (49, 4), (11, 2), (32, 2), (27, 1), (9, 4), (24, 1), (4, 2), (28, 3), (33, 3)], [ (10<>41, 4), (13<>49, 1), (48<>7, 4), (40>11, 3), (5<33, 3), (40<27, 4), (45<>9, 3), (30>4, 4), (7>27, 3), (12<>20, 4), (21<41, 3), (6<>11, 3), (21>5, 1), (48<39, 2), (3>40, 3), (46<33, 3), (39<40, 4), (47<>50, 1), (30<>15, 2), (29<>5, 4), (29<>20, 3), (34<>7, 4), (41<11, 2), (6<8, 1), (10>8, 1), (36<16, 2), (49>28, 4), (3<16, 1), (6<>24, 4), (47<>4, 3), (13<28, 2), (30<>14, 4), (1<32, 4), (27<28, 4), (18<28, 2), (29<7, 4), (40>33, 2), (5<>40, 4), (27<9, 3), (10<14, 2)])).

test(4, (50, 500, [<, >, <>]), (40, 40, 4), ([4, 25, 47, 39, 22, 2, 13, 17, 42, 11, 41, 31, 37, 24, 50, 5, 12, 9, 6, 33, 38, 28, 18, 48, 35, 27, 20, 3, 44, 43, 19, 7, 15, 16, 23, 49, 26, 21, 10, 46], [4>11, 4>6, 4>28, 4>27, 4>26, 25>47, 25>42, 25>38, 25>43, 39>42, 39>48, 39>49, 22>25, 22>38, 22>35, 22>23, 2>47, 2>31, 2>38, 2>26, 13>41, 13>48, 13>35, 17>25, 17>22, 17>42, 17>31, 17>38, 17>26, 17>21, 42>44, 11>39, 11>41, 11>50, 11>28, 11>21, 37>50, 24>37, 24>27, 5>22, 5>41, 5>37, 12>25, 12>47, 12>39, 12>48, 12>44, 12>49, 12>21, 9>24, 9>50, 9>35, 6>28, 6>48, 6>19, 6>15, 6>46, 33>47, 33>44, 28>41, 28>46, 18>39, 18>27, 18>43, 18>23, 18>21, 18>46, 48>50, 35>37, 35>50, 27>39, 27>33, 20>35, 3>39, 3>17, 3>44, 3>46, 44>49, 43>46, 19>41, 19>31, 19>21, 7>25, 7>22, 7>41, 7>31, 15>47, 15>42, 15>24, 15>44, 15>49, 15>26, 16>24, 16>26, 23>47, 23>28, 26>38, 26>35, 10>25, 10>39, 10>22, 10>42, 10>28, 10>16, 10>49, 10>21, 46>48], [6<23, 20<7, 6<44, 13<>46, 18<15, 41<>33, 9<49, 7>16, 48<23, 13>41, 25<>41, 41>20, 6<16, 50>33, 22<>19, 24<10, 17<>49, 25<6, 25<>22, 9>6, 24<48, 2<>37, 50<>19, 11<>49, 31<>7, 4>26, 33<21, 3>46, 41<>21, 22<>5, 26<>21, 24<46, 11<5, 25<33, 39>27, 43<46, 12<46, 9>10, 17<>37, 7<>49], [ (4, 3), (25, 4), (47, 4), (39, 2), (22, 3), (2, 4), (13, 4), (17, 3), (42, 3), (11, 2), (41, 3), (31, 4), (37, 4), (24, 1), (50, 1), (5, 1), (12, 1), (9, 3), (6, 4), (33, 4), (38, 1), (28, 4), (18, 2), (48, 1), (35, 1), (27, 2), (20, 4), (3, 1), (44, 3), (43, 3), (19, 4), (7, 1), (15, 3), (16, 4), (23, 3), (49, 4), (26, 3), (21, 4), (10, 1), (46, 3)], [ (6<23, 1), (20<7, 1), (6<44, 4), (13<>46, 2), (18<15, 2), (41<>33, 4), (9<49, 2), (7>16, 1), (48<23, 3), (13>41, 2), (25<>41, 3), (41>20, 4), (6<16, 4), (50>33, 4), (22<>19, 2), (24<10, 2), (17<>49, 2), (25<6, 1), (25<>22, 2), (9>6, 3), (24<48, 1), (2<>37, 4), (50<>19, 2), (11<>49, 2), (31<>7, 4), (4>26, 1), (33<21, 4), (3>46, 3), (41<>21, 3), (22<>5, 3), (26<>21, 4), (24<46, 2), (11<5, 1), (25<33, 3), (39>27, 4), (43<46, 2), (12<46, 3), (9>10, 2), (17<>37, 1), (7<>49, 4)])).

test(5, (50, 500, [<, >, <>]), (40, 40, 4), ([17, 35, 31, 12, 22, 43, 32, 46, 18, 2, 11, 26, 19, 30, 14, 45, 3, 44, 48, 36, 47, 1, 39, 9, 23, 42, 37, 21, 24, 28, 6, 34, 10, 27, 16, 5, 50, 25, 49, 38], [17>46, 17>45, 17>48, 17>36, 17>49, 35>43, 35>47, 31>32, 31>50, 12>19, 12>48, 12>16, 22>34, 22>27, 22>25, 43>45, 32>35, 32>45, 32>39, 46>48, 46>50, 2>22, 2>21, 2>28, 2>6, 11>36, 11>39, 11>16, 26>27, 19>36, 19>23, 19>37, 19>28, 19>49, 30>39, 30>38, 14>17, 14>18, 14>19, 14>49, 45>47, 3>12, 3>43, 3>45, 3>36, 3>39, 3>9, 3>42, 3>28, 3>34, 3>16, 3>25, 3>38, 44>49, 36>43, 1>12, 1>43, 1>2, 1>19, 1>45, 1>39, 1>23, 1>24, 1>38, 39>44, 9>17, 9>14, 9>37, 9>25, 23>32, 23>37, 42>47, 42>50, 37>48, 37>50, 21>43, 21>30, 21>42, 21>24, 21>27, 21>50, 24>44, 24>47, 24>42, 24>27, 6>19, 6>42, 6>37, 6>24, 6>28, 6>50, 34>35, 34>36, 10>46, 10>18, 10>36, 10>47, 10>21, 10>28, 10>34, 10>27, 27>45, 27>47, 27>38, 16>30, 16>39, 5>21, 5>16, 5>49, 25>31, 25>32, 25>30, 25>39, 25>28, 25>49, 38>43, 38>39, 38>42], [22>1, 31>47, 27>49, 12>5, 31>26, 35<>28, 44>37, 16<50, 37<38, 43<9, 14>49, 14<>5, 14<>10, 19<>24, 34>27, 45>44, 1<>34, 44<5, 39<>21, 46>45, 2>11, 43<>24, 1<6, 34<>10, 26<16, 24>6, 25<>38, 19<>47, 45<47, 10>16, 10<>25, 35>3, 19<>30, 31<>10, 17>50, 46>48, 3<6, 32>6, 12<22, 35<34], [ (17, 4), (35, 3), (31, 2), (12, 4), (22, 3), (43, 3), (32, 3), (46, 4), (18, 4), (2, 2), (11, 1), (26, 2), (19, 4), (30, 1), (14, 4), (45, 3), (3, 4), (44, 3), (48, 4), (36, 1), (47, 4), (1, 2), (39, 1), (9, 4), (23, 2), (42, 3), (37, 4), (21, 1), (24, 4), (28, 1), (6, 4), (34, 2), (10, 4), (27, 1), (16, 3), (5, 1), (50, 3), (25, 4), (49, 2), (38, 3)], [ (22>1, 3), (31>47, 1), (27>49, 4), (12>5, 1), (31>26, 2), (35<>28, 2), (44>37, 1), (16<50, 1), (37<38, 3), (43<9, 3), (14>49, 1), (14<>5, 3), (14<>10, 1), (19<>24, 1), (34>27, 1), (45>44, 2), (1<>34, 3), (44<5, 1), (39<>21, 3), (46>45, 1), (2>11, 3), (43<>24, 2), (1<6, 1), (34<>10, 2), (26<16, 2), (24>6, 4), (25<>38, 4), (19<>47, 4), (45<47, 3), (10>16, 2), (10<>25, 3), (35>3, 2), (19<>30, 1), (31<>10, 3), (17>50, 3), (46>48, 3), (3<6, 1), (32>6, 3), (12<22, 1), (35<34, 4)])).

test(6, (50, 500, [<, >, <>]), (40, 40, 4), ([10, 24, 15, 4, 44, 7, 42, 35, 40, 28, 34, 13, 8, 9, 3, 36, 17, 29, 6, 30, 22, 31, 11, 26, 12, 14, 27, 50, 46, 25, 33, 45, 1, 49, 23, 39, 32, 41, 43, 21], [10>31, 10>11, 10>33, 10>41, 24>29, 24>30, 24>50, 24>25, 24>39, 15>24, 15>42, 15>35, 15>27, 15>33, 15>49, 15>32, 4>44, 4>8, 4>23, 4>39, 4>43, 7>17, 7>46, 7>49, 35>42, 35>36, 40>44, 28>40, 28>46, 28>33, 34>42, 34>50, 34>43, 13>17, 13>14, 8>42, 8>34, 8>27, 8>50, 8>32, 8>43, 9>35, 9>17, 9>46, 9>32, 3>44, 3>35, 3>12, 3>46, 17>28, 17>26, 17>25, 17>45, 29>31, 29>32, 6>7, 6>42, 6>28, 6>8, 6>22, 6>27, 6>49, 30>39, 22>42, 22>28, 31>44, 11>35, 11>40, 11>28, 11>22, 26>34, 26>50, 26>49, 26>41, 12>24, 12>42, 12>28, 12>22, 12>27, 12>45, 14>40, 14>30, 14>22, 27>44, 27>34, 27>30, 27>46, 27>33, 27>32, 46>49, 25>27, 25>45, 25>39, 33>36, 33>43, 1>42, 1>40, 1>6, 1>31, 1>43, 23>34, 23>50, 39>50, 32>44, 32>35, 32>36, 41>50, 41>46, 43>45, 21>36, 21>29, 21>31, 21>49, 21>43], [4<39, 44<29, 29<21, 50>49, 6<>43, 36<50, 3<46, 3<>14, 10<39, 29>45, 36>27, 24<41, 30>1, 22>33, 8>30, 34<>32, 11>43, 44<50, 4>45, 35<33, 15<>46, 24<>44, 22>23, 25<>41, 9<39, 29<>12, 49<>23, 29<30, 9<27, 8<46, 31<>1, 8<27, 46<23, 27<>32, 13>23, 39<>41, 36>12, 26<49, 29>33, 12<>1], [ (10, 1), (24, 1), (15, 4), (4, 4), (44, 1), (7, 2), (42, 2), (35, 3), (40, 4), (28, 1), (34, 1), (13, 2), (8, 4), (9, 1), (3, 1), (36, 1), (17, 4), (29, 3), (6, 2), (30, 4), (22, 2), (31, 3), (11, 3), (26, 2), (12, 3), (14, 3), (27, 4), (50, 4), (46, 3), (25, 1), (33, 1), (45, 3), (1, 1), (49, 4), (23, 3), (39, 3), (32, 3), (41, 2), (43, 3), (21, 2)], [ (4<39, 4), (44<29, 4), (29<21, 4), (50>49, 2), (6<>43, 2), (36<50, 4), (3<46, 2), (3<>14, 3), (10<39, 3), (29>45, 3), (36>27, 4), (24<41, 4), (30>1, 3), (22>33, 3), (8>30, 3), (34<>32, 1), (11>43, 4), (44<50, 1), (4>45, 3), (35<33, 1), (15<>46, 4), (24<>44, 3), (22>23, 2), (25<>41, 3), (9<39, 2), (29<>12, 4), (49<>23, 3), (29<30, 2), (9<27, 3), (8<46, 1), (31<>1, 4), (8<27, 3), (46<23, 1), (27<>32, 2), (13>23, 1), (39<>41, 4), (36>12, 3), (26<49, 2), (29>33, 2), (12<>1, 4)])).

test(7, (50, 500, [<, >, <>]), (40, 40, 4), ([34, 28, 5, 8, 2, 47, 18, 4, 15, 48, 32, 1, 25, 20, 29, 43, 37, 21, 16, 50, 38, 9, 26, 6, 31, 22, 49, 7, 45, 14, 40, 10, 24, 19, 11, 36, 41, 30, 44, 42], [28>37, 28>40, 5>48, 5>50, 5>31, 5>41, 8>32, 8>22, 8>49, 8>44, 2>8, 2>20, 2>16, 2>7, 2>40, 47>49, 18>28, 18>19, 18>30, 4>22, 4>11, 4>36, 4>44, 15>34, 15>47, 15>48, 15>29, 15>26, 1>4, 1>29, 1>6, 1>31, 1>11, 1>44, 25>48, 25>50, 20>40, 20>42, 29>50, 29>38, 37>41, 21>29, 21>37, 21>38, 16>34, 16>48, 16>20, 16>37, 16>31, 16>24, 16>19, 16>44, 9>34, 9>43, 9>16, 9>26, 9>49, 9>24, 9>19, 9>44, 26>32, 26>43, 26>49, 26>45, 26>44, 6>8, 6>32, 6>16, 6>11, 6>41, 31>47, 22>43, 22>26, 22>31, 22>30, 22>42, 7>15, 7>48, 7>21, 7>9, 7>40, 14>43, 14>21, 14>40, 14>36, 14>41, 40>47, 40>49, 10>18, 10>32, 10>25, 10>20, 10>16, 10>26, 10>45, 10>19, 10>11, 10>41, 24>26, 24>49, 24>36, 24>42, 19>31, 19>45, 19>40, 19>36, 19>44, 11>28, 11>37, 11>50, 11>42, 36>48, 41>44, 30>50, 42>49], [48>24, 37>30, 32>20, 6<>41, 37<>21, 49>10, 7<10, 43<21, 2>22, 50<>40, 28<45, 10>41, 8>6, 4<>21, 18<9, 20<9, 4<>43, 28>6, 14>40, 18<>19, 5<11, 32>7, 28<>7, 18>45, 38<30, 31<>11, 32<29, 48>26, 6>11, 16<>45, 1>37, 34<>25, 34<>40, 21>50, 38<>40, 40>10, 47<9, 18>49, 43>22, 40<>42], [ (34, 3), (28, 2), (5, 2), (8, 1), (2, 4), (47, 3), (18, 2), (4, 4), (15, 2), (48, 4), (32, 2), (1, 1), (25, 1), (20, 2), (29, 1), (43, 1), (37, 2), (21, 2), (16, 1), (50, 1), (38, 2), (9, 3), (26, 4), (6, 2), (31, 3), (22, 3), (49, 4), (7, 2), (45, 3), (14, 4), (40, 1), (10, 2), (24, 1), (19, 2), (11, 4), (36, 4), (41, 4), (30, 4), (44, 3), (42, 3)], [ (48>24, 2), (37>30, 1), (32>20, 4), (6<>41, 1), (37<>21, 4), (49>10, 1), (7<10, 3), (43<21, 3), (2>22, 1), (50<>40, 3), (28<45, 1), (10>41, 2), (8>6, 3), (4<>21, 3), (18<9, 2), (20<9, 2), (4<>43, 2), (28>6, 3), (14>40, 4), (18<>19, 2), (5<11, 3), (32>7, 3), (28<>7, 1), (18>45, 4), (38<30, 4), (31<>11, 1), (32<29, 4), (48>26, 4), (6>11, 3), (16<>45, 3), (1>37, 2), (34<>25, 2), (34<>40, 2), (21>50, 3), (38<>40, 3), (40>10, 3), (47<9, 3), (18>49, 3), (43>22, 2), (40<>42, 3)])).

test(8, (50, 500, [<, >, <>]), (40, 40, 4), ([2, 24, 18, 1, 10, 7, 37, 34, 8, 26, 35, 22, 46, 49, 36, 28, 21, 33, 48, 17, 14, 44, 25, 42, 29, 50, 39, 4, 11, 6, 3, 19, 5, 23, 30, 20, 32, 38, 47, 9], [2>26, 2>46, 2>42, 2>29, 2>30, 24>28, 24>50, 24>32, 18>30, 18>38, 18>47, 1>50, 1>6, 1>23, 1>32, 1>9, 10>49, 10>28, 10>33, 10>25, 10>38, 7>37, 7>34, 7>25, 7>30, 8>46, 8>28, 8>42, 8>39, 8>38, 26>50, 26>38, 35>37, 35>49, 22>37, 22>33, 22>25, 22>42, 22>47, 36>50, 28>34, 28>46, 28>47, 21>35, 21>28, 21>47, 33>44, 17>44, 17>39, 17>23, 14>35, 14>42, 14>50, 14>39, 25>35, 25>28, 25>47, 29>42, 29>47, 39>48, 4>26, 4>22, 4>36, 4>39, 4>5, 4>30, 4>32, 11>37, 11>29, 11>39, 11>20, 6>7, 6>34, 6>36, 6>28, 6>48, 6>23, 3>46, 3>21, 19>24, 19>39, 19>38, 5>18, 5>7, 5>26, 5>48, 5>42, 5>47, 5>9, 23>37, 23>36, 23>33, 23>29, 23>32, 30>46, 20>34, 20>39, 20>32, 20>47, 32>39, 38>48, 38>39, 47>50, 9>18, 9>35, 9>38], [48<>4, 34>39, 29<23, 18<30, 24>17, 30<>47, 10>19, 37>9, 1<6, 36>48, 23<32, 10<21, 29>3, 46<33, 38<47, 49<>6, 29<>47, 1<>11, 46>50, 11<20, 22>11, 18<>50, 44<>23, 33<>20, 29<>30, 28>47, 24<21, 7<>32, 48<20, 24<47, 4<>3, 1<>30, 46>21, 18<14, 19>47, 26>5, 34>29, 26<22, 34>46, 10>5], [ (2, 4), (24, 2), (18, 2), (1, 2), (10, 3), (7, 1), (37, 2), (34, 1), (8, 2), (26, 1), (35, 2), (22, 1), (46, 1), (49, 1), (36, 2), (28, 1), (21, 4), (33, 1), (48, 3), (17, 2), (14, 4), (44, 2), (25, 4), (42, 4), (29, 3), (50, 2), (39, 4), (4, 4), (11, 4), (6, 3), (3, 3), (19, 2), (5, 1), (23, 2), (30, 3), (20, 4), (32, 2), (38, 4), (47, 2), (9, 1)], [ (48<>4, 2), (34>39, 3), (29<23, 3), (18<30, 4), (24>17, 3), (30<>47, 4), (10>19, 1), (37>9, 3), (1<6, 3), (36>48, 4), (23<32, 3), (10<21, 3), (29>3, 3), (46<33, 4), (38<47, 4), (49<>6, 4), (29<>47, 2), (1<>11, 1), (46>50, 4), (11<20, 3), (22>11, 2), (18<>50, 3), (44<>23, 2), (33<>20, 3), (29<>30, 4), (28>47, 1), (24<21, 4), (7<>32, 2), (48<20, 1), (24<47, 1), (4<>3, 2), (1<>30, 1), (46>21, 2), (18<14, 3), (19>47, 1), (26>5, 3), (34>29, 2), (26<22, 4), (34>46, 1), (10>5, 3)])).

test(9, (50, 500, [<, >, <>]), (40, 40, 4), ([3, 9, 19, 29, 45, 24, 34, 31, 18, 10, 23, 40, 7, 27, 12, 26, 1, 43, 22, 17, 20, 42, 38, 21, 50, 47, 33, 35, 15, 13, 48, 28, 14, 32, 37, 25, 11, 16, 4, 5], [3>10, 3>23, 3>32, 3>37, 9>24, 9>23, 9>28, 19>24, 19>21, 19>33, 29>42, 29>33, 29>35, 24>47, 24>32, 34>47, 31>32, 18>31, 18>32, 10>17, 10>50, 23>26, 23>42, 40>47, 7>18, 7>27, 7>26, 12>45, 12>37, 26>40, 26>50, 26>47, 26>35, 1>24, 1>31, 1>38, 1>14, 1>25, 22>42, 22>47, 22>35, 20>40, 20>27, 20>21, 38>45, 38>40, 21>45, 21>28, 21>32, 47>48, 33>34, 35>45, 35>40, 15>29, 15>17, 15>47, 15>32, 13>23, 13>20, 13>33, 13>28, 13>37, 28>29, 28>45, 28>40, 14>29, 14>34, 14>23, 14>40, 14>37, 14>25, 32>34, 32>43, 32>50, 37>40, 37>42, 25>34, 25>42, 25>47, 25>35, 25>48, 11>19, 11>20, 11>28, 11>37, 16>18, 16>42, 16>21, 4>22, 4>20, 4>13, 4>32, 4>16, 5>45, 5>24, 5>34, 5>18, 5>50], [38>33, 31>4, 3>20, 45<1, 7<>13, 17<4, 19<>7, 29<>18, 21<33, 17>13, 34>26, 38<>5, 21>14, 33<>25, 43<>25, 18>47, 34>16, 24>37, 10<38, 3>23, 24>35, 27<48, 40<42, 10<>47, 12<1, 27<>16, 45<>50, 31<27, 27>47, 12>47, 3<9, 18<>13, 19<>17, 7<25, 43<>13, 19<>25, 25<>16, 50>14, 45>48, 50<>15], [ (3, 2), (9, 2), (19, 4), (29, 1), (45, 3), (24, 3), (34, 2), (31, 4), (18, 4), (10, 2), (23, 2), (40, 4), (7, 2), (27, 1), (12, 2), (26, 4), (1, 2), (43, 2), (22, 1), (17, 1), (20, 3), (42, 2), (38, 1), (21, 2), (50, 1), (47, 3), (33, 3), (35, 1), (15, 4), (13, 1), (48, 4), (28, 4), (14, 1), (32, 1), (37, 3), (25, 4), (11, 4), (16, 1), (4, 1), (5, 1)], [ (38>33, 1), (31>4, 2), (3>20, 4), (45<1, 3), (7<>13, 3), (17<4, 4), (19<>7, 2), (29<>18, 3), (21<33, 1), (17>13, 3), (34>26, 4), (38<>5, 4), (21>14, 2), (33<>25, 4), (43<>25, 1), (18>47, 2), (34>16, 2), (24>37, 4), (10<38, 4), (3>23, 3), (24>35, 4), (27<48, 4), (40<42, 2), (10<>47, 3), (12<1, 4), (27<>16, 4), (45<>50, 2), (31<27, 3), (27>47, 2), (12>47, 4), (3<9, 1), (18<>13, 4), (19<>17, 3), (7<25, 2), (43<>13, 1), (19<>25, 4), (25<>16, 2), (50>14, 1), (45>48, 4), (50<>15, 4)])).

test(10, (50, 500, [<, >, <>]), (40, 40, 4), ([18, 5, 13, 4, 31, 32, 44, 23, 3, 2, 17, 50, 43, 28, 22, 20, 49, 42, 29, 19, 8, 7, 9, 33, 45, 6, 30, 25, 47, 12, 15, 1, 35, 21, 16, 27, 40, 36, 38, 46], [18>22, 18>30, 18>40, 18>46, 5>31, 5>17, 5>43, 5>22, 5>33, 5>25, 5>47, 5>36, 5>38, 13>33, 13>15, 4>32, 4>44, 4>19, 4>30, 31>44, 32>50, 32>46, 44>47, 23>29, 23>45, 23>38, 3>35, 3>27, 3>40, 2>18, 2>31, 2>28, 2>22, 2>9, 2>25, 43>44, 43>46, 28>32, 28>45, 22>32, 22>29, 22>33, 22>30, 22>38, 22>46, 20>31, 20>23, 20>38, 49>50, 42>45, 19>32, 19>30, 8>31, 8>28, 8>30, 8>12, 7>29, 7>9, 7>45, 9>50, 9>22, 9>29, 9>12, 45>47, 6>44, 6>43, 6>20, 6>42, 6>29, 6>12, 6>38, 30>43, 30>35, 30>40, 25>31, 25>32, 25>45, 47>49, 12>22, 12>16, 15>22, 1>18, 1>5, 1>21, 35>44, 35>47, 21>23, 21>50, 21>43, 16>17, 16>49, 16>36, 27>28, 27>35, 40>44, 40>49, 36>50, 36>43, 38>47, 46>50], [17<>38, 47>21, 50<>21, 2<42, 31<>46, 9>46, 50<8, 4<>50, 7<>15, 31>29, 44<1, 15<35, 49<9, 31<9, 50<>33, 19>27, 13<>23, 33<38, 45>6, 25<>46, 50>38, 4<>45, 7<47, 4>42, 18>29, 3<15, 4<16, 13>43, 13>28, 1<36, 8<>45, 32>27, 17>29, 44<>6, 32<1, 42<>8, 23>6, 7>21, 20<12, 49<38], [ (18, 1), (5, 2), (13, 4), (4, 1), (31, 1), (32, 2), (44, 4), (23, 3), (3, 2), (2, 4), (17, 2), (50, 2), (43, 3), (28, 1), (22, 1), (20, 2), (49, 3), (42, 3), (29, 1), (19, 4), (8, 2), (7, 3), (9, 2), (33, 4), (45, 4), (6, 1), (30, 2), (25, 3), (47, 2), (12, 2), (15, 1), (1, 3), (35, 3), (21, 2), (16, 3), (27, 4), (40, 2), (36, 4), (38, 2), (46, 1)], [ (17<>38, 3), (47>21, 3), (50<>21, 4), (2<42, 4), (31<>46, 4), (9>46, 3), (50<8, 1), (4<>50, 4), (7<>15, 2), (31>29, 1), (44<1, 1), (15<35, 4), (49<9, 2), (31<9, 4), (50<>33, 3), (19>27, 1), (13<>23, 2), (33<38, 4), (45>6, 3), (25<>46, 1), (50>38, 1), (4<>45, 3), (7<47, 1), (4>42, 3), (18>29, 2), (3<15, 2), (4<16, 3), (13>43, 4), (13>28, 1), (1<36, 4), (8<>45, 3), (32>27, 3), (17>29, 2), (44<>6, 4), (32<1, 1), (42<>8, 2), (23>6, 4), (7>21, 1), (20<12, 1), (49<38, 1)])).

%% 50, 500, [<, >, <>]
%% 45, 90, 4

test(1, (50, 500, [<, >, <>]), (45, 90, 4), ([42, 38, 50, 15, 7, 30, 46, 44, 14, 33, 40, 4, 25, 41, 9, 11, 39, 5, 22, 37, 29, 18, 6, 13, 10, 19, 31, 3, 16, 17, 28, 23, 21, 36, 32, 35, 8, 1, 43, 24, 12, 2, 27, 26, 47], [15>50, 15>41, 15>24, 7>30, 7>9, 7>29, 30>38, 30>33, 46>47, 44>47, 14>19, 14>36, 33>42, 33>46, 33>44, 33>47, 40>42, 40>46, 4>15, 4>44, 4>14, 4>40, 4>37, 4>6, 4>32, 4>35, 4>8, 25>42, 25>50, 25>32, 25>27, 9>38, 9>10, 9>23, 9>26, 11>24, 5>15, 5>30, 5>39, 5>29, 5>28, 37>50, 29>41, 29>35, 29>43, 18>40, 18>22, 6>42, 6>15, 6>46, 6>40, 6>13, 6>10, 6>16, 6>12, 6>26, 13>16, 13>21, 10>50, 10>15, 10>30, 10>46, 10>40, 10>25, 10>22, 10>37, 10>23, 10>26, 10>47, 19>21, 31>40, 31>43, 3>33, 3>9, 3>5, 3>13, 3>26, 16>50, 16>25, 16>21, 23>40, 23>29, 23>36, 23>32, 23>43, 21>38, 21>46, 21>22, 32>46, 32>41, 32>37, 35>50, 35>36, 8>44, 8>14, 8>25, 8>39, 8>18, 8>21, 8>24, 1>14, 1>9, 1>11, 1>26, 43>44, 24>46, 12>46, 12>14, 12>13, 12>19, 12>35, 2>50, 2>15, 2>41, 2>28, 2>12, 27>30, 27>28, 26>40, 26>39], [27<26, 44<28, 23>2, 13<16, 33>31, 4<>41, 33<>39, 44<>4, 18<>1, 4<28, 38>22, 39<>10, 30<22, 5>24, 22<>36, 16<2, 35<24, 17>36, 37>36, 33>40, 15>44, 14<5, 43<>27, 9<>27, 39>13, 41<>12, 9<>35, 5>21, 15<22, 38>9, 32<>26, 50>31, 19<23, 9>43, 50<>16, 1<>12, 9>31, 46<>43, 13>36, 24<26, 44<>10, 15<35, 9<24, 39<29, 14<>9, 4<43, 7<>28, 32>1, 25<>6, 50>39, 23<>8, 18<19, 22>27, 15<13, 33<16, 41>9, 29<43, 40<>43, 42<26, 42>9, 29>32, 37>1, 11>28, 18<>24, 44>33, 4<>1, 31>1, 25<>8, 40<>4, 9>23, 13>8, 37>26, 11<39, 19>1, 39<32, 41>37, 25<17, 25>39, 16>47, 46>25, 38<>23, 50>5, 29<27, 32>43, 11>18, 42>13, 50>23, 30<>32, 10<>8, 30>5], [ (42, 4), (38, 1), (50, 3), (15, 2), (7, 4), (30, 2), (46, 1), (44, 1), (14, 2), (33, 3), (40, 3), (4, 2), (25, 3), (41, 3), (9, 1), (11, 1), (39, 3), (5, 2), (22, 1), (37, 3), (29, 2), (18, 3), (6, 4), (13, 4), (10, 3), (19, 4), (31, 1), (3, 4), (16, 3), (17, 4), (28, 2), (23, 3), (21, 1), (36, 4), (32, 3), (35, 2), (8, 1), (1, 1), (43, 3), (24, 2), (12, 1), (2, 1), (27, 1), (26, 3), (47, 2)], [ (27<26, 3), (44<28, 3), (23>2, 2), (13<16, 1), (33>31, 4), (4<>41, 3), (33<>39, 2), (44<>4, 1), (18<>1, 3), (4<28, 1), (38>22, 3), (39<>10, 4), (30<22, 2), (5>24, 2), (22<>36, 4), (16<2, 2), (35<24, 1), (17>36, 2), (37>36, 3), (33>40, 3), (15>44, 4), (14<5, 3), (43<>27, 3), (9<>27, 2), (39>13, 1), (41<>12, 1), (9<>35, 3), (5>21, 1), (15<22, 1), (38>9, 3), (32<>26, 1), (50>31, 1), (19<23, 4), (9>43, 3), (50<>16, 4), (1<>12, 4), (9>31, 1), (46<>43, 4), (13>36, 4), (24<26, 4), (44<>10, 3), (15<35, 2), (9<24, 1), (39<29, 4), (14<>9, 3), (4<43, 4), (7<>28, 2), (32>1, 4), (25<>6, 1), (50>39, 3), (23<>8, 2), (18<19, 3), (22>27, 3), (15<13, 4), (33<16, 2), (41>9, 1), (29<43, 4), (40<>43, 4), (42<26, 3), (42>9, 4), (29>32, 1), (37>1, 4), (11>28, 2), (18<>24, 3), (44>33, 4), (4<>1, 2), (31>1, 3), (25<>8, 2), (40<>4, 1), (9>23, 3), (13>8, 1), (37>26, 2), (11<39, 1), (19>1, 3), (39<32, 4), (41>37, 1), (25<17, 4), (25>39, 1), (16>47, 3), (46>25, 2), (38<>23, 1), (50>5, 3), (29<27, 2), (32>43, 4), (11>18, 1), (42>13, 4), (50>23, 2), (30<>32, 4), (10<>8, 1), (30>5, 1)])).

test(2, (50, 500, [<, >, <>]), (45, 90, 4), ([7, 43, 40, 6, 45, 33, 9, 36, 50, 18, 19, 8, 30, 44, 15, 13, 21, 14, 48, 49, 25, 4, 23, 31, 29, 1, 10, 35, 27, 26, 5, 11, 32, 24, 3, 20, 22, 38, 41, 37, 16, 12, 17, 2, 46], [7>45, 7>19, 7>35, 7>32, 7>22, 7>41, 7>37, 7>46, 43>50, 43>48, 40>45, 40>48, 6>43, 6>9, 6>50, 6>23, 6>26, 45>50, 9>36, 9>49, 9>17, 36>48, 18>30, 18>35, 18>20, 19>36, 19>48, 19>26, 8>48, 8>35, 8>38, 8>12, 30>48, 30>38, 44>46, 15>44, 15>32, 15>22, 15>38, 15>41, 13>36, 13>15, 13>32, 21>49, 21>38, 14>19, 14>30, 14>15, 14>26, 14>41, 14>37, 25>43, 25>33, 25>26, 25>37, 4>7, 4>36, 4>44, 4>49, 4>5, 4>17, 23>43, 23>32, 29>43, 29>44, 29>31, 1>44, 1>29, 1>26, 1>32, 10>36, 10>29, 10>32, 35>40, 35>44, 35>41, 27>35, 26>43, 26>33, 26>44, 26>32, 5>17, 5>46, 11>43, 11>23, 11>46, 32>43, 24>45, 24>38, 3>40, 3>8, 3>49, 3>31, 3>26, 3>24, 3>20, 20>43, 20>33, 20>31, 20>37, 22>40, 22>24, 22>46, 38>44, 41>44, 37>50, 16>45, 16>36, 16>20, 16>38, 12>15, 12>27, 12>16, 17>43, 17>36, 17>44, 17>24, 17>46, 2>14, 2>49, 2>31, 2>29, 2>10, 2>20, 2>22, 46>50], [8<>15, 19<26, 44<17, 36<>44, 48<4, 48>35, 45<>44, 9<>35, 44>23, 30<10, 33>31, 18<27, 33>37, 19<41, 7<>27, 4<>24, 43>40, 1<>37, 5<>12, 8>16, 21<4, 15<>12, 11<>3, 11>12, 44<>32, 24>37, 45>10, 36<19, 29<>46, 36<48, 27<>41, 21<>48, 45<>37, 10<32, 16<>2, 8<>14, 31<37, 48<>25, 35>46, 24<16, 25>10, 14>46, 32<>24, 32<>3, 19>48, 7<33, 43<2, 4>16, 7>21, 33<>11, 44<21, 15<>17, 48<>3, 4>27, 23>20, 30>24, 48<>27, 38<16, 6<10, 49>4, 50<>49, 3<>20, 45<32, 36<>22, 18<>14, 1<32, 44>26, 6<30, 30<2, 24>22, 45>5, 21<>17, 45<25, 33<>24, 21<23, 7>9, 43>16, 13>16, 40<>41, 49>16, 3<>22, 29<>35, 14<48, 11<>2, 45>20, 40>16, 41<>37, 36<>4, 8<35, 33>26], [ (7, 3), (43, 2), (40, 1), (6, 3), (45, 2), (33, 1), (9, 2), (36, 4), (50, 1), (18, 2), (19, 2), (8, 3), (30, 3), (44, 2), (15, 2), (13, 3), (21, 2), (14, 3), (48, 3), (49, 2), (25, 3), (4, 3), (23, 1), (31, 3), (29, 3), (1, 3), (10, 4), (35, 4), (27, 4), (26, 2), (5, 3), (11, 4), (32, 4), (24, 2), (3, 3), (20, 1), (22, 2), (38, 2), (41, 1), (37, 3), (16, 4), (12, 3), (17, 1), (2, 1), (46, 3)], [ (8<>15, 4), (19<26, 1), (44<17, 1), (36<>44, 2), (48<4, 2), (48>35, 1), (45<>44, 1), (9<>35, 2), (44>23, 4), (30<10, 2), (33>31, 1), (18<27, 3), (33>37, 4), (19<41, 4), (7<>27, 3), (4<>24, 1), (43>40, 3), (1<>37, 1), (5<>12, 1), (8>16, 1), (21<4, 2), (15<>12, 1), (11<>3, 3), (11>12, 4), (44<>32, 3), (24>37, 3), (45>10, 1), (36<19, 1), (29<>46, 4), (36<48, 3), (27<>41, 3), (21<>48, 3), (45<>37, 4), (10<32, 4), (16<>2, 1), (8<>14, 2), (31<37, 4), (48<>25, 4), (35>46, 3), (24<16, 3), (25>10, 3), (14>46, 4), (32<>24, 2), (32<>3, 3), (19>48, 1), (7<33, 2), (43<2, 4), (4>16, 3), (7>21, 4), (33<>11, 2), (44<21, 1), (15<>17, 2), (48<>3, 1), (4>27, 2), (23>20, 3), (30>24, 1), (48<>27, 2), (38<16, 3), (6<10, 4), (49>4, 4), (50<>49, 2), (3<>20, 2), (45<32, 1), (36<>22, 3), (18<>14, 2), (1<32, 4), (44>26, 3), (6<30, 3), (30<2, 1), (24>22, 3), (45>5, 4), (21<>17, 3), (45<25, 2), (33<>24, 4), (21<23, 2), (7>9, 1), (43>16, 3), (13>16, 3), (40<>41, 3), (49>16, 3), (3<>22, 4), (29<>35, 2), (14<48, 2), (11<>2, 2), (45>20, 4), (40>16, 4), (41<>37, 2), (36<>4, 4), (8<35, 3), (33>26, 4)])).

test(3, (50, 500, [<, >, <>]), (45, 90, 4), ([48, 43, 33, 13, 31, 24, 21, 18, 50, 32, 23, 19, 10, 16, 15, 35, 38, 42, 30, 14, 17, 7, 9, 12, 20, 45, 37, 8, 29, 40, 11, 1, 41, 3, 44, 25, 47, 2, 6, 49, 5, 4, 26, 36, 34], [33>43, 33>35, 33>40, 33>44, 13>44, 31>49, 24>33, 24>40, 24>41, 24>25, 18>32, 18>35, 18>38, 18>29, 32>40, 23>31, 23>32, 19>31, 19>37, 10>50, 10>30, 10>47, 10>49, 10>36, 16>31, 16>49, 15>40, 35>48, 35>50, 35>44, 38>47, 42>48, 42>45, 42>47, 30>33, 30>42, 14>48, 14>32, 14>29, 17>31, 17>50, 17>23, 17>20, 17>37, 17>41, 17>49, 7>43, 7>31, 7>10, 7>15, 7>38, 7>42, 7>9, 7>8, 7>40, 7>26, 7>36, 9>19, 9>15, 9>35, 9>38, 9>42, 9>41, 12>32, 12>16, 12>37, 12>41, 12>47, 20>32, 20>35, 20>42, 20>40, 37>50, 37>40, 37>49, 8>30, 8>45, 8>11, 8>49, 8>26, 29>36, 40>48, 40>42, 11>13, 11>25, 1>31, 1>21, 1>18, 1>23, 1>19, 1>16, 1>8, 1>41, 1>6, 3>50, 3>32, 3>16, 3>15, 3>42, 3>37, 3>8, 3>40, 3>47, 3>49, 25>31, 2>24, 2>14, 2>25, 6>33, 6>10, 6>9, 6>12, 6>44, 6>49, 49>50, 5>24, 5>32, 5>14, 5>34, 4>16, 4>38, 4>42, 4>9, 4>11, 4>41, 4>44, 4>49, 4>34, 26>43, 36>43, 36>50, 36>37, 36>41, 34>48, 34>36], [24<49, 38<>7, 9<44, 11<1, 25<>47, 48>44, 6<34, 23>17, 21<50, 11<>44, 18>26, 18<17, 38<5, 42>5, 18<32, 16<>15, 23<10, 19<>47, 16<3, 40>6, 33>32, 42<>11, 35<>34, 10<9, 30<>41, 21<32, 13<36, 24<>4, 19>40, 13>40, 31<6, 30>11, 13>20, 38<11, 50>16, 21<14, 14<>1, 29<>36, 8<>34, 47>4, 35<>6, 44<26, 48<24, 12>47, 35>12, 23<34, 45>2, 32<>36, 15<>45, 17<>49, 43>30, 38>26, 31<25, 38<4, 14>47, 45<>3, 50<>14, 41<47, 17<6, 13<>26, 14>11, 13<18, 43<44, 41<49, 45>4, 33<>2, 7<12, 33<>47, 1<6, 15<3, 18<15, 17<40, 15>1, 43<33, 33>45, 50>10, 12>45, 32>23, 33<>25, 8<>1, 24<23, 9<36, 45<34, 19>35, 37<4, 9<>37, 17>37, 32>15, 48<>20, 19<11], [ (48, 4), (43, 2), (33, 2), (13, 1), (31, 3), (24, 1), (21, 1), (18, 2), (50, 1), (32, 1), (23, 3), (19, 2), (10, 4), (16, 4), (15, 2), (35, 1), (38, 4), (42, 2), (30, 1), (14, 4), (17, 3), (7, 1), (9, 2), (12, 4), (20, 4), (45, 1), (37, 3), (8, 4), (29, 4), (40, 1), (11, 2), (1, 2), (41, 2), (3, 2), (44, 1), (25, 1), (47, 2), (2, 2), (6, 3), (49, 4), (5, 1), (4, 3), (26, 3), (36, 1), (34, 2)], [ (24<49, 2), (38<>7, 1), (9<44, 4), (11<1, 3), (25<>47, 4), (48>44, 3), (6<34, 2), (23>17, 4), (21<50, 2), (11<>44, 4), (18>26, 3), (18<17, 1), (38<5, 3), (42>5, 4), (18<32, 4), (16<>15, 4), (23<10, 3), (19<>47, 1), (16<3, 2), (40>6, 4), (33>32, 1), (42<>11, 4), (35<>34, 1), (10<9, 2), (30<>41, 1), (21<32, 2), (13<36, 1), (24<>4, 4), (19>40, 1), (13>40, 1), (31<6, 3), (30>11, 2), (13>20, 4), (38<11, 4), (50>16, 4), (21<14, 1), (14<>1, 4), (29<>36, 2), (8<>34, 2), (47>4, 1), (35<>6, 4), (44<26, 1), (48<24, 4), (12>47, 2), (35>12, 3), (23<34, 1), (45>2, 2), (32<>36, 2), (15<>45, 3), (17<>49, 1), (43>30, 3), (38>26, 1), (31<25, 4), (38<4, 1), (14>47, 1), (45<>3, 3), (50<>14, 3), (41<47, 3), (17<6, 2), (13<>26, 2), (14>11, 2), (13<18, 1), (43<44, 3), (41<49, 3), (45>4, 3), (33<>2, 2), (7<12, 3), (33<>47, 3), (1<6, 1), (15<3, 2), (18<15, 4), (17<40, 1), (15>1, 2), (43<33, 3), (33>45, 3), (50>10, 3), (12>45, 2), (32>23, 2), (33<>25, 1), (8<>1, 1), (24<23, 2), (9<36, 3), (45<34, 1), (19>35, 1), (37<4, 4), (9<>37, 1), (17>37, 2), (32>15, 4), (48<>20, 4), (19<11, 2)])).

test(4, (50, 500, [<, >, <>]), (45, 90, 4), ([9, 44, 15, 40, 29, 3, 45, 1, 27, 17, 26, 47, 19, 20, 16, 18, 46, 8, 38, 7, 5, 25, 24, 31, 12, 13, 30, 33, 41, 50, 32, 39, 10, 35, 43, 21, 23, 49, 36, 11, 22, 14, 37, 34, 28], [9>46, 9>31, 9>43, 9>21, 9>49, 44>46, 44>49, 15>40, 15>29, 15>45, 15>43, 15>34, 15>28, 40>43, 29>32, 3>44, 3>26, 3>8, 3>24, 3>31, 1>27, 1>39, 27>47, 27>46, 27>31, 17>20, 17>25, 17>24, 17>21, 17>36, 26>32, 26>34, 19>27, 19>33, 19>22, 20>44, 20>25, 20>33, 20>39, 20>34, 16>44, 16>47, 16>46, 16>25, 16>32, 16>49, 16>22, 16>28, 18>44, 18>26, 18>25, 18>32, 46>49, 8>29, 8>26, 8>18, 8>46, 8>38, 8>13, 8>23, 8>28, 38>40, 7>45, 7>27, 7>17, 7>20, 7>16, 7>32, 7>21, 7>23, 7>49, 7>11, 7>14, 5>27, 5>19, 5>31, 5>33, 5>22, 31>45, 31>50, 31>32, 31>35, 12>46, 12>38, 12>33, 12>41, 12>23, 12>28, 13>29, 13>26, 13>35, 13>14, 13>34, 13>28, 30>38, 33>45, 33>38, 32>45, 32>35, 10>47, 10>38, 10>13, 10>39, 35>41, 35>43, 43>44, 21>38, 21>31, 21>35, 21>43, 21>49, 23>40, 23>29, 23>38, 23>36, 23>28, 36>45, 11>13, 11>22, 22>45, 22>30, 14>27, 14>20, 14>39, 14>21, 37>41, 37>39, 34>40, 34>50, 34>39, 34>49, 28>44, 28>40, 28>29, 28>45, 28>46, 28>50, 28>49, 28>34], [46<>35, 38<13, 37<>28, 46<>32, 44>8, 3<>36, 8<>28, 15<>24, 9>47, 50<49, 3<>45, 1<36, 20<>37, 38<>7, 45<12, 9>1, 10<>34, 18<36, 33>23, 18>34, 46<>39, 24>12, 38<32, 3<>31, 13<32, 13<>34, 26>39, 1<>41, 20>21, 45<>39, 25<>39, 26<8, 46<>8, 24<28, 40<>45, 29<>20, 19<30, 1<>30, 22<28, 41<>39, 5<39, 33>22, 47<13, 45<>34, 27>33, 25<31, 22>37, 50<>22, 1>50, 19<>50, 45>7, 25<>23, 19<25, 31<35, 44<>24, 1<>17, 7<39, 9<35, 38<31, 47<38, 32>35, 40<36, 40<35, 15>32, 9<>33, 24<21, 26<>23, 15<1, 39<>49, 31<12, 24<33, 45>20, 9<41, 31>37, 44<>7, 9<12, 32<22, 17<23, 19<41, 27<32, 38<41, 1>14, 17<43, 38<>34, 44>35, 9<>31, 12<14, 13<22, 26<33, 47<41], [ (9, 2), (44, 2), (15, 4), (40, 3), (29, 2), (3, 1), (45, 3), (1, 4), (27, 3), (17, 3), (26, 4), (47, 3), (19, 2), (20, 3), (16, 3), (18, 4), (46, 4), (8, 1), (38, 1), (7, 2), (5, 1), (25, 1), (24, 2), (31, 4), (12, 4), (13, 3), (30, 2), (33, 2), (41, 2), (50, 1), (32, 2), (39, 3), (10, 1), (35, 4), (43, 3), (21, 3), (23, 4), (49, 2), (36, 2), (11, 1), (22, 2), (14, 3), (37, 4), (34, 3), (28, 3)], [ (46<>35, 1), (38<13, 3), (37<>28, 2), (46<>32, 2), (44>8, 1), (3<>36, 2), (8<>28, 3), (15<>24, 2), (9>47, 2), (50<49, 4), (3<>45, 4), (1<36, 1), (20<>37, 4), (38<>7, 2), (45<12, 4), (9>1, 1), (10<>34, 4), (18<36, 3), (33>23, 2), (18>34, 2), (46<>39, 4), (24>12, 1), (38<32, 4), (3<>31, 1), (13<32, 4), (13<>34, 2), (26>39, 4), (1<>41, 1), (20>21, 1), (45<>39, 1), (25<>39, 1), (26<8, 4), (46<>8, 4), (24<28, 1), (40<>45, 2), (29<>20, 3), (19<30, 1), (1<>30, 2), (22<28, 4), (41<>39, 4), (5<39, 1), (33>22, 2), (47<13, 3), (45<>34, 3), (27>33, 3), (25<31, 3), (22>37, 4), (50<>22, 3), (1>50, 4), (19<>50, 4), (45>7, 1), (25<>23, 1), (19<25, 4), (31<35, 4), (44<>24, 3), (1<>17, 1), (7<39, 4), (9<35, 3), (38<31, 3), (47<38, 4), (32>35, 4), (40<36, 4), (40<35, 1), (15>32, 2), (9<>33, 1), (24<21, 1), (26<>23, 2), (15<1, 2), (39<>49, 3), (31<12, 3), (24<33, 4), (45>20, 4), (9<41, 1), (31>37, 4), (44<>7, 2), (9<12, 4), (32<22, 2), (17<23, 1), (19<41, 1), (27<32, 1), (38<41, 3), (1>14, 2), (17<43, 2), (38<>34, 1), (44>35, 1), (9<>31, 4), (12<14, 2), (13<22, 3), (26<33, 4), (47<41, 2)])).

test(5, (50, 500, [<, >, <>]), (45, 90, 4), ([6, 26, 1, 38, 42, 36, 46, 15, 21, 49, 18, 34, 13, 11, 25, 45, 20, 9, 39, 47, 43, 22, 29, 44, 31, 14, 41, 23, 16, 4, 3, 10, 28, 8, 12, 24, 30, 27, 5, 7, 48, 33, 17, 2, 19], [6>38, 6>36, 6>18, 6>20, 6>39, 6>43, 6>16, 6>10, 6>12, 6>24, 26>34, 26>41, 26>33, 1>6, 42>47, 42>43, 36>49, 36>43, 46>48, 15>18, 15>34, 15>44, 15>27, 21>36, 21>41, 21>33, 18>49, 18>41, 18>28, 34>38, 34>49, 13>34, 13>43, 13>29, 13>31, 13>33, 11>29, 11>23, 11>24, 25>36, 45>46, 20>26, 20>45, 20>22, 20>41, 20>28, 20>27, 20>48, 9>38, 9>31, 9>16, 9>19, 43>46, 43>47, 29>30, 31>38, 31>43, 14>49, 14>23, 14>16, 14>30, 41>43, 23>26, 23>25, 23>39, 23>41, 16>38, 16>49, 16>34, 16>25, 16>22, 4>15, 4>8, 4>27, 4>17, 3>46, 3>21, 3>11, 3>20, 3>43, 3>14, 10>22, 10>16, 10>33, 28>42, 28>36, 28>34, 28>33, 8>25, 8>23, 12>42, 12>27, 24>42, 24>45, 30>36, 30>47, 27>45, 27>47, 5>46, 5>20, 5>12, 7>36, 7>18, 7>13, 7>20, 7>14, 7>16, 33>45, 17>45, 2>45, 2>29, 2>23, 2>16, 2>4, 2>30, 2>33, 19>36, 19>21, 19>20, 19>22], [26<22, 34<39, 16>8, 15>31, 22>48, 3<27, 26<49, 10>30, 12<48, 41<>4, 36>15, 31<16, 46<>39, 21<43, 6<>19, 25>41, 43<>48, 34<>28, 4>7, 41<19, 42>34, 45<5, 4<>19, 39<>24, 14<>3, 11<19, 23<>48, 18<39, 47<19, 9<>33, 14<>7, 6<11, 6<>17, 47>44, 8>19, 4<30, 28<33, 42>8, 18<>31, 26<8, 1>3, 46>2, 46>41, 30>19, 26<>47, 22>14, 39<>14, 36<>25, 43<28, 49<5, 15<>19, 29<>33, 44<10, 14<30, 26>44, 36>4, 22<16, 42<43, 26>12, 4<>17, 43>23, 18<7, 46>21, 39<>48, 42<12, 23<>2, 13<41, 10<24, 42<>9, 10<12, 45<7, 39>2, 9>48, 31<3, 6<23, 45>27, 6<38, 29<48, 11<28, 6>20, 13>44, 43>12, 45<14, 36>13, 38<>25, 3<28, 14<>12, 47<>33, 1<5, 4>3], [ (6, 1), (26, 2), (1, 4), (38, 2), (42, 3), (36, 1), (46, 2), (15, 4), (21, 3), (49, 1), (18, 2), (34, 3), (13, 2), (11, 2), (25, 1), (45, 1), (20, 4), (9, 3), (39, 4), (47, 4), (43, 3), (22, 2), (29, 3), (44, 2), (31, 4), (14, 3), (41, 2), (23, 1), (16, 1), (4, 1), (3, 4), (10, 1), (28, 2), (8, 2), (12, 3), (24, 3), (30, 1), (27, 4), (5, 2), (7, 4), (48, 3), (33, 2), (17, 3), (2, 3), (19, 4)], [ (26<22, 4), (34<39, 3), (16>8, 2), (15>31, 3), (22>48, 1), (3<27, 3), (26<49, 2), (10>30, 4), (12<48, 3), (41<>4, 3), (36>15, 1), (31<16, 4), (46<>39, 1), (21<43, 4), (6<>19, 4), (25>41, 1), (43<>48, 2), (34<>28, 3), (4>7, 2), (41<19, 1), (42>34, 2), (45<5, 2), (4<>19, 2), (39<>24, 1), (14<>3, 1), (11<19, 2), (23<>48, 3), (18<39, 3), (47<19, 2), (9<>33, 1), (14<>7, 1), (6<11, 4), (6<>17, 3), (47>44, 4), (8>19, 2), (4<30, 3), (28<33, 3), (42>8, 3), (18<>31, 4), (26<8, 4), (1>3, 1), (46>2, 4), (46>41, 1), (30>19, 2), (26<>47, 1), (22>14, 2), (39<>14, 3), (36<>25, 3), (43<28, 2), (49<5, 1), (15<>19, 2), (29<>33, 3), (44<10, 2), (14<30, 3), (26>44, 3), (36>4, 4), (22<16, 2), (42<43, 1), (26>12, 2), (4<>17, 3), (43>23, 4), (18<7, 2), (46>21, 1), (39<>48, 2), (42<12, 2), (23<>2, 2), (13<41, 1), (10<24, 2), (42<>9, 4), (10<12, 3), (45<7, 2), (39>2, 4), (9>48, 2), (31<3, 1), (6<23, 2), (45>27, 4), (6<38, 3), (29<48, 2), (11<28, 1), (6>20, 2), (13>44, 1), (43>12, 4), (45<14, 2), (36>13, 4), (38<>25, 4), (3<28, 2), (14<>12, 4), (47<>33, 4), (1<5, 4), (4>3, 3)])).

test(6, (50, 500, [<, >, <>]), (45, 90, 4), ([20, 49, 8, 19, 28, 40, 35, 10, 43, 29, 39, 9, 2, 7, 12, 33, 21, 48, 36, 18, 25, 37, 32, 17, 44, 27, 11, 6, 42, 50, 38, 34, 24, 45, 26, 16, 3, 14, 30, 1, 23, 4, 46, 5, 15], [20>40, 20>33, 20>46, 49>50, 8>17, 8>26, 8>14, 8>30, 19>33, 19>44, 19>27, 19>46, 28>37, 28>45, 35>49, 35>40, 35>39, 35>37, 35>50, 10>49, 10>28, 10>35, 10>39, 10>21, 10>18, 10>44, 10>27, 43>44, 43>46, 29>42, 39>43, 39>50, 9>49, 9>28, 9>33, 9>18, 9>37, 9>17, 2>7, 2>30, 2>15, 7>33, 7>32, 7>17, 7>50, 7>34, 12>35, 12>16, 33>35, 33>44, 21>27, 36>43, 36>37, 18>49, 18>19, 18>28, 18>43, 18>39, 18>36, 18>25, 18>44, 18>34, 18>45, 25>28, 25>39, 25>37, 25>38, 37>44, 32>35, 32>36, 17>19, 17>27, 44>46, 27>28, 27>43, 27>36, 27>37, 11>40, 11>29, 11>12, 11>27, 11>42, 11>38, 11>30, 11>46, 6>8, 6>39, 6>11, 6>30, 6>23, 6>46, 42>43, 38>43, 34>48, 34>50, 24>28, 24>43, 24>33, 24>37, 24>38, 24>34, 26>49, 26>48, 16>40, 16>36, 16>25, 3>28, 3>36, 3>37, 3>17, 3>34, 3>24, 3>26, 3>4, 3>46, 14>49, 14>44, 14>50, 30>49, 30>48, 1>27, 1>6, 1>16, 23>39, 23>33, 4>10, 4>7, 4>33, 4>34, 5>10, 5>39, 5>37, 5>50, 15>49, 15>29, 15>48, 15>36, 15>44], [10>1, 18>46, 6<>50, 49<11, 20<>4, 20<>30, 10<5, 14<46, 7>17, 20>50, 29<>46, 44<>1, 38>24, 36<>18, 21<17, 27>42, 40>2, 8>18, 49<>45, 49<50, 33<>37, 17<>1, 48<6, 26<>15, 19<>11, 28<>35, 36<>11, 19>34, 19<7, 20<6, 33<46, 16<>5, 2<48, 43<16, 20<>33, 8<26, 24<3, 48<>5, 43<>18, 21<48, 26>4, 7<18, 7<27, 37<16, 29>48, 28>6, 29>42, 16<>30, 28<24, 43>21, 49<>44, 37>34, 18>17, 25<23, 32<>50, 18<>37, 35>16, 20>18, 28<50, 33<30, 6<14, 25<11, 50<3, 9<50, 42<>45, 2<>17, 44<11, 28<>5, 35>15, 10<24, 49>46, 43>29, 7<3, 17<24, 49>10, 49<>27, 36>3, 37<45, 7<>5, 33<50, 34<3, 12>6, 32<6, 9>17, 8<>14, 48<>23, 12<14, 49>23, 23>46, 12>3], [ (20, 2), (49, 3), (8, 4), (19, 1), (28, 3), (40, 2), (35, 3), (10, 4), (43, 3), (29, 4), (39, 1), (9, 4), (2, 1), (7, 2), (12, 4), (33, 2), (21, 4), (48, 1), (36, 1), (18, 3), (25, 3), (37, 1), (32, 2), (17, 3), (44, 1), (27, 3), (11, 1), (6, 4), (42, 1), (50, 4), (38, 4), (34, 4), (24, 4), (45, 2), (26, 1), (16, 2), (3, 3), (14, 3), (30, 1), (1, 3), (23, 4), (4, 3), (46, 2), (5, 4), (15, 3)], [ (10>1, 2), (18>46, 3), (6<>50, 2), (49<11, 1), (20<>4, 1), (20<>30, 3), (10<5, 3), (14<46, 3), (7>17, 1), (20>50, 3), (29<>46, 1), (44<>1, 4), (38>24, 1), (36<>18, 4), (21<17, 3), (27>42, 3), (40>2, 1), (8>18, 2), (49<>45, 3), (49<50, 4), (33<>37, 3), (17<>1, 1), (48<6, 3), (26<>15, 2), (19<>11, 2), (28<>35, 1), (36<>11, 1), (19>34, 4), (19<7, 1), (20<6, 1), (33<46, 2), (16<>5, 3), (2<48, 3), (43<16, 3), (20<>33, 2), (8<26, 4), (24<3, 4), (48<>5, 4), (43<>18, 2), (21<48, 4), (26>4, 1), (7<18, 1), (7<27, 4), (37<16, 2), (29>48, 4), (28>6, 2), (29>42, 4), (16<>30, 2), (28<24, 4), (43>21, 3), (49<>44, 1), (37>34, 4), (18>17, 1), (25<23, 1), (32<>50, 1), (18<>37, 2), (35>16, 4), (20>18, 2), (28<50, 2), (33<30, 2), (6<14, 1), (25<11, 1), (50<3, 3), (9<50, 3), (42<>45, 1), (2<>17, 3), (44<11, 3), (28<>5, 1), (35>15, 2), (10<24, 1), (49>46, 1), (43>29, 2), (7<3, 4), (17<24, 2), (49>10, 3), (49<>27, 2), (36>3, 2), (37<45, 3), (7<>5, 4), (33<50, 2), (34<3, 2), (12>6, 1), (32<6, 3), (9>17, 2), (8<>14, 3), (48<>23, 1), (12<14, 4), (49>23, 3), (23>46, 1), (12>3, 4)])).

test(7, (50, 500, [<, >, <>]), (45, 90, 4), ([9, 12, 1, 24, 26, 31, 37, 7, 48, 46, 10, 16, 27, 44, 40, 2, 36, 50, 20, 30, 28, 8, 15, 45, 18, 33, 35, 21, 47, 49, 4, 17, 32, 41, 14, 11, 13, 19, 43, 38, 29, 5, 25, 3, 34], [9>12, 9>36, 9>50, 9>45, 9>13, 12>37, 12>30, 12>13, 12>43, 12>25, 1>16, 1>40, 1>8, 1>35, 1>29, 1>34, 24>48, 24>46, 24>50, 24>33, 26>30, 26>28, 26>45, 37>48, 7>46, 7>27, 7>33, 7>38, 48>49, 46>50, 10>27, 10>41, 10>38, 16>20, 16>33, 16>35, 16>41, 16>25, 16>34, 44>49, 40>45, 2>10, 2>16, 2>41, 2>11, 36>38, 20>26, 20>44, 20>36, 30>45, 30>33, 30>35, 28>31, 28>36, 28>50, 28>33, 28>35, 8>26, 8>40, 8>28, 8>35, 8>47, 8>41, 15>31, 15>44, 45>46, 45>47, 18>37, 18>30, 18>25, 33>35, 35>48, 35>44, 35>40, 35>45, 21>48, 21>28, 47>49, 4>27, 4>13, 17>27, 17>44, 17>35, 17>38, 17>34, 32>46, 32>47, 32>43, 32>38, 41>49, 41>43, 14>15, 14>19, 14>34, 11>45, 11>18, 11>17, 11>38, 13>24, 13>48, 13>46, 13>45, 13>32, 13>19, 19>46, 19>27, 19>35, 43>46, 43>44, 38>50, 29>40, 29>47, 29>41, 5>37, 5>46, 5>18, 25>31, 25>37, 25>30, 25>35, 3>37, 3>33, 3>21, 3>13, 3>19, 3>5, 34>50], [24<16, 26<>48, 16>17, 20>29, 12>20, 16>4, 30<25, 31>38, 35<21, 12<13, 26<>2, 18>34, 37<>15, 36>21, 9>50, 10>45, 24>45, 1>8, 27<15, 31<>13, 36<>13, 28<41, 48<>38, 2>20, 15<49, 24<>13, 36<32, 2<38, 9<14, 20<>28, 1<20, 1<47, 50<14, 33<>34, 10>20, 11<>34, 37>14, 27>32, 12<47, 36<20, 27<>36, 7>4, 10<>3, 31<5, 28<>49, 46>35, 26<>31, 28<>33, 8<>13, 15<>13, 24>46, 16<>5, 48<>32, 8>25, 9<>16, 15>47, 26<21, 20>38, 11<>5, 24<>3, 44<>45, 40>36, 31<>4, 31<49, 24<>21, 27>11, 28<>25, 26<>16, 35<41, 37>17, 20<25, 12>1, 24>4, 32>14, 2<>8, 16<>13, 26<>38, 2<>34, 12>50, 8<47, 1<32, 21<5, 50<11, 48<3, 48<>36, 20>49, 36<41, 40<>15, 50<>19, 47<>3], [ (9, 3), (12, 1), (1, 2), (24, 2), (26, 3), (31, 1), (37, 2), (7, 1), (48, 2), (46, 3), (10, 4), (16, 4), (27, 3), (44, 2), (40, 1), (2, 2), (36, 3), (50, 2), (20, 2), (30, 2), (28, 2), (8, 1), (15, 2), (45, 2), (18, 2), (33, 1), (35, 3), (21, 3), (47, 3), (49, 2), (4, 1), (17, 2), (32, 4), (41, 3), (14, 2), (11, 4), (13, 1), (19, 1), (43, 4), (38, 1), (29, 1), (5, 2), (25, 1), (3, 4), (34, 4)], [ (24<16, 2), (26<>48, 3), (16>17, 2), (20>29, 1), (12>20, 2), (16>4, 3), (30<25, 4), (31>38, 4), (35<21, 1), (12<13, 1), (26<>2, 4), (18>34, 2), (37<>15, 4), (36>21, 1), (9>50, 4), (10>45, 4), (24>45, 3), (1>8, 3), (27<15, 4), (31<>13, 4), (36<>13, 1), (28<41, 2), (48<>38, 1), (2>20, 4), (15<49, 4), (24<>13, 2), (36<32, 1), (2<38, 4), (9<14, 4), (20<>28, 3), (1<20, 3), (1<47, 4), (50<14, 3), (33<>34, 1), (10>20, 2), (11<>34, 3), (37>14, 1), (27>32, 2), (12<47, 4), (36<20, 3), (27<>36, 2), (7>4, 3), (10<>3, 3), (31<5, 2), (28<>49, 2), (46>35, 1), (26<>31, 1), (28<>33, 1), (8<>13, 3), (15<>13, 1), (24>46, 4), (16<>5, 1), (48<>32, 2), (8>25, 1), (9<>16, 4), (15>47, 4), (26<21, 3), (20>38, 2), (11<>5, 4), (24<>3, 2), (44<>45, 2), (40>36, 4), (31<>4, 3), (31<49, 1), (24<>21, 4), (27>11, 4), (28<>25, 3), (26<>16, 3), (35<41, 2), (37>17, 4), (20<25, 2), (12>1, 1), (24>4, 1), (32>14, 4), (2<>8, 1), (16<>13, 4), (26<>38, 3), (2<>34, 4), (12>50, 3), (8<47, 1), (1<32, 4), (21<5, 1), (50<11, 4), (48<3, 1), (48<>36, 2), (20>49, 2), (36<41, 4), (40<>15, 2), (50<>19, 4), (47<>3, 4)])).

test(8, (50, 500, [<, >, <>]), (45, 90, 4), ([18, 13, 49, 6, 14, 21, 17, 33, 48, 9, 42, 35, 10, 16, 5, 39, 36, 45, 30, 19, 40, 7, 15, 28, 31, 1, 37, 43, 34, 22, 20, 23, 44, 41, 11, 8, 2, 32, 12, 46, 26, 3, 27, 50, 25], [18>21, 18>35, 18>39, 18>45, 18>31, 13>17, 13>40, 13>44, 6>13, 6>14, 6>40, 6>41, 6>25, 14>21, 14>17, 14>16, 21>33, 21>45, 21>31, 21>46, 17>49, 17>36, 17>37, 17>23, 17>44, 48>49, 9>21, 9>17, 9>10, 9>45, 9>22, 9>41, 9>26, 35>37, 35>44, 35>50, 10>48, 10>39, 10>30, 16>18, 16>40, 16>28, 16>23, 5>36, 5>40, 5>23, 5>44, 39>48, 39>42, 36>48, 45>49, 45>46, 30>33, 30>48, 30>34, 19>37, 19>23, 19>41, 40>42, 7>17, 7>42, 7>31, 7>23, 7>44, 7>32, 15>17, 15>40, 28>36, 28>31, 28>44, 28>32, 31>39, 31>45, 31>44, 1>36, 1>30, 1>19, 1>7, 1>28, 1>41, 1>8, 37>41, 34>49, 34>44, 34>41, 34>46, 22>32, 22>27, 20>21, 20>35, 20>36, 20>30, 20>28, 20>34, 20>23, 23>42, 23>37, 23>41, 44>50, 41>45, 41>50, 11>45, 11>41, 8>48, 8>42, 8>35, 8>15, 8>23, 8>44, 8>11, 8>27, 2>14, 2>10, 2>36, 2>44, 2>41, 32>39, 32>50, 12>49, 12>14, 12>36, 12>19, 12>40, 12>44, 26>33, 26>42, 26>39, 26>36, 26>32, 26>50, 3>10, 3>16, 3>34, 3>20, 27>35, 27>45, 27>41, 25>34, 25>50], [5>2, 19<>11, 5<34, 46>25, 23<>32, 18>44, 28>23, 31<50, 17>41, 33>5, 48<46, 19<15, 39<>11, 37<32, 21>1, 40<>46, 30<>19, 35<>19, 18<>17, 2>46, 20>46, 42<>28, 10>30, 6<>48, 44>27, 43>32, 49<>33, 42<27, 43>26, 6<7, 8>2, 19<>46, 5<7, 43<25, 15<>26, 42>2, 15<32, 15>27, 21>16, 22<>11, 48<>39, 48<>42, 21<27, 36<>2, 11<>8, 30<15, 3<>27, 6<42, 36<>7, 23<25, 35<>11, 17>25, 20<32, 10<44, 34<>3, 33<>46, 8<>3, 11<>2, 13<7, 18<>48, 35<43, 20<>12, 45<40, 7>12, 10<15, 13<25, 15<8, 14<10, 21>8, 5>36, 16<46, 23<>44, 45>12, 48>10, 10>40, 10<>23, 49>6, 6>50, 16>19, 48<19, 48<>8, 14<>23, 41<27, 9>37, 9<>41, 15<46, 30<43, 1<>3, 39<7, 18<>50], [ (18, 1), (13, 1), (49, 1), (6, 1), (14, 2), (21, 3), (17, 4), (33, 2), (48, 1), (9, 1), (42, 1), (35, 1), (10, 1), (16, 2), (5, 1), (39, 1), (36, 4), (45, 4), (30, 3), (19, 3), (40, 4), (7, 3), (15, 2), (28, 1), (31, 2), (1, 4), (37, 4), (43, 3), (34, 4), (22, 4), (20, 4), (23, 2), (44, 1), (41, 3), (11, 4), (8, 2), (2, 2), (32, 2), (12, 3), (46, 4), (26, 3), (3, 3), (27, 3), (50, 2), (25, 4)], [ (5>2, 3), (19<>11, 1), (5<34, 2), (46>25, 4), (23<>32, 3), (18>44, 1), (28>23, 2), (31<50, 3), (17>41, 4), (33>5, 1), (48<46, 1), (19<15, 1), (39<>11, 1), (37<32, 3), (21>1, 2), (40<>46, 3), (30<>19, 1), (35<>19, 3), (18<>17, 3), (2>46, 2), (20>46, 4), (42<>28, 4), (10>30, 3), (6<>48, 1), (44>27, 2), (43>32, 4), (49<>33, 4), (42<27, 1), (43>26, 3), (6<7, 1), (8>2, 2), (19<>46, 3), (5<7, 1), (43<25, 4), (15<>26, 2), (42>2, 3), (15<32, 2), (15>27, 3), (21>16, 3), (22<>11, 1), (48<>39, 3), (48<>42, 3), (21<27, 3), (36<>2, 1), (11<>8, 2), (30<15, 1), (3<>27, 4), (6<42, 1), (36<>7, 4), (23<25, 3), (35<>11, 4), (17>25, 3), (20<32, 3), (10<44, 4), (34<>3, 3), (33<>46, 2), (8<>3, 3), (11<>2, 3), (13<7, 2), (18<>48, 2), (35<43, 4), (20<>12, 2), (45<40, 2), (7>12, 4), (10<15, 1), (13<25, 2), (15<8, 3), (14<10, 4), (21>8, 4), (5>36, 3), (16<46, 2), (23<>44, 3), (45>12, 3), (48>10, 1), (10>40, 3), (10<>23, 3), (49>6, 4), (6>50, 2), (16>19, 2), (48<19, 2), (48<>8, 2), (14<>23, 2), (41<27, 3), (9>37, 2), (9<>41, 4), (15<46, 4), (30<43, 3), (1<>3, 1), (39<7, 2), (18<>50, 4)])).

test(9, (50, 500, [<, >, <>]), (45, 90, 4), ([25, 19, 29, 11, 35, 43, 34, 18, 17, 44, 33, 39, 6, 10, 46, 49, 38, 4, 7, 14, 45, 15, 36, 37, 32, 8, 9, 24, 2, 47, 12, 21, 1, 5, 20, 50, 3, 27, 26, 31, 13, 30, 42, 16, 41], [25>42, 19>47, 19>21, 19>30, 29>35, 29>43, 29>46, 29>31, 29>41, 11>35, 11>18, 11>45, 11>36, 11>32, 11>47, 35>44, 35>39, 35>46, 35>36, 18>21, 18>31, 18>30, 17>29, 17>39, 17>32, 17>20, 17>30, 44>50, 33>35, 33>43, 33>39, 33>42, 6>19, 6>43, 6>18, 6>17, 6>44, 6>46, 6>36, 6>8, 10>11, 10>15, 10>21, 38>46, 38>45, 4>35, 4>33, 4>10, 4>24, 4>50, 7>11, 7>34, 7>18, 7>12, 7>27, 7>26, 14>43, 14>49, 14>38, 14>31, 15>34, 15>17, 15>44, 15>49, 15>32, 36>46, 37>39, 37>38, 32>41, 8>29, 8>11, 8>17, 8>32, 8>24, 8>47, 9>35, 9>43, 9>18, 9>45, 9>50, 9>31, 9>42, 24>46, 24>36, 24>50, 2>18, 2>6, 2>4, 2>7, 2>45, 2>12, 2>21, 2>31, 2>42, 12>46, 21>39, 21>24, 21>42, 1>46, 1>45, 1>15, 1>24, 1>27, 5>34, 5>15, 5>32, 5>8, 5>24, 5>21, 5>27, 5>13, 20>49, 3>25, 3>12, 3>5, 27>44, 27>33, 27>37, 27>42, 26>43, 31>35, 31>39, 31>49, 31>32, 31>47, 31>41, 13>35, 13>34, 13>45, 13>26, 16>29, 16>42, 41>43], [1<27, 8<>1, 37<>24, 46>8, 39<6, 2<>42, 25<2, 14>13, 43<>16, 19>50, 7>9, 4>31, 14<>2, 47<>31, 44>31, 34>17, 24<5, 19<>49, 32<12, 17>39, 34<>46, 2<>5, 43<9, 34<15, 21>1, 34<33, 44<>8, 1>3, 47<>27, 1<41, 12>26, 11<49, 25<12, 19<>21, 27>13, 25>3, 24<>47, 38<>1, 10<>46, 46<>47, 18>10, 17<6, 10<27, 10>37, 11>8, 44<47, 17<14, 25<>17, 44>37, 18<38, 18>7, 34>32, 2<>31, 2<26, 44>12, 38<4, 43>21, 17>37, 7<>24, 24>31, 35>31, 24>2, 46<16, 14<>9, 11<15, 33>50, 17>2, 38<2, 4>15, 10>20, 19<>18, 4<>7, 4>8, 34<42, 11<2, 33<37, 15>21, 29<>3, 27<>41, 1>42, 30<41, 6>10, 11<>16, 11<>50, 4<>20, 43<39, 4>45, 24>21, 17<9, 12<3], [ (25, 2), (19, 2), (29, 1), (11, 2), (35, 2), (43, 2), (34, 2), (18, 3), (17, 3), (44, 2), (33, 3), (39, 2), (6, 3), (10, 1), (46, 1), (49, 2), (38, 3), (4, 4), (7, 2), (14, 3), (45, 2), (15, 3), (36, 1), (37, 3), (32, 1), (8, 4), (9, 2), (24, 2), (2, 2), (47, 1), (12, 3), (21, 4), (1, 4), (5, 3), (20, 3), (50, 3), (3, 4), (27, 2), (26, 2), (31, 2), (13, 3), (30, 2), (42, 2), (16, 3), (41, 4)], [ (1<27, 4), (8<>1, 4), (37<>24, 2), (46>8, 1), (39<6, 3), (2<>42, 4), (25<2, 2), (14>13, 2), (43<>16, 2), (19>50, 3), (7>9, 1), (4>31, 4), (14<>2, 1), (47<>31, 4), (44>31, 3), (34>17, 2), (24<5, 4), (19<>49, 1), (32<12, 4), (17>39, 4), (34<>46, 4), (2<>5, 3), (43<9, 1), (34<15, 4), (21>1, 3), (34<33, 1), (44<>8, 4), (1>3, 1), (47<>27, 4), (1<41, 3), (12>26, 3), (11<49, 3), (25<12, 2), (19<>21, 3), (27>13, 4), (25>3, 3), (24<>47, 1), (38<>1, 3), (10<>46, 1), (46<>47, 3), (18>10, 1), (17<6, 2), (10<27, 2), (10>37, 3), (11>8, 1), (44<47, 2), (17<14, 2), (25<>17, 1), (44>37, 3), (18<38, 3), (18>7, 4), (34>32, 4), (2<>31, 3), (2<26, 1), (44>12, 4), (38<4, 2), (43>21, 1), (17>37, 3), (7<>24, 4), (24>31, 2), (35>31, 3), (24>2, 3), (46<16, 2), (14<>9, 2), (11<15, 1), (33>50, 1), (17>2, 1), (38<2, 4), (4>15, 2), (10>20, 2), (19<>18, 2), (4<>7, 1), (4>8, 1), (34<42, 3), (11<2, 4), (33<37, 3), (15>21, 2), (29<>3, 1), (27<>41, 3), (1>42, 3), (30<41, 2), (6>10, 3), (11<>16, 3), (11<>50, 1), (4<>20, 1), (43<39, 4), (4>45, 4), (24>21, 3), (17<9, 3), (12<3, 3)])).

test(10, (50, 500, [<, >, <>]), (45, 90, 4), ([45, 46, 40, 44, 17, 23, 49, 16, 21, 25, 39, 24, 50, 5, 33, 8, 20, 30, 11, 13, 19, 42, 14, 7, 41, 1, 36, 27, 9, 10, 31, 38, 28, 48, 32, 4, 6, 47, 18, 12, 29, 34, 35, 37, 2], [45>49, 46>50, 40>50, 40>42, 44>48, 17>21, 17>33, 17>32, 23>34, 16>50, 16>20, 16>32, 21>23, 21>49, 21>24, 21>33, 21>30, 21>42, 25>44, 25>42, 25>36, 25>37, 24>49, 24>25, 24>50, 24>33, 24>38, 24>48, 24>29, 5>14, 5>36, 5>47, 33>40, 33>49, 33>34, 8>46, 8>17, 8>39, 8>24, 8>34, 20>44, 20>49, 20>31, 20>35, 30>42, 30>37, 11>23, 13>45, 13>44, 13>21, 13>39, 19>45, 19>40, 19>44, 19>49, 19>21, 19>42, 19>35, 42>45, 42>44, 14>45, 14>39, 14>27, 7>44, 7>21, 7>39, 7>8, 7>30, 7>19, 7>27, 7>10, 7>32, 1>40, 1>23, 1>33, 1>30, 1>11, 1>4, 1>6, 36>46, 36>40, 36>50, 27>46, 27>49, 27>39, 27>47, 27>35, 9>16, 9>20, 9>42, 9>31, 9>35, 10>16, 10>24, 10>14, 10>41, 10>32, 10>34, 10>37, 31>45, 31>50, 31>33, 31>42, 31>48, 31>34, 38>45, 28>44, 28>47, 28>34, 32>50, 32>36, 32>48, 32>34, 32>35, 32>37, 4>44, 4>7, 4>10, 6>25, 6>24, 6>8, 6>9, 6>29, 6>34, 18>45, 18>40, 18>32, 12>33, 12>19, 12>14, 12>41, 12>35, 29>39, 29>36, 29>32, 29>47, 34>45, 34>35, 35>45, 35>42, 35>38, 35>48, 35>47, 37>39, 2>44, 2>20, 2>14, 2>32, 2>4, 2>34], [13<12, 20>13, 33>6, 30<>28, 1>4, 44<>8, 42<31, 45<9, 7>47, 10>6, 5>38, 7<>38, 40>27, 44<>14, 33<37, 40<24, 33>27, 8<>37, 49<>24, 42<>14, 24<6, 46>34, 33<12, 41<>29, 23>37, 45<16, 41>48, 18<2, 1>48, 1>35, 27<37, 45<>30, 23<>38, 20<>47, 23<1, 32>6, 16<>25, 5<>35, 25<>37, 44>4, 4>12, 14<>2, 31<>32, 49>33, 42>41, 46<24, 50<27, 16<27, 7<>1, 33<41, 30<18, 9<>37, 39<>30, 33<19, 33<>13, 8<35, 45<>38, 13>7, 23>29, 30<6, 17>47, 48>2, 36<9, 50>38, 49<25, 38>28, 48<35, 21<34, 21>12, 11<>28, 21<27, 20<>42, 4<>37, 27<>28, 30>29, 47<18, 11<32, 11>31, 23<>5, 24>1, 39<50, 30<19, 13>1, 19<>32, 28<18, 42<1, 49<>11, 6<>2, 39>20, 11<>7], [ (45, 4), (46, 2), (40, 1), (44, 1), (17, 3), (23, 1), (49, 1), (16, 4), (21, 3), (25, 1), (39, 2), (24, 3), (50, 1), (5, 1), (33, 3), (8, 4), (20, 3), (30, 1), (11, 1), (13, 2), (19, 2), (42, 3), (14, 3), (7, 2), (41, 1), (1, 1), (36, 2), (27, 4), (9, 3), (10, 3), (31, 2), (38, 3), (28, 3), (48, 3), (32, 3), (4, 1), (6, 2), (47, 2), (18, 1), (12, 4), (29, 2), (34, 3), (35, 2), (37, 1), (2, 2)], [ (13<12, 2), (20>13, 4), (33>6, 3), (30<>28, 3), (1>4, 4), (44<>8, 1), (42<31, 1), (45<9, 3), (7>47, 1), (10>6, 2), (5>38, 3), (7<>38, 3), (40>27, 1), (44<>14, 4), (33<37, 4), (40<24, 3), (33>27, 4), (8<>37, 1), (49<>24, 4), (42<>14, 3), (24<6, 3), (46>34, 3), (33<12, 4), (41<>29, 2), (23>37, 3), (45<16, 3), (41>48, 1), (18<2, 3), (1>48, 1), (1>35, 2), (27<37, 2), (45<>30, 1), (23<>38, 2), (20<>47, 4), (23<1, 3), (32>6, 1), (16<>25, 1), (5<>35, 4), (25<>37, 4), (44>4, 4), (4>12, 3), (14<>2, 3), (31<>32, 3), (49>33, 4), (42>41, 2), (46<24, 2), (50<27, 4), (16<27, 1), (7<>1, 2), (33<41, 3), (30<18, 1), (9<>37, 1), (39<>30, 1), (33<19, 1), (33<>13, 1), (8<35, 2), (45<>38, 1), (13>7, 2), (23>29, 1), (30<6, 1), (17>47, 1), (48>2, 1), (36<9, 4), (50>38, 1), (49<25, 4), (38>28, 1), (48<35, 1), (21<34, 1), (21>12, 1), (11<>28, 1), (21<27, 4), (20<>42, 3), (4<>37, 2), (27<>28, 3), (30>29, 4), (47<18, 3), (11<32, 2), (11>31, 4), (23<>5, 4), (24>1, 2), (39<50, 3), (30<19, 4), (13>1, 3), (19<>32, 4), (28<18, 1), (42<1, 3), (49<>11, 2), (6<>2, 4), (39>20, 1), (11<>7, 4)])).

%% 50, 500, [<, >, <>]
%% 50, 4, 4

test(1, (50, 500, [<, >, <>]), (50, 4, 4), ([49, 1, 22, 47, 14, 28, 34, 15, 2, 26, 45, 12, 36, 6, 30, 23, 42, 48, 10, 43, 7, 31, 5, 16, 9, 25, 32, 50, 11, 20, 19, 24, 33, 29, 4, 13, 3, 38, 17, 35, 41, 37, 21, 18, 27, 44, 46, 39, 8, 40], [1>23, 1>43, 1>31, 1>13, 1>17, 1>37, 1>44, 1>46, 1>40, 22>36, 22>33, 22>38, 14>23, 14>48, 14>32, 14>20, 28>32, 28>38, 28>37, 34>50, 34>37, 15>28, 15>31, 15>29, 15>38, 15>44, 2>28, 2>15, 2>42, 2>32, 2>44, 26>48, 26>41, 12>49, 12>42, 12>48, 12>43, 12>32, 12>24, 12>13, 36>38, 36>41, 36>37, 6>26, 6>31, 6>9, 6>35, 30>32, 30>35, 23>29, 23>37, 23>46, 42>47, 42>44, 10>49, 10>30, 10>42, 10>31, 10>16, 10>33, 10>17, 10>41, 10>18, 7>47, 7>14, 7>28, 7>48, 7>9, 7>38, 31>40, 5>12, 5>31, 5>9, 5>21, 5>44, 16>25, 16>20, 16>37, 16>46, 9>49, 9>14, 9>30, 9>42, 9>16, 9>24, 9>37, 9>18, 9>44, 25>49, 25>43, 25>29, 32>49, 32>35, 32>40, 11>45, 11>48, 11>18, 20>26, 20>32, 20>50, 20>27, 20>39, 19>30, 19>23, 19>32, 19>33, 19>38, 19>27, 24>50, 24>41, 33>36, 29>43, 29>32, 29>33, 4>34, 4>43, 4>31, 4>9, 4>25, 13>31, 13>44, 3>26, 3>19, 3>44, 3>39, 38>43, 38>40, 17>50, 17>37, 35>50, 35>37, 41>47, 41>48, 21>23, 21>48, 21>25, 21>50, 21>37, 18>22, 18>23, 18>42, 18>25, 27>36, 27>33, 27>41, 44>49, 46>49, 39>47, 39>45, 39>41, 8>49, 8>25, 8>32, 8>37, 8>21, 40>49, 40>50], [47<>6, 7<>32, 35<>8, 28<>18], [ (49, 4), (1, 4), (22, 1), (47, 2), (14, 2), (28, 4), (34, 1), (15, 4), (2, 3), (26, 4), (45, 1), (12, 3), (36, 3), (6, 1), (30, 2), (23, 1), (42, 3), (48, 1), (10, 1), (43, 3), (7, 1), (31, 1), (5, 2), (16, 2), (9, 2), (25, 2), (32, 3), (50, 1), (11, 3), (20, 3), (19, 4), (24, 2), (33, 3), (29, 2), (4, 3), (13, 1), (3, 2), (38, 4), (17, 1), (35, 3), (41, 2), (37, 3), (21, 3), (18, 1), (27, 1), (44, 1), (46, 2), (39, 2), (8, 3), (40, 3)], [ (47<>6, 3), (7<>32, 4), (35<>8, 4), (28<>18, 3)])).

test(2, (50, 500, [<, >, <>]), (50, 4, 4), ([14, 23, 10, 17, 37, 6, 33, 49, 47, 21, 8, 48, 46, 2, 27, 32, 28, 38, 24, 42, 43, 9, 3, 30, 20, 34, 40, 16, 31, 19, 22, 15, 5, 29, 44, 12, 18, 39, 13, 4, 50, 26, 7, 36, 45, 11, 25, 35, 41, 1], [14>27, 14>28, 14>24, 14>29, 14>50, 23>37, 23>48, 23>38, 23>41, 10>33, 10>43, 10>31, 10>15, 10>45, 17>21, 17>30, 17>19, 17>29, 37>44, 6>23, 6>30, 6>22, 6>11, 33>50, 33>36, 21>43, 21>26, 8>47, 8>48, 8>46, 8>15, 8>18, 2>49, 2>21, 2>38, 2>30, 2>19, 2>5, 27>33, 27>40, 27>29, 27>35, 32>40, 32>35, 28>47, 28>48, 38>42, 24>30, 24>29, 24>44, 42>47, 42>45, 43>45, 9>46, 9>25, 3>30, 3>5, 3>29, 3>45, 30>38, 30>36, 20>33, 20>24, 20>43, 20>31, 20>29, 34>48, 34>50, 40>48, 16>37, 16>49, 16>21, 16>50, 16>36, 16>45, 31>33, 19>33, 19>48, 19>38, 19>24, 19>22, 22>37, 22>27, 22>42, 22>40, 22>25, 22>35, 15>23, 15>33, 15>16, 15>18, 15>36, 15>41, 5>8, 5>24, 5>7, 5>36, 5>41, 29>43, 12>21, 12>27, 12>32, 12>43, 12>30, 12>15, 12>26, 18>37, 18>46, 39>42, 39>43, 39>40, 39>45, 13>14, 13>23, 13>49, 13>40, 13>29, 13>44, 13>35, 4>21, 4>30, 4>39, 7>17, 7>33, 7>31, 11>27, 11>40, 11>22, 11>45, 25>26, 25>35, 35>40, 35>44, 35>39, 41>49, 1>33, 1>3, 1>40, 1>16, 1>29, 1>50], [27<>26, 32<>7, 2<18, 46>18], [ (14, 1), (23, 1), (10, 2), (17, 1), (37, 3), (6, 1), (33, 2), (49, 2), (47, 4), (21, 4), (8, 4), (48, 3), (46, 1), (2, 2), (27, 2), (32, 4), (28, 2), (38, 3), (24, 4), (42, 2), (43, 1), (9, 4), (3, 3), (30, 3), (20, 2), (34, 3), (40, 4), (16, 4), (31, 4), (19, 3), (22, 4), (15, 2), (5, 2), (29, 3), (44, 3), (12, 3), (18, 1), (39, 4), (13, 4), (4, 1), (50, 3), (26, 2), (7, 3), (36, 1), (45, 2), (11, 2), (25, 1), (35, 1), (41, 3), (1, 2)], [ (27<>26, 3), (32<>7, 3), (2<18, 3), (46>18, 3)])).

test(3, (50, 500, [<, >, <>]), (50, 4, 4), ([29, 44, 42, 30, 17, 33, 43, 48, 41, 24, 28, 36, 21, 13, 47, 27, 26, 40, 34, 16, 7, 14, 32, 8, 11, 18, 6, 45, 20, 25, 39, 46, 49, 5, 50, 15, 19, 35, 37, 3, 12, 9, 2, 1, 38, 10, 31, 23, 4, 22], [29>50, 42>43, 30>48, 30>37, 30>38, 30>31, 17>42, 17>25, 17>37, 17>38, 17>31, 43>46, 41>48, 24>36, 24>26, 24>38, 28>29, 28>41, 28>34, 28>32, 28>31, 36>48, 36>49, 36>50, 21>46, 13>29, 13>42, 13>43, 13>16, 13>14, 13>20, 13>46, 13>49, 13>38, 13>23, 27>29, 27>45, 27>46, 27>37, 27>31, 26>42, 26>48, 26>40, 26>46, 40>41, 40>46, 34>44, 16>37, 16>38, 16>23, 16>22, 7>33, 7>43, 7>36, 7>13, 7>16, 7>14, 7>25, 14>44, 14>17, 14>16, 14>45, 14>20, 14>25, 14>35, 32>48, 8>44, 8>48, 8>47, 8>18, 8>20, 8>15, 8>9, 8>22, 11>21, 11>13, 11>15, 11>23, 18>30, 18>21, 18>32, 18>46, 6>24, 6>34, 6>16, 6>20, 6>19, 45>48, 20>43, 20>26, 20>40, 20>25, 20>23, 20>22, 25>34, 25>32, 39>48, 5>42, 5>41, 5>13, 5>27, 5>37, 15>17, 15>18, 15>22, 19>28, 19>34, 19>50, 35>50, 37>44, 37>39, 3>47, 3>20, 3>49, 3>4, 12>24, 9>33, 9>48, 9>24, 9>18, 9>25, 2>29, 2>43, 2>26, 2>6, 2>20, 2>35, 2>23, 2>4, 1>33, 1>48, 1>41, 1>36, 1>6, 1>2, 38>48, 38>50, 10>42, 10>13, 10>32, 10>49, 10>50, 10>19, 10>38, 31>41, 31>47, 23>29, 23>42, 23>33, 23>47, 23>26, 23>40, 23>34, 23>25, 23>38, 4>29, 4>27, 4>32, 4>39, 4>19, 22>43, 22>47, 22>50, 22>38, 22>31], [29<>43, 24<>6, 30>37, 13<4], [ (29, 1), (44, 2), (42, 1), (30, 4), (17, 1), (33, 3), (43, 1), (48, 2), (41, 1), (24, 4), (28, 4), (36, 3), (21, 4), (13, 1), (47, 1), (27, 1), (26, 4), (40, 4), (34, 2), (16, 3), (7, 4), (14, 2), (32, 2), (8, 4), (11, 4), (18, 4), (6, 4), (45, 1), (20, 4), (25, 1), (39, 1), (46, 1), (49, 2), (5, 4), (50, 3), (15, 1), (19, 3), (35, 1), (37, 4), (3, 1), (12, 3), (9, 1), (2, 1), (1, 2), (38, 2), (10, 4), (31, 2), (23, 1), (4, 4), (22, 1)], [ (29<>43, 2), (24<>6, 3), (30>37, 3), (13<4, 3)])).

test(4, (50, 500, [<, >, <>]), (50, 4, 4), ([32, 18, 34, 4, 47, 46, 38, 12, 27, 33, 17, 22, 3, 2, 40, 11, 20, 15, 1, 14, 16, 5, 35, 50, 19, 25, 48, 39, 28, 10, 44, 26, 42, 30, 29, 9, 43, 31, 8, 24, 45, 7, 21, 41, 37, 49, 36, 6, 23, 13], [32>37, 18>32, 18>31, 34>47, 34>46, 34>38, 34>40, 34>49, 4>27, 4>20, 4>50, 4>7, 38>46, 38>50, 12>44, 27>47, 33>34, 17>22, 17>48, 17>30, 22>32, 22>34, 22>30, 22>49, 22>23, 3>32, 3>35, 3>42, 3>29, 3>24, 3>21, 3>49, 2>34, 2>25, 2>45, 2>23, 40>42, 40>45, 40>49, 11>14, 11>16, 11>50, 11>48, 11>43, 11>24, 20>22, 20>40, 20>28, 20>42, 20>30, 20>24, 20>36, 20>23, 15>32, 15>18, 15>34, 15>38, 15>17, 15>49, 1>4, 1>16, 1>19, 1>10, 1>37, 14>16, 14>50, 14>19, 14>48, 14>23, 16>33, 16>22, 5>18, 5>34, 5>38, 5>11, 5>9, 19>47, 19>44, 19>37, 25>32, 25>47, 25>37, 28>48, 28>44, 28>42, 28>31, 10>47, 10>22, 10>50, 10>28, 10>29, 10>43, 10>24, 10>36, 10>13, 26>40, 26>43, 26>45, 26>41, 42>47, 30>43, 29>32, 29>48, 9>27, 9>40, 9>15, 9>14, 9>35, 9>44, 9>43, 9>31, 9>45, 9>21, 9>49, 9>36, 31>34, 31>41, 31>37, 8>33, 8>37, 8>49, 8>36, 8>23, 24>43, 45>50, 7>32, 7>46, 7>12, 7>10, 7>29, 7>43, 7>37, 21>32, 21>22, 21>50, 21>48, 21>42, 21>29, 21>37, 21>49, 37>40, 36>46, 6>27, 6>14, 6>8, 6>45, 6>7, 23>25, 23>28, 13>18, 13>27, 13>48, 13>44, 13>37], [12>1, 38<35, 3>43, 35<>31], [ (32, 4), (18, 3), (34, 4), (4, 1), (47, 2), (46, 1), (38, 2), (12, 4), (27, 3), (33, 4), (17, 1), (22, 4), (3, 2), (2, 3), (40, 1), (11, 4), (20, 4), (15, 3), (1, 2), (14, 1), (16, 1), (5, 3), (35, 3), (50, 1), (19, 3), (25, 3), (48, 4), (39, 4), (28, 1), (10, 3), (44, 4), (26, 4), (42, 4), (30, 1), (29, 1), (9, 3), (43, 2), (31, 3), (8, 2), (24, 2), (45, 3), (7, 3), (21, 2), (41, 3), (37, 1), (49, 3), (36, 2), (6, 2), (23, 4), (13, 1)], [ (12>1, 2), (38<35, 4), (3>43, 3), (35<>31, 4)])).

test(5, (50, 500, [<, >, <>]), (50, 4, 4), ([36, 42, 25, 11, 8, 17, 1, 20, 41, 32, 33, 34, 31, 10, 7, 15, 43, 3, 44, 38, 19, 21, 5, 28, 6, 13, 48, 40, 16, 26, 37, 12, 45, 23, 9, 49, 2, 14, 35, 24, 29, 47, 50, 30, 4, 39, 46, 22, 18, 27], [36>44, 36>48, 25>43, 25>38, 25>40, 25>45, 25>46, 11>12, 11>47, 8>32, 8>48, 8>12, 8>23, 17>21, 17>18, 1>42, 1>7, 1>44, 1>19, 1>40, 1>35, 1>46, 20>42, 20>21, 20>30, 20>22, 41>48, 32>42, 32>41, 32>48, 32>50, 33>43, 33>40, 34>42, 34>41, 34>44, 34>40, 34>47, 34>50, 34>46, 31>48, 31>35, 31>39, 31>46, 7>31, 7>10, 7>43, 7>48, 7>40, 7>46, 15>36, 15>23, 15>29, 43>44, 43>47, 3>33, 3>7, 3>6, 3>26, 3>45, 3>18, 3>27, 44>50, 38>43, 19>41, 19>32, 19>44, 19>35, 19>27, 21>38, 21>48, 21>26, 5>36, 5>11, 5>8, 5>10, 5>15, 5>13, 5>40, 5>37, 5>12, 5>23, 5>9, 5>30, 5>39, 28>45, 28>47, 28>50, 6>32, 6>34, 6>44, 6>21, 6>13, 6>40, 6>12, 6>14, 6>18, 13>36, 13>25, 13>32, 13>33, 13>21, 13>16, 13>49, 13>14, 13>24, 13>30, 40>41, 40>43, 16>32, 16>38, 16>26, 16>50, 16>46, 16>27, 26>41, 26>43, 26>35, 37>41, 37>43, 12>25, 12>38, 12>40, 12>26, 12>29, 12>47, 23>25, 23>43, 23>38, 23>27, 9>33, 9>48, 9>14, 9>35, 9>47, 2>17, 2>5, 2>6, 2>12, 2>50, 2>22, 14>17, 14>32, 14>16, 14>24, 35>49, 35>50, 24>42, 24>41, 24>33, 24>28, 24>49, 29>43, 29>44, 29>38, 29>37, 47>50, 30>41, 30>31, 30>35, 30>47, 4>34, 4>5, 4>45, 39>50, 22>42, 22>35, 18>21, 27>28, 27>35], [43<19, 36<>25, 15<>9, 33<>39], [ (36, 1), (42, 4), (25, 4), (11, 3), (8, 4), (17, 2), (1, 1), (20, 3), (41, 2), (32, 4), (33, 2), (34, 1), (31, 3), (10, 2), (7, 2), (15, 1), (43, 1), (3, 2), (44, 2), (38, 4), (19, 3), (21, 1), (5, 2), (28, 1), (6, 2), (13, 4), (48, 2), (40, 3), (16, 2), (26, 4), (37, 4), (12, 2), (45, 3), (23, 4), (9, 2), (49, 4), (2, 4), (14, 4), (35, 2), (24, 3), (29, 3), (47, 2), (50, 1), (30, 4), (4, 1), (39, 2), (46, 2), (22, 3), (18, 1), (27, 3)], [ (43<19, 1), (36<>25, 2), (15<>9, 2), (33<>39, 4)])).

test(6, (50, 500, [<, >, <>]), (50, 4, 4), ([19, 37, 8, 26, 13, 33, 7, 40, 31, 10, 22, 46, 43, 3, 50, 29, 17, 4, 39, 32, 24, 9, 12, 28, 14, 42, 38, 25, 5, 27, 49, 20, 18, 6, 36, 35, 30, 11, 48, 34, 23, 47, 21, 1, 41, 45, 15, 44, 16, 2], [19>26, 19>33, 19>39, 19>25, 19>41, 37>50, 37>42, 8>29, 26>46, 26>50, 26>32, 26>49, 26>48, 26>45, 13>27, 13>15, 13>44, 13>16, 33>37, 33>45, 33>44, 7>43, 7>32, 7>28, 7>36, 40>46, 40>50, 31>39, 31>42, 31>44, 10>22, 10>46, 10>29, 10>42, 10>15, 22>37, 22>33, 22>40, 22>46, 22>39, 22>30, 22>23, 3>13, 3>14, 3>49, 29>38, 17>34, 17>21, 4>26, 4>13, 4>40, 4>31, 4>10, 4>46, 4>17, 4>9, 4>25, 4>27, 4>23, 32>48, 32>34, 24>27, 24>49, 24>35, 24>48, 24>47, 9>10, 9>22, 9>46, 9>43, 9>42, 9>48, 12>37, 12>41, 28>29, 28>39, 28>45, 28>44, 14>28, 14>45, 42>47, 38>46, 38>39, 25>50, 25>30, 5>8, 5>40, 5>10, 5>22, 5>50, 5>29, 5>17, 5>12, 5>28, 5>36, 5>23, 27>32, 27>28, 20>33, 20>35, 18>27, 18>36, 18>34, 18>41, 6>12, 6>38, 6>27, 6>21, 36>39, 36>48, 35>42, 30>37, 30>40, 30>42, 30>45, 11>29, 11>42, 11>35, 11>21, 11>44, 34>35, 23>33, 23>40, 23>43, 23>50, 23>39, 47>48, 21>43, 21>42, 1>26, 1>7, 1>10, 1>14, 1>36, 1>47, 1>15, 41>49, 41>48, 45>46, 15>40, 15>31, 15>46, 15>29, 15>42, 15>16, 44>50, 16>19, 16>37, 16>22, 16>39, 16>32, 16>28, 16>36, 16>48, 2>33, 2>7, 2>31, 2>22, 2>3, 2>50, 2>4, 2>12, 2>25, 2>34, 2>16], [8<>41, 18>45, 16>2, 19<>40], [ (19, 2), (37, 2), (8, 3), (26, 4), (13, 3), (33, 1), (7, 1), (40, 3), (31, 1), (10, 2), (22, 1), (46, 3), (43, 1), (3, 4), (50, 3), (29, 1), (17, 1), (4, 3), (39, 3), (32, 2), (24, 1), (9, 2), (12, 1), (28, 1), (14, 1), (42, 3), (38, 2), (25, 4), (5, 4), (27, 4), (49, 4), (20, 2), (18, 2), (6, 2), (36, 1), (35, 4), (30, 4), (11, 2), (48, 4), (34, 1), (23, 1), (47, 1), (21, 3), (1, 4), (41, 2), (45, 4), (15, 3), (44, 4), (16, 4), (2, 4)], [ (8<>41, 3), (18>45, 4), (16>2, 4), (19<>40, 3)])).

test(7, (50, 500, [<, >, <>]), (50, 4, 4), ([24, 49, 37, 27, 41, 1, 21, 19, 3, 48, 7, 33, 2, 36, 8, 47, 44, 5, 31, 42, 11, 40, 43, 18, 50, 10, 4, 16, 28, 26, 30, 23, 12, 25, 6, 14, 9, 20, 32, 13, 34, 22, 15, 39, 46, 29, 38, 35, 17, 45], [24>33, 24>36, 24>31, 27>28, 1>4, 1>13, 1>17, 21>41, 21>39, 21>46, 21>45, 19>49, 19>26, 19>46, 19>29, 3>10, 3>28, 3>39, 3>45, 7>19, 7>40, 7>18, 7>10, 7>20, 7>22, 7>38, 33>49, 33>50, 33>39, 2>49, 2>21, 2>42, 2>43, 2>14, 2>22, 2>38, 36>44, 36>50, 8>37, 8>19, 8>36, 8>44, 8>31, 8>18, 8>16, 8>32, 8>15, 47>49, 5>10, 5>16, 5>34, 5>15, 5>29, 31>49, 31>40, 42>43, 42>46, 11>28, 11>26, 11>32, 11>39, 11>29, 11>17, 43>45, 18>21, 18>36, 18>32, 18>34, 18>22, 18>29, 18>38, 10>14, 10>34, 10>46, 10>29, 10>17, 4>24, 4>31, 4>10, 16>49, 16>19, 16>42, 16>43, 16>34, 28>33, 26>48, 26>33, 26>30, 23>36, 23>50, 23>28, 23>38, 12>47, 12>25, 6>48, 6>30, 6>23, 6>13, 14>16, 14>32, 14>46, 14>38, 9>24, 9>49, 9>44, 9>31, 9>18, 9>16, 9>14, 9>29, 20>27, 20>33, 20>34, 32>34, 32>39, 13>31, 13>40, 13>43, 34>35, 22>26, 22>32, 22>34, 22>46, 22>29, 15>24, 15>21, 15>44, 15>40, 15>16, 15>30, 15>23, 15>35, 39>47, 39>50, 29>32, 29>46, 38>41, 35>47, 35>46, 17>40], [44>14, 8<>34, 27<>10, 22>38], [ (24, 2), (49, 1), (37, 4), (27, 2), (41, 1), (1, 4), (21, 4), (19, 2), (3, 3), (48, 2), (7, 2), (33, 3), (2, 4), (36, 4), (8, 3), (47, 1), (44, 3), (5, 2), (31, 1), (42, 4), (11, 1), (40, 2), (43, 2), (18, 2), (50, 4), (10, 1), (4, 3), (16, 4), (28, 4), (26, 1), (30, 4), (23, 2), (12, 2), (25, 4), (6, 1), (14, 3), (9, 2), (20, 1), (32, 2), (13, 2), (34, 4), (22, 2), (15, 1), (39, 3), (46, 1), (29, 1), (38, 4), (35, 2), (17, 1), (45, 3)], [ (44>14, 3), (8<>34, 2), (27<>10, 4), (22>38, 2)])).

test(8, (50, 500, [<, >, <>]), (50, 4, 4), ([49, 19, 31, 27, 3, 37, 17, 9, 45, 18, 10, 34, 16, 33, 44, 43, 36, 30, 21, 25, 50, 38, 24, 39, 32, 15, 14, 2, 35, 4, 26, 29, 1, 47, 11, 13, 12, 41, 22, 46, 28, 48, 8, 20, 5, 42, 40, 6, 7, 23], [19>46, 31>45, 31>35, 27>31, 27>38, 27>48, 3>27, 3>37, 3>50, 3>12, 3>28, 3>7, 37>49, 37>50, 17>41, 17>42, 45>49, 45>47, 18>46, 10>27, 10>30, 10>25, 10>35, 10>29, 10>22, 10>48, 10>20, 34>50, 16>49, 16>21, 16>47, 16>41, 16>28, 16>42, 33>39, 33>47, 33>48, 44>48, 43>44, 43>48, 36>38, 30>37, 30>50, 30>38, 30>42, 30>40, 21>27, 21>33, 21>25, 21>24, 25>27, 25>45, 25>36, 25>30, 25>47, 25>42, 24>37, 24>25, 24>39, 24>35, 39>45, 39>48, 32>36, 32>42, 15>19, 15>17, 15>30, 15>25, 15>23, 14>16, 14>35, 14>47, 14>22, 14>46, 14>42, 2>37, 2>10, 2>50, 2>35, 2>47, 2>46, 2>20, 2>42, 2>40, 35>45, 35>47, 35>41, 35>40, 4>27, 4>17, 4>18, 4>30, 4>35, 26>44, 26>46, 29>49, 29>50, 29>42, 1>33, 1>44, 1>25, 11>17, 11>34, 11>33, 11>29, 11>22, 11>23, 13>17, 13>36, 13>25, 13>47, 13>48, 13>42, 12>19, 12>27, 12>34, 12>43, 12>32, 12>26, 12>41, 22>44, 22>41, 22>46, 46>50, 46>47, 8>10, 8>36, 8>14, 8>46, 8>42, 20>37, 20>45, 20>33, 20>21, 20>32, 20>28, 5>9, 5>33, 5>44, 5>25, 5>32, 5>14, 5>47, 5>28, 5>7, 42>45, 40>49, 40>50, 6>10, 6>16, 6>39, 6>15, 6>26, 6>20, 6>23, 7>18, 7>36, 7>30, 7>24, 7>15, 7>8, 23>49, 23>44, 23>38, 23>24, 23>48], [17<>26, 37>33, 34>13, 34<>50], [ (49, 2), (19, 4), (31, 1), (27, 2), (3, 1), (37, 3), (17, 4), (9, 2), (45, 1), (18, 2), (10, 4), (34, 1), (16, 3), (33, 1), (44, 1), (43, 1), (36, 2), (30, 3), (21, 4), (25, 1), (50, 4), (38, 3), (24, 1), (39, 1), (32, 3), (15, 1), (14, 1), (2, 2), (35, 1), (4, 3), (26, 2), (29, 3), (1, 2), (47, 1), (11, 1), (13, 4), (12, 4), (41, 3), (22, 1), (46, 1), (28, 1), (48, 4), (8, 2), (20, 4), (5, 3), (42, 2), (40, 4), (6, 4), (7, 1), (23, 1)], [ (17<>26, 1), (37>33, 1), (34>13, 2), (34<>50, 1)])).

test(9, (50, 500, [<, >, <>]), (50, 4, 4), ([45, 21, 40, 5, 15, 6, 39, 27, 14, 9, 16, 32, 11, 47, 26, 18, 25, 1, 24, 31, 30, 38, 34, 19, 2, 33, 7, 12, 46, 29, 10, 17, 35, 23, 44, 4, 50, 41, 22, 37, 49, 20, 43, 36, 3, 13, 48, 28, 42, 8], [45>46, 21>27, 21>29, 21>50, 21>41, 21>22, 21>42, 5>25, 5>7, 5>23, 15>25, 15>24, 15>43, 6>16, 6>47, 6>44, 6>49, 6>48, 6>42, 27>30, 27>29, 27>44, 27>48, 14>27, 14>16, 14>31, 14>29, 14>37, 14>42, 9>39, 9>25, 9>30, 9>12, 16>30, 16>34, 16>46, 16>29, 16>49, 16>20, 16>48, 32>41, 32>48, 11>40, 11>16, 11>37, 47>49, 47>48, 26>47, 26>34, 26>29, 26>36, 18>24, 18>38, 18>42, 25>40, 25>39, 25>38, 25>34, 25>46, 25>41, 1>16, 1>38, 1>46, 1>29, 1>23, 1>50, 1>3, 1>28, 24>32, 24>34, 24>33, 31>32, 31>35, 31>42, 30>40, 30>37, 30>49, 30>36, 38>39, 34>43, 19>21, 19>26, 19>34, 19>35, 19>28, 2>15, 2>19, 2>12, 2>17, 2>42, 33>45, 33>48, 7>40, 7>9, 7>32, 7>18, 7>12, 7>35, 7>48, 12>16, 12>30, 12>38, 12>17, 12>43, 12>28, 29>47, 29>46, 29>35, 10>45, 10>21, 10>40, 10>32, 10>11, 10>19, 10>12, 10>46, 17>32, 17>26, 17>30, 17>41, 17>37, 23>39, 23>37, 4>45, 4>6, 4>32, 4>19, 4>7, 4>37, 22>39, 22>30, 22>34, 22>44, 22>36, 37>43, 20>45, 20>44, 20>22, 20>28, 43>46, 43>44, 36>45, 36>40, 36>49, 36>43, 36>48, 3>21, 3>33, 3>44, 3>4, 3>50, 13>14, 13>25, 13>30, 13>23, 13>41, 28>31, 42>46, 42>49, 8>21, 8>18, 8>31, 8>29, 8>10, 8>13], [14<>36, 32>1, 26<>12, 26<17], [ (45, 4), (21, 3), (40, 4), (5, 3), (15, 3), (6, 4), (39, 1), (27, 1), (14, 2), (9, 2), (16, 2), (32, 3), (11, 1), (47, 2), (26, 3), (18, 1), (25, 4), (1, 1), (24, 3), (31, 3), (30, 1), (38, 1), (34, 2), (19, 2), (2, 2), (33, 1), (7, 1), (12, 1), (46, 2), (29, 4), (10, 3), (17, 2), (35, 3), (23, 1), (44, 2), (4, 2), (50, 4), (41, 2), (22, 2), (37, 1), (49, 1), (20, 1), (43, 4), (36, 1), (3, 4), (13, 1), (48, 4), (28, 3), (42, 1), (8, 3)], [ (14<>36, 2), (32>1, 3), (26<>12, 1), (26<17, 3)])).

test(10, (50, 500, [<, >, <>]), (50, 4, 4), ([32, 31, 8, 17, 2, 20, 27, 33, 24, 25, 29, 48, 38, 41, 21, 42, 30, 18, 9, 34, 28, 14, 23, 46, 49, 4, 37, 10, 19, 44, 26, 39, 43, 1, 16, 47, 5, 13, 15, 50, 12, 22, 6, 11, 7, 45, 40, 3, 35, 36], [32>38, 32>39, 31>44, 31>40, 8>33, 8>23, 8>49, 8>15, 17>29, 17>37, 17>47, 2>8, 2>21, 2>42, 2>18, 2>10, 2>26, 2>47, 2>15, 2>6, 2>35, 20>31, 20>33, 20>25, 20>30, 20>28, 20>23, 20>39, 20>43, 20>50, 27>40, 33>46, 33>37, 33>36, 24>29, 24>48, 25>27, 25>46, 25>49, 25>39, 29>46, 29>37, 29>47, 29>45, 21>42, 21>30, 21>50, 21>40, 30>43, 30>35, 18>25, 18>48, 18>50, 9>37, 9>43, 34>43, 28>41, 28>44, 28>35, 14>33, 14>16, 14>36, 23>26, 23>43, 4>8, 4>25, 4>10, 4>43, 4>13, 4>35, 37>41, 10>32, 10>38, 10>49, 10>50, 19>20, 19>25, 19>21, 19>42, 19>28, 19>23, 19>49, 19>35, 44>50, 44>45, 26>34, 26>36, 39>44, 43>50, 1>32, 1>38, 1>41, 1>18, 1>49, 1>39, 1>16, 1>15, 16>31, 16>29, 16>34, 16>28, 16>46, 47>49, 5>20, 5>33, 5>25, 5>38, 5>9, 5>37, 5>47, 5>12, 5>11, 5>40, 5>35, 13>32, 13>28, 15>32, 15>17, 15>25, 15>48, 15>23, 15>49, 15>43, 15>47, 15>50, 12>28, 12>50, 22>32, 22>33, 22>25, 22>50, 6>8, 6>27, 6>24, 6>30, 6>28, 6>47, 11>27, 11>48, 11>18, 11>28, 11>43, 11>22, 11>40, 7>18, 7>23, 7>49, 7>37, 7>10, 7>19, 7>13, 7>12, 7>36, 40>46, 40>49, 40>45, 3>17, 3>20, 3>24, 3>29, 3>38, 3>49, 3>37, 3>36, 35>40, 36>42, 36>50], [44>5, 10<44, 7>3, 50<>35], [ (32, 3), (31, 4), (8, 4), (17, 4), (2, 1), (20, 3), (27, 2), (33, 1), (24, 2), (25, 3), (29, 3), (48, 1), (38, 1), (41, 3), (21, 4), (42, 2), (30, 1), (18, 3), (9, 3), (34, 2), (28, 2), (14, 3), (23, 2), (46, 2), (49, 4), (4, 1), (37, 4), (10, 2), (19, 2), (44, 3), (26, 1), (39, 2), (43, 4), (1, 4), (16, 1), (47, 4), (5, 1), (13, 1), (15, 4), (50, 4), (12, 2), (22, 4), (6, 1), (11, 1), (7, 1), (45, 2), (40, 2), (3, 1), (35, 2), (36, 2)], [ (44>5, 1), (10<44, 3), (7>3, 2), (50<>35, 3)])).

%% 50, 750, [<, >]
%% 10, 5, 4

test(1, (50, 750, [<, >]), (10, 5, 4), ([50, 32, 4, 28, 1, 39, 12, 9, 34, 43], [32>34, 32>43, 4>32, 4>9, 4>43, 28>50, 28>34, 28>43, 1>28, 1>39, 1>12, 1>43, 39>50, 39>43, 12>32, 9>43, 34>50, 34>39], [39<12, 12<43, 1<39, 50>34, 4<34], [ (50, 1), (32, 3), (4, 4), (28, 4), (1, 1), (39, 2), (12, 3), (9, 2), (34, 2), (43, 3)], [ (39<12, 3), (12<43, 3), (1<39, 4), (50>34, 4), (4<34, 2)])).

test(2, (50, 750, [<, >]), (10, 5, 4), ([39, 46, 24, 2, 37, 41, 1, 18, 7, 27], [39>46, 24>41, 24>27, 2>46, 2>24, 37>46, 1>46, 1>2, 1>37, 1>18, 18>37, 7>39, 7>41, 7>18, 7>27, 27>39, 27>37, 27>41], [2<7, 1<27, 24<41, 39<46, 7>27], [ (39, 1), (46, 1), (24, 4), (2, 1), (37, 3), (41, 4), (1, 1), (18, 2), (7, 2), (27, 4)], [ (2<7, 3), (1<27, 4), (24<41, 1), (39<46, 2), (7>27, 3)])).

test(3, (50, 750, [<, >]), (10, 5, 4), ([40, 26, 39, 2, 24, 27, 21, 23, 20, 33], [26>40, 26>39, 2>40, 2>39, 2>24, 2>23, 24>40, 27>40, 21>26, 21>27, 23>39, 20>40, 20>39, 33>39], [21>33, 27>20, 2>27, 23>20, 2>20], [ (40, 2), (26, 4), (39, 3), (2, 4), (24, 3), (27, 2), (21, 4), (23, 3), (20, 3), (33, 4)], [ (21>33, 4), (27>20, 3), (2>27, 4), (23>20, 4), (2>20, 4)])).

test(4, (50, 750, [<, >]), (10, 5, 4), ([12, 19, 25, 32, 11, 17, 33, 44, 39, 48], [12>17, 12>33, 12>44, 12>48, 19>32, 19>33, 32>33, 32>39, 17>19, 17>25, 17>33, 17>44, 33>48, 44>48], [19<11, 25>44, 17>39, 11>48, 12<32], [ (12, 2), (19, 2), (25, 4), (32, 3), (11, 2), (17, 2), (33, 2), (44, 4), (39, 2), (48, 4)], [ (19<11, 3), (25>44, 1), (17>39, 1), (11>48, 4), (12<32, 4)])).

test(5, (50, 750, [<, >]), (10, 5, 4), ([42, 2, 45, 21, 29, 44, 3, 9, 32, 41], [42>45, 2>21, 2>44, 2>9, 29>45, 3>42, 3>45, 3>21, 9>45, 9>41, 32>42, 32>44, 41>42], [21<9, 45>41, 42<3, 2>9, 9>32], [ (42, 1), (2, 4), (45, 3), (21, 1), (29, 3), (44, 3), (3, 2), (9, 1), (32, 3), (41, 3)], [ (21<9, 3), (45>41, 4), (42<3, 3), (2>9, 4), (9>32, 3)])).

test(6, (50, 750, [<, >]), (10, 5, 4), ([17, 9, 36, 34, 18, 3, 42, 16, 12, 6], [17>34, 17>42, 9>17, 9>34, 9>18, 9>16, 34>36, 3>9, 3>36, 3>34, 3>18, 3>12, 3>6, 16>17, 16>34, 12>17, 12>34, 6>17, 6>9, 6>36, 6>12], [17<12, 18>12, 34>3, 34<16, 17<3], [ (17, 3), (9, 3), (36, 2), (34, 3), (18, 1), (3, 4), (42, 4), (16, 1), (12, 2), (6, 4)], [ (17<12, 3), (18>12, 2), (34>3, 1), (34<16, 3), (17<3, 2)])).

test(7, (50, 750, [<, >]), (10, 5, 4), ([13, 5, 6, 10, 14, 42, 26, 28, 1, 31], [13>26, 5>6, 5>42, 5>28, 6>13, 6>10, 6>26, 10>28, 14>42, 1>6, 1>14, 1>31], [13<42, 28<1, 1>31, 42>28, 6>31], [ (13, 3), (5, 4), (6, 2), (10, 4), (14, 1), (42, 3), (26, 1), (28, 3), (1, 2), (31, 2)], [ (13<42, 2), (28<1, 4), (1>31, 2), (42>28, 4), (6>31, 3)])).

test(8, (50, 750, [<, >]), (10, 5, 4), ([36, 2, 50, 1, 19, 18, 32, 15, 33, 24], [2>36, 2>50, 2>18, 1>33, 1>24, 19>33, 18>50, 18>19, 18>32, 18>33, 32>50, 15>24, 33>36, 24>32], [36>50, 18>32, 18<24, 2<32, 2>1], [ (36, 3), (2, 3), (50, 2), (1, 3), (19, 2), (18, 2), (32, 1), (15, 2), (33, 4), (24, 2)], [ (36>50, 2), (18>32, 4), (18<24, 3), (2<32, 4), (2>1, 3)])).

test(9, (50, 750, [<, >]), (10, 5, 4), ([46, 24, 20, 36, 18, 43, 47, 22, 45, 26], [24>43, 24>47, 20>47, 20>22, 36>47, 18>36, 18>43, 18>26, 43>46, 22>46, 45>46, 26>46, 26>43], [46<36, 24<47, 36<18, 24>43, 47>45], [ (46, 2), (24, 4), (20, 2), (36, 3), (18, 3), (43, 1), (47, 2), (22, 2), (45, 3), (26, 2)], [ (46<36, 1), (24<47, 4), (36<18, 3), (24>43, 1), (47>45, 1)])).

test(10, (50, 750, [<, >]), (10, 5, 4), ([21, 27, 45, 40, 14, 46, 2, 6, 32, 47], [21>45, 21>40, 21>46, 27>46, 14>21, 14>40, 46>47, 2>32, 2>47, 6>21, 6>45, 32>45], [27<2, 32>47, 21>2, 21>47, 21<46], [ (21, 1), (27, 1), (45, 3), (40, 2), (14, 3), (46, 2), (2, 2), (6, 1), (32, 1), (47, 2)], [ (27<2, 3), (32>47, 2), (21>2, 2), (21>47, 3), (21<46, 4)])).

%% 50, 750, [<, >]
%% 15, 20, 4

test(1, (50, 750, [<, >]), (15, 20, 4), ([25, 50, 9, 18, 42, 8, 45, 14, 26, 41, 30, 38, 12, 29, 24], [25>42, 25>26, 25>41, 25>29, 9>14, 9>26, 9>30, 9>29, 18>41, 18>30, 18>38, 18>29, 42>50, 8>14, 8>29, 45>50, 14>42, 14>45, 14>38, 14>24, 26>30, 26>38, 41>50, 30>38, 38>50, 12>42, 12>26, 29>50, 29>42, 29>45, 24>41, 24>29], [8<12, 42<30, 25<45, 8<30, 18>29, 42>38, 42<14, 8<29, 9<26, 25>30, 25>14, 18<38, 9>42, 8<38, 50<26, 26<29, 14>29, 14>26, 45>38, 25<38], [ (25, 3), (50, 1), (9, 3), (18, 1), (42, 3), (8, 2), (45, 4), (14, 4), (26, 1), (41, 4), (30, 2), (38, 1), (12, 3), (29, 3), (24, 4)], [ (8<12, 3), (42<30, 2), (25<45, 4), (8<30, 3), (18>29, 4), (42>38, 3), (42<14, 3), (8<29, 4), (9<26, 3), (25>30, 2), (25>14, 1), (18<38, 3), (9>42, 1), (8<38, 3), (50<26, 3), (26<29, 4), (14>29, 3), (14>26, 3), (45>38, 4), (25<38, 1)])).

test(2, (50, 750, [<, >]), (15, 20, 4), ([3, 14, 17, 26, 11, 40, 28, 21, 36, 23, 49, 18, 1, 24, 29], [3>26, 3>18, 3>29, 14>29, 17>40, 17>23, 26>49, 26>29, 11>17, 11>26, 11>18, 11>29, 21>36, 36>49, 23>26, 23>36, 23>49, 23>29, 18>26, 18>40, 18>28, 18>24, 1>14, 1>18, 1>29, 24>36, 29>40, 29>49], [21>1, 40>28, 14<17, 3<11, 36<49, 28>1, 3<21, 49>29, 14<36, 1>24, 11<23, 24>29, 17>24, 28>24, 40>24, 11<18, 14>18, 11>21, 11<49, 28>21], [ (3, 2), (14, 2), (17, 4), (26, 4), (11, 3), (40, 1), (28, 4), (21, 1), (36, 2), (23, 3), (49, 3), (18, 4), (1, 4), (24, 1), (29, 4)], [ (21>1, 2), (40>28, 2), (14<17, 3), (3<11, 4), (36<49, 2), (28>1, 1), (3<21, 3), (49>29, 2), (14<36, 3), (1>24, 1), (11<23, 3), (24>29, 3), (17>24, 4), (28>24, 4), (40>24, 4), (11<18, 1), (14>18, 1), (11>21, 1), (11<49, 3), (28>21, 1)])).

test(3, (50, 750, [<, >]), (15, 20, 4), ([18, 46, 36, 12, 37, 9, 23, 28, 45, 21, 2, 35, 32, 19, 40], [18>45, 18>35, 18>40, 36>37, 12>36, 12>37, 12>23, 12>28, 12>19, 12>40, 37>40, 9>46, 9>36, 9>37, 9>45, 9>32, 23>28, 23>45, 23>35, 23>40, 28>40, 21>37, 21>45, 21>40, 2>46, 2>45, 2>32, 2>40, 35>36, 32>45, 32>40, 19>46, 19>37, 19>35, 19>40], [37>19, 23>19, 36>2, 37<28, 28<40, 46>40, 18<45, 46<37, 21<40, 45>40, 18<32, 2<32, 46<45, 37<2, 9>28, 28>32, 12>28, 18<35, 12<21, 12>35], [ (18, 2), (46, 3), (36, 3), (12, 2), (37, 4), (9, 4), (23, 3), (28, 2), (45, 1), (21, 4), (2, 4), (35, 2), (32, 1), (19, 3), (40, 2)], [ (37>19, 3), (23>19, 4), (36>2, 1), (37<28, 4), (28<40, 2), (46>40, 1), (18<45, 3), (46<37, 1), (21<40, 1), (45>40, 3), (18<32, 4), (2<32, 2), (46<45, 4), (37<2, 2), (9>28, 2), (28>32, 3), (12>28, 1), (18<35, 1), (12<21, 3), (12>35, 3)])).

test(4, (50, 750, [<, >]), (15, 20, 4), ([14, 35, 23, 44, 41, 37, 22, 20, 3, 8, 17, 34, 1, 31, 24], [14>35, 14>41, 14>20, 23>35, 23>37, 23>24, 41>44, 37>44, 22>44, 22>37, 20>23, 20>37, 3>44, 3>41, 3>22, 8>35, 8>44, 8>41, 8>37, 8>22, 8>20, 17>41, 17>37, 34>35, 34>44, 1>41, 1>3, 1>17, 1>34, 1>31, 31>44, 31>41, 24>44, 24>34], [35<8, 14<34, 23<17, 41<8, 41>31, 41>34, 37<20, 14<20, 3>8, 37<24, 44>37, 3<17, 41<37, 17<24, 23>3, 14<22, 44>22, 37<17, 44>17, 23>31], [ (14, 4), (35, 2), (23, 4), (44, 1), (41, 4), (37, 2), (22, 3), (20, 4), (3, 2), (8, 2), (17, 2), (34, 1), (1, 4), (31, 2), (24, 4)], [ (35<8, 1), (14<34, 2), (23<17, 2), (41<8, 3), (41>31, 2), (41>34, 4), (37<20, 1), (14<20, 3), (3>8, 3), (37<24, 1), (44>37, 4), (3<17, 3), (41<37, 3), (17<24, 3), (23>3, 3), (14<22, 3), (44>22, 4), (37<17, 4), (44>17, 2), (23>31, 2)])).

test(5, (50, 750, [<, >]), (15, 20, 4), ([32, 45, 27, 34, 40, 23, 36, 8, 38, 1, 28, 19, 4, 22, 35], [32>36, 32>38, 27>34, 27>38, 27>35, 34>36, 23>45, 23>40, 23>38, 23>28, 8>32, 8>36, 8>19, 8>22, 38>45, 38>40, 1>34, 1>40, 1>8, 1>22, 1>35, 28>32, 28>38, 19>32, 19>38, 19>35, 4>34, 22>27, 22>34], [8>35, 19<22, 36<4, 8<38, 19<35, 34>23, 45<40, 32<4, 34>19, 36<38, 32<40, 40>38, 27<38, 23<4, 38<19, 32>36, 34>40, 45<35, 34<36, 8>4], [ (32, 1), (45, 1), (27, 3), (34, 1), (40, 1), (23, 3), (36, 4), (8, 2), (38, 3), (1, 2), (28, 1), (19, 4), (4, 2), (22, 2), (35, 4)], [ (8>35, 4), (19<22, 4), (36<4, 1), (8<38, 1), (19<35, 4), (34>23, 4), (45<40, 3), (32<4, 1), (34>19, 4), (36<38, 2), (32<40, 4), (40>38, 4), (27<38, 4), (23<4, 4), (38<19, 4), (32>36, 2), (34>40, 3), (45<35, 3), (34<36, 3), (8>4, 3)])).

test(6, (50, 750, [<, >]), (15, 20, 4), ([8, 19, 41, 33, 38, 40, 2, 25, 10, 36, 37, 9, 7, 15, 49], [8>9, 8>49, 19>33, 19>38, 19>25, 19>49, 41>49, 33>38, 33>36, 33>49, 38>41, 2>38, 2>10, 2>9, 2>7, 25>41, 25>36, 25>49, 10>41, 10>38, 36>38, 36>40, 37>41, 37>38, 9>25, 9>10, 9>49, 7>15, 7>49, 15>19, 15>40], [25>9, 7>15, 8<19, 41<9, 36>37, 25>15, 19>37, 2<10, 37>9, 40<7, 40>36, 2<9, 33>25, 10<36, 33>40, 38<7, 33<9, 8<41, 19>15, 37<7], [ (8, 3), (19, 4), (41, 1), (33, 3), (38, 2), (40, 1), (2, 2), (25, 4), (10, 2), (36, 3), (37, 4), (9, 2), (7, 3), (15, 2), (49, 1)], [ (25>9, 1), (7>15, 4), (8<19, 2), (41<9, 3), (36>37, 3), (25>15, 1), (19>37, 1), (2<10, 2), (37>9, 2), (40<7, 3), (40>36, 1), (2<9, 3), (33>25, 3), (10<36, 2), (33>40, 1), (38<7, 3), (33<9, 4), (8<41, 4), (19>15, 1), (37<7, 1)])).

test(7, (50, 750, [<, >]), (15, 20, 4), ([44, 37, 39, 42, 15, 21, 10, 6, 28, 40, 36, 49, 30, 41, 31], [37>49, 37>41, 39>49, 42>44, 15>37, 15>42, 15>21, 15>30, 15>31, 21>42, 21>36, 21>49, 21>30, 21>41, 10>39, 10>21, 10>40, 6>39, 6>40, 6>49, 6>41, 28>37, 28>39, 28>42, 28>30, 40>49, 36>44, 36>49, 30>40, 30>36, 30>41, 41>49, 31>42, 31>49], [49<41, 44<6, 39>30, 28<30, 37<10, 42>31, 44<31, 39>21, 21<6, 15<6, 15>40, 42<15, 21>49, 42<28, 15<41, 42<36, 39>49, 10<40, 28>41, 44<49], [ (44, 1), (37, 4), (39, 1), (42, 2), (15, 3), (21, 3), (10, 3), (6, 2), (28, 1), (40, 3), (36, 4), (49, 2), (30, 3), (41, 2), (31, 2)], [ (49<41, 4), (44<6, 3), (39>30, 4), (28<30, 2), (37<10, 3), (42>31, 4), (44<31, 4), (39>21, 4), (21<6, 4), (15<6, 2), (15>40, 1), (42<15, 3), (21>49, 3), (42<28, 2), (15<41, 1), (42<36, 2), (39>49, 1), (10<40, 2), (28>41, 3), (44<49, 1)])).

test(8, (50, 750, [<, >]), (15, 20, 4), ([21, 3, 15, 39, 25, 7, 46, 47, 45, 38, 44, 23, 28, 26, 12], [3>21, 3>7, 3>44, 3>12, 15>46, 15>23, 39>45, 25>39, 25>46, 25>44, 25>28, 25>26, 7>15, 38>39, 44>45, 23>25, 23>44, 28>46, 28>44, 26>44, 12>15, 12>46, 12>47, 12>28, 12>26], [47>28, 26>12, 44<12, 39>46, 38<44, 3>39, 21<15, 45<26, 44>26, 25<38, 25>26, 39<47, 47<23, 3<44, 47<45, 25>23, 28>12, 46<26, 21>3, 7<46], [ (21, 3), (3, 3), (15, 3), (39, 3), (25, 4), (7, 2), (46, 2), (47, 4), (45, 2), (38, 1), (44, 2), (23, 1), (28, 2), (26, 3), (12, 2)], [ (47>28, 1), (26>12, 2), (44<12, 4), (39>46, 3), (38<44, 3), (3>39, 4), (21<15, 3), (45<26, 2), (44>26, 4), (25<38, 4), (25>26, 2), (39<47, 3), (47<23, 1), (3<44, 2), (47<45, 4), (25>23, 1), (28>12, 3), (46<26, 4), (21>3, 3), (7<46, 3)])).

test(9, (50, 750, [<, >]), (15, 20, 4), ([14, 46, 11, 26, 12, 29, 31, 41, 48, 22, 24, 27, 38, 34, 43], [14>29, 14>22, 14>38, 14>43, 11>14, 11>46, 11>24, 11>27, 26>29, 12>26, 12>43, 29>31, 29>41, 31>48, 22>26, 22>31, 22>27, 24>46, 24>26, 24>41, 24>43, 27>29, 27>41, 38>48, 38>43, 34>41, 34>48, 34>38, 34>43, 43>48], [14<27, 46>41, 48<24, 14>22, 31<43, 46>31, 14<43, 11>43, 26>48, 46>22, 46>34, 14<31, 31>41, 12<34, 22<34, 46>24, 29<22, 22<24, 31>34, 12>27], [ (14, 3), (46, 4), (11, 4), (26, 3), (12, 3), (29, 3), (31, 1), (41, 1), (48, 3), (22, 2), (24, 4), (27, 3), (38, 1), (34, 4), (43, 2)], [ (14<27, 2), (46>41, 3), (48<24, 4), (14>22, 4), (31<43, 1), (46>31, 3), (14<43, 1), (11>43, 3), (26>48, 1), (46>22, 4), (46>34, 1), (14<31, 2), (31>41, 3), (12<34, 1), (22<34, 1), (46>24, 2), (29<22, 1), (22<24, 3), (31>34, 1), (12>27, 1)])).

test(10, (50, 750, [<, >]), (15, 20, 4), ([49, 17, 34, 46, 11, 28, 2, 21, 13, 42, 33, 24, 36, 6, 50], [17>49, 17>21, 17>33, 17>24, 17>50, 34>42, 34>50, 11>49, 11>21, 11>33, 11>36, 2>17, 2>13, 2>24, 2>50, 21>34, 13>42, 13>33, 13>24, 33>34, 33>46, 33>42, 24>42, 24>33, 24>36, 36>46, 6>34, 6>28, 6>36], [17>33, 42>36, 17>2, 34<6, 34>50, 13>6, 17>50, 46>50, 17<42, 21>13, 24>6, 17>46, 33<6, 46<36, 21>6, 33>24, 13<50, 49>46, 2>24, 21<33], [ (49, 3), (17, 1), (34, 3), (46, 2), (11, 4), (28, 3), (2, 2), (21, 3), (13, 3), (42, 2), (33, 4), (24, 2), (36, 3), (6, 1), (50, 1)], [ (17>33, 3), (42>36, 3), (17>2, 4), (34<6, 3), (34>50, 3), (13>6, 3), (17>50, 1), (46>50, 2), (17<42, 1), (21>13, 2), (24>6, 2), (17>46, 1), (33<6, 4), (46<36, 4), (21>6, 1), (33>24, 2), (13<50, 2), (49>46, 1), (2>24, 4), (21<33, 1)])).

%% 50, 750, [<, >]
%% 20, 10, 4

test(1, (50, 750, [<, >]), (20, 10, 4), ([40, 30, 39, 13, 12, 9, 26, 5, 7, 8, 34, 14, 15, 24, 16, 21, 38, 29, 37, 3], [30>39, 30>37, 39>40, 13>34, 13>21, 12>34, 12>14, 12>15, 12>16, 9>39, 9>26, 9>14, 9>15, 26>40, 26>39, 26>29, 5>30, 5>39, 5>13, 5>14, 5>24, 5>16, 7>40, 7>30, 7>12, 7>26, 7>14, 7>21, 7>38, 8>40, 34>40, 14>24, 14>16, 14>21, 14>38, 14>29, 15>34, 15>38, 15>37, 24>40, 24>39, 24>26, 24>29, 24>37, 16>40, 16>30, 16>38, 16>29, 21>26, 21>24, 21>37, 29>39, 29>34, 29>38, 29>37, 37>40, 37>39, 3>5, 3>15, 3>24, 3>29, 3>37], [26>34, 8<21, 9<16, 29<37, 14<24, 7<15, 30<8, 34>29, 24<21, 40<7], [ (40, 1), (30, 2), (39, 2), (13, 1), (12, 3), (9, 3), (26, 2), (5, 4), (7, 1), (8, 4), (34, 3), (14, 3), (15, 4), (24, 1), (16, 2), (21, 1), (38, 4), (29, 1), (37, 3), (3, 1)], [ (26>34, 1), (8<21, 4), (9<16, 3), (29<37, 4), (14<24, 2), (7<15, 3), (30<8, 3), (34>29, 2), (24<21, 3), (40<7, 1)])).

test(2, (50, 750, [<, >]), (20, 10, 4), ([22, 11, 30, 3, 18, 9, 28, 36, 33, 19, 45, 26, 37, 6, 47, 16, 35, 49, 15, 1], [22>36, 22>49, 11>19, 11>26, 11>37, 11>16, 11>35, 30>36, 30>45, 3>22, 3>9, 3>36, 3>45, 3>26, 3>6, 3>47, 18>28, 18>19, 18>37, 9>22, 9>30, 9>18, 9>28, 9>49, 36>47, 19>22, 19>28, 45>49, 26>45, 26>47, 26>49, 6>11, 6>28, 6>19, 6>45, 6>37, 6>49, 16>22, 16>18, 16>37, 35>45, 35>49, 15>30, 15>45, 15>35, 15>49, 1>30, 1>18, 1>6, 1>47, 1>35, 1>15], [9<6, 9<28, 30>28, 45<6, 49>15, 28<37, 22<18, 6<47, 47<35, 6<15], [ (22, 3), (11, 2), (30, 2), (3, 3), (18, 3), (9, 4), (28, 3), (36, 2), (33, 4), (19, 4), (45, 2), (26, 1), (37, 4), (6, 4), (47, 1), (16, 2), (35, 4), (49, 1), (15, 2), (1, 2)], [ (9<6, 3), (9<28, 2), (30>28, 3), (45<6, 1), (49>15, 2), (28<37, 4), (22<18, 2), (6<47, 3), (47<35, 1), (6<15, 1)])).

test(3, (50, 750, [<, >]), (20, 10, 4), ([21, 33, 46, 16, 35, 18, 41, 1, 19, 40, 12, 25, 42, 31, 23, 37, 36, 24, 5, 2], [21>33, 21>35, 21>25, 21>23, 33>41, 33>36, 16>40, 16>23, 16>37, 35>41, 35>40, 18>21, 18>40, 18>23, 18>24, 1>33, 1>35, 1>18, 1>12, 1>42, 1>23, 19>40, 19>42, 19>37, 40>46, 40>42, 12>46, 12>19, 12>40, 12>25, 12>31, 25>31, 25>36, 31>33, 31>46, 31>41, 31>40, 23>33, 23>41, 23>40, 23>25, 23>42, 23>31, 23>37, 37>41, 37>40, 37>42, 36>37, 24>33, 24>35, 24>31, 5>46, 5>19, 5>42, 5>37, 5>36, 2>33, 2>16, 2>18, 2>19, 2>40, 2>25, 2>42], [33<1, 19>40, 35<2, 41<40, 1<2, 16>40, 37>36, 21>31, 31<23, 33<40], [ (21, 3), (33, 1), (46, 3), (16, 2), (35, 4), (18, 3), (41, 1), (1, 3), (19, 2), (40, 1), (12, 3), (25, 4), (42, 4), (31, 2), (23, 4), (37, 4), (36, 3), (24, 3), (5, 2), (2, 1)], [ (33<1, 2), (19>40, 1), (35<2, 3), (41<40, 2), (1<2, 1), (16>40, 3), (37>36, 4), (21>31, 1), (31<23, 2), (33<40, 1)])).

test(4, (50, 750, [<, >]), (20, 10, 4), ([18, 8, 37, 11, 19, 46, 50, 33, 13, 7, 14, 20, 6, 28, 32, 25, 34, 22, 23, 10], [18>37, 18>19, 18>50, 18>33, 18>32, 8>18, 8>37, 8>19, 8>46, 8>50, 8>28, 8>22, 8>23, 11>33, 11>14, 11>22, 19>25, 19>34, 33>37, 13>18, 13>46, 13>50, 7>8, 7>19, 7>28, 7>32, 7>25, 14>28, 14>32, 14>25, 14>22, 14>23, 20>33, 20>25, 6>19, 6>32, 28>50, 25>37, 25>33, 25>34, 34>46, 22>50, 22>33, 22>28, 22>32, 23>37, 23>33, 23>28, 23>32, 23>25, 10>46, 10>28, 10>22, 10>23], [8<10, 8>6, 6>34, 37>19, 7>6, 50>32, 11<50, 18<23, 46<6, 8<19], [ (18, 2), (8, 1), (37, 1), (11, 2), (19, 4), (46, 3), (50, 1), (33, 1), (13, 4), (7, 4), (14, 3), (20, 1), (6, 2), (28, 3), (32, 1), (25, 2), (34, 2), (22, 1), (23, 2), (10, 3)], [ (8<10, 1), (8>6, 2), (6>34, 1), (37>19, 1), (7>6, 2), (50>32, 2), (11<50, 4), (18<23, 4), (46<6, 1), (8<19, 2)])).

test(5, (50, 750, [<, >]), (20, 10, 4), ([4, 50, 41, 48, 6, 35, 7, 46, 11, 31, 39, 37, 18, 1, 28, 5, 3, 27, 10, 34], [4>6, 4>46, 4>39, 4>5, 4>10, 48>50, 6>39, 6>37, 6>28, 6>27, 35>50, 35>41, 35>37, 7>35, 7>11, 7>39, 7>18, 7>27, 7>10, 11>37, 31>50, 31>37, 31>34, 37>39, 18>48, 18>37, 18>27, 1>4, 1>50, 1>6, 1>35, 1>7, 1>11, 1>31, 1>18, 28>41, 28>46, 28>31, 28>37, 5>11, 5>10, 3>48, 3>35, 3>31, 3>37, 27>50, 27>35, 27>31, 10>41, 10>31, 10>18, 10>34, 34>48, 34>35], [41>39, 5<27, 39>28, 31>34, 18<28, 41<6, 7>39, 6>7, 4>46, 50>7], [ (4, 1), (50, 3), (41, 2), (48, 2), (6, 3), (35, 4), (7, 3), (46, 2), (11, 2), (31, 1), (39, 4), (37, 4), (18, 3), (1, 3), (28, 3), (5, 2), (3, 2), (27, 3), (10, 2), (34, 3)], [ (41>39, 2), (5<27, 3), (39>28, 4), (31>34, 4), (18<28, 2), (41<6, 2), (7>39, 1), (6>7, 2), (4>46, 2), (50>7, 4)])).

test(6, (50, 750, [<, >]), (20, 10, 4), ([50, 19, 9, 35, 41, 2, 17, 16, 21, 43, 5, 36, 20, 32, 30, 25, 8, 47, 44, 48], [19>32, 19>25, 19>47, 9>50, 9>19, 9>21, 9>36, 9>20, 9>30, 9>25, 35>41, 41>50, 41>47, 2>50, 2>43, 2>20, 2>25, 2>8, 2>47, 2>44, 17>35, 17>20, 16>50, 16>17, 16>36, 16>48, 21>41, 21>36, 21>32, 43>50, 43>48, 5>35, 5>17, 5>8, 36>50, 36>43, 36>48, 20>21, 20>32, 20>25, 20>47, 20>44, 32>36, 30>32, 30>48, 25>35, 25>43, 25>32, 8>50, 47>50], [21<47, 16>25, 19>41, 50>41, 21<5, 21>8, 41<44, 41<36, 43>36, 41>48], [ (50, 4), (19, 1), (9, 2), (35, 2), (41, 1), (2, 3), (17, 2), (16, 3), (21, 3), (43, 3), (5, 4), (36, 3), (20, 2), (32, 1), (30, 4), (25, 4), (8, 3), (47, 4), (44, 1), (48, 1)], [ (21<47, 3), (16>25, 2), (19>41, 4), (50>41, 4), (21<5, 1), (21>8, 3), (41<44, 2), (41<36, 2), (43>36, 4), (41>48, 1)])).

test(7, (50, 750, [<, >]), (20, 10, 4), ([4, 44, 18, 36, 35, 29, 28, 16, 27, 32, 45, 8, 2, 40, 23, 42, 22, 9, 10, 43], [4>18, 4>29, 4>32, 4>42, 18>44, 18>35, 18>27, 18>45, 18>40, 36>45, 36>42, 35>40, 35>42, 29>35, 29>32, 29>40, 28>35, 28>40, 28>43, 16>44, 16>18, 16>27, 16>32, 16>40, 27>44, 27>35, 27>28, 27>32, 27>40, 27>43, 32>44, 32>36, 8>44, 8>35, 8>16, 8>40, 2>44, 2>35, 2>28, 2>27, 2>42, 2>22, 2>43, 40>44, 23>35, 23>32, 23>45, 23>42, 23>43, 42>45, 22>44, 22>28, 22>23, 22>43, 9>16, 9>27, 9>45, 10>36, 10>16, 10>32, 10>40, 10>23], [27<45, 32<22, 23>10, 35>27, 32>45, 28>9, 16>43, 27>32, 4>10, 23>22], [ (4, 4), (44, 3), (18, 4), (36, 3), (35, 4), (29, 1), (28, 3), (16, 1), (27, 1), (32, 3), (45, 2), (8, 2), (2, 4), (40, 1), (23, 2), (42, 3), (22, 1), (9, 1), (10, 3), (43, 4)], [ (27<45, 2), (32<22, 4), (23>10, 2), (35>27, 4), (32>45, 4), (28>9, 3), (16>43, 4), (27>32, 1), (4>10, 3), (23>22, 3)])).

test(8, (50, 750, [<, >]), (20, 10, 4), ([34, 49, 26, 45, 12, 48, 47, 30, 40, 36, 1, 4, 2, 7, 8, 19, 41, 20, 6, 50], [34>40, 34>36, 45>47, 12>30, 12>19, 48>50, 30>50, 40>47, 36>49, 36>47, 1>26, 1>45, 1>48, 1>40, 1>41, 1>50, 4>34, 4>47, 4>30, 4>50, 2>26, 2>45, 2>7, 2>41, 2>6, 7>34, 7>49, 7>26, 7>47, 7>8, 7>50, 8>49, 8>45, 8>48, 8>47, 8>30, 8>20, 19>34, 19>30, 20>49, 20>48, 20>47, 20>30, 20>41, 6>47, 6>50], [48>36, 36<1, 12<20, 41<50, 45<2, 8<6, 12<1, 45<4, 48<40, 48>8], [ (34, 2), (49, 3), (26, 4), (45, 4), (12, 4), (48, 2), (47, 4), (30, 2), (40, 4), (36, 3), (1, 3), (4, 4), (2, 4), (7, 2), (8, 2), (19, 2), (41, 3), (20, 3), (6, 3), (50, 1)], [ (48>36, 2), (36<1, 4), (12<20, 2), (41<50, 1), (45<2, 3), (8<6, 2), (12<1, 3), (45<4, 2), (48<40, 4), (48>8, 3)])).

test(9, (50, 750, [<, >]), (20, 10, 4), ([41, 17, 23, 49, 14, 19, 37, 24, 8, 32, 40, 12, 22, 47, 42, 36, 13, 35, 43, 44], [41>42, 41>43, 17>23, 17>37, 17>22, 17>35, 17>44, 23>49, 23>32, 23>47, 23>42, 23>35, 23>43, 14>17, 14>19, 14>22, 19>49, 19>37, 19>32, 19>47, 19>35, 19>43, 37>43, 24>40, 24>36, 24>43, 8>49, 8>37, 8>40, 8>42, 8>35, 32>43, 12>41, 12>22, 12>13, 12>43, 22>41, 22>49, 22>37, 42>44, 36>42, 36>43, 36>44, 13>14, 13>19, 13>37, 13>40, 13>22, 13>36, 35>41, 35>47, 35>36, 35>44, 43>49, 43>47, 43>44], [14>43, 23<42, 37<24, 14<42, 17>22, 22>13, 40>36, 32<42, 49>12, 19>36], [ (41, 3), (17, 1), (23, 4), (49, 4), (14, 2), (19, 4), (37, 4), (24, 3), (8, 3), (32, 3), (40, 1), (12, 4), (22, 2), (47, 2), (42, 2), (36, 4), (13, 3), (35, 3), (43, 2), (44, 1)], [ (14>43, 4), (23<42, 1), (37<24, 3), (14<42, 3), (17>22, 4), (22>13, 4), (40>36, 2), (32<42, 2), (49>12, 3), (19>36, 2)])).

test(10, (50, 750, [<, >]), (20, 10, 4), ([31, 32, 50, 12, 41, 35, 36, 34, 39, 26, 16, 49, 43, 7, 18, 10, 9, 6, 38, 5], [31>39, 31>49, 31>38, 32>50, 32>41, 32>35, 32>39, 12>34, 12>38, 41>43, 35>49, 35>43, 36>39, 36>49, 36>38, 34>41, 34>35, 34>39, 34>49, 34>43, 26>35, 26>38, 7>34, 18>32, 18>50, 18>36, 10>31, 10>12, 10>36, 10>16, 10>49, 9>35, 9>26, 9>18, 6>32, 6>41, 6>16, 6>10, 6>38, 38>49, 38>43, 5>32, 5>12, 5>36, 5>39, 5>49, 5>10, 5>9, 5>6], [50>6, 26>9, 12>41, 32<5, 34>43, 7>38, 12>43, 32>10, 50<41, 12>18], [ (31, 4), (32, 1), (50, 4), (12, 1), (41, 1), (35, 2), (36, 1), (34, 4), (39, 4), (26, 4), (16, 2), (49, 2), (43, 1), (7, 2), (18, 2), (10, 4), (9, 2), (6, 4), (38, 2), (5, 4)], [ (50>6, 4), (26>9, 1), (12>41, 2), (32<5, 2), (34>43, 3), (7>38, 2), (12>43, 1), (32>10, 4), (50<41, 3), (12>18, 1)])).

%% 50, 750, [<, >]
%% 25, 40, 4

test(1, (50, 750, [<, >]), (25, 40, 4), ([28, 3, 20, 27, 12, 16, 41, 26, 32, 23, 14, 33, 44, 50, 22, 36, 34, 35, 1, 46, 6, 10, 49, 40, 29], [28>41, 28>33, 28>46, 28>29, 3>12, 3>32, 3>36, 3>40, 20>27, 20>26, 20>23, 20>33, 20>35, 20>49, 20>29, 27>28, 27>32, 27>36, 27>35, 27>46, 12>20, 12>27, 12>26, 12>50, 12>36, 12>35, 12>46, 16>20, 16>34, 16>35, 16>40, 41>44, 41>50, 41>49, 26>41, 26>32, 26>33, 26>44, 26>36, 26>46, 26>49, 32>41, 32>44, 32>34, 23>27, 23>26, 23>33, 23>44, 23>36, 23>34, 23>35, 23>49, 23>40, 14>20, 14>32, 14>50, 14>34, 14>46, 14>40, 14>29, 33>41, 33>44, 33>50, 33>36, 33>49, 22>41, 22>32, 22>23, 22>50, 22>49, 36>41, 36>50, 36>49, 34>41, 34>44, 34>36, 34>40, 35>41, 35>49, 35>40, 1>28, 1>20, 1>41, 1>6, 6>16, 6>50, 6>36, 6>49, 6>40, 10>20, 10>27, 10>32, 10>14, 10>33, 10>44, 10>46, 29>33, 29>50, 29>36, 29>34], [26>44, 16>26, 33<49, 41<29, 33>34, 3>36, 41<50, 3>33, 27<46, 27<35, 12>41, 28>12, 3<10, 28<16, 32<10, 44>50, 32<29, 28>34, 12>26, 6>29, 3<46, 50>40, 27>36, 41>35, 14>10, 1<6, 16>1, 28<6, 14>33, 46>10, 32<23, 35<49, 20>22, 46>40, 28>1, 16>23, 35>40, 14<40, 44>1, 34<40], [ (28, 2), (3, 2), (20, 1), (27, 4), (12, 1), (16, 4), (41, 3), (26, 4), (32, 2), (23, 3), (14, 4), (33, 3), (44, 4), (50, 1), (22, 1), (36, 4), (34, 4), (35, 1), (1, 2), (46, 3), (6, 3), (10, 3), (49, 2), (40, 3), (29, 1)], [ (26>44, 4), (16>26, 2), (33<49, 3), (41<29, 1), (33>34, 2), (3>36, 2), (41<50, 3), (3>33, 1), (27<46, 4), (27<35, 2), (12>41, 4), (28>12, 4), (3<10, 1), (28<16, 4), (32<10, 3), (44>50, 3), (32<29, 4), (28>34, 1), (12>26, 1), (6>29, 1), (3<46, 2), (50>40, 2), (27>36, 2), (41>35, 2), (14>10, 3), (1<6, 2), (16>1, 3), (28<6, 1), (14>33, 1), (46>10, 2), (32<23, 4), (35<49, 2), (20>22, 4), (46>40, 4), (28>1, 2), (16>23, 1), (35>40, 1), (14<40, 2), (44>1, 3), (34<40, 2)])).

test(2, (50, 750, [<, >]), (25, 40, 4), ([29, 19, 39, 6, 25, 47, 49, 34, 14, 42, 2, 41, 48, 21, 30, 28, 20, 23, 9, 17, 24, 10, 4, 36, 45], [29>39, 29>47, 29>48, 29>45, 19>29, 19>25, 19>47, 19>34, 19>28, 19>20, 39>41, 6>25, 6>34, 6>42, 6>41, 6>28, 6>36, 25>29, 25>49, 25>42, 25>41, 25>48, 25>28, 25>36, 34>47, 34>42, 34>36, 34>45, 14>29, 14>19, 14>39, 14>25, 14>49, 14>34, 14>42, 14>21, 14>20, 14>24, 14>45, 2>19, 2>39, 2>25, 2>34, 2>42, 2>48, 2>28, 2>24, 2>10, 2>36, 41>49, 41>42, 41>45, 21>49, 21>41, 21>48, 21>30, 21>28, 21>23, 21>24, 30>34, 28>34, 28>45, 20>47, 20>34, 20>28, 23>39, 23>48, 23>30, 23>28, 9>29, 9>47, 9>42, 9>28, 9>45, 17>34, 17>48, 17>36, 17>45, 24>39, 24>25, 24>42, 24>36, 24>45, 10>47, 10>21, 10>30, 10>23, 4>29, 4>19, 4>6, 4>49, 4>34, 4>14, 4>42, 4>48, 4>28, 4>23, 4>9, 36>49, 36>42], [6<30, 28>20, 47<21, 9<4, 17>45, 28>4, 29<28, 14>2, 14<10, 25>23, 28<17, 2>23, 34<41, 42>4, 34<30, 6<4, 42>28, 24>45, 29>34, 9<17, 6<10, 21<36, 25<2, 41>17, 48<23, 19>21, 24<36, 6>48, 34<36, 23>24, 47>28, 20<36, 39<20, 30<36, 41<30, 2<41, 29>23, 10<36, 29>25, 29>4], [ (29, 4), (19, 4), (39, 1), (6, 1), (25, 4), (47, 4), (49, 1), (34, 3), (14, 4), (42, 2), (2, 3), (41, 2), (48, 3), (21, 1), (30, 1), (28, 3), (20, 4), (23, 4), (9, 4), (17, 2), (24, 1), (10, 3), (4, 3), (36, 1), (45, 2)], [ (6<30, 1), (28>20, 2), (47<21, 4), (9<4, 3), (17>45, 1), (28>4, 4), (29<28, 2), (14>2, 4), (14<10, 4), (25>23, 2), (28<17, 2), (2>23, 1), (34<41, 2), (42>4, 1), (34<30, 2), (6<4, 3), (42>28, 3), (24>45, 3), (29>34, 1), (9<17, 2), (6<10, 3), (21<36, 3), (25<2, 1), (41>17, 1), (48<23, 4), (19>21, 4), (24<36, 3), (6>48, 1), (34<36, 3), (23>24, 1), (47>28, 3), (20<36, 1), (39<20, 4), (30<36, 3), (41<30, 3), (2<41, 4), (29>23, 1), (10<36, 1), (29>25, 3), (29>4, 4)])).

test(3, (50, 750, [<, >]), (25, 40, 4), ([3, 43, 26, 9, 36, 50, 28, 48, 1, 25, 30, 22, 5, 47, 21, 23, 4, 33, 20, 17, 29, 15, 8, 45, 10], [3>28, 3>25, 3>30, 3>22, 3>33, 3>45, 43>47, 26>28, 26>47, 9>21, 9>23, 9>20, 9>15, 9>10, 36>48, 36>45, 28>30, 28>29, 1>36, 1>50, 1>28, 1>4, 25>36, 25>28, 25>48, 25>45, 30>47, 22>36, 22>50, 22>48, 5>26, 5>9, 5>50, 5>21, 5>29, 5>15, 47>50, 21>26, 21>48, 21>30, 21>29, 21>45, 23>25, 23>47, 4>26, 4>50, 4>22, 4>47, 4>17, 4>29, 33>43, 33>48, 20>43, 17>43, 17>26, 17>48, 17>33, 17>20, 29>43, 29>50, 29>30, 29>45, 15>43, 15>36, 15>45, 8>26, 8>9, 8>28, 8>48, 8>30, 8>15, 45>50, 45>47, 10>26, 10>36, 10>48, 10>25, 10>20, 10>45], [33>29, 47<45, 29<15, 9>1, 22>21, 23>20, 5>47, 3<36, 22<20, 9<17, 8<45, 30>15, 43>22, 17<29, 33<8, 30<29, 9>21, 1<47, 5<10, 3>17, 36<45, 3>25, 28>47, 3>26, 20<15, 9<10, 50<25, 26>1, 48<10, 50<5, 1<33, 1<8, 4>17, 50<15, 43>29, 9>4, 28<5, 48>25, 30<8, 9>5], [ (3, 2), (43, 1), (26, 2), (9, 4), (36, 4), (50, 3), (28, 4), (48, 4), (1, 1), (25, 3), (30, 2), (22, 2), (5, 3), (47, 1), (21, 1), (23, 1), (4, 2), (33, 3), (20, 4), (17, 3), (29, 1), (15, 3), (8, 3), (45, 1), (10, 3)], [ (33>29, 2), (47<45, 3), (29<15, 1), (9>1, 3), (22>21, 4), (23>20, 2), (5>47, 4), (3<36, 4), (22<20, 2), (9<17, 4), (8<45, 2), (30>15, 4), (43>22, 1), (17<29, 1), (33<8, 4), (30<29, 4), (9>21, 3), (1<47, 4), (5<10, 2), (3>17, 1), (36<45, 1), (3>25, 1), (28>47, 4), (3>26, 2), (20<15, 4), (9<10, 4), (50<25, 2), (26>1, 1), (48<10, 4), (50<5, 2), (1<33, 4), (1<8, 4), (4>17, 2), (50<15, 2), (43>29, 4), (9>4, 1), (28<5, 3), (48>25, 4), (30<8, 1), (9>5, 3)])).

test(4, (50, 750, [<, >]), (25, 40, 4), ([32, 42, 33, 41, 39, 3, 1, 14, 18, 29, 28, 50, 26, 12, 34, 25, 40, 5, 48, 15, 43, 49, 46, 44, 45], [32>42, 32>34, 32>40, 32>43, 32>49, 42>46, 42>44, 33>41, 33>43, 33>46, 33>45, 41>42, 41>50, 41>48, 41>43, 39>48, 39>43, 39>46, 39>45, 3>33, 3>41, 3>18, 3>50, 3>5, 3>15, 3>44, 3>45, 1>42, 1>29, 1>12, 1>40, 1>43, 1>44, 1>45, 14>32, 14>39, 14>28, 14>25, 14>40, 14>45, 18>32, 18>33, 18>29, 18>50, 18>26, 18>34, 18>43, 18>44, 18>45, 29>50, 29>40, 29>43, 29>49, 29>46, 28>42, 28>41, 28>34, 28>48, 26>33, 26>29, 26>50, 26>34, 26>43, 26>49, 12>29, 12>26, 12>43, 34>50, 34>40, 25>40, 25>45, 40>48, 40>44, 5>41, 5>39, 5>14, 5>18, 5>29, 5>28, 5>48, 5>15, 5>49, 5>46, 48>50, 15>42, 15>33, 15>25, 15>49, 15>44, 43>50, 43>44, 43>45, 46>50, 46>48, 46>49, 44>46], [29>49, 50>26, 1<45, 28<15, 14>50, 32<33, 33>5, 48<44, 28>43, 28>46, 33>43, 39<18, 32<18, 14<25, 14<49, 32>5, 29<34, 32>44, 29<50, 18>44, 29>12, 18>12, 14>48, 32<40, 32>15, 3>26, 40<46, 42<50, 39<40, 26<44, 42>29, 43<45, 42>26, 29>25, 50>40, 29<5, 1>49, 29<46, 50>48, 26<45], [ (32, 1), (42, 4), (33, 3), (41, 2), (39, 3), (3, 4), (1, 3), (14, 3), (18, 4), (29, 2), (28, 2), (50, 1), (26, 4), (12, 1), (34, 2), (25, 1), (40, 1), (5, 1), (48, 4), (15, 2), (43, 1), (49, 3), (46, 3), (44, 2), (45, 2)], [ (29>49, 3), (50>26, 1), (1<45, 1), (28<15, 1), (14>50, 3), (32<33, 1), (33>5, 4), (48<44, 3), (28>43, 4), (28>46, 1), (33>43, 4), (39<18, 2), (32<18, 3), (14<25, 2), (14<49, 2), (32>5, 3), (29<34, 1), (32>44, 4), (29<50, 2), (18>44, 1), (29>12, 1), (18>12, 3), (14>48, 3), (32<40, 3), (32>15, 3), (3>26, 3), (40<46, 3), (42<50, 4), (39<40, 3), (26<44, 1), (42>29, 4), (43<45, 1), (42>26, 1), (29>25, 1), (50>40, 3), (29<5, 2), (1>49, 2), (29<46, 3), (50>48, 1), (26<45, 2)])).

test(5, (50, 750, [<, >]), (25, 40, 4), ([50, 40, 29, 30, 11, 13, 41, 16, 49, 31, 45, 7, 36, 8, 27, 48, 10, 25, 33, 6, 21, 39, 15, 17, 2], [40>49, 29>40, 29>31, 29>45, 29>36, 29>48, 29>39, 30>36, 11>13, 11>49, 11>31, 11>27, 11>48, 11>25, 11>33, 13>49, 13>31, 13>48, 13>39, 13>15, 41>50, 41>49, 41>48, 16>40, 16>29, 16>30, 16>49, 16>33, 31>50, 45>49, 45>48, 7>16, 7>27, 7>33, 7>17, 36>41, 8>30, 8>16, 8>31, 8>45, 8>27, 8>33, 8>15, 8>17, 27>50, 27>41, 27>49, 27>48, 27>39, 10>40, 10>49, 10>21, 25>30, 25>49, 33>40, 33>45, 33>48, 33>39, 6>7, 6>25, 6>39, 6>17, 21>30, 21>41, 21>49, 21>27, 39>50, 39>40, 39>41, 15>30, 15>49, 15>31, 15>25, 17>50, 17>29, 17>45, 2>16, 2>49, 2>31, 2>7, 2>8, 2>27, 2>6, 2>39, 2>17], [49<21, 40<8, 29>49, 10>21, 11>6, 41>33, 6>17, 30>21, 16>36, 29<17, 11>15, 48<2, 45<27, 13>21, 16>17, 40<41, 7<17, 6>39, 49<10, 16<25, 27<10, 36<17, 29>7, 41<31, 7<15, 11<39, 45<21, 45>48, 39<17, 11>2, 33<2, 45>10, 30<25, 48<39, 29>15, 8>15, 40>25, 30<17, 50<6, 8>2], [ (50, 1), (40, 2), (29, 1), (30, 4), (11, 1), (13, 3), (41, 2), (16, 4), (49, 4), (31, 4), (45, 4), (7, 2), (36, 4), (8, 4), (27, 3), (48, 4), (10, 2), (25, 4), (33, 1), (6, 1), (21, 1), (39, 4), (15, 2), (17, 2), (2, 4)], [ (49<21, 2), (40<8, 1), (29>49, 1), (10>21, 2), (11>6, 3), (41>33, 2), (6>17, 3), (30>21, 2), (16>36, 2), (29<17, 1), (11>15, 2), (48<2, 1), (45<27, 4), (13>21, 3), (16>17, 3), (40<41, 2), (7<17, 4), (6>39, 4), (49<10, 1), (16<25, 4), (27<10, 4), (36<17, 4), (29>7, 1), (41<31, 1), (7<15, 2), (11<39, 3), (45<21, 2), (45>48, 4), (39<17, 1), (11>2, 2), (33<2, 4), (45>10, 3), (30<25, 1), (48<39, 4), (29>15, 2), (8>15, 4), (40>25, 4), (30<17, 4), (50<6, 4), (8>2, 1)])).

test(6, (50, 750, [<, >]), (25, 40, 4), ([3, 30, 47, 37, 24, 14, 4, 9, 36, 50, 26, 38, 5, 22, 27, 43, 33, 2, 21, 20, 40, 42, 1, 23, 6], [3>37, 3>36, 3>26, 3>38, 3>22, 3>33, 3>20, 30>47, 30>37, 30>50, 30>33, 37>42, 24>36, 24>38, 14>37, 14>36, 14>27, 14>42, 14>23, 4>37, 4>14, 4>9, 4>36, 4>22, 4>40, 9>30, 9>26, 9>38, 9>42, 36>47, 36>50, 36>42, 26>43, 26>40, 38>50, 38>40, 5>37, 5>24, 5>9, 5>38, 5>43, 5>21, 22>30, 22>47, 22>37, 22>38, 22>43, 22>42, 27>30, 27>37, 27>42, 43>47, 2>24, 2>36, 2>20, 2>23, 2>6, 21>30, 21>47, 21>50, 21>22, 21>42, 21>23, 20>37, 20>22, 20>43, 20>42, 40>47, 40>50, 40>43, 42>43, 1>24, 1>9, 1>36, 1>38, 1>22, 1>23, 23>47, 23>50, 23>38, 23>27, 23>43, 23>33, 23>40, 6>37, 6>24, 6>14, 6>9, 6>27, 6>33], [5<21, 20<6, 14<5, 37>2, 26<40, 4<22, 4<26, 30>9, 43>42, 21<6, 24>1, 26>33, 24<42, 3<27, 42<1, 1<23, 43<40, 14<27, 36<38, 36<42, 38<20, 50>22, 24>38, 50<6, 30>23, 3>43, 37<33, 43<21, 9>6, 2>42, 20<40, 47>42, 9<42, 4<42, 24>27, 38>43, 40>1, 27<2, 5<27, 9<21], [ (3, 2), (30, 1), (47, 4), (37, 2), (24, 1), (14, 2), (4, 3), (9, 4), (36, 2), (50, 3), (26, 1), (38, 1), (5, 4), (22, 2), (27, 2), (43, 3), (33, 2), (2, 4), (21, 4), (20, 2), (40, 3), (42, 3), (1, 1), (23, 1), (6, 1)], [ (5<21, 3), (20<6, 1), (14<5, 4), (37>2, 4), (26<40, 3), (4<22, 1), (4<26, 3), (30>9, 3), (43>42, 2), (21<6, 2), (24>1, 2), (26>33, 2), (24<42, 1), (3<27, 1), (42<1, 1), (1<23, 4), (43<40, 2), (14<27, 2), (36<38, 1), (36<42, 2), (38<20, 1), (50>22, 3), (24>38, 3), (50<6, 4), (30>23, 3), (3>43, 4), (37<33, 4), (43<21, 4), (9>6, 3), (2>42, 1), (20<40, 2), (47>42, 2), (9<42, 4), (4<42, 4), (24>27, 3), (38>43, 2), (40>1, 3), (27<2, 1), (5<27, 1), (9<21, 2)])).

test(7, (50, 750, [<, >]), (25, 40, 4), ([49, 7, 20, 21, 28, 2, 36, 39, 37, 29, 3, 46, 5, 8, 14, 6, 4, 9, 48, 15, 10, 23, 38, 35, 50], [49>50, 7>36, 7>10, 7>23, 7>38, 20>36, 20>39, 20>37, 20>46, 20>48, 21>28, 21>39, 28>39, 28>37, 28>50, 2>21, 2>28, 2>39, 2>5, 2>14, 2>38, 2>50, 36>49, 39>49, 39>48, 39>50, 37>50, 29>46, 3>20, 3>28, 3>37, 3>9, 3>38, 46>48, 5>20, 5>28, 5>39, 5>37, 5>9, 5>48, 5>38, 5>50, 8>49, 8>21, 8>46, 8>9, 8>15, 14>49, 14>37, 14>46, 6>20, 6>29, 6>46, 6>8, 6>14, 6>10, 6>23, 6>38, 6>50, 4>49, 4>39, 4>10, 4>50, 9>20, 9>37, 48>49, 48>50, 15>20, 15>28, 15>29, 15>38, 10>20, 10>21, 10>37, 10>15, 10>38, 23>28, 23>38, 23>35, 23>50, 35>49, 35>39, 35>38], [3<10, 49>6, 2<39, 28<8, 6<38, 10>38, 10>23, 20>28, 7>14, 28>5, 5>6, 5<23, 29<6, 29>38, 6>15, 29>48, 29>10, 48<10, 5<50, 21<38, 21>50, 49<9, 3>46, 37>4, 3<8, 28<14, 37>29, 37<5, 38>50, 9>38, 7>21, 20>35, 39>50, 37<38, 39<35, 48<15, 36>15, 36>35, 36>9, 36>29], [ (49, 4), (7, 2), (20, 3), (21, 3), (28, 1), (2, 1), (36, 3), (39, 1), (37, 2), (29, 4), (3, 1), (46, 3), (5, 4), (8, 3), (14, 1), (6, 4), (4, 1), (9, 4), (48, 2), (15, 1), (10, 4), (23, 3), (38, 1), (35, 3), (50, 3)], [ (3<10, 3), (49>6, 3), (2<39, 1), (28<8, 4), (6<38, 2), (10>38, 2), (10>23, 1), (20>28, 3), (7>14, 1), (28>5, 1), (5>6, 1), (5<23, 1), (29<6, 1), (29>38, 2), (6>15, 2), (29>48, 1), (29>10, 3), (48<10, 4), (5<50, 1), (21<38, 1), (21>50, 4), (49<9, 4), (3>46, 3), (37>4, 3), (3<8, 1), (28<14, 3), (37>29, 3), (37<5, 3), (38>50, 4), (9>38, 2), (7>21, 4), (20>35, 1), (39>50, 2), (37<38, 4), (39<35, 4), (48<15, 4), (36>15, 1), (36>35, 2), (36>9, 4), (36>29, 2)])).

test(8, (50, 750, [<, >]), (25, 40, 4), ([22, 31, 8, 39, 30, 48, 10, 15, 5, 4, 36, 45, 41, 6, 27, 18, 35, 24, 2, 50, 19, 47, 37, 40, 32], [22>30, 22>48, 22>41, 22>35, 22>32, 31>36, 8>22, 8>39, 8>30, 8>36, 8>41, 8>35, 8>19, 8>47, 8>40, 8>32, 39>48, 39>41, 39>40, 30>31, 30>48, 30>35, 30>47, 30>40, 10>36, 10>41, 10>35, 10>32, 15>22, 15>30, 15>48, 15>36, 15>41, 5>31, 5>8, 5>36, 5>40, 4>8, 4>10, 4>6, 4>27, 4>18, 4>50, 4>19, 4>37, 36>45, 36>41, 36>50, 45>48, 6>8, 6>41, 6>27, 6>35, 6>37, 27>39, 27>36, 27>50, 27>47, 27>37, 18>39, 18>41, 18>24, 18>47, 35>39, 35>36, 24>30, 24>48, 24>40, 24>32, 2>39, 2>30, 2>48, 2>10, 2>18, 2>24, 2>19, 19>22, 19>48, 19>36, 19>27, 19>35, 47>48, 37>45, 40>41, 32>39, 32>47, 32>40], [50>47, 36>27, 22<18, 10>32, 15<35, 48<18, 10>6, 6<27, 35<32, 45>19, 8>4, 37<32, 24<47, 36>45, 8<47, 18>2, 8>45, 10>40, 8>39, 18<32, 15<18, 36>18, 39<35, 31>10, 18<35, 30<40, 48>19, 8>15, 22<37, 22>8, 45<6, 22>6, 39>5, 15<27, 39>6, 8<10, 5>50, 45<40, 45<35, 48>6], [ (22, 2), (31, 3), (8, 2), (39, 1), (30, 3), (48, 2), (10, 2), (15, 2), (5, 3), (4, 4), (36, 4), (45, 4), (41, 1), (6, 2), (27, 4), (18, 2), (35, 2), (24, 4), (2, 1), (50, 2), (19, 3), (47, 4), (37, 1), (40, 1), (32, 2)], [ (50>47, 1), (36>27, 1), (22<18, 4), (10>32, 3), (15<35, 2), (48<18, 3), (10>6, 3), (6<27, 3), (35<32, 2), (45>19, 2), (8>4, 2), (37<32, 1), (24<47, 1), (36>45, 2), (8<47, 3), (18>2, 1), (8>45, 4), (10>40, 4), (8>39, 2), (18<32, 1), (15<18, 3), (36>18, 1), (39<35, 2), (31>10, 4), (18<35, 2), (30<40, 1), (48>19, 1), (8>15, 4), (22<37, 1), (22>8, 2), (45<6, 3), (22>6, 2), (39>5, 2), (15<27, 2), (39>6, 2), (8<10, 1), (5>50, 4), (45<40, 2), (45<35, 1), (48>6, 3)])).

test(9, (50, 750, [<, >]), (25, 40, 4), ([48, 22, 42, 24, 30, 10, 39, 19, 11, 50, 37, 8, 28, 40, 27, 35, 49, 31, 34, 18, 15, 9, 4, 43, 13], [22>30, 22>37, 22>40, 22>43, 42>49, 24>48, 24>28, 24>27, 24>43, 30>39, 30>49, 30>34, 10>48, 10>22, 10>42, 10>24, 10>30, 10>40, 10>27, 10>49, 10>31, 10>15, 10>13, 39>48, 39>40, 39>43, 19>22, 19>40, 19>31, 11>42, 11>24, 11>37, 11>28, 11>18, 37>48, 37>43, 8>22, 8>39, 8>11, 8>50, 8>28, 8>31, 8>34, 8>18, 8>43, 8>13, 28>39, 28>31, 28>43, 40>50, 27>48, 27>30, 27>39, 27>37, 27>28, 27>34, 27>43, 35>50, 31>42, 31>50, 31>49, 34>39, 34>50, 34>35, 34>49, 18>22, 18>42, 18>19, 18>37, 18>27, 18>34, 18>43, 15>39, 15>50, 15>31, 15>18, 9>48, 9>42, 9>30, 9>19, 9>37, 9>40, 9>35, 9>49, 9>34, 9>18, 9>15, 9>43, 4>22, 4>24, 4>39, 4>11, 4>50, 4>37, 4>35, 43>48, 13>28, 13>15], [10>39, 37>49, 42>18, 24<35, 28<31, 11>49, 48>27, 18<4, 50<28, 22<15, 10<13, 24<10, 22>40, 37<34, 40>34, 11>18, 30>39, 50<27, 34<9, 28<18, 22<43, 42>24, 39>8, 42<28, 30>18, 39>18, 8<18, 27>31, 24<4, 19<18, 40>43, 50>49, 11>34, 49>43, 8<4, 9>4, 11<15, 39<40, 19<43, 11<9], [ (48, 4), (22, 2), (42, 4), (24, 4), (30, 4), (10, 3), (39, 2), (19, 3), (11, 1), (50, 2), (37, 3), (8, 4), (28, 1), (40, 2), (27, 1), (35, 3), (49, 2), (31, 3), (34, 3), (18, 4), (15, 2), (9, 4), (4, 1), (43, 1), (13, 2)], [ (10>39, 4), (37>49, 4), (42>18, 1), (24<35, 1), (28<31, 3), (11>49, 3), (48>27, 1), (18<4, 4), (50<28, 1), (22<15, 1), (10<13, 4), (24<10, 2), (22>40, 1), (37<34, 2), (40>34, 3), (11>18, 2), (30>39, 3), (50<27, 1), (34<9, 1), (28<18, 2), (22<43, 2), (42>24, 3), (39>8, 3), (42<28, 1), (30>18, 4), (39>18, 3), (8<18, 2), (27>31, 3), (24<4, 1), (19<18, 3), (40>43, 2), (50>49, 2), (11>34, 1), (49>43, 4), (8<4, 3), (9>4, 3), (11<15, 4), (39<40, 1), (19<43, 3), (11<9, 1)])).

test(10, (50, 750, [<, >]), (25, 40, 4), ([34, 47, 8, 31, 32, 20, 13, 22, 18, 48, 5, 50, 33, 29, 41, 10, 1, 7, 3, 46, 36, 42, 49, 23, 9], [34>50, 34>41, 47>50, 8>20, 8>36, 8>9, 31>32, 31>33, 31>46, 31>36, 32>48, 32>50, 32>42, 32>49, 20>47, 20>31, 20>32, 20>33, 20>46, 20>36, 13>34, 13>20, 13>22, 13>18, 13>29, 13>23, 22>34, 22>50, 22>41, 22>23, 18>32, 18>33, 18>29, 18>41, 18>46, 18>36, 18>23, 5>47, 5>18, 5>48, 5>41, 5>36, 33>34, 33>42, 29>34, 29>32, 29>33, 29>49, 41>47, 41>46, 10>47, 10>32, 10>18, 10>46, 10>36, 1>34, 1>47, 1>18, 1>7, 1>3, 1>46, 1>36, 1>23, 1>9, 7>20, 7>13, 7>48, 7>50, 7>42, 3>13, 3>29, 3>7, 46>50, 36>48, 36>42, 36>49, 42>48, 42>50, 23>34, 23>47, 23>29, 23>41, 23>49, 9>32, 9>18, 9>42, 9>49, 9>23], [13>5, 32>3, 31<18, 13<18, 20>3, 31>22, 31>29, 8>18, 7<42, 8<42, 8<22, 18<5, 7>23, 47<20, 34>1, 7>49, 31<9, 5<7, 3<9, 1>9, 3<36, 22>3, 23<9, 22<42, 32<23, 29<9, 29>41, 5>49, 50<33, 36<9, 5>29, 46>42, 8<36, 50>36, 22<48, 13<49, 32>5, 49<23, 34>3, 46<23], [ (34, 2), (47, 2), (8, 1), (31, 4), (32, 2), (20, 2), (13, 3), (22, 2), (18, 1), (48, 4), (5, 2), (50, 1), (33, 4), (29, 1), (41, 2), (10, 2), (1, 3), (7, 2), (3, 1), (46, 3), (36, 3), (42, 1), (49, 4), (23, 4), (9, 1)], [ (13>5, 2), (32>3, 3), (31<18, 3), (13<18, 4), (20>3, 2), (31>22, 3), (31>29, 4), (8>18, 1), (7<42, 3), (8<42, 1), (8<22, 2), (18<5, 4), (7>23, 4), (47<20, 4), (34>1, 3), (7>49, 2), (31<9, 2), (5<7, 3), (3<9, 2), (1>9, 3), (3<36, 2), (22>3, 1), (23<9, 2), (22<42, 1), (32<23, 1), (29<9, 1), (29>41, 1), (5>49, 4), (50<33, 4), (36<9, 3), (5>29, 3), (46>42, 2), (8<36, 3), (50>36, 4), (22<48, 1), (13<49, 3), (32>5, 4), (49<23, 3), (34>3, 4), (46<23, 1)])).

%% 50, 750, [<, >]
%% 30, 20, 4

test(1, (50, 750, [<, >]), (30, 20, 4), ([14, 28, 25, 17, 5, 44, 46, 3, 16, 31, 32, 24, 2, 49, 37, 39, 29, 9, 42, 34, 27, 47, 10, 50, 38, 48, 40, 45, 19, 4], [14>28, 14>17, 14>44, 14>31, 14>29, 14>42, 14>34, 14>47, 14>50, 14>38, 14>48, 14>40, 14>45, 28>31, 28>29, 28>42, 28>34, 28>40, 28>45, 25>44, 25>32, 25>49, 25>29, 25>40, 25>45, 17>44, 17>46, 17>31, 17>39, 17>50, 17>40, 17>45, 5>14, 5>31, 44>46, 44>49, 44>50, 46>49, 46>48, 3>28, 3>5, 3>16, 3>31, 3>32, 3>24, 3>49, 3>34, 3>50, 3>40, 3>4, 16>31, 16>24, 16>29, 16>40, 16>19, 31>37, 31>34, 31>50, 31>38, 32>44, 32>39, 32>48, 32>40, 24>28, 24>29, 24>40, 2>14, 2>5, 2>3, 2>31, 2>24, 2>42, 37>44, 37>47, 37>50, 37>48, 37>40, 39>46, 39>47, 39>45, 29>49, 29>39, 29>42, 29>48, 9>14, 9>28, 9>17, 9>16, 9>24, 9>37, 9>39, 9>47, 9>45, 42>45, 34>46, 34>37, 34>47, 34>50, 27>46, 27>32, 27>38, 27>40, 27>45, 47>49, 10>17, 10>44, 10>46, 10>16, 10>31, 10>49, 10>39, 10>27, 10>47, 10>48, 10>40, 38>49, 38>47, 38>48, 48>49, 40>49, 40>42, 40>48, 40>45, 45>47, 45>48, 19>42, 19>27, 19>48, 4>44, 4>31, 4>24, 4>27, 4>19], [39>38, 31>47, 5>4, 28<29, 37>42, 16>34, 28<49, 24>10, 2<34, 25>19, 29>42, 47>45, 17>50, 17>32, 17<4, 44>50, 17<5, 28>9, 16<32, 37<19], [ (14, 4), (28, 4), (25, 2), (17, 4), (5, 2), (44, 3), (46, 3), (3, 1), (16, 1), (31, 1), (32, 1), (24, 1), (2, 4), (49, 3), (37, 2), (39, 2), (29, 4), (9, 1), (42, 3), (34, 1), (27, 4), (47, 3), (10, 2), (50, 3), (38, 1), (48, 2), (40, 2), (45, 4), (19, 4), (4, 2)], [ (39>38, 3), (31>47, 2), (5>4, 1), (28<29, 3), (37>42, 1), (16>34, 2), (28<49, 1), (24>10, 1), (2<34, 3), (25>19, 3), (29>42, 1), (47>45, 4), (17>50, 2), (17>32, 2), (17<4, 4), (44>50, 1), (17<5, 2), (28>9, 4), (16<32, 3), (37<19, 4)])).

test(2, (50, 750, [<, >]), (30, 20, 4), ([38, 2, 26, 27, 39, 47, 31, 16, 19, 50, 5, 42, 10, 6, 49, 32, 44, 45, 43, 8, 37, 40, 17, 24, 35, 13, 34, 1, 29, 15], [38>39, 38>50, 38>49, 2>31, 2>19, 2>5, 2>10, 2>49, 2>44, 2>43, 2>17, 26>38, 26>39, 26>47, 26>49, 26>44, 26>43, 26>37, 26>40, 26>35, 26>34, 27>38, 27>39, 27>50, 27>42, 27>49, 27>32, 27>40, 27>35, 39>40, 31>39, 31>42, 31>49, 31>32, 31>43, 31>37, 31>40, 16>26, 16>39, 16>47, 16>31, 16>42, 16>44, 16>45, 16>35, 19>38, 19>31, 19>34, 5>26, 5>8, 5>17, 5>13, 5>29, 10>38, 10>31, 10>16, 10>19, 10>50, 10>32, 10>45, 10>43, 10>37, 10>17, 10>29, 6>38, 6>27, 6>31, 6>16, 6>32, 6>44, 6>40, 6>17, 6>24, 6>29, 32>38, 32>45, 44>50, 44>45, 43>47, 43>50, 8>26, 8>27, 8>47, 8>16, 8>43, 8>40, 8>17, 8>13, 37>47, 37>42, 40>47, 40>50, 40>49, 40>44, 17>26, 17>27, 17>50, 17>42, 17>32, 17>43, 17>24, 17>34, 17>29, 24>47, 24>31, 24>45, 24>40, 24>35, 35>38, 35>39, 35>45, 35>37, 13>45, 13>43, 13>24, 34>50, 34>43, 34>40, 1>38, 1>39, 1>47, 1>50, 1>10, 1>6, 1>44, 1>8, 1>24, 1>34, 1>29, 29>38, 29>47, 29>50, 29>44, 29>43, 15>27, 15>39, 15>47, 15>19, 15>49, 15>32], [16>8, 26<49, 10<15, 38<5, 38<27, 16<42, 24<29, 31<44, 50>17, 31>43, 5>17, 50<1, 44>1, 40>35, 39<17, 35>13, 39>45, 10<8, 38>37, 26<5], [ (38, 4), (2, 1), (26, 4), (27, 4), (39, 4), (47, 1), (31, 3), (16, 3), (19, 4), (50, 1), (5, 2), (42, 3), (10, 2), (6, 3), (49, 2), (32, 2), (44, 4), (45, 2), (43, 2), (8, 1), (37, 1), (40, 3), (17, 1), (24, 4), (35, 1), (13, 1), (34, 3), (1, 3), (29, 4), (15, 2)], [ (16>8, 3), (26<49, 2), (10<15, 2), (38<5, 2), (38<27, 3), (16<42, 3), (24<29, 2), (31<44, 1), (50>17, 1), (31>43, 2), (5>17, 3), (50<1, 3), (44>1, 1), (40>35, 1), (39<17, 1), (35>13, 4), (39>45, 2), (10<8, 1), (38>37, 4), (26<5, 1)])).

test(3, (50, 750, [<, >]), (30, 20, 4), ([21, 17, 33, 14, 29, 13, 41, 5, 49, 43, 40, 36, 22, 6, 27, 30, 39, 11, 46, 10, 20, 31, 47, 44, 1, 37, 48, 7, 32, 8], [21>29, 21>41, 21>49, 21>43, 21>39, 21>31, 21>44, 21>48, 17>41, 17>43, 17>27, 17>30, 17>46, 17>20, 33>39, 33>44, 33>48, 14>17, 14>33, 14>29, 14>49, 14>36, 14>22, 14>47, 14>48, 29>30, 29>39, 29>46, 29>31, 29>44, 13>21, 13>43, 13>30, 13>20, 13>37, 41>49, 5>43, 5>40, 5>36, 5>39, 5>44, 5>37, 5>7, 5>32, 36>41, 36>43, 36>37, 36>48, 22>27, 22>39, 22>46, 22>47, 22>37, 22>48, 6>14, 6>40, 6>27, 6>11, 6>47, 6>44, 6>37, 6>32, 27>29, 27>41, 27>39, 27>31, 30>43, 30>36, 30>46, 30>47, 39>47, 11>21, 11>17, 11>33, 11>41, 11>49, 11>40, 11>30, 11>39, 11>37, 46>48, 10>14, 10>36, 10>30, 10>46, 10>31, 10>47, 10>48, 20>21, 20>29, 20>40, 20>22, 20>46, 31>49, 31>37, 31>48, 47>48, 44>48, 1>33, 1>14, 1>13, 1>36, 1>46, 1>47, 1>44, 1>32, 1>8, 37>43, 37>48, 48>49, 7>21, 7>17, 7>13, 7>49, 7>44, 7>37, 7>48, 32>37, 8>33, 8>49, 8>40, 8>36, 8>20, 8>37], [30<7, 49<40, 44>32, 5<36, 43>8, 29>32, 21<41, 40<10, 10>44, 14<20, 27>10, 29>48, 33<6, 22>46, 13<46, 21<44, 13>27, 49>27, 20<37, 43>47], [ (21, 4), (17, 2), (33, 4), (14, 4), (29, 2), (13, 4), (41, 2), (5, 1), (49, 1), (43, 4), (40, 2), (36, 3), (22, 2), (6, 1), (27, 4), (30, 1), (39, 3), (11, 2), (46, 3), (10, 2), (20, 3), (31, 4), (47, 2), (44, 1), (1, 1), (37, 4), (48, 1), (7, 2), (32, 2), (8, 1)], [ (30<7, 2), (49<40, 4), (44>32, 3), (5<36, 1), (43>8, 2), (29>32, 4), (21<41, 3), (40<10, 3), (10>44, 2), (14<20, 2), (27>10, 2), (29>48, 4), (33<6, 3), (22>46, 3), (13<46, 4), (21<44, 4), (13>27, 3), (49>27, 1), (20<37, 4), (43>47, 2)])).

test(4, (50, 750, [<, >]), (30, 20, 4), ([36, 6, 49, 48, 35, 16, 31, 39, 24, 37, 19, 32, 20, 46, 26, 42, 34, 10, 17, 9, 15, 2, 11, 22, 18, 40, 21, 4, 43, 8], [36>39, 36>37, 36>42, 36>43, 6>16, 6>39, 6>32, 6>46, 6>34, 6>11, 6>40, 6>43, 48>49, 35>46, 35>40, 16>36, 16>35, 16>31, 16>24, 16>19, 16>42, 16>34, 16>17, 16>21, 31>49, 31>48, 31>40, 39>46, 39>40, 39>43, 24>36, 24>49, 24>39, 24>32, 24>46, 24>42, 24>43, 37>48, 37>42, 19>48, 19>32, 19>46, 19>43, 32>37, 32>42, 32>40, 20>31, 20>46, 20>40, 46>49, 46>48, 26>36, 26>35, 26>39, 26>46, 26>42, 26>43, 42>48, 34>36, 34>35, 34>46, 10>35, 10>31, 10>19, 10>20, 10>42, 10>15, 10>18, 10>40, 17>31, 17>24, 17>19, 17>32, 17>26, 17>21, 17>43, 9>49, 9>46, 9>11, 9>43, 15>36, 15>16, 15>24, 15>37, 15>20, 15>42, 2>6, 2>48, 2>35, 2>16, 2>39, 2>19, 2>32, 2>46, 2>34, 2>15, 2>11, 2>18, 2>4, 2>8, 11>49, 11>31, 11>39, 11>37, 11>20, 11>26, 11>22, 11>18, 22>36, 22>49, 22>31, 22>32, 22>26, 18>32, 18>20, 18>46, 18>26, 18>34, 18>21, 40>48, 40>46, 21>24, 21>46, 21>34, 4>6, 4>48, 4>24, 4>37, 4>20, 4>34, 4>9, 4>22, 4>40, 4>21, 43>49, 8>49, 8>16, 8>39, 8>19, 8>32, 8>20, 8>46, 8>9, 8>15, 8>40, 8>43], [19>20, 18>8, 46<34, 48<8, 49>21, 31>39, 16<8, 31<17, 49>46, 48>42, 34>11, 36>19, 9>40, 6<48, 36>15, 49>9, 48>16, 32>18, 6>22, 2<11], [ (36, 4), (6, 3), (49, 1), (48, 3), (35, 2), (16, 1), (31, 2), (39, 3), (24, 3), (37, 4), (19, 2), (32, 4), (20, 1), (46, 2), (26, 1), (42, 4), (34, 4), (10, 1), (17, 4), (9, 4), (15, 4), (2, 1), (11, 4), (22, 4), (18, 1), (40, 3), (21, 2), (4, 4), (43, 4), (8, 2)], [ (19>20, 3), (18>8, 3), (46<34, 3), (48<8, 2), (49>21, 1), (31>39, 3), (16<8, 1), (31<17, 1), (49>46, 3), (48>42, 1), (34>11, 3), (36>19, 4), (9>40, 4), (6<48, 3), (36>15, 3), (49>9, 3), (48>16, 1), (32>18, 4), (6>22, 4), (2<11, 2)])).

test(5, (50, 750, [<, >]), (30, 20, 4), ([43, 36, 26, 14, 40, 19, 11, 50, 12, 5, 27, 38, 41, 49, 35, 3, 44, 33, 45, 8, 17, 2, 1, 23, 21, 46, 7, 31, 32, 16], [43>50, 36>44, 36>45, 26>40, 26>50, 26>44, 26>33, 26>45, 26>46, 14>43, 14>36, 14>26, 14>40, 14>45, 14>23, 14>21, 14>46, 14>31, 40>43, 40>45, 19>40, 19>35, 19>23, 11>36, 11>14, 11>19, 11>12, 11>35, 11>21, 11>46, 12>43, 12>26, 12>14, 12>35, 12>33, 12>23, 12>31, 5>26, 5>11, 5>27, 5>17, 5>7, 5>32, 5>16, 27>50, 27>35, 27>32, 38>40, 38>49, 38>44, 41>43, 41>45, 41>46, 35>50, 35>41, 35>49, 35>44, 3>26, 3>40, 3>38, 3>45, 3>17, 3>23, 3>21, 3>31, 3>16, 33>40, 45>49, 8>26, 8>19, 8>50, 8>38, 8>44, 8>46, 8>32, 17>36, 17>19, 17>41, 17>49, 17>35, 17>46, 2>19, 2>11, 2>50, 2>5, 2>49, 2>35, 2>46, 2>31, 2>32, 1>36, 1>26, 1>14, 1>12, 1>27, 1>38, 1>35, 1>45, 1>8, 23>36, 23>27, 23>44, 23>33, 23>46, 23>31, 21>49, 46>49, 7>36, 7>11, 7>27, 7>41, 7>35, 7>21, 31>40, 31>38, 31>41, 31>49, 31>35, 31>44, 31>45, 32>41, 32>45, 32>46, 16>43, 16>35, 16>45, 16>21, 16>32], [50<16, 21<46, 45<46, 26>27, 26<32, 12<32, 33>45, 43>19, 50<44, 3<46, 45<16, 33>1, 36<14, 11>41, 12>27, 27<2, 43>49, 19>5, 43<11, 36<33], [ (43, 3), (36, 4), (26, 3), (14, 2), (40, 1), (19, 4), (11, 1), (50, 2), (12, 3), (5, 2), (27, 1), (38, 3), (41, 1), (49, 4), (35, 2), (3, 4), (44, 3), (33, 1), (45, 3), (8, 3), (17, 2), (2, 3), (1, 1), (23, 1), (21, 3), (46, 3), (7, 3), (31, 2), (32, 3), (16, 4)], [ (50<16, 1), (21<46, 3), (45<46, 1), (26>27, 3), (26<32, 2), (12<32, 2), (33>45, 2), (43>19, 1), (50<44, 4), (3<46, 1), (45<16, 2), (33>1, 4), (36<14, 3), (11>41, 3), (12>27, 2), (27<2, 1), (43>49, 4), (19>5, 4), (43<11, 3), (36<33, 2)])).

test(6, (50, 750, [<, >]), (30, 20, 4), ([29, 39, 49, 45, 5, 36, 31, 11, 28, 19, 20, 10, 12, 50, 41, 24, 8, 30, 22, 46, 6, 18, 37, 4, 2, 38, 14, 43, 13, 25], [29>49, 29>46, 29>37, 39>50, 39>46, 49>50, 5>29, 5>8, 5>46, 5>6, 5>18, 5>37, 5>13, 5>25, 36>45, 36>41, 36>38, 31>39, 31>46, 31>37, 11>49, 11>19, 11>12, 11>41, 11>38, 11>25, 28>36, 28>38, 28>43, 19>43, 20>45, 20>31, 20>50, 20>43, 10>11, 10>28, 10>20, 10>12, 10>50, 10>24, 12>29, 12>31, 12>24, 12>37, 12>25, 41>49, 24>49, 24>31, 8>39, 8>49, 8>36, 8>11, 8>50, 8>41, 8>24, 8>22, 8>46, 8>18, 8>43, 22>39, 22>49, 22>50, 22>41, 22>24, 22>46, 22>43, 22>25, 6>36, 6>31, 6>11, 6>19, 6>22, 6>46, 6>37, 6>25, 18>49, 18>19, 18>50, 18>41, 18>22, 18>37, 18>43, 18>25, 37>50, 4>36, 4>19, 4>20, 4>12, 4>24, 4>8, 4>30, 4>18, 4>38, 2>29, 2>5, 2>36, 2>31, 2>20, 2>12, 2>24, 2>22, 2>18, 2>4, 2>38, 2>43, 2>25, 38>41, 38>43, 14>36, 14>19, 14>24, 14>22, 14>46, 14>18, 14>37, 14>38, 14>43, 43>50, 43>46, 13>45, 13>36, 13>19, 13>24, 13>18, 13>37, 13>25, 25>39, 25>49, 25>36, 25>31, 25>28, 25>30, 25>46, 25>37, 25>38], [11<50, 45>13, 41<22, 28>4, 29>19, 6>38, 50<6, 18>25, 45<31, 22>18, 12<38, 10<13, 5<13, 37<38, 24<43, 29<12, 10>2, 39>30, 20<46, 5>4], [ (29, 2), (39, 4), (49, 1), (45, 4), (5, 4), (36, 1), (31, 4), (11, 3), (28, 1), (19, 1), (20, 2), (10, 1), (12, 3), (50, 1), (41, 4), (24, 4), (8, 2), (30, 1), (22, 4), (46, 2), (6, 4), (18, 1), (37, 2), (4, 4), (2, 3), (38, 2), (14, 3), (43, 2), (13, 2), (25, 3)], [ (11<50, 2), (45>13, 2), (41<22, 4), (28>4, 2), (29>19, 2), (6>38, 2), (50<6, 4), (18>25, 1), (45<31, 4), (22>18, 2), (12<38, 3), (10<13, 1), (5<13, 4), (37<38, 1), (24<43, 1), (29<12, 2), (10>2, 4), (39>30, 1), (20<46, 1), (5>4, 3)])).

test(7, (50, 750, [<, >]), (30, 20, 4), ([15, 16, 5, 30, 3, 47, 22, 41, 9, 29, 6, 42, 43, 2, 21, 7, 1, 34, 45, 36, 32, 33, 14, 18, 38, 49, 27, 11, 44, 19], [15>16, 15>47, 15>43, 15>34, 15>36, 15>18, 16>30, 16>47, 16>22, 16>21, 16>36, 16>32, 16>33, 16>18, 5>22, 5>41, 5>7, 5>32, 5>44, 30>36, 30>33, 3>15, 3>5, 3>30, 3>9, 3>6, 3>43, 3>18, 3>19, 22>30, 22>29, 22>45, 22>36, 22>38, 41>47, 41>43, 9>32, 9>18, 9>38, 29>43, 29>34, 29>33, 29>44, 6>16, 6>29, 6>14, 6>49, 42>43, 43>47, 2>15, 2>16, 2>22, 2>21, 2>7, 2>34, 2>44, 21>45, 21>36, 21>33, 7>15, 7>47, 7>22, 7>41, 7>9, 7>29, 7>42, 7>33, 1>16, 1>3, 1>47, 1>43, 1>7, 1>14, 1>18, 1>38, 1>49, 34>43, 34>45, 34>49, 45>47, 45>49, 36>47, 36>43, 36>49, 32>41, 32>45, 32>36, 32>33, 32>49, 32>44, 33>44, 14>15, 14>30, 14>41, 14>29, 14>42, 14>43, 14>21, 14>45, 14>32, 14>49, 14>44, 18>30, 18>29, 18>38, 18>49, 38>43, 38>45, 27>30, 27>29, 27>34, 27>32, 27>33, 27>49, 11>15, 11>16, 11>22, 11>29, 11>34, 11>32, 44>45, 44>49, 19>47, 19>22, 19>43, 19>21, 19>32, 19>27], [15<16, 16>34, 29>18, 16<1, 34>27, 32<49, 41<21, 21>45, 21<18, 32>33, 9>34, 1>33, 6<42, 34>11, 36<27, 21<34, 15<1, 15<42, 22>6, 45<19], [ (15, 4), (16, 4), (5, 3), (30, 4), (3, 1), (47, 1), (22, 4), (41, 2), (9, 4), (29, 1), (6, 4), (42, 1), (43, 2), (2, 2), (21, 4), (7, 1), (1, 4), (34, 2), (45, 3), (36, 4), (32, 2), (33, 3), (14, 2), (18, 3), (38, 3), (49, 3), (27, 4), (11, 1), (44, 1), (19, 2)], [ (15<16, 2), (16>34, 2), (29>18, 2), (16<1, 3), (34>27, 4), (32<49, 2), (41<21, 2), (21>45, 1), (21<18, 4), (32>33, 4), (9>34, 2), (1>33, 4), (6<42, 4), (34>11, 1), (36<27, 2), (21<34, 4), (15<1, 4), (15<42, 3), (22>6, 4), (45<19, 4)])).

test(8, (50, 750, [<, >]), (30, 20, 4), ([31, 42, 21, 24, 14, 40, 10, 46, 22, 50, 23, 20, 1, 33, 30, 47, 19, 49, 15, 11, 32, 41, 26, 36, 38, 9, 18, 48, 35, 43], [31>47, 31>36, 42>49, 42>48, 21>22, 21>50, 21>30, 21>49, 21>41, 21>26, 21>38, 21>48, 24>46, 24>50, 24>47, 24>26, 24>36, 24>43, 14>31, 14>21, 14>24, 14>46, 14>23, 14>33, 14>15, 14>32, 14>36, 14>35, 14>43, 40>47, 40>49, 40>48, 10>40, 10>50, 10>15, 10>35, 46>47, 46>49, 46>48, 22>31, 22>40, 22>50, 22>30, 22>38, 22>48, 23>24, 23>30, 23>49, 23>26, 23>38, 23>35, 20>40, 20>23, 20>47, 20>41, 20>26, 20>48, 1>31, 1>14, 1>10, 1>50, 1>33, 1>47, 1>49, 1>26, 1>36, 1>35, 33>40, 33>50, 33>47, 33>49, 30>40, 30>33, 30>32, 30>41, 30>36, 30>35, 30>43, 19>32, 19>41, 19>38, 19>43, 15>21, 15>46, 15>50, 15>30, 15>19, 15>32, 11>14, 11>40, 11>46, 11>30, 11>49, 11>32, 11>36, 32>50, 32>48, 41>42, 41>47, 41>49, 26>31, 26>42, 26>40, 26>49, 26>41, 26>43, 36>38, 38>42, 38>40, 38>50, 38>43, 9>31, 9>40, 9>10, 9>30, 9>49, 9>32, 9>36, 9>38, 9>48, 18>50, 18>19, 18>49, 18>36, 18>38, 18>48, 18>35, 48>49, 35>46, 35>50, 35>47, 35>38, 35>43, 43>47], [21<20, 15>35, 50<48, 18>48, 22<11, 10<20, 10<50, 30>38, 14<30, 15<26, 50<1, 22>15, 46<19, 42>11, 15>43, 14<33, 11>26, 11<18, 38>9, 38>48], [ (31, 2), (42, 3), (21, 4), (24, 1), (14, 1), (40, 2), (10, 1), (46, 1), (22, 1), (50, 2), (23, 3), (20, 2), (1, 3), (33, 2), (30, 3), (47, 2), (19, 2), (49, 1), (15, 3), (11, 1), (32, 3), (41, 3), (26, 4), (36, 2), (38, 3), (9, 2), (18, 4), (48, 1), (35, 4), (43, 1)], [ (21<20, 4), (15>35, 1), (50<48, 3), (18>48, 2), (22<11, 1), (10<20, 3), (10<50, 3), (30>38, 2), (14<30, 3), (15<26, 2), (50<1, 1), (22>15, 2), (46<19, 2), (42>11, 1), (15>43, 3), (14<33, 3), (11>26, 3), (11<18, 2), (38>9, 4), (38>48, 1)])).

test(9, (50, 750, [<, >]), (30, 20, 4), ([41, 37, 44, 46, 34, 4, 24, 50, 42, 25, 21, 10, 9, 26, 3, 40, 20, 8, 2, 39, 35, 16, 38, 12, 43, 22, 18, 45, 29, 6], [41>44, 41>42, 41>43, 37>44, 37>46, 37>43, 34>40, 34>45, 4>41, 4>20, 4>8, 4>39, 4>35, 4>16, 4>43, 4>29, 24>41, 24>44, 24>26, 24>39, 24>43, 24>29, 42>46, 42>43, 25>34, 25>50, 25>35, 25>43, 21>41, 21>37, 21>50, 21>43, 21>22, 10>42, 10>38, 10>12, 10>45, 9>44, 9>34, 9>24, 9>50, 9>25, 9>26, 9>40, 9>39, 9>35, 9>38, 9>12, 26>41, 26>46, 26>40, 26>45, 3>4, 3>24, 3>50, 3>42, 3>39, 3>38, 3>29, 40>46, 40>42, 40>45, 20>26, 20>35, 20>38, 20>43, 8>41, 8>50, 8>42, 8>25, 8>10, 8>26, 8>35, 8>38, 8>22, 8>18, 2>46, 2>24, 2>21, 2>9, 2>40, 2>39, 2>38, 2>18, 39>41, 39>44, 39>50, 39>40, 39>43, 35>38, 16>34, 16>26, 16>43, 16>22, 16>45, 38>46, 38>42, 38>39, 12>46, 12>21, 12>40, 12>20, 12>29, 22>37, 22>34, 22>50, 22>40, 22>45, 18>41, 18>37, 18>42, 18>25, 18>26, 29>37, 29>39, 29>43, 6>37, 6>44, 6>21, 6>8, 6>16, 6>43, 6>22, 6>18, 6>29], [37<12, 50>40, 44>42, 46>18, 50>18, 34<38, 3<38, 25<9, 41>44, 42>20, 12<22, 4<9, 9>8, 41<21, 37<34, 25>38, 46<9, 16<18, 34>18, 24>45], [ (41, 4), (37, 4), (44, 4), (46, 2), (34, 3), (4, 4), (24, 3), (50, 4), (42, 1), (25, 4), (21, 2), (10, 3), (9, 1), (26, 2), (3, 1), (40, 4), (20, 1), (8, 3), (2, 1), (39, 1), (35, 1), (16, 4), (38, 3), (12, 4), (43, 4), (22, 1), (18, 1), (45, 1), (29, 3), (6, 1)], [ (37<12, 2), (50>40, 4), (44>42, 3), (46>18, 2), (50>18, 1), (34<38, 2), (3<38, 1), (25<9, 4), (41>44, 3), (42>20, 1), (12<22, 2), (4<9, 3), (9>8, 3), (41<21, 4), (37<34, 4), (25>38, 4), (46<9, 4), (16<18, 3), (34>18, 4), (24>45, 1)])).

test(10, (50, 750, [<, >]), (30, 20, 4), ([46, 50, 28, 40, 30, 34, 6, 42, 21, 14, 5, 39, 18, 13, 37, 49, 31, 25, 17, 44, 20, 15, 1, 38, 24, 9, 48, 23, 45, 27], [46>49, 28>46, 28>30, 28>42, 28>39, 28>48, 40>50, 30>46, 30>40, 30>42, 30>38, 30>45, 34>42, 34>44, 6>50, 6>40, 6>30, 6>21, 6>14, 6>18, 6>31, 6>25, 6>15, 6>45, 21>34, 21>39, 21>31, 21>44, 21>24, 21>45, 14>46, 14>40, 14>30, 14>39, 14>18, 14>25, 14>23, 5>28, 5>34, 5>13, 5>31, 5>15, 5>38, 39>50, 39>40, 18>21, 18>38, 18>45, 18>27, 13>28, 13>40, 13>30, 13>21, 13>37, 13>31, 13>44, 13>15, 13>38, 13>24, 13>45, 37>46, 37>40, 37>42, 37>38, 31>46, 31>50, 31>42, 31>49, 31>38, 31>48, 31>45, 25>40, 25>42, 25>39, 25>38, 25>48, 17>28, 17>40, 17>42, 17>21, 17>49, 17>25, 17>20, 17>45, 44>46, 44>45, 20>50, 20>39, 20>37, 20>24, 20>48, 20>45, 20>27, 15>50, 15>42, 15>21, 15>39, 15>18, 15>31, 15>25, 15>44, 1>46, 1>50, 1>28, 1>40, 1>30, 1>39, 1>13, 1>37, 1>31, 1>15, 1>38, 1>23, 38>50, 38>42, 38>48, 24>46, 24>28, 24>40, 24>34, 24>42, 24>39, 24>37, 24>44, 24>38, 24>48, 24>45, 9>40, 9>30, 9>42, 9>14, 9>39, 9>13, 9>31, 9>25, 9>44, 9>23, 9>45, 48>50, 48>49, 23>46, 23>50, 23>28, 23>25, 45>49, 45>48, 27>30, 27>48], [49<25, 42<18, 6<25, 6<9, 46>1, 48>27, 17<15, 14>45, 49<17, 50>31, 25<15, 5<20, 21<13, 13<31, 37>20, 39>38, 18>15, 20<38, 28<17, 28>24], [ (46, 1), (50, 4), (28, 2), (40, 3), (30, 2), (34, 4), (6, 1), (42, 2), (21, 4), (14, 3), (5, 2), (39, 4), (18, 3), (13, 4), (37, 4), (49, 4), (31, 1), (25, 2), (17, 1), (44, 4), (20, 1), (15, 4), (1, 4), (38, 4), (24, 2), (9, 2), (48, 2), (23, 2), (45, 3), (27, 4)], [ (49<25, 4), (42<18, 2), (6<25, 3), (6<9, 2), (46>1, 3), (48>27, 4), (17<15, 3), (14>45, 4), (49<17, 1), (50>31, 4), (25<15, 4), (5<20, 4), (21<13, 2), (13<31, 1), (37>20, 2), (39>38, 1), (18>15, 4), (20<38, 4), (28<17, 1), (28>24, 4)])).

%% 50, 750, [<, >]
%% 35, 35, 4

test(1, (50, 750, [<, >]), (35, 35, 4), ([24, 41, 40, 9, 10, 48, 13, 22, 19, 28, 11, 34, 14, 3, 21, 38, 26, 18, 49, 45, 47, 46, 31, 7, 50, 20, 37, 25, 12, 8, 42, 29, 15, 32, 17], [24>41, 24>40, 24>38, 24>50, 24>25, 41>47, 40>48, 40>47, 40>46, 40>42, 9>41, 9>10, 9>28, 9>38, 9>18, 9>47, 9>50, 9>37, 9>32, 10>24, 10>40, 10>13, 10>28, 10>38, 10>18, 10>50, 10>12, 10>15, 48>49, 13>19, 13>49, 13>47, 13>46, 13>31, 13>50, 13>20, 13>29, 22>41, 22>34, 22>32, 19>45, 19>47, 19>50, 19>25, 19>42, 28>41, 28>48, 28>38, 28>47, 28>46, 28>31, 28>50, 28>42, 11>48, 11>19, 11>34, 11>21, 11>31, 11>50, 11>37, 11>12, 11>15, 11>32, 11>17, 34>41, 34>38, 34>46, 34>50, 14>40, 14>19, 14>45, 14>42, 14>29, 3>24, 3>9, 3>22, 3>19, 3>28, 3>14, 3>38, 3>26, 3>18, 3>31, 3>20, 3>12, 3>42, 3>15, 21>41, 21>40, 21>38, 21>26, 21>49, 21>47, 21>46, 21>25, 38>48, 38>49, 38>46, 26>46, 26>42, 26>32, 18>41, 18>22, 18>34, 18>21, 18>49, 18>45, 18>20, 18>42, 18>29, 45>47, 45>50, 46>48, 46>49, 31>41, 31>38, 31>45, 31>46, 31>37, 7>24, 7>40, 7>48, 7>13, 7>22, 7>11, 7>46, 7>31, 7>37, 7>8, 7>29, 20>41, 20>21, 20>49, 20>42, 37>40, 37>47, 37>50, 37>42, 25>40, 25>34, 25>49, 25>47, 25>37, 25>29, 12>24, 12>40, 12>28, 12>37, 12>25, 12>29, 8>41, 8>10, 8>48, 8>34, 8>14, 8>18, 8>45, 8>31, 8>25, 8>32, 42>48, 42>50, 29>49, 29>47, 29>46, 29>42, 15>47, 15>31, 15>37, 15>29, 15>17, 32>48, 32>38, 32>37, 17>41, 17>48, 17>21, 17>18, 17>45, 17>50, 17>20, 17>42], [20>12, 26>25, 50<12, 26>12, 25<15, 3<17, 40<31, 14>42, 38>17, 37>8, 3>32, 24<20, 47>12, 41<12, 11>38, 42>32, 21<15, 12<32, 9>34, 19<21, 41<19, 9>21, 10<50, 18<32, 40>19, 9<25, 14<37, 9<13, 22>45, 24<7, 21>38, 41<32, 14<26, 19<28, 38<31], [ (24, 4), (41, 4), (40, 3), (9, 3), (10, 3), (48, 1), (13, 4), (22, 1), (19, 3), (28, 4), (11, 4), (34, 4), (14, 3), (3, 3), (21, 2), (38, 2), (26, 2), (18, 3), (49, 1), (45, 1), (47, 1), (46, 1), (31, 4), (7, 1), (50, 2), (20, 4), (37, 3), (25, 4), (12, 1), (8, 4), (42, 4), (29, 2), (15, 2), (32, 1), (17, 4)], [ (20>12, 2), (26>25, 2), (50<12, 4), (26>12, 2), (25<15, 2), (3<17, 1), (40<31, 3), (14>42, 4), (38>17, 4), (37>8, 4), (3>32, 1), (24<20, 3), (47>12, 4), (41<12, 1), (11>38, 3), (42>32, 1), (21<15, 4), (12<32, 1), (9>34, 3), (19<21, 4), (41<19, 4), (9>21, 1), (10<50, 2), (18<32, 3), (40>19, 3), (9<25, 3), (14<37, 1), (9<13, 4), (22>45, 2), (24<7, 4), (21>38, 4), (41<32, 3), (14<26, 2), (19<28, 2), (38<31, 4)])).

test(2, (50, 750, [<, >]), (35, 35, 4), ([32, 14, 1, 17, 9, 11, 30, 16, 35, 49, 34, 42, 27, 29, 37, 28, 15, 7, 40, 8, 39, 48, 41, 46, 4, 6, 21, 10, 23, 50, 5, 45, 36, 25, 26], [32>35, 32>49, 32>34, 32>40, 32>46, 32>45, 14>32, 14>17, 14>34, 14>42, 14>27, 14>28, 14>15, 14>21, 14>23, 14>25, 1>17, 1>35, 1>34, 1>7, 1>39, 1>21, 1>23, 1>26, 17>49, 17>29, 17>23, 17>50, 9>11, 9>16, 9>49, 9>34, 9>42, 9>40, 9>45, 9>25, 11>16, 11>34, 11>42, 11>50, 30>32, 30>35, 30>37, 30>41, 30>46, 30>36, 16>17, 16>37, 16>21, 16>36, 16>25, 16>26, 35>40, 35>46, 35>36, 49>50, 34>35, 34>50, 34>45, 42>45, 27>30, 27>49, 27>29, 27>39, 29>32, 29>40, 29>45, 37>49, 37>41, 37>46, 28>42, 28>39, 28>41, 28>46, 28>50, 28>36, 15>16, 15>35, 15>34, 15>42, 15>27, 15>37, 15>28, 15>46, 15>36, 7>32, 7>14, 7>9, 7>30, 7>16, 7>35, 7>42, 7>29, 7>37, 7>15, 7>40, 7>46, 7>21, 7>25, 40>41, 8>17, 8>49, 8>37, 8>21, 8>23, 39>49, 39>48, 39>46, 39>45, 48>49, 41>49, 46>49, 46>48, 4>32, 4>11, 4>16, 4>35, 4>42, 4>27, 4>37, 4>28, 4>15, 4>7, 4>39, 4>10, 4>50, 4>45, 4>26, 6>17, 6>49, 6>27, 6>29, 6>37, 6>7, 6>40, 6>10, 6>45, 6>36, 21>49, 21>42, 21>27, 21>29, 21>48, 21>45, 21>25, 10>14, 10>30, 10>34, 10>40, 10>39, 10>25, 23>32, 23>42, 23>27, 23>37, 23>28, 23>48, 23>50, 23>45, 5>32, 5>37, 5>41, 5>46, 5>50, 5>26, 36>49, 36>37, 36>40, 36>48, 25>42, 25>39, 25>48, 25>50, 25>45, 26>34, 26>42, 26>27, 26>37, 26>28, 26>48, 26>46, 26>50, 26>36], [32>36, 35<46, 7<45, 42<5, 9<15, 1<35, 49>10, 17>30, 17>5, 30>23, 14>9, 27>45, 30<39, 46>23, 48>41, 4>25, 7>23, 16>48, 5<25, 39<25, 49>5, 14<1, 49<25, 23>50, 40>6, 1<30, 35>8, 16<35, 27>10, 14>23, 17<11, 8>45, 8<23, 17<29, 49>7], [ (32, 1), (14, 4), (1, 3), (17, 4), (9, 3), (11, 1), (30, 2), (16, 2), (35, 1), (49, 2), (34, 2), (42, 1), (27, 1), (29, 4), (37, 1), (28, 3), (15, 3), (7, 4), (40, 1), (8, 4), (39, 2), (48, 2), (41, 4), (46, 4), (4, 4), (6, 2), (21, 3), (10, 4), (23, 4), (50, 1), (5, 4), (45, 4), (36, 1), (25, 3), (26, 2)], [ (32>36, 1), (35<46, 2), (7<45, 2), (42<5, 1), (9<15, 4), (1<35, 2), (49>10, 1), (17>30, 2), (17>5, 3), (30>23, 3), (14>9, 4), (27>45, 2), (30<39, 3), (46>23, 2), (48>41, 4), (4>25, 3), (7>23, 2), (16>48, 1), (5<25, 4), (39<25, 4), (49>5, 2), (14<1, 4), (49<25, 4), (23>50, 2), (40>6, 2), (1<30, 1), (35>8, 1), (16<35, 1), (27>10, 4), (14>23, 4), (17<11, 1), (8>45, 2), (8<23, 2), (17<29, 4), (49>7, 4)])).

test(3, (50, 750, [<, >]), (35, 35, 4), ([48, 22, 41, 23, 10, 21, 13, 47, 46, 5, 28, 38, 4, 49, 37, 30, 50, 7, 31, 33, 40, 32, 19, 20, 39, 36, 6, 3, 8, 11, 34, 2, 27, 35, 42], [48>49, 22>48, 22>41, 22>47, 22>31, 22>33, 22>36, 22>34, 22>27, 22>42, 41>49, 41>50, 23>36, 10>22, 10>23, 10>21, 10>38, 10>49, 10>19, 10>34, 10>27, 21>47, 21>28, 21>38, 21>31, 21>40, 21>34, 21>42, 13>21, 13>49, 13>31, 13>40, 13>20, 13>34, 13>42, 46>48, 5>48, 5>22, 5>46, 5>28, 5>49, 5>37, 5>30, 5>50, 5>39, 5>36, 5>8, 5>34, 5>35, 28>41, 28>47, 28>37, 28>30, 28>40, 28>39, 28>34, 28>35, 38>47, 38>50, 38>39, 4>10, 4>13, 4>5, 4>50, 4>20, 4>6, 4>42, 49>50, 37>41, 37>50, 37>42, 30>46, 30>37, 30>50, 30>34, 30>35, 7>48, 7>23, 7>10, 7>32, 7>11, 7>42, 31>41, 31>38, 31>33, 31>40, 31>34, 33>48, 33>47, 33>39, 33>36, 33>42, 40>47, 32>34, 19>22, 19>41, 19>21, 19>46, 19>49, 19>37, 19>33, 19>20, 19>36, 19>35, 20>41, 20>21, 20>28, 20>50, 20>31, 20>36, 20>34, 39>48, 39>47, 39>42, 36>48, 36>47, 36>37, 6>22, 6>21, 6>38, 6>50, 6>31, 6>20, 6>8, 6>34, 6>35, 3>48, 3>23, 3>10, 3>13, 3>46, 3>4, 3>50, 3>6, 3>42, 8>22, 8>40, 8>19, 8>36, 8>27, 8>42, 11>22, 11>23, 11>13, 11>37, 11>30, 11>50, 11>33, 11>39, 11>34, 11>27, 11>42, 34>48, 34>41, 34>38, 34>37, 34>50, 34>35, 34>42, 2>23, 2>10, 2>21, 2>13, 2>46, 2>28, 2>4, 2>30, 2>31, 2>33, 2>32, 2>11, 2>34, 27>48, 27>47, 27>38, 27>37, 27>32, 27>39, 35>47, 35>42, 42>47, 42>50], [40<8, 10<36, 38>49, 30<35, 37<19, 10<2, 22>20, 23>4, 46<5, 21>7, 48<11, 22>42, 23>33, 50>6, 48<34, 32<42, 36>8, 23>8, 21>13, 41>28, 28>6, 32>3, 49>7, 13>31, 22>3, 23<13, 28<20, 22<5, 34>27, 4<39, 31<35, 22<19, 13<5, 7<36, 13>32], [ (48, 2), (22, 2), (41, 1), (23, 1), (10, 3), (21, 2), (13, 4), (47, 1), (46, 1), (5, 4), (28, 4), (38, 4), (4, 1), (49, 2), (37, 4), (30, 1), (50, 3), (7, 1), (31, 2), (33, 1), (40, 4), (32, 1), (19, 1), (20, 1), (39, 1), (36, 2), (6, 1), (3, 2), (8, 1), (11, 4), (34, 3), (2, 4), (27, 1), (35, 4), (42, 4)], [ (40<8, 2), (10<36, 2), (38>49, 2), (30<35, 2), (37<19, 3), (10<2, 1), (22>20, 3), (23>4, 4), (46<5, 1), (21>7, 3), (48<11, 3), (22>42, 3), (23>33, 2), (50>6, 1), (48<34, 1), (32<42, 4), (36>8, 3), (23>8, 3), (21>13, 3), (41>28, 1), (28>6, 2), (32>3, 4), (49>7, 1), (13>31, 4), (22>3, 3), (23<13, 1), (28<20, 2), (22<5, 3), (34>27, 2), (4<39, 3), (31<35, 3), (22<19, 3), (13<5, 3), (7<36, 4), (13>32, 4)])).

test(4, (50, 750, [<, >]), (35, 35, 4), ([3, 41, 16, 10, 48, 40, 47, 50, 26, 27, 25, 19, 5, 17, 29, 33, 13, 12, 11, 34, 8, 42, 35, 24, 30, 23, 46, 9, 14, 49, 15, 37, 2, 32, 43], [3>41, 3>16, 3>48, 3>40, 3>50, 3>27, 3>25, 3>19, 3>33, 3>34, 3>8, 3>42, 3>24, 3>14, 3>37, 41>47, 16>41, 16>17, 16>33, 16>42, 16>24, 16>23, 16>32, 10>25, 10>34, 10>46, 10>49, 10>15, 10>37, 10>43, 40>41, 47>50, 47>49, 26>47, 26>27, 26>30, 26>37, 27>41, 27>48, 27>47, 27>29, 27>33, 27>37, 25>47, 25>50, 25>27, 25>29, 25>42, 25>43, 19>40, 19>26, 19>37, 19>43, 5>41, 5>48, 5>40, 5>47, 5>26, 5>17, 5>11, 5>8, 5>46, 17>29, 17>42, 17>23, 17>46, 29>47, 29>50, 29>30, 29>43, 33>41, 33>48, 33>47, 33>34, 33>46, 33>49, 33>43, 13>16, 13>26, 13>25, 13>17, 13>32, 12>27, 12>25, 12>19, 12>17, 12>29, 12>13, 12>46, 12>37, 12>32, 11>16, 11>40, 11>26, 11>27, 11>25, 11>29, 11>35, 11>30, 11>46, 34>35, 34>37, 8>16, 8>47, 8>19, 8>17, 8>13, 8>34, 8>24, 8>49, 8>15, 42>48, 42>47, 35>40, 35>47, 35>50, 35>37, 35>43, 24>50, 24>26, 24>34, 24>46, 24>37, 30>41, 30>48, 30>47, 30>42, 30>49, 30>32, 23>50, 23>29, 23>46, 23>37, 46>47, 9>50, 9>19, 9>29, 9>12, 9>34, 9>42, 9>24, 9>46, 14>16, 14>48, 14>40, 14>50, 14>25, 14>15, 14>37, 49>50, 15>16, 15>35, 37>41, 37>40, 37>43, 2>41, 2>16, 2>47, 2>26, 2>19, 2>33, 2>8, 2>24, 2>23, 2>46, 2>15, 2>43, 32>48, 32>40, 32>33, 32>35, 43>47, 43>50], [10<12, 9>32, 46<49, 3>15, 17>33, 16>34, 23>43, 19>17, 41<10, 27>8, 16<23, 47<13, 30<32, 29<8, 50>35, 48>30, 8>15, 3>42, 47<12, 41>32, 16<42, 50<30, 47<19, 48<8, 35<23, 50<26, 29<13, 25<23, 10>2, 25>15, 24<49, 33<12, 41<37, 11>30, 5>35], [ (3, 4), (41, 2), (16, 1), (10, 4), (48, 2), (40, 4), (47, 4), (50, 1), (26, 2), (27, 2), (25, 1), (19, 4), (5, 4), (17, 4), (29, 3), (33, 2), (13, 3), (12, 2), (11, 2), (34, 3), (8, 2), (42, 1), (35, 1), (24, 4), (30, 3), (23, 2), (46, 2), (9, 1), (14, 3), (49, 1), (15, 4), (37, 2), (2, 1), (32, 1), (43, 1)], [ (10<12, 1), (9>32, 2), (46<49, 2), (3>15, 2), (17>33, 3), (16>34, 1), (23>43, 2), (19>17, 1), (41<10, 3), (27>8, 1), (16<23, 3), (47<13, 1), (30<32, 3), (29<8, 3), (50>35, 2), (48>30, 2), (8>15, 4), (3>42, 4), (47<12, 4), (41>32, 1), (16<42, 1), (50<30, 2), (47<19, 3), (48<8, 4), (35<23, 4), (50<26, 4), (29<13, 4), (25<23, 1), (10>2, 4), (25>15, 1), (24<49, 2), (33<12, 3), (41<37, 1), (11>30, 2), (5>35, 3)])).

test(5, (50, 750, [<, >]), (35, 35, 4), ([42, 47, 5, 33, 48, 30, 8, 24, 23, 43, 37, 7, 20, 15, 4, 41, 44, 50, 1, 9, 13, 17, 19, 38, 11, 12, 25, 34, 3, 26, 6, 21, 31, 49, 40], [42>47, 5>30, 5>8, 5>24, 5>7, 5>44, 5>13, 5>17, 5>38, 5>11, 5>40, 33>38, 33>40, 48>49, 30>37, 30>38, 30>34, 30>49, 8>23, 8>20, 8>44, 8>17, 8>11, 8>26, 8>49, 8>40, 24>43, 24>37, 24>49, 23>42, 23>47, 23>48, 23>43, 23>37, 23>41, 23>50, 23>40, 37>42, 7>47, 7>30, 7>37, 7>44, 7>13, 7>38, 7>25, 7>49, 20>30, 20>24, 20>41, 20>44, 20>21, 15>33, 15>24, 15>43, 15>37, 15>50, 15>19, 15>25, 15>26, 15>49, 4>5, 4>37, 4>44, 4>12, 4>26, 41>42, 41>43, 1>47, 1>30, 1>8, 1>43, 1>37, 1>20, 1>13, 1>25, 1>34, 1>3, 1>26, 9>48, 9>24, 9>43, 9>15, 9>19, 9>11, 9>31, 13>33, 13>48, 13>20, 13>50, 13>25, 13>34, 17>48, 17>44, 17>50, 17>25, 17>26, 19>42, 19>33, 19>24, 19>44, 19>25, 19>26, 19>31, 19>40, 38>43, 38>41, 11>33, 11>48, 11>24, 11>43, 11>37, 11>15, 11>13, 11>19, 11>12, 12>42, 12>47, 12>50, 12>13, 12>19, 12>34, 12>21, 25>48, 25>41, 25>50, 25>34, 25>26, 25>49, 34>48, 34>43, 34>49, 34>40, 3>23, 3>7, 3>50, 3>17, 3>11, 3>31, 26>48, 26>30, 26>43, 26>38, 26>40, 6>42, 6>47, 6>48, 6>8, 6>37, 6>41, 6>9, 6>19, 6>26, 6>40, 21>42, 21>24, 21>41, 21>38, 21>25, 31>42, 31>47, 31>44, 31>34, 31>40, 40>42], [33>31, 37>21, 33<30, 30<25, 5<12, 8>37, 7<40, 24>38, 5>13, 4<34, 42>20, 8<9, 26>31, 42<21, 20<9, 5>11, 7<3, 8>12, 42<47, 1<9, 41>25, 11>3, 15>40, 3>6, 23<31, 48<19, 15>38, 12<3, 24>19, 30>49, 5<21, 37<13, 42<8, 5<19, 4<49], [ (42, 3), (47, 3), (5, 2), (33, 4), (48, 3), (30, 3), (8, 4), (24, 4), (23, 1), (43, 3), (37, 3), (7, 2), (20, 1), (15, 1), (4, 3), (41, 3), (44, 1), (50, 3), (1, 3), (9, 3), (13, 2), (17, 3), (19, 3), (38, 4), (11, 1), (12, 2), (25, 2), (34, 3), (3, 2), (26, 4), (6, 4), (21, 1), (31, 3), (49, 2), (40, 1)], [ (33>31, 1), (37>21, 1), (33<30, 2), (30<25, 1), (5<12, 1), (8>37, 3), (7<40, 3), (24>38, 4), (5>13, 1), (4<34, 4), (42>20, 1), (8<9, 2), (26>31, 2), (42<21, 4), (20<9, 4), (5>11, 4), (7<3, 1), (8>12, 2), (42<47, 3), (1<9, 2), (41>25, 2), (11>3, 1), (15>40, 4), (3>6, 1), (23<31, 1), (48<19, 4), (15>38, 2), (12<3, 2), (24>19, 4), (30>49, 2), (5<21, 4), (37<13, 2), (42<8, 1), (5<19, 1), (4<49, 1)])).

test(6, (50, 750, [<, >]), (35, 35, 4), ([48, 11, 40, 8, 7, 39, 18, 36, 31, 9, 50, 29, 24, 22, 43, 37, 38, 49, 17, 19, 12, 42, 35, 41, 1, 16, 32, 4, 45, 47, 14, 3, 6, 20, 44], [48>50, 48>49, 11>40, 11>24, 11>22, 11>43, 11>19, 11>35, 40>42, 40>44, 8>48, 8>50, 8>29, 8>49, 8>19, 8>45, 8>44, 7>8, 7>18, 7>36, 7>31, 7>9, 7>50, 7>29, 7>43, 7>35, 7>16, 39>40, 39>50, 39>43, 39>45, 18>29, 18>37, 18>38, 18>19, 18>32, 36>48, 36>39, 36>43, 36>41, 36>44, 31>40, 31>39, 31>37, 31>49, 9>24, 9>43, 9>17, 9>19, 9>41, 29>39, 29>35, 29>41, 29>45, 24>36, 24>37, 24>38, 24>42, 22>36, 22>37, 22>38, 22>35, 22>41, 22>32, 22>45, 22>44, 43>48, 43>50, 43>49, 37>41, 37>45, 37>47, 17>36, 17>31, 17>50, 17>29, 17>41, 17>20, 19>48, 19>40, 19>31, 19>37, 19>49, 19>32, 19>47, 19>44, 12>36, 12>24, 12>22, 12>43, 12>41, 12>16, 12>45, 12>20, 12>44, 42>49, 42>47, 42>44, 35>48, 35>39, 35>36, 35>43, 35>38, 35>42, 35>41, 41>48, 41>50, 41>49, 41>42, 1>40, 1>8, 1>17, 1>19, 1>12, 1>45, 1>14, 1>44, 16>48, 16>40, 16>43, 16>42, 16>41, 16>32, 32>36, 32>43, 32>49, 32>35, 32>41, 4>48, 4>40, 4>39, 4>50, 4>24, 4>43, 4>12, 4>35, 4>45, 4>47, 4>14, 4>20, 45>47, 14>36, 14>37, 14>38, 14>35, 14>16, 14>32, 14>47, 3>48, 3>11, 3>40, 3>7, 3>39, 3>18, 3>36, 3>31, 3>24, 3>22, 3>38, 3>49, 3>17, 3>35, 6>48, 6>40, 6>29, 6>37, 6>49, 6>19, 6>35, 6>16, 6>32, 6>20, 20>48, 20>37, 20>41, 20>44], [36<43, 8>45, 31>43, 31<47, 47>14, 48>44, 42>45, 22>45, 31>37, 35<32, 17>12, 35<41, 29>42, 50<45, 1>20, 38>17, 39>1, 36<35, 17>1, 49>32, 7<24, 7<45, 8<49, 38<6, 11<39, 50<1, 9<37, 18<12, 49>3, 50<32, 48>19, 8<3, 39>49, 40>8, 39<22], [ (48, 4), (11, 2), (40, 2), (8, 1), (7, 4), (39, 2), (18, 2), (36, 4), (31, 3), (9, 1), (50, 4), (29, 2), (24, 1), (22, 4), (43, 3), (37, 4), (38, 4), (49, 3), (17, 3), (19, 1), (12, 3), (42, 3), (35, 4), (41, 2), (1, 2), (16, 2), (32, 3), (4, 4), (45, 1), (47, 2), (14, 4), (3, 2), (6, 1), (20, 4), (44, 2)], [ (36<43, 4), (8>45, 1), (31>43, 3), (31<47, 3), (47>14, 2), (48>44, 1), (42>45, 1), (22>45, 2), (31>37, 3), (35<32, 3), (17>12, 2), (35<41, 4), (29>42, 1), (50<45, 2), (1>20, 3), (38>17, 3), (39>1, 2), (36<35, 4), (17>1, 4), (49>32, 4), (7<24, 2), (7<45, 4), (8<49, 3), (38<6, 3), (11<39, 4), (50<1, 4), (9<37, 3), (18<12, 3), (49>3, 3), (50<32, 3), (48>19, 2), (8<3, 2), (39>49, 1), (40>8, 2), (39<22, 3)])).

test(7, (50, 750, [<, >]), (35, 35, 4), ([19, 32, 4, 1, 25, 14, 45, 10, 24, 23, 49, 28, 35, 37, 16, 3, 42, 26, 13, 8, 47, 27, 33, 46, 41, 50, 31, 29, 38, 5, 17, 11, 9, 22, 48], [19>32, 19>28, 19>35, 19>37, 19>42, 19>47, 19>27, 19>33, 19>31, 19>22, 32>45, 32>47, 32>46, 4>19, 4>24, 4>49, 4>35, 4>37, 4>42, 4>26, 4>13, 4>47, 4>33, 4>9, 4>22, 1>32, 1>4, 1>24, 1>35, 1>42, 1>46, 1>41, 1>31, 25>32, 25>28, 25>42, 25>46, 25>29, 25>38, 14>32, 14>24, 14>28, 14>35, 14>37, 14>27, 14>41, 14>38, 14>17, 14>22, 45>46, 10>25, 10>14, 10>49, 10>28, 10>42, 10>38, 10>11, 24>49, 24>47, 24>33, 24>50, 24>29, 23>35, 23>47, 23>29, 23>48, 28>37, 28>33, 28>46, 28>29, 28>48, 35>37, 35>47, 35>46, 35>50, 35>38, 37>45, 37>49, 37>42, 37>46, 16>25, 16>24, 16>35, 16>37, 16>42, 16>26, 16>17, 3>4, 3>14, 3>45, 3>24, 3>49, 3>35, 3>37, 3>16, 3>42, 3>26, 3>27, 3>5, 3>9, 3>22, 42>45, 42>49, 26>37, 26>41, 26>50, 26>31, 13>35, 13>26, 13>46, 13>17, 13>48, 8>25, 8>14, 8>10, 8>49, 8>33, 8>46, 8>41, 8>31, 8>9, 47>50, 27>32, 27>45, 27>49, 27>42, 27>47, 27>29, 27>48, 33>41, 33>38, 46>49, 46>50, 46>48, 41>42, 41>48, 31>35, 31>33, 31>41, 31>38, 29>32, 29>42, 29>41, 29>31, 29>38, 38>42, 38>46, 38>41, 5>25, 5>45, 5>24, 5>49, 5>35, 5>16, 5>13, 5>47, 5>27, 5>33, 5>50, 5>31, 17>23, 17>47, 17>41, 17>31, 17>38, 17>22, 11>19, 11>42, 11>26, 11>47, 11>22, 11>48, 9>45, 9>24, 9>26, 9>17, 9>11, 9>22, 22>24, 22>23, 22>49, 22>27, 22>33, 22>48, 48>50], [46<22, 38<11, 19<22, 49<46, 26>48, 13<41, 19>47, 28<38, 25<47, 25>46, 23<26, 5<17, 47>38, 1>10, 32<31, 8>17, 4<14, 28<35, 10<17, 32>33, 23<13, 47>5, 24>37, 35<17, 19<3, 8>46, 24<33, 24<50, 37<33, 19>16, 3>47, 13>48, 25>24, 4<31, 3<13], [ (19, 4), (32, 3), (4, 1), (1, 2), (25, 1), (14, 4), (45, 2), (10, 4), (24, 1), (23, 3), (49, 3), (28, 2), (35, 4), (37, 3), (16, 4), (3, 3), (42, 2), (26, 4), (13, 4), (8, 4), (47, 4), (27, 2), (33, 2), (46, 2), (41, 3), (50, 1), (31, 2), (29, 3), (38, 2), (5, 3), (17, 4), (11, 4), (9, 2), (22, 3), (48, 1)], [ (46<22, 2), (38<11, 4), (19<22, 4), (49<46, 4), (26>48, 2), (13<41, 4), (19>47, 2), (28<38, 3), (25<47, 3), (25>46, 1), (23<26, 1), (5<17, 2), (47>38, 1), (1>10, 3), (32<31, 1), (8>17, 1), (4<14, 2), (28<35, 4), (10<17, 1), (32>33, 1), (23<13, 4), (47>5, 4), (24>37, 2), (35<17, 2), (19<3, 2), (8>46, 4), (24<33, 2), (24<50, 1), (37<33, 1), (19>16, 4), (3>47, 2), (13>48, 2), (25>24, 4), (4<31, 4), (3<13, 4)])).

test(8, (50, 750, [<, >]), (35, 35, 4), ([3, 6, 16, 10, 2, 23, 22, 35, 33, 31, 11, 14, 21, 28, 29, 37, 45, 49, 34, 39, 43, 15, 46, 5, 25, 42, 38, 26, 36, 32, 8, 9, 4, 47, 12], [3>33, 3>31, 3>14, 3>45, 3>34, 3>39, 3>46, 3>25, 3>26, 3>36, 3>32, 3>8, 3>12, 6>16, 6>11, 6>15, 6>46, 6>42, 6>9, 6>12, 16>22, 16>45, 16>49, 16>34, 16>26, 10>16, 10>35, 10>11, 10>14, 10>29, 10>45, 10>39, 10>43, 10>42, 10>26, 10>36, 10>12, 2>3, 2>6, 2>33, 2>31, 2>21, 2>28, 2>39, 2>42, 2>47, 2>12, 23>35, 23>37, 23>25, 23>26, 23>32, 22>31, 22>43, 22>46, 22>25, 22>36, 22>47, 35>45, 35>39, 35>43, 35>46, 35>42, 35>38, 33>43, 31>33, 31>45, 31>46, 31>36, 31>32, 31>47, 11>22, 11>49, 11>43, 11>26, 11>36, 14>21, 14>29, 14>39, 21>35, 21>33, 21>29, 21>45, 21>42, 21>38, 21>36, 21>47, 28>35, 28>33, 28>31, 28>37, 28>34, 28>42, 29>35, 29>33, 29>34, 29>43, 37>39, 45>46, 34>43, 34>46, 34>47, 39>45, 43>45, 43>47, 15>22, 15>21, 15>28, 15>37, 15>49, 15>34, 15>25, 15>32, 15>47, 46>49, 5>23, 5>22, 5>35, 5>28, 5>39, 5>46, 5>42, 5>36, 5>9, 5>12, 25>29, 25>45, 25>43, 25>38, 25>26, 42>46, 42>47, 38>45, 38>43, 26>29, 26>37, 26>45, 36>45, 36>49, 36>42, 36>38, 32>37, 32>46, 32>42, 8>22, 8>28, 8>49, 8>34, 8>15, 8>42, 8>38, 8>36, 8>47, 8>12, 9>34, 9>46, 9>42, 9>36, 9>32, 9>47, 4>10, 4>33, 4>21, 4>37, 4>45, 4>49, 4>46, 4>5, 4>26, 4>8, 4>9, 12>16, 12>23, 12>33, 12>31, 12>21, 12>29, 12>37, 12>49, 12>34, 12>39, 12>15], [16<22, 26>12, 15>36, 29<45, 15<32, 49>32, 22<21, 14<29, 28>43, 35<46, 34>8, 2>8, 16>28, 21>15, 32>9, 28<36, 6<23, 16>47, 29<32, 2<42, 37>39, 10>4, 29>12, 35<45, 10>29, 37>15, 10<36, 5<12, 14>8, 6>39, 14>5, 16<36, 32<4, 16<26, 14>47], [ (3, 2), (6, 4), (16, 1), (10, 1), (2, 1), (23, 3), (22, 4), (35, 4), (33, 2), (31, 4), (11, 1), (14, 1), (21, 2), (28, 3), (29, 2), (37, 3), (45, 2), (49, 3), (34, 3), (39, 4), (43, 1), (15, 3), (46, 2), (5, 4), (25, 4), (42, 3), (38, 4), (26, 4), (36, 4), (32, 1), (8, 1), (9, 4), (4, 2), (47, 1), (12, 1)], [ (16<22, 3), (26>12, 1), (15>36, 1), (29<45, 4), (15<32, 4), (49>32, 2), (22<21, 2), (14<29, 1), (28>43, 2), (35<46, 3), (34>8, 4), (2>8, 1), (16>28, 1), (21>15, 1), (32>9, 2), (28<36, 4), (6<23, 2), (16>47, 1), (29<32, 1), (2<42, 1), (37>39, 2), (10>4, 2), (29>12, 3), (35<45, 4), (10>29, 1), (37>15, 1), (10<36, 4), (5<12, 3), (14>8, 3), (6>39, 1), (14>5, 4), (16<36, 4), (32<4, 4), (16<26, 2), (14>47, 4)])).

test(9, (50, 750, [<, >]), (35, 35, 4), ([34, 13, 20, 48, 40, 36, 15, 2, 12, 23, 14, 41, 5, 38, 10, 1, 30, 22, 26, 6, 28, 27, 31, 7, 18, 17, 42, 33, 45, 37, 9, 24, 32, 8, 44], [34>36, 13>20, 13>48, 13>36, 13>15, 13>38, 13>28, 13>27, 13>33, 20>40, 20>23, 20>30, 20>33, 20>24, 20>44, 36>40, 36>41, 36>45, 15>20, 15>48, 15>23, 15>38, 15>22, 15>26, 15>28, 15>27, 15>31, 15>33, 15>45, 15>24, 2>5, 2>28, 2>18, 2>17, 2>33, 2>45, 2>32, 12>13, 12>20, 12>14, 12>30, 12>18, 12>17, 12>33, 12>24, 12>44, 23>48, 23>41, 23>38, 23>28, 23>33, 23>45, 23>37, 14>48, 14>36, 14>26, 14>27, 14>18, 14>37, 14>24, 5>20, 5>40, 5>36, 5>41, 5>38, 5>30, 5>42, 5>33, 5>45, 5>24, 5>8, 38>40, 38>41, 38>44, 10>13, 10>20, 10>48, 10>15, 10>14, 10>30, 10>28, 10>37, 10>24, 1>20, 1>48, 1>5, 1>38, 1>10, 1>30, 1>22, 1>18, 1>42, 1>33, 1>45, 1>37, 1>44, 30>41, 30>44, 22>34, 22>26, 22>27, 22>31, 22>37, 22>44, 26>48, 26>36, 26>28, 26>42, 26>44, 6>34, 6>40, 6>36, 6>30, 6>26, 6>7, 6>17, 6>37, 28>34, 28>48, 28>41, 28>38, 28>42, 28>45, 28>37, 28>44, 27>48, 31>48, 31>41, 31>45, 7>13, 7>40, 7>14, 7>26, 7>28, 7>27, 7>18, 7>37, 7>24, 7>32, 7>8, 18>34, 18>48, 18>40, 18>23, 18>41, 18>22, 18>28, 18>42, 18>45, 18>24, 17>20, 17>23, 17>31, 17>42, 17>33, 42>48, 33>41, 33>45, 45>48, 37>40, 37>42, 37>45, 37>44, 9>48, 9>23, 9>14, 9>10, 9>27, 9>37, 9>44, 24>48, 24>41, 24>38, 24>30, 24>28, 24>31, 32>44, 8>13, 8>40, 8>36, 8>38, 8>26, 8>31, 8>42, 8>33, 8>37, 8>24, 8>44], [42>24, 13<36, 2<44, 41<33, 20>15, 38<9, 48<42, 1<27, 28<42, 13>12, 13>37, 1<28, 7<37, 48>5, 20<7, 2>24, 1<32, 31<45, 12<28, 36<8, 13<9, 41<32, 38<27, 5<33, 27<17, 22<42, 1<22, 18>8, 26<28, 27<31, 14<18, 31>7, 15<42, 36<38, 17<44], [ (34, 1), (13, 2), (20, 4), (48, 1), (40, 4), (36, 1), (15, 1), (2, 1), (12, 4), (23, 4), (14, 1), (41, 1), (5, 2), (38, 2), (10, 4), (1, 3), (30, 4), (22, 1), (26, 4), (6, 1), (28, 2), (27, 1), (31, 3), (7, 4), (18, 4), (17, 4), (42, 3), (33, 4), (45, 3), (37, 2), (9, 4), (24, 1), (32, 4), (8, 3), (44, 2)], [ (42>24, 1), (13<36, 4), (2<44, 1), (41<33, 3), (20>15, 4), (38<9, 4), (48<42, 2), (1<27, 2), (28<42, 2), (13>12, 2), (13>37, 1), (1<28, 3), (7<37, 1), (48>5, 2), (20<7, 4), (2>24, 1), (1<32, 2), (31<45, 2), (12<28, 2), (36<8, 2), (13<9, 1), (41<32, 3), (38<27, 3), (5<33, 4), (27<17, 4), (22<42, 3), (1<22, 2), (18>8, 2), (26<28, 3), (27<31, 4), (14<18, 2), (31>7, 3), (15<42, 1), (36<38, 4), (17<44, 3)])).

test(10, (50, 750, [<, >]), (35, 35, 4), ([47, 11, 29, 9, 6, 15, 23, 19, 48, 20, 3, 38, 34, 16, 44, 50, 37, 42, 4, 10, 32, 1, 45, 25, 35, 8, 17, 39, 26, 28, 21, 12, 13, 7, 5], [11>20, 11>34, 11>45, 11>25, 11>21, 29>47, 29>50, 29>39, 9>47, 9>29, 9>48, 9>10, 9>45, 9>35, 9>17, 9>28, 6>9, 6>23, 6>38, 6>50, 6>25, 6>8, 6>39, 6>26, 6>21, 6>12, 15>44, 15>37, 15>45, 15>17, 15>26, 15>21, 23>47, 23>29, 23>38, 23>50, 23>37, 23>42, 23>45, 23>25, 23>35, 19>47, 19>29, 19>48, 19>38, 19>34, 19>45, 19>35, 19>39, 20>34, 20>42, 20>35, 20>26, 20>21, 3>29, 3>9, 3>15, 3>23, 3>44, 3>50, 3>4, 3>32, 3>25, 3>28, 38>42, 38>39, 34>37, 34>42, 34>45, 16>47, 16>29, 16>23, 16>48, 16>34, 16>50, 16>37, 16>25, 16>35, 44>50, 44>45, 37>44, 37>39, 42>50, 42>45, 4>29, 4>9, 4>6, 4>20, 4>42, 4>45, 4>25, 4>35, 4>28, 4>13, 4>7, 10>29, 10>20, 10>44, 10>37, 10>32, 10>45, 10>39, 10>28, 10>13, 32>48, 32>44, 32>37, 32>42, 32>45, 32>35, 32>39, 1>47, 1>29, 1>9, 1>15, 1>48, 1>34, 1>16, 1>50, 1>45, 1>21, 1>12, 25>47, 25>50, 25>39, 25>26, 35>38, 35>37, 8>29, 8>9, 8>20, 8>44, 8>37, 8>42, 8>10, 8>32, 8>12, 17>23, 17>44, 17>37, 17>32, 17>45, 39>44, 26>47, 26>37, 26>39, 26>28, 28>47, 28>38, 28>34, 28>44, 28>50, 28>39, 21>48, 21>37, 21>26, 21>28, 12>47, 12>29, 12>48, 12>44, 12>37, 12>35, 12>28, 12>13, 13>29, 13>23, 13>19, 13>34, 13>32, 13>26, 13>28, 13>21, 7>47, 7>29, 7>9, 7>38, 7>34, 7>44, 7>25, 7>17, 5>11, 5>29, 5>19, 5>48, 5>50, 5>37, 5>35], [23>38, 38<16, 3>7, 29>17, 50<28, 50>10, 47>44, 32>1, 44<17, 19>39, 6<48, 47<10, 13>7, 10<35, 39<13, 29<26, 17>39, 11<50, 32<7, 10<13, 42>17, 11<1, 9>17, 20<12, 4>39, 9<50, 37<1, 29>10, 32>21, 23>34, 37<28, 38<50, 37<13, 1>25, 9>25], [ (47, 3), (11, 4), (29, 1), (9, 2), (6, 1), (15, 4), (23, 4), (19, 4), (48, 3), (20, 3), (3, 3), (38, 4), (34, 4), (16, 2), (44, 1), (50, 3), (37, 3), (42, 1), (4, 2), (10, 3), (32, 2), (1, 1), (45, 2), (25, 2), (35, 1), (8, 2), (17, 1), (39, 1), (26, 1), (28, 3), (21, 1), (12, 4), (13, 2), (7, 2), (5, 2)], [ (23>38, 1), (38<16, 3), (3>7, 4), (29>17, 1), (50<28, 4), (50>10, 4), (47>44, 3), (32>1, 2), (44<17, 4), (19>39, 2), (6<48, 3), (47<10, 2), (13>7, 1), (10<35, 1), (39<13, 1), (29<26, 3), (17>39, 1), (11<50, 3), (32<7, 4), (10<13, 4), (42>17, 4), (11<1, 1), (9>17, 3), (20<12, 1), (4>39, 4), (9<50, 3), (37<1, 4), (29>10, 3), (32>21, 2), (23>34, 2), (37<28, 1), (38<50, 3), (37<13, 4), (1>25, 4), (9>25, 4)])).

%% 50, 750, [<, >]
%% 40, 40, 4

test(1, (50, 750, [<, >]), (40, 40, 4), ([45, 26, 39, 4, 25, 17, 28, 11, 2, 21, 14, 5, 42, 34, 35, 22, 30, 9, 32, 37, 12, 43, 16, 6, 49, 41, 1, 36, 33, 40, 27, 48, 10, 13, 24, 31, 23, 46, 19, 15], [45>48, 45>46, 26>45, 26>33, 26>40, 26>48, 39>40, 39>48, 39>46, 4>45, 4>26, 4>25, 4>5, 4>35, 4>30, 4>9, 4>37, 4>12, 4>16, 4>49, 4>41, 4>36, 4>40, 4>27, 4>24, 4>31, 4>23, 25>42, 25>34, 25>37, 25>49, 25>41, 25>40, 25>31, 17>21, 17>34, 17>36, 17>33, 28>39, 28>34, 28>41, 28>33, 28>48, 11>22, 11>37, 11>12, 11>43, 11>27, 11>15, 2>39, 2>4, 2>25, 2>28, 2>14, 2>5, 2>35, 2>22, 2>30, 2>37, 2>43, 2>6, 2>49, 2>36, 2>27, 2>48, 2>23, 21>26, 21>39, 21>25, 21>28, 21>42, 21>32, 21>36, 21>40, 21>27, 21>48, 21>31, 14>26, 14>17, 14>28, 14>21, 14>35, 14>22, 14>43, 14>16, 14>36, 14>24, 14>31, 14>23, 14>15, 5>45, 5>17, 5>21, 5>12, 5>40, 5>24, 5>31, 5>46, 34>45, 34>35, 34>49, 34>48, 35>43, 35>49, 35>36, 35>40, 35>48, 22>45, 22>26, 22>39, 22>35, 22>37, 22>36, 22>27, 22>31, 22>23, 30>42, 30>34, 30>32, 30>49, 30>41, 30>33, 30>40, 30>48, 30>46, 9>45, 9>25, 9>21, 9>22, 9>41, 9>33, 9>13, 9>19, 32>37, 32>41, 32>33, 37>45, 37>49, 12>39, 12>21, 12>34, 12>48, 12>13, 12>23, 12>19, 12>15, 43>48, 16>45, 16>35, 16>30, 16>36, 16>33, 16>24, 6>39, 6>14, 6>34, 6>22, 6>9, 6>32, 6>12, 6>16, 6>40, 6>48, 6>24, 6>46, 41>42, 41>43, 1>26, 1>4, 1>42, 1>22, 1>6, 1>36, 1>40, 1>10, 1>24, 1>15, 36>45, 36>37, 36>40, 33>34, 33>35, 33>37, 33>49, 33>48, 40>49, 40>48, 27>35, 27>43, 27>36, 27>33, 27>31, 10>39, 10>28, 10>35, 10>43, 10>41, 10>33, 10>13, 10>31, 10>23, 10>46, 10>19, 13>26, 13>39, 13>25, 13>21, 13>42, 13>34, 13>22, 13>33, 13>40, 13>27, 13>48, 13>19, 13>15, 24>45, 24>26, 24>30, 24>32, 24>37, 24>49, 24>36, 24>33, 24>40, 24>46, 31>49, 31>33, 31>40, 31>46, 23>26, 23>30, 23>43, 23>36, 23>40, 23>27, 23>48, 46>48, 19>45, 19>25, 19>32, 19>36, 19>27, 19>23, 15>39, 15>25, 15>34, 15>35, 15>22, 15>16, 15>36, 15>40, 15>19], [14<24, 26<37, 17<21, 42>22, 40>23, 22>46, 6>10, 11<2, 37>33, 12<49, 42<12, 2<48, 25>24, 37>10, 14>12, 30>49, 14>34, 23>46, 39<32, 32<43, 25<1, 5<31, 21<14, 5<35, 14>27, 11>42, 21<34, 1<48, 4>21, 32<36, 45>28, 22<10, 37>12, 45<39, 30>41, 35<36, 49>10, 42<27, 4<42, 26<13], [ (45, 2), (26, 4), (39, 4), (4, 2), (25, 1), (17, 2), (28, 4), (11, 2), (2, 1), (21, 2), (14, 1), (5, 1), (42, 1), (34, 1), (35, 1), (22, 1), (30, 2), (9, 2), (32, 1), (37, 3), (12, 4), (43, 4), (16, 2), (6, 3), (49, 1), (41, 2), (1, 2), (36, 2), (33, 3), (40, 2), (27, 2), (48, 1), (10, 1), (13, 4), (24, 4), (31, 1), (23, 2), (46, 2), (19, 1), (15, 4)], [ (14<24, 4), (26<37, 2), (17<21, 3), (42>22, 2), (40>23, 4), (22>46, 4), (6>10, 1), (11<2, 4), (37>33, 1), (12<49, 2), (42<12, 1), (2<48, 2), (25>24, 2), (37>10, 4), (14>12, 3), (30>49, 2), (14>34, 4), (23>46, 2), (39<32, 2), (32<43, 2), (25<1, 1), (5<31, 2), (21<14, 4), (5<35, 2), (14>27, 4), (11>42, 3), (21<34, 4), (1<48, 1), (4>21, 3), (32<36, 2), (45>28, 2), (22<10, 2), (37>12, 3), (45<39, 2), (30>41, 1), (35<36, 1), (49>10, 4), (42<27, 2), (4<42, 3), (26<13, 3)])).

test(2, (50, 750, [<, >]), (40, 40, 4), ([45, 48, 28, 25, 46, 8, 22, 32, 14, 38, 40, 16, 26, 15, 27, 11, 5, 6, 7, 37, 4, 39, 13, 9, 42, 3, 12, 49, 35, 23, 31, 36, 30, 18, 43, 34, 17, 47, 33, 29], [45>49, 28>35, 28>36, 28>30, 28>34, 28>47, 25>46, 25>32, 25>27, 25>37, 25>49, 25>31, 25>36, 8>45, 8>46, 8>32, 8>40, 8>16, 8>26, 8>15, 8>35, 8>31, 8>18, 8>33, 22>45, 22>32, 22>40, 22>37, 22>42, 32>48, 32>37, 32>39, 14>45, 14>16, 14>23, 14>36, 14>18, 14>34, 38>39, 38>43, 40>49, 40>43, 16>40, 16>39, 16>49, 16>36, 16>18, 16>43, 16>29, 26>28, 26>38, 26>40, 26>37, 26>42, 26>35, 26>29, 15>45, 15>28, 15>22, 15>38, 15>40, 15>26, 15>27, 15>37, 15>39, 15>35, 15>23, 15>31, 15>34, 27>48, 27>38, 27>35, 27>43, 11>28, 11>25, 11>46, 11>40, 11>15, 11>37, 11>49, 11>36, 11>30, 11>18, 11>47, 5>22, 5>40, 5>13, 5>30, 5>43, 5>34, 6>46, 6>22, 6>14, 6>16, 6>37, 6>39, 6>13, 6>49, 6>17, 7>46, 7>8, 7>22, 7>14, 7>16, 7>26, 7>11, 7>37, 7>23, 7>31, 7>30, 7>43, 7>34, 7>47, 7>33, 7>29, 37>39, 4>45, 4>25, 4>46, 4>32, 4>38, 4>5, 4>36, 4>43, 4>34, 4>47, 39>46, 13>45, 13>40, 13>16, 13>27, 13>37, 13>49, 13>23, 13>36, 13>30, 13>18, 13>17, 13>47, 9>45, 9>46, 9>14, 9>26, 9>37, 9>35, 9>36, 9>47, 9>29, 42>45, 42>49, 42>47, 3>45, 3>25, 3>8, 3>38, 3>15, 3>27, 3>7, 3>37, 3>9, 3>31, 3>36, 3>30, 3>17, 3>47, 3>29, 12>28, 12>14, 12>38, 12>39, 12>49, 12>36, 12>30, 12>34, 12>33, 35>45, 35>40, 23>45, 23>48, 23>28, 23>40, 23>37, 23>39, 23>42, 23>49, 23>31, 23>36, 23>30, 23>34, 23>47, 23>29, 31>39, 31>49, 36>37, 36>39, 36>49, 36>47, 30>45, 30>46, 30>40, 30>49, 30>43, 18>45, 18>40, 18>26, 18>27, 18>37, 18>39, 18>23, 18>31, 18>36, 18>43, 18>47, 18>33, 43>48, 43>49, 34>38, 34>40, 34>37, 34>42, 17>45, 17>28, 17>46, 17>32, 17>38, 17>26, 17>37, 17>49, 17>36, 17>47, 17>29, 33>45, 33>38, 33>37, 33>42, 33>47, 29>45, 29>32, 29>38, 29>40, 29>37, 29>35, 29>30], [31>34, 13>43, 13>33, 39<47, 22>31, 8<17, 48<34, 45<8, 9>18, 31<36, 25<36, 3>17, 42<36, 35<33, 40>34, 38<5, 49<31, 4<39, 38>33, 14>42, 15<3, 7>31, 28<3, 31>47, 36>29, 26<36, 48>26, 48>31, 46<37, 8>32, 8<9, 5>30, 38>30, 16<30, 42<29, 26>4, 11>13, 27>6, 11<42, 32>9], [ (45, 3), (48, 3), (28, 3), (25, 1), (46, 4), (8, 2), (22, 4), (32, 2), (14, 1), (38, 2), (40, 3), (16, 4), (26, 3), (15, 4), (27, 2), (11, 4), (5, 2), (6, 4), (7, 4), (37, 4), (4, 4), (39, 4), (13, 1), (9, 2), (42, 3), (3, 1), (12, 3), (49, 1), (35, 3), (23, 2), (31, 2), (36, 3), (30, 3), (18, 2), (43, 2), (34, 4), (17, 1), (47, 4), (33, 4), (29, 2)], [ (31>34, 4), (13>43, 3), (13>33, 2), (39<47, 4), (22>31, 2), (8<17, 3), (48<34, 2), (45<8, 1), (9>18, 3), (31<36, 2), (25<36, 2), (3>17, 4), (42<36, 4), (35<33, 2), (40>34, 1), (38<5, 1), (49<31, 1), (4<39, 2), (38>33, 1), (14>42, 1), (15<3, 2), (7>31, 4), (28<3, 4), (31>47, 3), (36>29, 1), (26<36, 1), (48>26, 2), (48>31, 3), (46<37, 3), (8>32, 4), (8<9, 3), (5>30, 3), (38>30, 2), (16<30, 1), (42<29, 1), (26>4, 3), (11>13, 4), (27>6, 4), (11<42, 1), (32>9, 4)])).

test(3, (50, 750, [<, >]), (40, 40, 4), ([14, 35, 18, 9, 41, 32, 15, 23, 21, 20, 33, 19, 2, 10, 31, 1, 24, 12, 3, 29, 25, 46, 34, 36, 13, 28, 22, 30, 48, 40, 26, 49, 5, 43, 50, 7, 27, 11, 16, 42], [14>18, 14>41, 14>23, 14>31, 14>34, 14>28, 14>22, 14>30, 14>48, 14>43, 14>16, 35>36, 35>48, 35>49, 35>50, 18>35, 18>19, 18>31, 18>24, 18>30, 18>26, 9>14, 9>35, 9>21, 9>20, 9>19, 9>10, 9>24, 9>12, 9>25, 9>46, 9>28, 9>40, 9>26, 41>46, 41>42, 32>36, 32>49, 32>43, 15>18, 15>31, 15>34, 15>28, 15>22, 15>49, 15>43, 23>32, 23>36, 23>40, 23>26, 23>49, 21>33, 21>31, 21>24, 21>29, 21>28, 21>40, 21>26, 21>43, 21>42, 20>35, 20>23, 20>33, 20>24, 20>48, 20>43, 33>35, 33>34, 33>36, 33>43, 33>50, 33>42, 19>41, 19>25, 19>36, 19>48, 19>40, 19>43, 19>50, 19>42, 2>35, 2>23, 2>21, 2>20, 2>33, 2>19, 2>31, 2>34, 2>36, 2>13, 2>30, 2>5, 2>27, 2>11, 2>16, 10>41, 10>21, 10>33, 10>19, 10>31, 10>24, 10>29, 10>25, 10>34, 10>13, 10>22, 10>48, 10>50, 31>41, 31>34, 31>43, 1>35, 1>18, 1>41, 1>20, 1>33, 1>19, 1>24, 1>3, 1>28, 1>48, 1>40, 1>49, 1>7, 24>35, 24>29, 24>28, 24>30, 24>43, 24>50, 12>32, 12>23, 12>31, 12>30, 12>48, 12>26, 12>27, 3>14, 3>35, 3>18, 3>9, 3>32, 3>10, 3>31, 3>29, 3>25, 3>28, 29>35, 29>41, 29>32, 29>48, 29>40, 29>50, 29>42, 25>35, 25>32, 25>31, 25>48, 25>49, 25>42, 46>49, 34>35, 34>41, 34>46, 34>40, 34>49, 36>48, 36>42, 13>18, 13>41, 13>32, 13>15, 13>23, 13>21, 13>33, 13>25, 13>46, 13>22, 13>30, 13>26, 13>43, 13>27, 28>33, 28>46, 28>36, 28>49, 28>43, 22>24, 22>29, 22>36, 22>48, 22>43, 22>50, 30>35, 30>41, 30>43, 48>49, 40>48, 26>41, 26>33, 26>28, 26>30, 26>27, 49>50, 5>14, 5>9, 5>20, 5>24, 5>46, 5>13, 5>30, 5>48, 5>50, 5>7, 5>11, 43>48, 43>50, 7>14, 7>35, 7>23, 7>21, 7>25, 7>36, 7>13, 7>28, 7>22, 7>40, 7>43, 7>11, 27>33, 27>46, 27>49, 27>43, 11>35, 11>18, 11>23, 11>21, 11>20, 11>24, 11>25, 11>34, 11>22, 11>26, 11>43, 11>27, 11>42, 16>35, 16>41, 16>32, 16>20, 16>26], [24>36, 14>15, 35>28, 46<28, 21<22, 18<28, 2<26, 19<24, 41>3, 7>27, 19>27, 22<5, 49<5, 32>20, 5>27, 21>48, 15<31, 41<5, 35<32, 12>46, 25<34, 33<29, 9<2, 15<25, 35<25, 24>42, 36<42, 15<10, 1<22, 2>27, 18<41, 21>33, 21<46, 33>24, 21<25, 48<5, 31>34, 10>3, 46<26, 34<28], [ (14, 4), (35, 4), (18, 1), (9, 4), (41, 3), (32, 3), (15, 3), (23, 3), (21, 4), (20, 2), (33, 1), (19, 4), (2, 2), (10, 2), (31, 1), (1, 4), (24, 4), (12, 3), (3, 4), (29, 1), (25, 2), (46, 4), (34, 4), (36, 2), (13, 1), (28, 2), (22, 3), (30, 1), (48, 2), (40, 3), (26, 3), (49, 1), (5, 4), (43, 2), (50, 4), (7, 4), (27, 4), (11, 4), (16, 4), (42, 2)], [ (24>36, 1), (14>15, 1), (35>28, 1), (46<28, 3), (21<22, 2), (18<28, 4), (2<26, 2), (19<24, 2), (41>3, 3), (7>27, 3), (19>27, 1), (22<5, 3), (49<5, 4), (32>20, 4), (5>27, 3), (21>48, 3), (15<31, 4), (41<5, 2), (35<32, 3), (12>46, 2), (25<34, 1), (33<29, 3), (9<2, 4), (15<25, 3), (35<25, 4), (24>42, 4), (36<42, 3), (15<10, 4), (1<22, 3), (2>27, 1), (18<41, 4), (21>33, 4), (21<46, 1), (33>24, 3), (21<25, 1), (48<5, 2), (31>34, 4), (10>3, 2), (46<26, 4), (34<28, 1)])).

test(4, (50, 750, [<, >]), (40, 40, 4), ([4, 46, 25, 44, 43, 37, 30, 21, 13, 2, 14, 26, 15, 16, 3, 24, 10, 32, 40, 35, 42, 12, 45, 34, 41, 20, 9, 31, 38, 11, 49, 50, 33, 19, 29, 5, 27, 18, 8, 7], [4>46, 4>44, 4>37, 4>21, 4>26, 4>10, 4>12, 4>49, 4>33, 4>19, 4>27, 4>7, 46>50, 25>44, 25>37, 25>26, 25>42, 25>41, 43>44, 43>45, 37>40, 37>45, 30>44, 30>43, 30>37, 30>45, 30>31, 30>38, 30>49, 21>46, 21>24, 21>32, 21>41, 21>31, 21>27, 13>46, 13>44, 13>26, 13>16, 13>40, 13>42, 13>34, 13>41, 13>31, 13>38, 13>33, 13>27, 13>18, 2>44, 2>21, 2>26, 2>12, 2>31, 2>38, 2>19, 2>29, 2>27, 2>8, 14>46, 14>30, 14>15, 14>32, 14>40, 14>35, 14>42, 14>45, 14>20, 14>29, 14>27, 26>30, 26>31, 26>50, 15>21, 15>32, 15>40, 15>41, 15>20, 15>49, 15>33, 15>19, 15>18, 16>25, 16>44, 16>43, 16>30, 16>40, 16>41, 16>20, 16>33, 16>19, 3>46, 3>30, 3>13, 3>24, 3>10, 3>32, 3>40, 3>45, 3>34, 3>20, 3>31, 3>11, 3>18, 3>8, 3>7, 24>43, 24>35, 24>45, 24>29, 24>27, 10>46, 10>25, 10>43, 10>30, 10>13, 10>15, 10>32, 10>49, 10>19, 10>18, 32>43, 32>37, 32>45, 32>34, 32>50, 40>45, 35>44, 35>43, 35>40, 35>50, 42>46, 42>44, 12>25, 12>44, 12>14, 12>16, 12>24, 12>40, 12>42, 12>34, 12>41, 12>20, 12>33, 12>19, 34>37, 34>40, 34>35, 34>49, 41>46, 41>44, 41>42, 41>45, 41>49, 20>30, 20>24, 9>44, 9>43, 9>21, 9>15, 9>10, 9>32, 9>40, 9>45, 9>20, 9>31, 9>49, 9>33, 9>18, 31>44, 31>42, 31>34, 31>38, 31>49, 31>33, 38>46, 38>42, 11>25, 11>37, 11>21, 11>26, 11>35, 11>42, 11>45, 11>33, 11>19, 11>27, 33>40, 33>42, 33>49, 19>46, 19>30, 19>26, 19>32, 19>35, 19>31, 19>38, 29>46, 29>43, 29>37, 29>45, 29>49, 29>50, 29>33, 5>37, 5>30, 5>13, 5>16, 5>40, 5>42, 5>41, 5>31, 5>11, 5>49, 5>19, 27>46, 27>35, 27>42, 27>34, 27>41, 27>49, 27>29, 18>43, 18>37, 18>35, 18>45, 18>34, 18>41, 18>50, 8>46, 8>25, 8>43, 8>30, 8>14, 8>26, 8>10, 8>32, 8>40, 8>12, 8>20, 8>11, 8>49, 8>50, 7>46, 7>25, 7>30, 7>21, 7>14, 7>26, 7>20, 7>9, 7>38, 7>29, 7>27, 7>8], [21>49, 25<32, 24<38, 46<34, 26>50, 13>18, 13>2, 35>9, 14>16, 34>38, 30<45, 32>50, 30<49, 2>38, 13<16, 19<5, 2<40, 44>26, 3>32, 30>21, 26<38, 44>31, 43<24, 3>5, 32>29, 46>15, 43<3, 43<20, 42<50, 4<49, 21<24, 16<50, 15<42, 21>15, 30<12, 41<19, 13<41, 10>7, 16>20, 30>38], [ (4, 3), (46, 2), (25, 4), (44, 3), (43, 3), (37, 4), (30, 1), (21, 3), (13, 3), (2, 4), (14, 4), (26, 1), (15, 1), (16, 2), (3, 2), (24, 1), (10, 2), (32, 3), (40, 3), (35, 2), (42, 1), (12, 1), (45, 1), (34, 3), (41, 3), (20, 1), (9, 4), (31, 4), (38, 4), (11, 1), (49, 4), (50, 1), (33, 3), (19, 1), (29, 4), (5, 1), (27, 2), (18, 1), (8, 4), (7, 1)], [ (21>49, 1), (25<32, 3), (24<38, 2), (46<34, 1), (26>50, 3), (13>18, 2), (13>2, 1), (35>9, 2), (14>16, 1), (34>38, 4), (30<45, 3), (32>50, 3), (30<49, 1), (2>38, 2), (13<16, 2), (19<5, 1), (2<40, 4), (44>26, 2), (3>32, 1), (30>21, 2), (26<38, 2), (44>31, 4), (43<24, 1), (3>5, 2), (32>29, 2), (46>15, 4), (43<3, 1), (43<20, 4), (42<50, 1), (4<49, 1), (21<24, 3), (16<50, 4), (15<42, 1), (21>15, 3), (30<12, 3), (41<19, 4), (13<41, 3), (10>7, 2), (16>20, 4), (30>38, 4)])).

test(5, (50, 750, [<, >]), (40, 40, 4), ([26, 7, 30, 27, 19, 41, 5, 32, 8, 11, 45, 36, 13, 44, 4, 6, 34, 31, 28, 50, 20, 29, 40, 49, 43, 18, 25, 23, 37, 2, 17, 16, 46, 35, 22, 33, 21, 47, 48, 39], [26>30, 26>41, 26>36, 26>44, 26>40, 26>49, 26>43, 26>48, 7>26, 7>41, 7>44, 7>34, 7>31, 7>50, 7>29, 7>16, 7>48, 30>45, 30>40, 30>43, 30>46, 30>47, 27>36, 27>34, 27>31, 27>28, 27>43, 27>37, 27>48, 19>26, 19>30, 19>27, 19>50, 19>49, 19>25, 19>33, 19>47, 19>39, 41>45, 41>47, 5>7, 5>27, 5>32, 5>8, 5>11, 5>45, 5>34, 5>20, 5>25, 5>23, 5>16, 5>35, 5>21, 32>44, 32>50, 32>49, 32>43, 32>39, 8>26, 8>19, 8>13, 8>44, 8>34, 8>31, 8>50, 8>25, 8>23, 8>16, 8>22, 8>48, 8>39, 11>30, 11>36, 11>13, 11>44, 11>28, 11>50, 11>20, 11>40, 11>43, 11>25, 11>16, 11>46, 11>33, 11>47, 36>40, 36>49, 13>26, 13>32, 13>45, 13>31, 13>28, 13>50, 13>29, 13>40, 13>49, 13>23, 13>48, 44>49, 44>46, 44>48, 4>26, 4>41, 4>32, 4>36, 4>13, 4>44, 4>29, 4>49, 4>43, 4>46, 4>33, 4>21, 4>47, 6>7, 6>30, 6>44, 6>31, 6>29, 6>17, 6>35, 6>33, 6>21, 6>47, 6>39, 34>41, 34>45, 34>44, 34>40, 34>43, 34>39, 31>36, 31>44, 31>46, 31>35, 28>41, 28>32, 28>36, 28>44, 28>34, 28>50, 28>29, 28>37, 28>46, 28>47, 28>48, 28>39, 20>49, 20>43, 20>23, 20>37, 20>33, 20>21, 20>48, 20>39, 29>41, 29>45, 29>34, 29>49, 29>33, 40>45, 40>44, 40>49, 40>46, 43>50, 43>48, 18>41, 18>44, 18>50, 18>20, 18>43, 18>25, 18>46, 18>35, 18>33, 25>30, 25>41, 25>45, 25>44, 25>31, 25>28, 25>50, 25>46, 25>48, 25>39, 23>26, 23>50, 23>49, 23>43, 23>25, 23>46, 23>33, 23>39, 37>41, 37>43, 37>46, 37>48, 2>26, 2>30, 2>41, 2>32, 2>13, 2>44, 2>31, 2>28, 2>18, 2>17, 2>16, 17>30, 17>50, 17>25, 17>37, 17>35, 16>30, 16>32, 16>45, 16>34, 16>31, 16>50, 16>29, 16>49, 16>43, 16>25, 16>46, 16>22, 16>33, 16>21, 16>47, 16>48, 46>49, 46>48, 35>36, 35>43, 35>46, 22>30, 22>41, 22>44, 22>23, 22>39, 33>34, 33>47, 21>26, 21>27, 21>44, 21>28, 21>43, 21>46, 21>47, 21>48, 47>49, 39>41, 39>48], [6>33, 29<23, 50>22, 13>35, 11<4, 44<35, 30>43, 43>39, 23<46, 45<4, 18<2, 32<17, 27>32, 2>46, 30>18, 29>33, 11<25, 30>11, 50<40, 5<33, 13>22, 7>41, 44<43, 45>17, 13<40, 34>37, 36<46, 43>17, 41<40, 27>13, 27>11, 30<6, 8>34, 17<35, 45<29, 44<23, 20<2, 43>33, 2<35, 31>18], [ (26, 4), (7, 2), (30, 3), (27, 1), (19, 4), (41, 3), (5, 2), (32, 1), (8, 1), (11, 2), (45, 2), (36, 4), (13, 3), (44, 1), (4, 3), (6, 2), (34, 3), (31, 3), (28, 1), (50, 1), (20, 4), (29, 3), (40, 2), (49, 3), (43, 1), (18, 2), (25, 2), (23, 4), (37, 1), (2, 3), (17, 2), (16, 4), (46, 2), (35, 1), (22, 4), (33, 2), (21, 4), (47, 3), (48, 2), (39, 2)], [ (6>33, 4), (29<23, 4), (50>22, 3), (13>35, 1), (11<4, 3), (44<35, 1), (30>43, 2), (43>39, 4), (23<46, 1), (45<4, 1), (18<2, 1), (32<17, 2), (27>32, 1), (2>46, 4), (30>18, 4), (29>33, 3), (11<25, 3), (30>11, 4), (50<40, 2), (5<33, 3), (13>22, 3), (7>41, 4), (44<43, 2), (45>17, 3), (13<40, 2), (34>37, 1), (36<46, 4), (43>17, 1), (41<40, 1), (27>13, 1), (27>11, 4), (30<6, 2), (8>34, 2), (17<35, 2), (45<29, 2), (44<23, 2), (20<2, 2), (43>33, 4), (2<35, 3), (31>18, 4)])).

test(6, (50, 750, [<, >]), (40, 40, 4), ([25, 17, 27, 16, 43, 18, 9, 30, 3, 22, 37, 4, 7, 11, 32, 33, 2, 13, 44, 50, 26, 39, 49, 19, 24, 36, 29, 35, 42, 23, 12, 21, 15, 8, 41, 45, 28, 20, 40, 48], [25>30, 25>32, 25>35, 17>27, 17>22, 17>32, 17>33, 17>50, 17>39, 17>36, 17>35, 17>21, 17>40, 27>43, 27>37, 27>49, 27>29, 27>35, 27>48, 16>25, 16>37, 16>32, 16>33, 16>26, 16>49, 16>35, 16>42, 43>48, 18>22, 18>44, 18>39, 18>29, 18>41, 18>28, 18>48, 9>18, 9>22, 9>37, 9>11, 9>39, 9>24, 9>36, 9>29, 9>20, 30>32, 30>33, 30>44, 3>17, 3>27, 3>9, 3>37, 3>26, 3>35, 3>20, 3>40, 22>43, 22>37, 22>32, 22>44, 22>26, 22>39, 22>36, 22>28, 37>43, 37>50, 37>42, 37>40, 37>48, 4>16, 4>11, 4>33, 4>19, 4>12, 4>21, 4>45, 4>40, 4>48, 7>25, 7>27, 7>43, 7>18, 7>9, 7>33, 7>44, 7>26, 7>39, 7>49, 7>19, 7>24, 7>36, 7>23, 7>8, 7>41, 7>28, 7>48, 11>16, 11>30, 11>32, 11>44, 11>19, 11>21, 11>15, 11>41, 11>28, 11>48, 32>37, 32>49, 32>41, 32>40, 33>37, 33>39, 33>35, 33>42, 33>41, 33>40, 2>16, 2>43, 2>30, 2>3, 2>37, 2>7, 2>44, 2>39, 2>19, 2>29, 2>35, 2>15, 2>41, 2>45, 2>40, 2>48, 13>25, 13>43, 13>18, 13>30, 13>22, 13>32, 13>50, 13>39, 13>19, 13>24, 13>21, 13>20, 13>40, 13>48, 44>50, 26>43, 26>37, 26>32, 26>50, 26>49, 39>49, 39>45, 39>48, 19>30, 19>22, 19>33, 19>44, 19>50, 19>29, 19>21, 19>20, 19>40, 19>48, 24>27, 24>30, 24>33, 24>36, 24>29, 24>41, 24>40, 24>48, 36>43, 36>39, 36>45, 36>40, 29>43, 29>37, 29>44, 29>50, 29>49, 29>36, 29>41, 35>37, 35>45, 35>48, 42>43, 42>44, 42>45, 23>25, 23>43, 23>32, 23>44, 23>49, 23>24, 23>36, 23>41, 12>25, 12>17, 12>13, 12>39, 12>23, 12>45, 21>25, 21>27, 21>43, 21>37, 21>32, 21>40, 15>18, 15>37, 15>44, 15>50, 15>24, 15>29, 15>23, 15>40, 15>48, 8>37, 8>32, 8>44, 8>50, 8>19, 8>29, 8>42, 8>21, 8>28, 41>43, 41>50, 41>48, 45>50, 28>43, 28>49, 28>41, 20>43, 20>33, 20>44, 20>50, 20>26, 20>49, 20>42, 20>45, 20>40, 40>43, 40>49, 40>45, 48>49], [36>20, 4<20, 36<41, 2<42, 9<39, 17>33, 11>35, 43<39, 3<12, 12>41, 16>15, 23>12, 43<23, 17<45, 25<21, 7<39, 24<36, 27<33, 9<21, 35<21, 22>20, 35<42, 19>28, 32<33, 8<20, 27>23, 49>29, 35>45, 32<45, 30<37, 27>2, 32<21, 16<28, 18<37, 39<8, 11<23, 25>36, 43>22, 17<27, 4<7], [ (25, 4), (17, 1), (27, 4), (16, 1), (43, 3), (18, 2), (9, 1), (30, 3), (3, 4), (22, 3), (37, 1), (4, 3), (7, 1), (11, 1), (32, 1), (33, 4), (2, 4), (13, 1), (44, 2), (50, 4), (26, 4), (39, 1), (49, 3), (19, 1), (24, 2), (36, 1), (29, 2), (35, 2), (42, 2), (23, 3), (12, 2), (21, 2), (15, 1), (8, 3), (41, 3), (45, 2), (28, 3), (20, 1), (40, 2), (48, 3)], [ (36>20, 4), (4<20, 1), (36<41, 2), (2<42, 2), (9<39, 4), (17>33, 1), (11>35, 1), (43<39, 2), (3<12, 4), (12>41, 4), (16>15, 2), (23>12, 3), (43<23, 3), (17<45, 1), (25<21, 4), (7<39, 3), (24<36, 1), (27<33, 3), (9<21, 1), (35<21, 1), (22>20, 4), (35<42, 2), (19>28, 3), (32<33, 2), (8<20, 3), (27>23, 4), (49>29, 1), (35>45, 4), (32<45, 2), (30<37, 3), (27>2, 2), (32<21, 4), (16<28, 4), (18<37, 4), (39<8, 2), (11<23, 4), (25>36, 1), (43>22, 2), (17<27, 4), (4<7, 1)])).

test(7, (50, 750, [<, >]), (40, 40, 4), ([32, 17, 8, 31, 6, 37, 12, 46, 26, 20, 33, 35, 25, 13, 40, 47, 24, 45, 11, 38, 27, 44, 36, 9, 10, 43, 34, 14, 29, 2, 1, 15, 21, 48, 30, 7, 49, 50, 22, 4], [32>46, 32>40, 32>38, 32>50, 17>32, 17>33, 17>43, 17>50, 17>22, 8>37, 8>46, 8>20, 8>47, 8>36, 8>10, 8>14, 8>15, 8>30, 31>35, 31>45, 31>43, 6>37, 6>46, 6>26, 6>33, 6>35, 6>25, 6>40, 6>27, 6>44, 6>9, 6>15, 6>30, 6>49, 6>22, 12>32, 12>17, 12>31, 12>26, 12>25, 12>40, 12>38, 12>44, 12>14, 12>15, 12>49, 12>50, 46>47, 46>49, 26>40, 26>27, 26>49, 20>32, 20>31, 20>40, 20>47, 20>27, 20>36, 20>50, 33>35, 33>44, 33>36, 33>34, 33>49, 33>50, 35>44, 35>36, 25>32, 25>26, 25>33, 25>40, 25>48, 25>30, 13>32, 13>26, 13>24, 13>45, 13>34, 13>29, 47>48, 47>49, 47>50, 24>31, 24>25, 24>45, 24>34, 24>50, 45>48, 11>32, 11>12, 11>33, 11>24, 11>38, 11>14, 11>21, 11>22, 27>37, 27>35, 27>47, 27>44, 27>43, 27>29, 27>30, 27>50, 44>47, 44>50, 36>40, 36>48, 9>37, 9>46, 9>13, 9>11, 9>38, 9>27, 9>44, 9>36, 9>30, 9>49, 10>32, 10>17, 10>31, 10>35, 10>25, 10>36, 10>34, 10>14, 10>29, 10>15, 10>21, 10>30, 10>22, 43>46, 43>45, 43>48, 34>46, 34>40, 34>47, 34>45, 34>38, 14>20, 14>25, 14>24, 14>45, 14>43, 14>29, 14>15, 14>48, 14>22, 29>32, 29>31, 29>46, 29>34, 29>49, 2>8, 2>46, 2>25, 2>13, 2>40, 2>47, 2>44, 2>34, 2>29, 2>21, 2>30, 2>49, 2>50, 1>17, 1>6, 1>25, 1>38, 1>27, 1>36, 1>9, 1>43, 1>34, 1>21, 1>50, 1>4, 15>32, 15>17, 15>46, 15>26, 15>35, 15>40, 15>47, 15>24, 15>21, 15>22, 21>32, 21>37, 21>26, 21>35, 21>40, 21>24, 21>45, 21>38, 21>44, 21>36, 21>34, 21>48, 48>49, 30>40, 30>44, 30>49, 7>17, 7>31, 7>20, 7>24, 7>11, 7>9, 7>10, 7>43, 7>29, 7>15, 7>21, 7>50, 7>22, 22>31, 22>26, 22>35, 22>40, 22>27, 22>43, 4>17, 4>31, 4>37, 4>12, 4>20, 4>35, 4>44, 4>36, 4>48, 4>7, 4>22], [36>50, 27<15, 17<11, 45<1, 12>13, 26>49, 35>7, 27>43, 6<45, 8>26, 45<4, 31<9, 24<15, 6>2, 46>50, 17>9, 24<38, 10>7, 34<15, 37>2, 14>30, 11>27, 25>21, 47<27, 15>22, 44>49, 31<33, 26<4, 33>44, 8>14, 21<22, 44>14, 50>4, 25<15, 2>49, 35<22, 20<27, 9<30, 38<9, 8<40], [ (32, 3), (17, 4), (8, 3), (31, 3), (6, 4), (37, 3), (12, 4), (46, 3), (26, 4), (20, 3), (33, 1), (35, 2), (25, 3), (13, 4), (40, 3), (47, 1), (24, 3), (45, 3), (11, 2), (38, 1), (27, 3), (44, 4), (36, 4), (9, 3), (10, 1), (43, 3), (34, 1), (14, 4), (29, 4), (2, 2), (1, 3), (15, 2), (21, 1), (48, 2), (30, 1), (7, 4), (49, 4), (50, 4), (22, 4), (4, 1)], [ (36>50, 4), (27<15, 2), (17<11, 4), (45<1, 2), (12>13, 4), (26>49, 1), (35>7, 4), (27>43, 4), (6<45, 2), (8>26, 3), (45<4, 3), (31<9, 4), (24<15, 4), (6>2, 1), (46>50, 1), (17>9, 3), (24<38, 4), (10>7, 3), (34<15, 1), (37>2, 2), (14>30, 3), (11>27, 2), (25>21, 3), (47<27, 3), (15>22, 2), (44>49, 1), (31<33, 2), (26<4, 1), (33>44, 3), (8>14, 3), (21<22, 2), (44>14, 3), (50>4, 1), (25<15, 4), (2>49, 1), (35<22, 1), (20<27, 2), (9<30, 2), (38<9, 3), (8<40, 4)])).

test(8, (50, 750, [<, >]), (40, 40, 4), ([27, 36, 9, 28, 37, 18, 50, 40, 3, 19, 26, 13, 29, 47, 12, 31, 21, 17, 5, 14, 22, 41, 7, 42, 15, 23, 1, 4, 20, 16, 49, 45, 11, 34, 35, 33, 44, 39, 25, 32], [27>37, 27>29, 27>47, 27>42, 27>45, 27>35, 27>39, 36>40, 36>41, 36>42, 36>49, 9>36, 9>37, 9>40, 9>47, 9>20, 28>50, 28>47, 28>42, 28>49, 18>27, 18>28, 18>37, 18>49, 18>45, 18>35, 18>44, 18>39, 3>50, 3>40, 3>19, 3>26, 3>13, 3>47, 3>22, 3>23, 3>35, 19>36, 19>37, 19>40, 19>26, 19>47, 19>31, 19>21, 19>22, 19>45, 19>34, 19>33, 19>44, 19>39, 19>25, 26>36, 26>34, 26>44, 13>27, 13>28, 13>19, 13>47, 13>17, 13>42, 13>16, 13>34, 13>33, 13>44, 13>32, 29>40, 29>31, 29>49, 29>33, 29>39, 47>49, 12>27, 12>36, 12>28, 12>18, 12>50, 12>40, 12>47, 12>20, 12>39, 31>50, 31>40, 31>41, 31>42, 31>34, 31>33, 21>27, 21>28, 21>47, 21>45, 21>34, 21>44, 17>18, 17>26, 17>23, 17>49, 17>33, 17>25, 5>27, 5>50, 5>40, 5>26, 5>29, 5>47, 5>42, 5>23, 5>20, 5>33, 5>44, 14>27, 14>36, 14>17, 14>22, 14>16, 14>34, 14>44, 14>32, 22>36, 22>37, 22>50, 22>40, 22>35, 22>33, 22>44, 41>47, 41>42, 41>49, 41>44, 7>36, 7>37, 7>13, 7>29, 7>21, 7>14, 7>41, 7>42, 7>45, 7>35, 7>44, 7>39, 42>49, 15>28, 15>41, 15>20, 15>45, 15>35, 15>25, 23>40, 23>41, 23>44, 23>32, 1>9, 1>37, 1>40, 1>19, 1>26, 1>29, 1>47, 1>22, 1>7, 1>42, 1>15, 1>34, 1>33, 1>25, 1>32, 4>37, 4>18, 4>19, 4>26, 4>31, 4>17, 4>5, 4>41, 4>15, 4>20, 4>44, 4>39, 4>25, 20>36, 20>28, 20>37, 20>40, 20>21, 20>22, 20>42, 20>49, 20>34, 20>35, 20>33, 20>39, 20>25, 16>37, 16>50, 16>40, 16>19, 16>26, 16>21, 16>42, 16>23, 16>45, 16>25, 49>50, 11>27, 11>37, 11>18, 11>13, 11>47, 11>21, 11>17, 11>41, 11>42, 11>23, 11>49, 11>35, 11>32, 34>42, 34>49, 34>45, 34>44, 35>36, 35>40, 35>47, 35>41, 35>42, 33>36, 33>50, 33>40, 33>47, 33>41, 33>35, 33>44, 33>39, 44>47, 44>45, 39>40, 39>41, 39>49, 39>45, 39>44, 25>27, 25>42, 25>34, 25>39, 25>32, 32>50, 32>41, 32>44, 32>39], [31>42, 25<32, 9>23, 12<31, 9>5, 37>15, 36>15, 13>23, 14<22, 37<31, 47>42, 50>45, 12>16, 50>22, 28>21, 13<42, 23>34, 27<21, 20>11, 37<40, 26<32, 5<16, 36>9, 16<25, 18<34, 18>4, 17>4, 18>26, 37>22, 37<13, 20>32, 36<26, 23>35, 50<1, 39>32, 22>25, 3>22, 26>15, 34<39, 42>16], [ (27, 3), (36, 2), (9, 2), (28, 1), (37, 1), (18, 3), (50, 3), (40, 3), (3, 1), (19, 3), (26, 3), (13, 2), (29, 3), (47, 2), (12, 1), (31, 1), (21, 2), (17, 3), (5, 4), (14, 3), (22, 1), (41, 3), (7, 1), (42, 2), (15, 4), (23, 3), (1, 4), (4, 1), (20, 2), (16, 1), (49, 3), (45, 2), (11, 3), (34, 3), (35, 3), (33, 2), (44, 1), (39, 2), (25, 1), (32, 2)], [ (31>42, 3), (25<32, 2), (9>23, 3), (12<31, 3), (9>5, 4), (37>15, 2), (36>15, 4), (13>23, 1), (14<22, 3), (37<31, 3), (47>42, 4), (50>45, 3), (12>16, 4), (50>22, 1), (28>21, 3), (13<42, 4), (23>34, 1), (27<21, 2), (20>11, 2), (37<40, 3), (26<32, 3), (5<16, 2), (36>9, 3), (16<25, 3), (18<34, 2), (18>4, 1), (17>4, 2), (18>26, 1), (37>22, 3), (37<13, 1), (20>32, 3), (36<26, 2), (23>35, 4), (50<1, 2), (39>32, 4), (22>25, 2), (3>22, 4), (26>15, 4), (34<39, 1), (42>16, 2)])).

test(9, (50, 750, [<, >]), (40, 40, 4), ([48, 4, 9, 39, 38, 37, 14, 21, 7, 24, 36, 49, 50, 23, 5, 30, 18, 43, 25, 12, 33, 47, 28, 13, 15, 46, 31, 19, 35, 41, 45, 40, 32, 34, 29, 3, 10, 27, 6, 17], [4>9, 4>14, 4>24, 4>25, 4>33, 4>47, 4>46, 4>40, 4>32, 4>34, 4>10, 4>27, 9>48, 9>38, 9>49, 9>25, 9>46, 9>45, 9>34, 9>10, 39>48, 39>49, 39>47, 39>41, 38>50, 38>40, 37>48, 37>50, 37>43, 14>50, 14>30, 14>18, 14>25, 14>34, 14>29, 21>48, 21>39, 21>37, 21>49, 21>50, 21>30, 21>25, 21>35, 21>40, 21>34, 21>29, 21>27, 7>48, 7>9, 7>37, 7>24, 7>50, 7>30, 7>43, 7>33, 7>47, 7>46, 7>35, 7>41, 7>32, 7>17, 24>33, 24>47, 24>28, 24>46, 24>41, 24>40, 24>32, 36>38, 36>49, 36>43, 36>46, 23>37, 23>43, 23>29, 5>38, 5>14, 5>36, 5>30, 5>15, 5>31, 5>19, 5>35, 5>41, 5>40, 5>34, 5>29, 5>10, 5>27, 30>37, 30>49, 30>33, 30>47, 18>30, 18>28, 18>46, 18>31, 18>35, 18>45, 43>48, 43>46, 43>45, 25>36, 25>30, 25>28, 25>29, 25>27, 12>48, 12>37, 12>21, 12>50, 12>45, 12>27, 33>49, 33>41, 33>45, 47>48, 47>50, 28>48, 28>37, 28>47, 28>46, 13>21, 13>24, 13>50, 13>23, 13>30, 13>18, 13>33, 13>29, 15>48, 15>38, 15>24, 15>36, 15>23, 15>25, 15>33, 15>31, 15>19, 15>27, 46>50, 46>47, 31>38, 31>41, 31>40, 19>48, 19>38, 19>37, 19>43, 19>33, 19>46, 19>31, 19>41, 19>29, 19>27, 35>48, 35>36, 35>47, 35>46, 35>41, 41>48, 41>43, 41>47, 41>46, 41>45, 40>48, 40>47, 32>48, 32>36, 32>43, 32>33, 32>46, 32>35, 32>45, 34>49, 29>48, 29>38, 29>37, 29>50, 29>30, 29>45, 3>4, 3>9, 3>39, 3>14, 3>21, 3>7, 3>49, 3>50, 3>5, 3>30, 3>18, 3>43, 3>28, 3>15, 3>46, 3>19, 3>35, 3>32, 3>34, 3>29, 3>10, 10>14, 10>49, 10>18, 10>31, 10>40, 10>32, 10>34, 27>39, 27>37, 27>36, 27>49, 27>35, 27>45, 27>29, 6>39, 6>38, 6>37, 6>21, 6>7, 6>24, 6>36, 6>50, 6>23, 6>12, 6>28, 6>40, 6>27, 17>48, 17>37, 17>36, 17>35, 17>27], [47>45, 31>19, 19>35, 50>12, 48>34, 38>30, 19>29, 25<3, 33>40, 14<41, 38>50, 43<41, 24<47, 13<46, 37>10, 37<25, 43>6, 14>5, 4<5, 39>25, 18>10, 50>35, 7<25, 32>10, 4<45, 50>40, 28>41, 43>10, 48<17, 23>34, 48>29, 5<10, 14<24, 25>33, 39<10, 45<10, 30<31, 21<24, 40<17, 49<41], [ (48, 3), (4, 2), (9, 3), (39, 3), (38, 3), (37, 4), (14, 2), (21, 3), (7, 4), (24, 3), (36, 3), (49, 2), (50, 4), (23, 2), (5, 2), (30, 2), (18, 1), (43, 2), (25, 2), (12, 1), (33, 1), (47, 4), (28, 2), (13, 2), (15, 3), (46, 2), (31, 3), (19, 4), (35, 2), (41, 4), (45, 2), (40, 3), (32, 4), (34, 4), (29, 1), (3, 1), (10, 4), (27, 2), (6, 1), (17, 1)], [ (47>45, 4), (31>19, 4), (19>35, 1), (50>12, 4), (48>34, 4), (38>30, 1), (19>29, 1), (25<3, 3), (33>40, 3), (14<41, 1), (38>50, 2), (43<41, 3), (24<47, 4), (13<46, 1), (37>10, 4), (37<25, 2), (43>6, 3), (14>5, 4), (4<5, 1), (39>25, 1), (18>10, 3), (50>35, 1), (7<25, 3), (32>10, 2), (4<45, 2), (50>40, 4), (28>41, 2), (43>10, 4), (48<17, 3), (23>34, 4), (48>29, 1), (5<10, 4), (14<24, 3), (25>33, 1), (39<10, 2), (45<10, 2), (30<31, 1), (21<24, 2), (40<17, 2), (49<41, 1)])).

test(10, (50, 750, [<, >]), (40, 40, 4), ([12, 24, 40, 15, 46, 45, 25, 6, 30, 4, 33, 48, 2, 22, 9, 43, 28, 37, 11, 21, 20, 35, 29, 16, 19, 1, 42, 38, 3, 50, 31, 7, 44, 23, 34, 13, 26, 39, 49, 36], [12>24, 12>25, 12>30, 12>33, 12>37, 12>50, 12>34, 12>49, 12>36, 24>40, 24>30, 24>28, 24>35, 24>38, 24>44, 24>34, 40>48, 15>24, 15>46, 15>33, 15>48, 15>22, 15>21, 15>20, 15>35, 15>29, 15>19, 15>42, 15>31, 15>39, 25>40, 25>46, 25>33, 25>43, 25>28, 25>29, 25>42, 25>49, 25>36, 6>15, 6>46, 6>25, 6>33, 6>48, 6>22, 6>11, 6>19, 6>42, 6>50, 6>44, 6>36, 30>37, 30>31, 30>36, 4>15, 4>6, 4>9, 4>28, 4>37, 4>20, 4>19, 4>7, 4>34, 4>26, 4>36, 33>40, 33>46, 33>48, 33>37, 33>38, 33>49, 2>24, 2>25, 2>30, 2>48, 2>9, 2>28, 2>37, 2>21, 2>35, 2>23, 2>39, 22>24, 22>40, 22>28, 22>37, 22>31, 22>49, 9>24, 9>40, 9>22, 9>43, 9>23, 9>13, 9>49, 43>48, 43>44, 28>45, 28>33, 28>48, 28>35, 28>29, 37>46, 11>24, 11>40, 11>15, 11>25, 11>30, 11>21, 11>20, 11>19, 11>50, 21>25, 21>30, 21>48, 21>22, 21>43, 21>35, 21>42, 21>31, 21>26, 21>49, 20>46, 20>45, 20>30, 20>33, 20>22, 20>21, 20>29, 20>38, 20>50, 20>44, 20>26, 20>36, 35>40, 35>45, 35>48, 35>50, 35>39, 29>40, 29>48, 29>37, 29>38, 29>50, 29>44, 16>33, 16>22, 16>37, 16>20, 16>42, 16>23, 16>34, 16>26, 16>49, 19>45, 19>25, 19>48, 19>43, 19>21, 19>50, 19>31, 19>44, 19>23, 1>40, 1>45, 1>33, 1>2, 1>22, 1>43, 1>11, 1>21, 1>29, 1>42, 1>3, 1>7, 1>23, 1>13, 1>36, 42>46, 42>48, 38>45, 38>39, 3>15, 3>6, 3>30, 3>33, 3>48, 3>21, 3>42, 3>38, 3>31, 3>7, 3>23, 3>13, 31>38, 31>39, 31>49, 7>24, 7>46, 7>25, 7>33, 7>22, 7>37, 7>20, 7>38, 7>23, 7>13, 44>45, 44>50, 23>24, 23>40, 23>25, 23>33, 23>42, 23>38, 23>26, 34>46, 34>42, 34>38, 34>50, 34>36, 13>46, 13>45, 13>33, 13>43, 13>21, 13>20, 13>16, 13>19, 13>38, 13>50, 13>31, 26>45, 26>48, 26>35, 26>36, 39>46, 39>43, 39>42, 39>49, 36>37, 36>38, 36>49], [35<31, 20<7, 15<4, 30>36, 33>28, 19<13, 46<9, 3>39, 40<19, 28<29, 33>2, 15<16, 24<13, 6>4, 4>11, 38>3, 48<35, 28>26, 9<1, 22>3, 9>37, 21<19, 24<31, 45<22, 34>36, 21<23, 45<38, 11<34, 35>39, 19>3, 33<34, 46<35, 48<1, 26<36, 38>23, 23<39, 29>3, 19<34, 15<50, 25>21], [ (12, 3), (24, 1), (40, 3), (15, 1), (46, 1), (45, 2), (25, 3), (6, 2), (30, 2), (4, 1), (33, 4), (48, 4), (2, 1), (22, 3), (9, 4), (43, 1), (28, 2), (37, 4), (11, 4), (21, 3), (20, 2), (35, 3), (29, 3), (16, 4), (19, 4), (1, 1), (42, 3), (38, 1), (3, 4), (50, 2), (31, 1), (7, 4), (44, 3), (23, 2), (34, 3), (13, 2), (26, 3), (39, 3), (49, 4), (36, 1)], [ (35<31, 1), (20<7, 1), (15<4, 1), (30>36, 2), (33>28, 4), (19<13, 3), (46<9, 1), (3>39, 1), (40<19, 1), (28<29, 1), (33>2, 2), (15<16, 2), (24<13, 2), (6>4, 2), (4>11, 1), (38>3, 3), (48<35, 3), (28>26, 4), (9<1, 4), (22>3, 2), (9>37, 4), (21<19, 2), (24<31, 2), (45<22, 3), (34>36, 4), (21<23, 4), (45<38, 1), (11<34, 2), (35>39, 4), (19>3, 3), (33<34, 4), (46<35, 4), (48<1, 4), (26<36, 4), (38>23, 1), (23<39, 1), (29>3, 1), (19<34, 4), (15<50, 4), (25>21, 3)])).

%% 50, 750, [<, >]
%% 45, 90, 4

test(1, (50, 750, [<, >]), (45, 90, 4), ([14, 43, 42, 48, 47, 16, 46, 35, 11, 50, 26, 41, 36, 37, 21, 4, 29, 13, 8, 1, 40, 39, 7, 28, 38, 45, 15, 49, 17, 32, 9, 30, 24, 31, 44, 34, 23, 2, 22, 33, 12, 25, 18, 20, 6], [14>47, 14>16, 14>50, 14>26, 14>29, 14>40, 14>28, 14>49, 14>17, 14>24, 14>34, 14>25, 43>45, 42>45, 48>50, 48>49, 47>48, 47>49, 16>43, 16>48, 16>35, 16>36, 16>28, 16>31, 16>23, 46>48, 46>47, 46>50, 35>48, 35>47, 11>47, 11>50, 11>26, 11>28, 11>38, 11>30, 11>24, 11>31, 11>44, 11>34, 11>25, 11>18, 26>43, 26>48, 26>47, 26>40, 26>38, 26>49, 26>31, 26>44, 41>43, 41>48, 41>50, 41>49, 36>42, 36>48, 36>47, 36>49, 37>48, 37>47, 37>40, 37>39, 37>45, 21>42, 21>46, 21>26, 21>41, 21>37, 21>29, 21>49, 21>24, 21>44, 21>34, 21>22, 21>33, 21>25, 4>46, 4>29, 4>39, 4>49, 4>34, 4>22, 4>33, 4>12, 4>25, 4>20, 4>6, 29>43, 29>42, 29>46, 29>41, 29>38, 29>34, 13>14, 13>43, 13>47, 13>16, 13>41, 13>21, 13>29, 13>40, 13>28, 13>38, 13>24, 13>22, 13>25, 8>46, 8>35, 8>29, 8>40, 8>38, 8>17, 8>9, 8>31, 8>44, 8>23, 8>22, 1>50, 1>21, 1>29, 1>39, 1>38, 1>15, 1>31, 1>44, 1>33, 1>12, 1>25, 1>6, 40>43, 40>42, 40>47, 40>41, 39>43, 39>50, 39>40, 7>47, 7>46, 7>50, 7>26, 7>8, 7>15, 7>12, 28>43, 28>50, 28>41, 28>36, 28>29, 28>45, 28>32, 28>44, 28>34, 38>43, 38>48, 38>41, 38>44, 45>47, 45>50, 15>47, 15>16, 15>35, 15>26, 15>36, 15>40, 15>39, 15>28, 15>17, 15>32, 15>24, 15>23, 15>18, 17>43, 17>42, 17>46, 17>35, 17>40, 17>28, 17>38, 17>31, 17>34, 17>22, 17>33, 17>20, 32>48, 32>47, 32>50, 32>41, 32>37, 32>40, 32>38, 32>34, 9>48, 9>46, 9>11, 9>50, 9>41, 9>21, 9>28, 9>38, 9>45, 9>15, 9>17, 9>32, 9>30, 9>44, 9>22, 9>33, 9>25, 30>46, 30>41, 30>36, 30>49, 30>31, 24>41, 24>36, 24>40, 24>38, 24>32, 24>30, 24>31, 24>44, 24>33, 24>25, 31>37, 31>39, 31>45, 34>48, 34>35, 34>41, 34>36, 34>40, 23>47, 23>37, 23>28, 23>49, 23>32, 23>24, 2>16, 2>35, 2>11, 2>29, 2>8, 2>7, 2>45, 2>15, 2>17, 2>30, 2>12, 2>25, 2>20, 22>47, 22>46, 22>35, 22>26, 22>45, 22>30, 22>44, 22>23, 33>48, 33>40, 33>39, 33>38, 33>49, 33>34, 12>48, 12>46, 12>50, 12>21, 12>29, 12>40, 12>38, 12>17, 12>24, 12>33, 12>18, 25>48, 25>50, 25>36, 25>38, 18>47, 18>46, 18>26, 18>36, 18>21, 18>29, 18>45, 18>32, 18>34, 18>25, 18>20, 20>42, 20>41, 20>39, 20>28, 20>49, 20>30, 20>31, 20>23, 20>33, 6>14, 6>16, 6>50, 6>26, 6>36, 6>21, 6>13, 6>28, 6>49, 6>23, 6>33, 6>20], [44>20, 40>23, 35<34, 13>34, 16<45, 37>25, 43<4, 46>31, 14<1, 7<15, 50<6, 47<46, 35>17, 49<23, 34<2, 37<4, 40<34, 31>18, 46>13, 29<8, 43>11, 18<6, 40<12, 17>25, 37>29, 39>2, 41>18, 14>20, 43>12, 45>17, 13>40, 12<20, 13>15, 46>32, 23<20, 14>12, 47>29, 38>32, 22<25, 11<18, 38>15, 41<21, 13>18, 16<18, 17>18, 42<32, 14>45, 28>44, 11<32, 35<13, 26<7, 31<34, 43<42, 11<29, 35>37, 4<20, 44<2, 41>20, 26<6, 48<25, 23>6, 41<29, 44<33, 39<7, 45<6, 29>49, 13>2, 16>20, 40<49, 43>18, 48<39, 43>9, 37<7, 47<36, 15<33, 49<44, 11>45, 13>39, 30>24, 8<23, 14>8, 41<22, 11<50, 49>18, 26>2, 14>17, 16<46, 37<40, 41>30, 45<20], [ (14, 2), (43, 3), (42, 1), (48, 1), (47, 3), (16, 3), (46, 4), (35, 4), (11, 1), (50, 4), (26, 1), (41, 2), (36, 3), (37, 1), (21, 1), (4, 1), (29, 3), (13, 1), (8, 4), (1, 2), (40, 3), (39, 1), (7, 3), (28, 3), (38, 2), (45, 4), (15, 2), (49, 3), (17, 4), (32, 2), (9, 1), (30, 2), (24, 1), (31, 1), (44, 2), (34, 2), (23, 1), (2, 1), (22, 2), (33, 1), (12, 4), (25, 1), (18, 2), (20, 4), (6, 3)], [ (44>20, 4), (40>23, 3), (35<34, 1), (13>34, 2), (16<45, 2), (37>25, 2), (43<4, 2), (46>31, 1), (14<1, 1), (7<15, 4), (50<6, 4), (47<46, 1), (35>17, 3), (49<23, 4), (34<2, 2), (37<4, 3), (40<34, 4), (31>18, 2), (46>13, 3), (29<8, 4), (43>11, 2), (18<6, 3), (40<12, 2), (17>25, 1), (37>29, 4), (39>2, 3), (41>18, 3), (14>20, 4), (43>12, 1), (45>17, 4), (13>40, 4), (12<20, 3), (13>15, 3), (46>32, 2), (23<20, 4), (14>12, 1), (47>29, 1), (38>32, 4), (22<25, 2), (11<18, 4), (38>15, 1), (41<21, 1), (13>18, 4), (16<18, 4), (17>18, 2), (42<32, 2), (14>45, 1), (28>44, 3), (11<32, 4), (35<13, 3), (26<7, 4), (31<34, 4), (43<42, 3), (11<29, 1), (35>37, 3), (4<20, 1), (44<2, 1), (41>20, 2), (26<6, 4), (48<25, 4), (23>6, 4), (41<29, 1), (44<33, 1), (39<7, 2), (45<6, 2), (29>49, 3), (13>2, 3), (16>20, 4), (40<49, 4), (43>18, 1), (48<39, 4), (43>9, 1), (37<7, 2), (47<36, 1), (15<33, 3), (49<44, 2), (11>45, 1), (13>39, 1), (30>24, 1), (8<23, 4), (14>8, 1), (41<22, 3), (11<50, 3), (49>18, 4), (26>2, 2), (14>17, 1), (16<46, 1), (37<40, 2), (41>30, 3), (45<20, 2)])).

test(2, (50, 750, [<, >]), (45, 90, 4), ([44, 12, 13, 49, 7, 21, 37, 48, 46, 8, 26, 22, 50, 43, 14, 25, 34, 41, 38, 16, 19, 35, 27, 11, 45, 18, 4, 23, 36, 9, 15, 32, 5, 31, 20, 28, 42, 17, 10, 33, 30, 39, 29, 40, 1], [44>49, 44>46, 12>37, 12>26, 12>35, 12>27, 12>45, 12>23, 12>28, 12>42, 12>30, 12>39, 12>29, 13>44, 13>46, 13>43, 13>25, 13>34, 13>45, 13>23, 13>32, 13>17, 13>30, 13>39, 13>29, 7>21, 7>48, 7>8, 7>27, 7>11, 7>23, 7>9, 7>15, 7>31, 21>44, 21>37, 21>48, 21>43, 21>38, 21>35, 21>45, 21>36, 21>32, 21>31, 21>28, 21>42, 37>44, 37>48, 37>50, 37>43, 37>45, 8>12, 8>13, 8>21, 8>22, 8>19, 8>36, 8>20, 8>28, 8>42, 8>17, 8>30, 26>49, 26>46, 26>50, 26>38, 26>31, 26>30, 26>29, 22>25, 22>34, 22>28, 22>30, 22>29, 43>45, 14>26, 14>22, 14>50, 14>34, 14>41, 14>35, 14>27, 14>15, 14>30, 25>44, 25>43, 25>34, 25>27, 25>33, 25>40, 34>44, 34>46, 34>35, 34>42, 34>40, 41>44, 41>46, 38>49, 38>46, 38>50, 38>41, 38>39, 16>49, 16>22, 16>41, 16>27, 16>42, 16>17, 16>29, 19>44, 19>49, 19>48, 19>46, 19>25, 19>35, 19>42, 19>33, 35>44, 35>50, 35>39, 27>49, 27>37, 27>43, 27>41, 27>36, 27>28, 27>42, 27>39, 27>29, 11>13, 11>26, 11>43, 11>41, 11>45, 11>18, 11>36, 11>32, 11>33, 11>30, 45>46, 45>50, 18>44, 18>43, 18>34, 18>27, 18>45, 18>32, 18>20, 18>42, 18>40, 4>7, 4>50, 4>34, 4>38, 4>19, 4>32, 4>31, 4>28, 4>17, 4>30, 4>40, 23>46, 23>25, 23>34, 23>45, 23>36, 23>32, 23>33, 36>46, 9>49, 9>22, 9>43, 9>45, 9>18, 9>36, 9>20, 9>28, 9>10, 9>39, 15>44, 15>49, 15>37, 15>48, 15>46, 15>26, 15>22, 15>50, 15>43, 15>19, 15>27, 15>36, 15>31, 15>20, 15>42, 15>39, 15>29, 32>44, 32>49, 32>46, 32>50, 32>35, 32>40, 5>7, 5>21, 5>37, 5>48, 5>8, 5>22, 5>14, 5>41, 5>38, 5>16, 5>35, 5>45, 5>23, 5>36, 5>31, 5>28, 5>10, 31>44, 31>48, 31>50, 31>34, 31>36, 31>32, 31>42, 20>44, 20>37, 20>48, 20>26, 20>34, 20>41, 20>45, 20>32, 20>31, 20>42, 20>33, 28>37, 28>43, 28>41, 28>31, 28>42, 28>30, 42>44, 42>49, 42>43, 17>48, 17>50, 17>43, 17>34, 17>38, 17>28, 10>49, 10>21, 10>37, 10>19, 10>45, 10>23, 10>36, 10>31, 10>28, 10>33, 10>29, 33>48, 33>38, 33>45, 33>40, 30>44, 30>49, 30>50, 30>43, 30>35, 30>36, 30>42, 39>41, 39>42, 39>40, 29>49, 29>50, 29>35, 29>33, 29>30, 29>39, 40>49, 40>50, 1>12, 1>49, 1>46, 1>8, 1>43, 1>25, 1>38, 1>35, 1>27, 1>36, 1>42, 1>29], [4<17, 31<33, 14>39, 43<19, 11>20, 13<39, 44>17, 27>45, 30>39, 37>22, 38>19, 46>23, 25>10, 15>32, 12<1, 7<38, 8<27, 32>20, 48<28, 49<37, 13>17, 37<41, 22>33, 22>1, 41>30, 27<28, 50>33, 43<30, 50<45, 12<28, 18<39, 23>32, 19<30, 19>32, 14<1, 16<4, 14<23, 11>4, 12>32, 25<33, 50<41, 43>45, 13>22, 16>39, 36>17, 8<11, 44>7, 20>29, 28>29, 35<9, 48<23, 16<33, 13>35, 21<27, 9>40, 50>30, 23<42, 7<18, 21<38, 7>50, 25<4, 43>10, 35<11, 37<32, 49>41, 30>29, 44<31, 25>28, 14>9, 37<4, 14>42, 48>41, 35<18, 43>9, 27<42, 49<29, 22>36, 44>9, 25>15, 10<39, 46>27, 48>30, 45>30, 37<11, 46<43, 21>25, 38>29, 26>43, 48<31, 8<9], [ (44, 1), (12, 4), (13, 4), (49, 3), (7, 3), (21, 2), (37, 1), (48, 3), (46, 4), (8, 1), (26, 1), (22, 1), (50, 2), (43, 3), (14, 1), (25, 1), (34, 1), (41, 3), (38, 2), (16, 1), (19, 4), (35, 2), (27, 2), (11, 2), (45, 4), (18, 4), (4, 1), (23, 3), (36, 3), (9, 2), (15, 4), (32, 4), (5, 1), (31, 4), (20, 2), (28, 3), (42, 1), (17, 2), (10, 4), (33, 3), (30, 1), (39, 2), (29, 1), (40, 3), (1, 1)], [ (4<17, 2), (31<33, 2), (14>39, 3), (43<19, 2), (11>20, 1), (13<39, 1), (44>17, 1), (27>45, 2), (30>39, 3), (37>22, 4), (38>19, 4), (46>23, 3), (25>10, 1), (15>32, 1), (12<1, 2), (7<38, 3), (8<27, 4), (32>20, 4), (48<28, 3), (49<37, 4), (13>17, 1), (37<41, 1), (22>33, 1), (22>1, 2), (41>30, 3), (27<28, 4), (50>33, 1), (43<30, 4), (50<45, 4), (12<28, 3), (18<39, 1), (23>32, 1), (19<30, 2), (19>32, 2), (14<1, 1), (16<4, 2), (14<23, 2), (11>4, 1), (12>32, 3), (25<33, 1), (50<41, 3), (43>45, 4), (13>22, 1), (16>39, 3), (36>17, 2), (8<11, 1), (44>7, 2), (20>29, 2), (28>29, 1), (35<9, 2), (48<23, 4), (16<33, 2), (13>35, 4), (21<27, 3), (9>40, 4), (50>30, 4), (23<42, 2), (7<18, 4), (21<38, 1), (7>50, 1), (25<4, 2), (43>10, 4), (35<11, 2), (37<32, 2), (49>41, 3), (30>29, 3), (44<31, 2), (25>28, 3), (14>9, 1), (37<4, 4), (14>42, 3), (48>41, 1), (35<18, 1), (43>9, 1), (27<42, 1), (49<29, 2), (22>36, 3), (44>9, 2), (25>15, 1), (10<39, 2), (46>27, 2), (48>30, 2), (45>30, 3), (37<11, 1), (46<43, 1), (21>25, 3), (38>29, 2), (26>43, 3), (48<31, 3), (8<9, 2)])).

test(3, (50, 750, [<, >]), (45, 90, 4), ([23, 1, 41, 13, 32, 18, 47, 11, 22, 45, 5, 19, 8, 48, 2, 16, 42, 25, 49, 38, 30, 44, 34, 29, 3, 20, 10, 40, 37, 17, 24, 14, 15, 27, 43, 36, 6, 50, 46, 33, 4, 28, 21, 39, 31], [23>45, 23>48, 23>42, 23>49, 23>29, 23>24, 23>43, 23>39, 1>13, 1>45, 1>8, 1>48, 1>49, 1>3, 1>20, 1>10, 1>40, 1>15, 1>6, 1>50, 41>45, 41>44, 41>43, 13>41, 13>32, 13>16, 13>38, 13>44, 13>34, 13>29, 32>41, 32>47, 32>36, 18>48, 18>25, 18>30, 18>27, 18>43, 18>28, 47>50, 11>23, 11>41, 11>13, 11>32, 11>22, 11>16, 11>38, 11>34, 11>37, 11>27, 11>21, 22>23, 22>47, 22>45, 22>42, 22>25, 22>44, 22>34, 22>24, 22>46, 22>33, 45>46, 5>32, 5>47, 5>11, 5>42, 5>44, 5>34, 5>24, 5>14, 5>15, 5>43, 5>33, 19>32, 19>49, 19>30, 19>20, 19>40, 19>31, 8>41, 8>11, 8>22, 8>49, 8>38, 8>34, 8>29, 8>43, 8>50, 8>21, 8>39, 48>49, 2>23, 2>41, 2>13, 2>18, 2>22, 2>19, 2>42, 2>3, 2>20, 2>40, 2>15, 2>31, 16>23, 16>41, 16>42, 16>20, 16>27, 16>43, 16>50, 16>39, 42>45, 42>48, 42>44, 42>50, 25>34, 25>40, 25>43, 25>50, 25>31, 49>50, 38>49, 38>44, 38>50, 38>46, 30>47, 30>48, 30>37, 30>43, 30>39, 30>31, 44>49, 34>49, 34>40, 34>36, 34>50, 29>47, 29>45, 29>30, 29>44, 29>34, 29>31, 3>13, 3>18, 3>22, 3>48, 3>16, 3>44, 3>40, 3>14, 3>46, 3>39, 20>23, 20>48, 20>38, 20>30, 20>44, 20>29, 20>24, 10>41, 10>11, 10>19, 10>49, 10>30, 10>40, 10>37, 10>24, 10>15, 10>43, 10>36, 10>28, 10>21, 40>41, 40>45, 40>44, 40>50, 40>46, 37>47, 37>49, 37>44, 37>43, 37>39, 17>41, 17>18, 17>22, 17>48, 17>49, 17>44, 17>33, 17>21, 24>47, 24>42, 24>25, 24>49, 24>34, 24>29, 24>43, 24>50, 24>46, 24>28, 24>31, 14>47, 14>45, 14>48, 14>16, 14>25, 14>49, 14>30, 14>34, 14>29, 14>27, 14>43, 14>33, 14>28, 15>23, 15>32, 15>18, 15>22, 15>20, 15>27, 15>43, 15>36, 15>33, 15>21, 15>39, 15>31, 27>32, 27>47, 27>45, 27>42, 27>36, 27>50, 27>33, 27>31, 43>47, 36>48, 36>49, 36>44, 36>40, 6>32, 6>11, 6>22, 6>48, 6>44, 6>40, 6>14, 6>36, 6>33, 46>50, 33>41, 33>45, 33>34, 33>36, 33>46, 4>18, 4>5, 4>48, 4>16, 4>25, 4>38, 4>30, 4>34, 4>20, 4>43, 4>39, 28>41, 28>47, 28>45, 28>36, 21>23, 21>45, 21>48, 21>49, 21>34, 21>27, 21>46, 21>33, 39>41, 39>47, 39>45, 39>50, 39>46, 31>41, 31>34, 31>43, 31>36, 31>39], [38<20, 20<10, 22>17, 47<39, 1<14, 34<24, 17<31, 40>43, 20<6, 11<29, 19<40, 49<21, 30>21, 41<13, 10<39, 29>40, 23<45, 44>46, 41>3, 1>36, 41<19, 3<39, 25<3, 32<21, 23>6, 34>10, 30>36, 22>29, 49>27, 1>29, 18<38, 34<50, 6<46, 22<21, 23>42, 34>27, 44<39, 2<3, 41>22, 32>34, 30>27, 10<6, 3>46, 2>44, 3>50, 49<29, 19>48, 19<15, 19>27, 3>15, 47<14, 6<28, 49<31, 8>44, 48<46, 20<17, 23<37, 23>15, 42<24, 49<46, 22>16, 24<36, 11>34, 32<38, 40<36, 16>6, 13<36, 41>49, 16>3, 36<4, 19>31, 11>50, 1>11, 5>40, 2>30, 45<44, 13<39, 5>24, 20<50, 16<38, 30>37, 30<10, 1<31, 32<42, 45>46, 5<30, 42>29, 5<15, 11<17, 22<45], [ (23, 4), (1, 1), (41, 1), (13, 4), (32, 4), (18, 3), (47, 1), (11, 3), (22, 1), (45, 2), (5, 2), (19, 1), (8, 2), (48, 4), (2, 1), (16, 4), (42, 2), (25, 4), (49, 4), (38, 2), (30, 2), (44, 4), (34, 2), (29, 2), (3, 3), (20, 4), (10, 1), (40, 3), (37, 1), (17, 4), (24, 2), (14, 1), (15, 3), (27, 4), (43, 3), (36, 1), (6, 4), (50, 2), (46, 2), (33, 4), (4, 2), (28, 4), (21, 3), (39, 4), (31, 4)], [ (38<20, 3), (20<10, 2), (22>17, 4), (47<39, 4), (1<14, 2), (34<24, 4), (17<31, 2), (40>43, 2), (20<6, 4), (11<29, 3), (19<40, 3), (49<21, 2), (30>21, 2), (41<13, 4), (10<39, 2), (29>40, 3), (23<45, 4), (44>46, 3), (41>3, 1), (1>36, 1), (41<19, 4), (3<39, 4), (25<3, 3), (32<21, 4), (23>6, 3), (34>10, 1), (30>36, 2), (22>29, 4), (49>27, 1), (1>29, 3), (18<38, 2), (34<50, 1), (6<46, 1), (22<21, 3), (23>42, 1), (34>27, 3), (44<39, 3), (2<3, 1), (41>22, 2), (32>34, 2), (30>27, 2), (10<6, 1), (3>46, 3), (2>44, 1), (3>50, 3), (49<29, 4), (19>48, 3), (19<15, 4), (19>27, 4), (3>15, 4), (47<14, 4), (6<28, 4), (49<31, 3), (8>44, 2), (48<46, 3), (20<17, 4), (23<37, 1), (23>15, 2), (42<24, 4), (49<46, 2), (22>16, 4), (24<36, 1), (11>34, 2), (32<38, 2), (40<36, 1), (16>6, 4), (13<36, 3), (41>49, 2), (16>3, 2), (36<4, 1), (19>31, 2), (11>50, 4), (1>11, 3), (5>40, 2), (2>30, 3), (45<44, 3), (13<39, 4), (5>24, 1), (20<50, 2), (16<38, 1), (30>37, 2), (30<10, 2), (1<31, 3), (32<42, 1), (45>46, 1), (5<30, 1), (42>29, 4), (5<15, 1), (11<17, 1), (22<45, 4)])).

test(4, (50, 750, [<, >]), (45, 90, 4), ([50, 17, 40, 16, 34, 30, 3, 8, 46, 4, 28, 12, 15, 38, 49, 29, 19, 21, 37, 27, 47, 5, 9, 26, 11, 31, 39, 14, 41, 22, 1, 10, 48, 43, 36, 42, 20, 33, 45, 25, 6, 18, 32, 13, 24], [17>40, 17>38, 17>29, 17>21, 17>47, 17>22, 17>20, 17>32, 40>46, 40>45, 16>40, 16>30, 16>38, 16>29, 16>21, 16>22, 16>43, 16>33, 16>45, 16>24, 34>50, 34>37, 30>49, 30>37, 30>31, 30>48, 30>43, 3>28, 3>15, 3>38, 3>21, 3>9, 3>11, 3>41, 3>10, 3>48, 3>43, 3>36, 3>45, 3>13, 3>24, 8>40, 8>46, 8>14, 8>41, 8>43, 8>33, 8>25, 8>18, 46>48, 4>8, 4>46, 4>19, 4>21, 4>37, 4>5, 4>31, 4>14, 4>10, 4>43, 4>25, 4>32, 4>13, 4>24, 28>40, 28>46, 28>38, 28>37, 28>41, 28>48, 28>36, 28>32, 12>17, 12>30, 12>46, 12>15, 12>38, 12>21, 12>27, 12>47, 12>26, 12>31, 12>33, 12>25, 15>26, 15>31, 15>20, 15>25, 38>50, 38>46, 38>49, 38>39, 38>43, 29>34, 29>38, 29>49, 29>37, 29>31, 29>43, 29>42, 29>33, 29>45, 19>30, 19>28, 19>31, 19>22, 19>48, 19>42, 19>25, 21>34, 21>30, 21>38, 21>49, 21>29, 21>37, 21>27, 21>47, 21>26, 21>36, 21>42, 21>45, 37>46, 37>38, 37>48, 37>43, 37>45, 27>34, 27>38, 27>49, 27>37, 27>47, 27>43, 47>48, 5>50, 5>46, 5>12, 5>15, 5>27, 5>9, 5>11, 5>14, 5>41, 5>36, 5>33, 5>25, 5>13, 9>16, 9>30, 9>46, 9>28, 9>15, 9>27, 9>26, 9>14, 9>43, 9>36, 9>33, 9>25, 9>32, 9>24, 26>34, 26>30, 26>38, 26>49, 26>29, 26>43, 26>36, 26>42, 11>34, 11>49, 11>14, 11>41, 11>43, 11>20, 11>32, 11>24, 31>40, 31>34, 31>46, 31>47, 31>42, 31>33, 39>41, 14>50, 14>49, 14>29, 14>26, 14>31, 14>39, 14>48, 14>25, 14>24, 41>46, 41>47, 41>48, 22>40, 22>34, 22>46, 22>28, 22>38, 22>29, 22>37, 22>27, 22>26, 22>31, 22>39, 22>41, 1>40, 1>8, 1>4, 1>12, 1>29, 1>37, 1>11, 1>41, 1>22, 1>36, 1>33, 1>25, 1>18, 1>32, 10>34, 10>28, 10>15, 10>49, 10>26, 10>11, 10>31, 10>41, 10>22, 10>48, 10>20, 10>32, 48>50, 43>50, 43>47, 36>46, 36>49, 36>41, 36>43, 20>38, 20>49, 20>27, 20>26, 20>31, 20>22, 20>43, 20>36, 33>36, 45>47, 45>48, 25>34, 25>30, 25>26, 25>39, 25>41, 6>50, 6>28, 6>12, 6>38, 6>29, 6>19, 6>21, 6>27, 6>47, 6>9, 6>26, 6>11, 6>22, 6>43, 6>42, 6>33, 6>25, 6>13, 18>21, 18>47, 18>41, 18>48, 18>42, 18>33, 32>50, 32>40, 32>46, 32>39, 32>41, 32>36, 32>42, 32>33, 13>17, 13>40, 13>34, 13>38, 13>29, 13>19, 13>21, 13>39, 13>14, 13>22, 13>48, 13>33, 24>34, 24>46, 24>38, 24>49, 24>47, 24>48], [39>25, 17>22, 39<13, 37<48, 26<41, 50>17, 15<13, 28<48, 16>4, 19<25, 20<25, 28<36, 33<25, 3<29, 47<31, 16<13, 46<14, 27>41, 15<29, 4<32, 16<47, 45<18, 30>20, 4>19, 11<14, 46<38, 34<29, 16<38, 42<6, 19>31, 46<11, 21>31, 31>6, 16<37, 37<20, 12>39, 36<6, 10>48, 29>41, 15>11, 11<43, 3<4, 41>48, 1>10, 8<14, 15>41, 29<11, 39<32, 37<41, 50>10, 48>20, 28>27, 8>13, 40<33, 40<4, 28>32, 31<48, 8<48, 8<49, 30<48, 50<1, 1<45, 38>32, 3>25, 29>31, 5<32, 16>11, 50<18, 30>28, 17<3, 34>18, 15<42, 21<5, 39<36, 28<49, 5>24, 46>28, 50<29, 8<9, 34<13, 19<45, 16<41, 5>48, 34>1, 49>47, 49>24, 12<21, 17<49, 19<39, 49>10], [ (50, 4), (17, 1), (40, 4), (16, 2), (34, 3), (30, 4), (3, 2), (8, 3), (46, 4), (4, 3), (28, 3), (12, 4), (15, 4), (38, 4), (49, 4), (29, 3), (19, 2), (21, 4), (37, 4), (27, 1), (47, 2), (5, 3), (9, 3), (26, 1), (11, 3), (31, 3), (39, 2), (14, 2), (41, 1), (22, 2), (1, 1), (10, 3), (48, 3), (43, 3), (36, 2), (42, 4), (20, 2), (33, 1), (45, 3), (25, 2), (6, 3), (18, 1), (32, 1), (13, 1), (24, 2)], [ (39>25, 4), (17>22, 2), (39<13, 1), (37<48, 3), (26<41, 2), (50>17, 2), (15<13, 2), (28<48, 3), (16>4, 3), (19<25, 2), (20<25, 1), (28<36, 3), (33<25, 4), (3<29, 3), (47<31, 3), (16<13, 2), (46<14, 3), (27>41, 4), (15<29, 2), (4<32, 1), (16<47, 2), (45<18, 1), (30>20, 1), (4>19, 1), (11<14, 4), (46<38, 2), (34<29, 2), (16<38, 1), (42<6, 2), (19>31, 4), (46<11, 4), (21>31, 1), (31>6, 3), (16<37, 4), (37<20, 2), (12>39, 4), (36<6, 2), (10>48, 1), (29>41, 2), (15>11, 4), (11<43, 3), (3<4, 1), (41>48, 4), (1>10, 4), (8<14, 4), (15>41, 4), (29<11, 4), (39<32, 4), (37<41, 4), (50>10, 2), (48>20, 3), (28>27, 3), (8>13, 4), (40<33, 1), (40<4, 4), (28>32, 2), (31<48, 4), (8<48, 1), (8<49, 3), (30<48, 3), (50<1, 2), (1<45, 1), (38>32, 1), (3>25, 3), (29>31, 3), (5<32, 4), (16>11, 1), (50<18, 4), (30>28, 1), (17<3, 1), (34>18, 3), (15<42, 1), (21<5, 4), (39<36, 4), (28<49, 4), (5>24, 4), (46>28, 3), (50<29, 2), (8<9, 3), (34<13, 3), (19<45, 3), (16<41, 1), (5>48, 4), (34>1, 3), (49>47, 3), (49>24, 3), (12<21, 1), (17<49, 2), (19<39, 3), (49>10, 2)])).

test(5, (50, 750, [<, >]), (45, 90, 4), ([14, 31, 43, 36, 25, 50, 12, 24, 3, 48, 37, 20, 34, 30, 5, 27, 33, 28, 4, 46, 7, 22, 21, 11, 45, 38, 10, 1, 15, 42, 47, 49, 41, 29, 19, 35, 18, 32, 23, 9, 16, 26, 40, 8, 13], [14>25, 14>24, 14>20, 14>34, 14>30, 14>33, 14>41, 14>18, 14>40, 31>34, 31>38, 31>42, 31>49, 31>35, 31>40, 36>50, 36>37, 36>38, 36>47, 25>31, 25>48, 25>37, 25>30, 25>27, 25>33, 25>45, 25>42, 25>47, 25>41, 25>32, 25>40, 12>43, 12>50, 12>27, 12>28, 12>49, 12>19, 12>26, 12>40, 24>31, 24>36, 24>50, 24>48, 24>37, 24>34, 24>33, 24>28, 24>46, 24>42, 24>49, 24>35, 24>32, 3>14, 3>48, 3>34, 3>7, 3>21, 3>45, 3>10, 3>19, 3>35, 3>18, 3>9, 3>26, 3>8, 48>50, 37>43, 37>50, 20>43, 20>25, 20>48, 20>27, 20>45, 20>38, 20>49, 34>36, 34>50, 34>37, 34>35, 30>31, 30>38, 30>42, 5>50, 5>12, 5>24, 5>20, 5>30, 5>27, 5>33, 5>7, 5>38, 5>29, 5>9, 27>37, 27>34, 27>33, 27>38, 27>42, 27>49, 27>29, 27>32, 33>37, 33>34, 33>46, 33>45, 33>47, 33>41, 28>50, 28>48, 28>37, 28>34, 28>30, 28>38, 28>42, 28>29, 4>14, 4>12, 4>24, 4>48, 4>20, 4>5, 4>33, 4>49, 4>41, 4>29, 4>19, 4>32, 4>16, 4>26, 4>8, 46>50, 46>47, 46>49, 7>14, 7>50, 7>12, 7>48, 7>34, 7>27, 7>33, 7>21, 7>42, 7>41, 7>29, 7>23, 7>9, 7>16, 22>36, 22>50, 22>48, 22>30, 22>46, 21>31, 21>43, 21>48, 21>37, 21>33, 21>46, 21>41, 21>26, 21>40, 11>14, 11>50, 11>48, 11>28, 11>21, 11>38, 11>42, 11>47, 11>35, 11>18, 11>23, 11>16, 11>26, 11>40, 45>48, 38>50, 38>48, 38>47, 38>49, 38>41, 10>31, 10>50, 10>20, 10>30, 10>27, 10>46, 10>22, 10>45, 10>15, 10>35, 10>16, 10>13, 1>37, 1>34, 1>33, 1>28, 1>4, 1>21, 1>10, 1>49, 1>29, 1>19, 1>32, 1>23, 1>13, 15>36, 15>50, 15>37, 15>33, 15>22, 15>21, 15>42, 15>49, 15>41, 15>29, 15>19, 15>18, 15>26, 42>47, 47>50, 41>43, 41>46, 41>42, 41>47, 41>49, 29>31, 19>37, 19>34, 19>27, 19>22, 19>21, 19>42, 19>49, 19>41, 19>29, 19>32, 19>26, 35>36, 35>46, 35>38, 35>42, 35>40, 18>31, 18>36, 18>50, 18>24, 18>37, 18>20, 18>34, 18>33, 18>22, 18>49, 18>32, 18>26, 32>36, 32>34, 32>46, 32>45, 32>38, 23>31, 23>43, 23>50, 23>37, 23>46, 23>38, 9>43, 9>36, 9>12, 9>37, 9>20, 9>30, 9>22, 9>21, 9>47, 9>29, 9>35, 9>18, 9>16, 9>40, 16>31, 16>36, 16>25, 16>37, 16>30, 16>27, 16>33, 16>46, 16>22, 16>21, 16>41, 16>18, 16>32, 26>31, 26>36, 26>50, 26>30, 26>27, 26>33, 26>45, 26>35, 26>32, 40>43, 8>43, 8>25, 8>50, 8>12, 8>30, 8>28, 8>41, 8>29, 8>9, 8>26, 8>40, 13>14, 13>43, 13>25, 13>50, 13>24, 13>30, 13>22, 13>49, 13>19, 13>35, 13>18, 13>40], [20<1, 20<30, 50>38, 12<49, 22<19, 12>35, 35<26, 33<21, 23>9, 24<8, 11>40, 14<23, 25>45, 29>40, 3>42, 15<9, 24>19, 12<45, 4<22, 3<15, 14<37, 28>13, 50<27, 15<19, 49>32, 46>13, 3>10, 14>48, 42>40, 14>42, 46<23, 12<27, 37<19, 43<7, 38<16, 3>49, 11<42, 31>20, 34<19, 50<32, 35<18, 1<13, 21<35, 5>22, 50<26, 25>26, 36>49, 48>11, 46>29, 14<41, 21<29, 28>9, 34>27, 12>10, 45<1, 45>9, 49<13, 37<46, 37<49, 42>32, 24>47, 34<28, 4<38, 29>35, 25>10, 25>9, 30<1, 22<13, 11>49, 25<42, 31<13, 46<38, 7<8, 43<35, 25>19, 24>30, 3>45, 12<33, 37<47, 37>9, 33>11, 24>7, 25>22, 29<9, 28<47, 43>26, 15<41, 38<19, 27>16, 31<37], [ (14, 2), (31, 1), (43, 4), (36, 3), (25, 2), (50, 4), (12, 2), (24, 3), (3, 2), (48, 3), (37, 1), (20, 2), (34, 3), (30, 4), (5, 4), (27, 4), (33, 4), (28, 1), (4, 4), (46, 3), (7, 4), (22, 2), (21, 2), (11, 4), (45, 2), (38, 2), (10, 1), (1, 4), (15, 4), (42, 4), (47, 3), (49, 3), (41, 2), (29, 1), (19, 2), (35, 1), (18, 4), (32, 2), (23, 3), (9, 3), (16, 4), (26, 1), (40, 2), (8, 2), (13, 3)], [ (20<1, 3), (20<30, 3), (50>38, 3), (12<49, 3), (22<19, 4), (12>35, 1), (35<26, 1), (33<21, 2), (23>9, 4), (24<8, 3), (11>40, 3), (14<23, 1), (25>45, 1), (29>40, 3), (3>42, 2), (15<9, 2), (24>19, 2), (12<45, 4), (4<22, 3), (3<15, 3), (14<37, 2), (28>13, 2), (50<27, 3), (15<19, 4), (49>32, 3), (46>13, 4), (3>10, 4), (14>48, 4), (42>40, 2), (14>42, 2), (46<23, 2), (12<27, 3), (37<19, 3), (43<7, 4), (38<16, 1), (3>49, 3), (11<42, 1), (31>20, 4), (34<19, 2), (50<32, 2), (35<18, 4), (1<13, 1), (21<35, 1), (5>22, 3), (50<26, 1), (25>26, 2), (36>49, 2), (48>11, 1), (46>29, 2), (14<41, 1), (21<29, 2), (28>9, 4), (34>27, 2), (12>10, 1), (45<1, 1), (45>9, 3), (49<13, 3), (37<46, 3), (37<49, 2), (42>32, 1), (24>47, 4), (34<28, 3), (4<38, 2), (29>35, 1), (25>10, 3), (25>9, 1), (30<1, 3), (22<13, 2), (11>49, 2), (25<42, 2), (31<13, 4), (46<38, 1), (7<8, 2), (43<35, 4), (25>19, 3), (24>30, 4), (3>45, 2), (12<33, 3), (37<47, 2), (37>9, 2), (33>11, 3), (24>7, 4), (25>22, 1), (29<9, 4), (28<47, 2), (43>26, 3), (15<41, 1), (38<19, 2), (27>16, 2), (31<37, 1)])).

test(6, (50, 750, [<, >]), (45, 90, 4), ([40, 50, 28, 2, 5, 16, 12, 6, 9, 17, 1, 20, 49, 30, 21, 18, 43, 41, 34, 48, 31, 42, 15, 27, 25, 8, 36, 45, 23, 24, 11, 47, 26, 39, 14, 35, 7, 4, 3, 44, 32, 29, 38, 33, 13], [40>43, 40>42, 40>45, 28>30, 28>34, 28>31, 28>45, 28>44, 2>50, 2>16, 2>6, 2>9, 2>17, 2>43, 2>42, 2>36, 2>45, 2>24, 2>14, 2>3, 2>32, 2>38, 2>33, 5>40, 5>50, 5>12, 5>31, 5>15, 5>8, 5>23, 5>39, 5>14, 5>7, 5>29, 16>40, 16>41, 16>31, 16>23, 16>39, 16>35, 16>44, 12>28, 12>30, 12>48, 12>15, 12>23, 12>26, 12>29, 12>33, 12>13, 6>40, 6>50, 6>28, 6>16, 6>18, 6>43, 6>48, 6>27, 6>8, 6>36, 6>45, 6>47, 6>26, 6>32, 9>40, 9>50, 9>28, 9>16, 9>17, 9>18, 9>41, 9>34, 9>24, 9>39, 9>14, 17>50, 17>30, 17>48, 17>31, 17>45, 17>24, 17>39, 1>49, 1>30, 1>21, 1>48, 1>42, 1>27, 1>45, 1>23, 1>11, 1>35, 1>4, 20>50, 20>41, 20>48, 20>36, 20>45, 20>23, 20>24, 20>44, 20>33, 30>41, 30>39, 30>35, 30>38, 30>33, 21>50, 21>28, 21>27, 21>36, 21>24, 21>47, 21>26, 21>35, 21>29, 18>20, 18>49, 18>48, 18>25, 18>32, 18>29, 18>38, 18>33, 43>50, 43>48, 43>44, 34>40, 34>50, 34>43, 34>42, 34>39, 48>50, 48>49, 31>43, 31>41, 31>48, 31>42, 31>39, 42>49, 42>44, 15>40, 15>16, 15>21, 15>18, 15>25, 15>45, 15>33, 27>50, 27>30, 27>43, 27>48, 27>31, 27>45, 27>32, 27>33, 25>43, 25>47, 25>39, 25>44, 25>29, 25>38, 8>50, 8>30, 8>21, 8>42, 8>15, 8>27, 8>23, 8>24, 8>11, 8>26, 8>44, 8>29, 36>43, 36>42, 36>45, 36>39, 23>49, 23>34, 23>42, 23>36, 23>24, 24>40, 24>28, 24>30, 24>43, 24>39, 24>35, 24>44, 11>30, 11>21, 11>43, 11>41, 11>42, 11>25, 11>47, 11>14, 11>32, 11>38, 47>50, 26>28, 26>49, 26>30, 26>31, 26>45, 26>47, 26>39, 26>38, 39>43, 39>41, 39>42, 39>45, 14>40, 14>28, 14>17, 14>20, 14>49, 14>31, 14>42, 14>36, 14>23, 14>47, 14>26, 14>35, 14>32, 35>49, 35>41, 35>36, 35>44, 7>50, 7>17, 7>49, 7>21, 7>18, 7>25, 7>23, 7>39, 7>32, 4>17, 4>20, 4>18, 4>34, 4>42, 4>8, 4>45, 4>23, 4>11, 4>26, 4>39, 4>7, 4>29, 4>38, 4>13, 3>28, 3>9, 3>36, 3>45, 3>23, 3>24, 3>26, 3>35, 3>44, 3>29, 3>33, 3>13, 44>45, 32>50, 32>49, 32>43, 32>36, 29>49, 29>42, 29>45, 29>35, 29>33, 38>50, 38>47, 38>44, 33>45, 33>35, 13>40, 13>16, 13>20, 13>30, 13>21, 13>41, 13>48, 13>42, 13>25, 13>24, 13>35, 13>33], [18>31, 9>30, 40>32, 20<27, 5<30, 14>38, 45<13, 32>29, 34<15, 5<17, 49>34, 39<33, 20>21, 30>11, 50>27, 39<14, 41<15, 18>44, 11>39, 28<38, 9>25, 41<7, 31<4, 14<35, 24<14, 2<34, 2>33, 2>35, 38>33, 12>36, 18>7, 6>36, 40<44, 30>21, 27>3, 27>23, 16<35, 16<21, 50<47, 16<34, 42<35, 28>20, 17<48, 2<5, 31<25, 25>8, 20<45, 24>38, 39<7, 39>32, 1>32, 44>29, 43>29, 40>35, 42<27, 41>23, 50>36, 11<4, 5<21, 2<36, 34<24, 40<9, 5<38, 12<30, 27<29, 49<39, 21>32, 17>34, 15>7, 2>17, 12>33, 30<15, 36<7, 4>29, 28<47, 20<32, 5<45, 23>39, 9>49, 1>42, 1<48, 21>44, 6>7, 5>44, 26<7, 12>25, 17<33, 26>35, 12>9, 16<31], [ (40, 4), (50, 2), (28, 2), (2, 3), (5, 3), (16, 3), (12, 3), (6, 4), (9, 1), (17, 2), (1, 1), (20, 4), (49, 1), (30, 1), (21, 3), (18, 1), (43, 2), (41, 2), (34, 4), (48, 4), (31, 1), (42, 1), (15, 3), (27, 1), (25, 1), (8, 2), (36, 1), (45, 4), (23, 2), (24, 4), (11, 3), (47, 2), (26, 1), (39, 3), (14, 2), (35, 2), (7, 3), (4, 1), (3, 3), (44, 4), (32, 2), (29, 4), (38, 3), (33, 4), (13, 4)], [ (18>31, 4), (9>30, 2), (40>32, 2), (20<27, 4), (5<30, 1), (14>38, 1), (45<13, 3), (32>29, 1), (34<15, 3), (5<17, 3), (49>34, 1), (39<33, 4), (20>21, 3), (30>11, 4), (50>27, 1), (39<14, 4), (41<15, 4), (18>44, 2), (11>39, 2), (28<38, 4), (9>25, 2), (41<7, 4), (31<4, 2), (14<35, 3), (24<14, 2), (2<34, 3), (2>33, 2), (2>35, 3), (38>33, 3), (12>36, 1), (18>7, 4), (6>36, 3), (40<44, 4), (30>21, 4), (27>3, 1), (27>23, 2), (16<35, 3), (16<21, 2), (50<47, 1), (16<34, 4), (42<35, 2), (28>20, 1), (17<48, 3), (2<5, 2), (31<25, 4), (25>8, 4), (20<45, 1), (24>38, 1), (39<7, 2), (39>32, 4), (1>32, 3), (44>29, 3), (43>29, 2), (40>35, 4), (42<27, 1), (41>23, 1), (50>36, 1), (11<4, 4), (5<21, 3), (2<36, 4), (34<24, 2), (40<9, 4), (5<38, 1), (12<30, 1), (27<29, 4), (49<39, 3), (21>32, 4), (17>34, 2), (15>7, 1), (2>17, 4), (12>33, 4), (30<15, 2), (36<7, 4), (4>29, 4), (28<47, 1), (20<32, 3), (5<45, 2), (23>39, 3), (9>49, 1), (1>42, 3), (1<48, 2), (21>44, 1), (6>7, 1), (5>44, 3), (26<7, 3), (12>25, 2), (17<33, 1), (26>35, 2), (12>9, 4), (16<31, 1)])).

test(7, (50, 750, [<, >]), (45, 90, 4), ([10, 17, 3, 23, 14, 42, 48, 21, 37, 38, 16, 6, 35, 11, 25, 12, 40, 44, 45, 39, 33, 29, 20, 19, 30, 2, 32, 24, 9, 8, 47, 1, 4, 43, 27, 7, 28, 13, 34, 41, 49, 36, 31, 22, 26], [10>14, 10>48, 10>37, 10>35, 10>45, 10>39, 10>20, 10>32, 10>47, 10>36, 17>42, 17>48, 17>38, 17>20, 17>30, 17>27, 17>28, 17>31, 17>22, 17>26, 3>14, 3>48, 3>37, 3>25, 3>40, 3>45, 3>20, 3>30, 3>32, 3>47, 3>27, 3>7, 3>28, 3>34, 3>36, 23>42, 23>37, 23>38, 23>25, 23>45, 23>33, 23>47, 23>27, 23>41, 14>42, 14>37, 14>40, 14>29, 14>20, 14>30, 14>34, 14>41, 14>49, 14>31, 42>47, 21>37, 21>44, 21>45, 21>39, 21>33, 21>29, 21>30, 21>32, 21>27, 21>41, 21>36, 21>31, 37>38, 37>39, 37>47, 37>43, 38>43, 38>41, 16>38, 16>39, 16>33, 16>20, 16>19, 16>30, 16>32, 6>14, 6>42, 6>11, 6>40, 6>44, 6>45, 6>30, 6>43, 6>7, 6>28, 6>36, 6>31, 35>42, 35>37, 11>35, 11>40, 11>39, 11>20, 11>30, 11>13, 11>34, 11>31, 25>42, 25>37, 25>35, 25>44, 25>33, 25>30, 12>17, 12>37, 12>38, 12>45, 12>20, 12>24, 12>13, 12>49, 40>44, 44>49, 45>47, 45>49, 39>42, 39>40, 39>43, 39>49, 33>40, 33>44, 33>39, 33>41, 33>36, 29>37, 29>44, 29>39, 29>30, 29>47, 29>43, 29>49, 20>23, 20>48, 20>21, 20>37, 20>38, 20>25, 20>40, 20>44, 20>45, 20>33, 20>43, 20>27, 20>34, 20>41, 20>31, 19>21, 19>37, 19>39, 19>33, 19>30, 19>47, 19>27, 30>42, 30>48, 30>35, 30>40, 30>44, 30>45, 30>32, 30>47, 30>31, 2>3, 2>23, 2>21, 2>40, 2>29, 2>32, 2>9, 2>47, 2>34, 2>41, 2>22, 32>38, 32>33, 24>48, 24>25, 24>40, 24>47, 24>27, 24>28, 24>34, 24>49, 9>10, 9>23, 9>48, 9>11, 9>33, 9>24, 9>28, 9>41, 9>26, 8>10, 8>42, 8>48, 8>37, 8>25, 8>12, 8>40, 8>44, 8>19, 8>30, 8>24, 8>28, 8>41, 8>36, 8>26, 47>49, 1>3, 1>14, 1>48, 1>35, 1>11, 1>44, 1>19, 1>9, 1>8, 1>43, 1>27, 1>34, 1>41, 1>49, 1>26, 4>14, 4>21, 4>6, 4>12, 4>40, 4>39, 4>20, 4>32, 4>27, 4>34, 4>36, 4>31, 4>26, 43>44, 43>47, 27>48, 27>39, 27>32, 27>43, 27>49, 27>31, 7>23, 7>16, 7>35, 7>40, 7>45, 7>33, 7>9, 7>47, 7>28, 7>34, 28>48, 28>44, 28>49, 28>36, 13>17, 13>37, 13>35, 13>29, 13>20, 13>30, 13>24, 13>27, 13>41, 13>36, 13>22, 34>42, 34>37, 34>40, 34>45, 34>41, 34>36, 41>45, 41>47, 36>38, 36>43, 36>41, 31>42, 31>40, 31>33, 31>47, 31>49, 31>36, 22>37, 22>40, 22>39, 22>29, 22>28, 22>49, 22>26, 26>37, 26>38, 26>35, 26>40, 26>44, 26>39, 26>29, 26>30, 26>43, 26>28, 26>41], [21>22, 34>22, 32<8, 24>27, 25>47, 48<36, 29<2, 37<33, 25>33, 36<22, 23>34, 38<36, 42>34, 35<9, 40>36, 44<20, 38>35, 30>36, 21<27, 33<9, 37>12, 39>20, 35>33, 12<34, 44>27, 32>34, 12>47, 14<43, 30>47, 14>12, 34<49, 42<30, 19<7, 21<43, 38>12, 38>20, 17<39, 38>34, 25<43, 38>39, 37>41, 29<24, 23<48, 44>26, 29>49, 25>36, 33<1, 4<13, 33<47, 1<28, 28>31, 13>34, 16<12, 48>1, 3<37, 21<12, 21>35, 23<13, 23>1, 8>31, 23>30, 16>26, 25>24, 16<32, 44>32, 48<21, 23>44, 16<20, 19>22, 44<2, 41>31, 23>24, 32<9, 10>3, 16<43, 25>31, 2>9, 17<26, 2>32, 20>7, 33>19, 30>31, 3<23, 14<7, 17<33, 42<21, 6<29, 48>30, 3>49, 9<28], [ (10, 3), (17, 4), (3, 1), (23, 3), (14, 3), (42, 1), (48, 4), (21, 3), (37, 2), (38, 1), (16, 3), (6, 1), (35, 4), (11, 1), (25, 2), (12, 3), (40, 3), (44, 2), (45, 4), (39, 4), (33, 3), (29, 1), (20, 3), (19, 4), (30, 3), (2, 2), (32, 4), (24, 3), (9, 3), (8, 2), (47, 4), (1, 4), (4, 2), (43, 4), (27, 1), (7, 2), (28, 4), (13, 1), (34, 1), (41, 1), (49, 4), (36, 4), (31, 4), (22, 2), (26, 1)], [ (21>22, 2), (34>22, 3), (32<8, 2), (24>27, 2), (25>47, 4), (48<36, 1), (29<2, 1), (37<33, 3), (25>33, 1), (36<22, 4), (23>34, 1), (38<36, 3), (42>34, 2), (35<9, 2), (40>36, 1), (44<20, 2), (38>35, 2), (30>36, 3), (21<27, 4), (33<9, 1), (37>12, 1), (39>20, 4), (35>33, 4), (12<34, 1), (44>27, 4), (32>34, 4), (12>47, 3), (14<43, 4), (30>47, 1), (14>12, 3), (34<49, 3), (42<30, 2), (19<7, 4), (21<43, 3), (38>12, 3), (38>20, 3), (17<39, 3), (38>34, 4), (25<43, 4), (38>39, 1), (37>41, 1), (29<24, 3), (23<48, 3), (44>26, 3), (29>49, 3), (25>36, 3), (33<1, 4), (4<13, 1), (33<47, 4), (1<28, 3), (28>31, 2), (13>34, 1), (16<12, 2), (48>1, 2), (3<37, 1), (21<12, 4), (21>35, 2), (23<13, 3), (23>1, 4), (8>31, 2), (23>30, 1), (16>26, 3), (25>24, 4), (16<32, 4), (44>32, 2), (48<21, 4), (23>44, 2), (16<20, 2), (19>22, 1), (44<2, 4), (41>31, 1), (23>24, 1), (32<9, 4), (10>3, 2), (16<43, 4), (25>31, 2), (2>9, 3), (17<26, 4), (2>32, 3), (20>7, 4), (33>19, 4), (30>31, 2), (3<23, 3), (14<7, 4), (17<33, 2), (42<21, 3), (6<29, 1), (48>30, 3), (3>49, 2), (9<28, 3)])).

test(8, (50, 750, [<, >]), (45, 90, 4), ([3, 25, 50, 48, 11, 4, 29, 17, 8, 16, 5, 37, 27, 45, 6, 14, 46, 39, 15, 33, 18, 35, 24, 20, 23, 19, 2, 40, 13, 22, 12, 42, 49, 47, 34, 21, 32, 30, 31, 28, 10, 9, 1, 7, 41], [3>6, 3>46, 3>23, 3>19, 3>22, 3>49, 3>32, 3>30, 3>31, 3>28, 3>10, 3>9, 25>48, 25>45, 25>33, 25>49, 25>47, 25>34, 25>32, 25>28, 25>41, 11>16, 11>27, 11>14, 11>15, 11>33, 11>24, 11>23, 11>42, 11>34, 11>31, 4>50, 4>48, 4>39, 4>18, 4>24, 4>19, 4>49, 4>47, 4>34, 4>21, 4>30, 4>9, 4>7, 29>42, 17>50, 17>29, 17>27, 17>45, 17>39, 17>23, 17>19, 17>22, 17>42, 17>34, 17>41, 8>29, 8>37, 8>39, 8>15, 8>35, 8>24, 8>20, 8>22, 8>31, 16>48, 16>29, 16>17, 16>39, 16>20, 16>40, 16>42, 16>49, 16>34, 16>21, 16>32, 16>30, 16>41, 5>48, 5>11, 5>17, 5>16, 5>37, 5>6, 5>33, 5>20, 5>23, 5>49, 5>47, 5>31, 5>9, 37>39, 37>40, 37>49, 27>37, 27>46, 27>39, 27>42, 27>49, 45>48, 6>25, 6>48, 6>8, 6>16, 6>27, 6>15, 6>35, 6>24, 6>20, 6>47, 6>30, 6>9, 6>41, 14>50, 14>29, 14>16, 14>27, 14>45, 14>39, 14>15, 14>24, 14>20, 14>22, 14>42, 14>30, 14>31, 14>28, 46>50, 46>49, 39>48, 39>40, 39>47, 15>25, 15>39, 15>22, 15>31, 33>39, 18>25, 18>48, 18>29, 18>46, 18>23, 18>42, 18>49, 18>21, 18>28, 35>46, 35>40, 35>49, 35>47, 35>41, 24>48, 24>29, 24>39, 24>49, 24>34, 24>31, 24>28, 20>29, 20>37, 20>24, 20>22, 20>28, 23>29, 23>24, 23>40, 23>49, 23>30, 23>28, 23>41, 19>46, 19>39, 19>20, 19>40, 19>34, 19>32, 19>30, 2>3, 2>8, 2>16, 2>27, 2>33, 2>24, 2>20, 2>19, 2>13, 2>22, 2>21, 2>41, 13>25, 13>48, 13>29, 13>16, 13>37, 13>27, 13>20, 13>23, 13>40, 13>21, 13>31, 22>27, 22>46, 22>33, 22>35, 22>23, 22>42, 22>47, 12>48, 12>29, 12>17, 12>16, 12>37, 12>27, 12>14, 12>39, 12>40, 12>42, 12>47, 12>21, 12>30, 12>31, 42>45, 42>49, 47>50, 47>48, 34>45, 34>40, 34>49, 34>41, 21>48, 21>45, 21>35, 21>40, 21>49, 21>32, 21>41, 32>39, 32>33, 32>49, 32>47, 32>41, 30>50, 30>37, 30>33, 31>40, 31>47, 10>11, 10>17, 10>27, 10>14, 10>46, 10>35, 10>23, 10>12, 10>47, 10>31, 10>28, 10>41, 9>50, 9>48, 9>29, 9>33, 9>35, 9>19, 9>13, 9>42, 9>49, 9>21, 9>30, 9>10, 1>25, 1>50, 1>48, 1>4, 1>29, 1>17, 1>8, 1>16, 1>27, 1>6, 1>20, 1>12, 1>49, 1>21, 1>30, 1>9, 7>29, 7>8, 7>27, 7>45, 7>46, 7>39, 7>15, 7>28, 7>10, 7>41, 41>50, 41>47], [15>41, 25>21, 30>31, 12>49, 16<34, 5<13, 25>9, 18>24, 27<45, 15>21, 11<33, 46>33, 5<7, 30<41, 20<23, 23<12, 31<7, 16<35, 25<16, 11>23, 3<28, 27<22, 29>31, 6<31, 2>22, 25<8, 50<6, 21>9, 29<33, 31>41, 17>33, 3<14, 37<40, 5>41, 14<15, 8<19, 50>10, 8<35, 24>12, 50<14, 23>41, 34<10, 4<5, 27>32, 39<7, 19>7, 50>8, 14>47, 45>24, 16>5, 37<2, 23<19, 17>7, 39<41, 21<10, 50<2, 18<41, 28<10, 12>28, 32>9, 48<5, 11>24, 27<41, 16>23, 40<7, 25>15, 3<45, 18>35, 18>2, 40>47, 4>29, 20<13, 8<7, 42<21, 50>27, 25>24, 3<10, 5>14, 48<13, 27<2, 11<5, 3<7, 3<31, 21<28, 16>13, 46<1, 11<34, 29>35, 25<34, 37<39], [ (3, 4), (25, 2), (50, 3), (48, 4), (11, 3), (4, 4), (29, 3), (17, 4), (8, 3), (16, 4), (5, 1), (37, 1), (27, 2), (45, 3), (6, 4), (14, 2), (46, 4), (39, 4), (15, 3), (33, 3), (18, 3), (35, 3), (24, 3), (20, 2), (23, 1), (19, 4), (2, 1), (40, 3), (13, 2), (22, 2), (12, 4), (42, 3), (49, 1), (47, 1), (34, 1), (21, 3), (32, 1), (30, 3), (31, 3), (28, 3), (10, 1), (9, 3), (1, 3), (7, 2), (41, 2)], [ (15>41, 1), (25>21, 1), (30>31, 4), (12>49, 1), (16<34, 3), (5<13, 2), (25>9, 3), (18>24, 2), (27<45, 1), (15>21, 1), (11<33, 3), (46>33, 2), (5<7, 1), (30<41, 2), (20<23, 3), (23<12, 1), (31<7, 3), (16<35, 2), (25<16, 2), (11>23, 1), (3<28, 2), (27<22, 1), (29>31, 1), (6<31, 4), (2>22, 1), (25<8, 4), (50<6, 4), (21>9, 4), (29<33, 4), (31>41, 2), (17>33, 3), (3<14, 1), (37<40, 2), (5>41, 3), (14<15, 3), (8<19, 3), (50>10, 1), (8<35, 3), (24>12, 4), (50<14, 2), (23>41, 2), (34<10, 3), (4<5, 2), (27>32, 1), (39<7, 2), (19>7, 3), (50>8, 3), (14>47, 4), (45>24, 1), (16>5, 3), (37<2, 1), (23<19, 3), (17>7, 3), (39<41, 2), (21<10, 4), (50<2, 2), (18<41, 3), (28<10, 2), (12>28, 1), (32>9, 1), (48<5, 4), (11>24, 1), (27<41, 2), (16>23, 3), (40<7, 2), (25>15, 2), (3<45, 2), (18>35, 2), (18>2, 1), (40>47, 2), (4>29, 1), (20<13, 1), (8<7, 2), (42<21, 3), (50>27, 4), (25>24, 3), (3<10, 2), (5>14, 2), (48<13, 2), (27<2, 1), (11<5, 4), (3<7, 4), (3<31, 2), (21<28, 1), (16>13, 4), (46<1, 2), (11<34, 4), (29>35, 4), (25<34, 3), (37<39, 2)])).

test(9, (50, 750, [<, >]), (45, 90, 4), ([48, 44, 5, 24, 30, 43, 14, 25, 20, 34, 42, 22, 23, 33, 6, 10, 12, 35, 39, 11, 15, 36, 49, 4, 13, 32, 2, 41, 38, 50, 29, 31, 28, 47, 46, 18, 7, 26, 3, 21, 1, 27, 19, 40, 8], [48>50, 44>49, 44>47, 5>48, 5>24, 5>25, 5>20, 5>34, 5>23, 5>33, 5>10, 5>35, 5>39, 5>36, 5>13, 5>41, 5>47, 5>46, 5>26, 5>21, 5>27, 5>19, 5>8, 24>30, 24>35, 24>39, 24>49, 24>38, 24>31, 24>28, 24>26, 30>44, 30>34, 30>31, 30>47, 43>47, 14>30, 14>43, 14>25, 14>15, 14>36, 14>49, 14>29, 14>28, 25>33, 25>29, 25>28, 25>46, 25>40, 20>24, 20>30, 20>25, 20>34, 20>42, 20>35, 20>41, 20>28, 20>46, 20>21, 34>43, 34>36, 34>41, 34>50, 34>47, 42>49, 42>50, 22>24, 22>43, 22>25, 22>34, 22>23, 22>39, 22>32, 22>31, 22>28, 22>47, 22>46, 22>40, 23>48, 23>44, 23>24, 23>43, 23>25, 23>36, 23>49, 23>32, 23>31, 23>26, 23>40, 33>39, 33>36, 33>41, 33>46, 6>30, 6>33, 6>12, 6>39, 6>49, 6>32, 6>50, 6>29, 6>31, 6>26, 6>21, 6>40, 10>30, 10>25, 10>22, 10>13, 10>50, 10>31, 10>28, 10>47, 10>26, 10>21, 12>44, 12>24, 12>14, 12>25, 12>20, 12>42, 12>33, 12>15, 12>36, 12>41, 12>47, 12>18, 12>21, 12>40, 35>41, 39>50, 39>40, 11>48, 11>22, 11>15, 11>36, 11>46, 11>21, 11>27, 11>40, 15>43, 15>39, 15>49, 15>32, 15>41, 15>38, 15>50, 15>29, 15>28, 15>47, 15>40, 36>44, 36>39, 36>41, 36>38, 36>46, 4>44, 4>34, 4>11, 4>13, 4>41, 4>50, 4>29, 4>31, 4>7, 13>48, 13>14, 13>25, 13>20, 13>42, 13>15, 13>50, 13>29, 13>28, 13>46, 13>18, 13>26, 13>21, 13>40, 32>48, 32>42, 32>49, 32>47, 32>46, 2>48, 2>43, 2>25, 2>34, 2>39, 2>15, 2>4, 2>13, 2>32, 2>41, 2>38, 2>50, 2>29, 2>31, 2>46, 2>26, 41>44, 41>43, 41>46, 38>48, 38>39, 38>49, 38>50, 38>46, 38>40, 29>34, 29>33, 29>49, 29>47, 31>44, 31>34, 31>42, 28>48, 28>34, 28>42, 28>36, 28>47, 28>40, 47>49, 18>44, 18>24, 18>43, 18>22, 18>41, 18>38, 18>27, 18>19, 7>44, 7>30, 7>25, 7>33, 7>10, 7>39, 7>13, 7>32, 7>8, 26>39, 26>36, 26>38, 26>50, 26>29, 26>28, 26>46, 3>44, 3>24, 3>30, 3>23, 3>12, 3>36, 3>49, 3>13, 3>41, 3>29, 3>26, 3>27, 3>19, 21>43, 21>22, 21>33, 21>38, 21>50, 21>31, 21>47, 21>46, 21>27, 1>48, 1>30, 1>43, 1>25, 1>22, 1>23, 1>6, 1>10, 1>12, 1>39, 1>11, 1>49, 1>28, 1>18, 1>26, 1>27, 1>8, 27>48, 27>43, 27>35, 27>50, 27>28, 19>48, 19>44, 19>30, 19>20, 19>23, 19>33, 19>49, 19>50, 19>46, 40>48, 40>44, 40>43, 40>42, 40>41, 40>50, 8>44, 8>24, 8>13, 8>41, 8>31, 8>47, 8>46, 8>18, 8>26, 8>27], [14>27, 10>18, 10<2, 46>1, 21>1, 20<32, 41>47, 14<25, 48<44, 15<47, 49<28, 10>39, 20<15, 36>1, 22>6, 44<29, 2<50, 14>23, 25<31, 42>31, 34<26, 38<26, 10<50, 13>3, 32>28, 48>38, 44>30, 20>2, 4>41, 5<22, 25>8, 34>4, 43<36, 34>38, 42<26, 30>35, 15<50, 24<47, 35>2, 22<26, 28<18, 49<13, 47>26, 34<50, 42<15, 39>13, 39>50, 44<35, 46<8, 22>28, 1>19, 46<3, 43>38, 10>41, 2<21, 1>40, 14<49, 5>26, 41<28, 36>49, 20>50, 11>8, 34<21, 38>29, 4<29, 18<26, 39<4, 6>31, 44>14, 22<40, 34<49, 42>29, 41<19, 50>1, 4>18, 43>18, 5<42, 48>20, 22>23, 48<43, 50>28, 6>26, 44<38, 41>3, 43<21, 5<31, 15<8, 32>50, 33>13, 12<29], [ (48, 1), (44, 1), (5, 1), (24, 3), (30, 1), (43, 4), (14, 3), (25, 1), (20, 3), (34, 1), (42, 1), (22, 1), (23, 4), (33, 1), (6, 1), (10, 1), (12, 4), (35, 3), (39, 1), (11, 2), (15, 3), (36, 4), (49, 4), (4, 4), (13, 4), (32, 2), (2, 3), (41, 1), (38, 3), (50, 3), (29, 3), (31, 4), (28, 4), (47, 1), (46, 3), (18, 1), (7, 4), (26, 2), (3, 1), (21, 1), (1, 1), (27, 4), (19, 3), (40, 4), (8, 2)], [ (14>27, 1), (10>18, 1), (10<2, 1), (46>1, 2), (21>1, 4), (20<32, 3), (41>47, 2), (14<25, 1), (48<44, 1), (15<47, 4), (49<28, 4), (10>39, 3), (20<15, 2), (36>1, 4), (22>6, 2), (44<29, 3), (2<50, 4), (14>23, 2), (25<31, 2), (42>31, 4), (34<26, 3), (38<26, 2), (10<50, 4), (13>3, 3), (32>28, 2), (48>38, 1), (44>30, 1), (20>2, 4), (4>41, 3), (5<22, 2), (25>8, 3), (34>4, 2), (43<36, 2), (34>38, 1), (42<26, 2), (30>35, 1), (15<50, 3), (24<47, 4), (35>2, 3), (22<26, 2), (28<18, 3), (49<13, 4), (47>26, 4), (34<50, 4), (42<15, 2), (39>13, 2), (39>50, 1), (44<35, 2), (46<8, 2), (22>28, 1), (1>19, 3), (46<3, 3), (43>38, 2), (10>41, 2), (2<21, 3), (1>40, 3), (14<49, 4), (5>26, 3), (41<28, 2), (36>49, 1), (20>50, 2), (11>8, 3), (34<21, 1), (38>29, 4), (4<29, 3), (18<26, 1), (39<4, 1), (6>31, 1), (44>14, 4), (22<40, 2), (34<49, 1), (42>29, 2), (41<19, 2), (50>1, 3), (4>18, 1), (43>18, 2), (5<42, 4), (48>20, 4), (22>23, 4), (48<43, 3), (50>28, 3), (6>26, 2), (44<38, 2), (41>3, 4), (43<21, 4), (5<31, 3), (15<8, 1), (32>50, 3), (33>13, 4), (12<29, 1)])).

test(10, (50, 750, [<, >]), (45, 90, 4), ([11, 10, 22, 7, 2, 48, 8, 42, 26, 9, 29, 20, 35, 37, 4, 27, 14, 31, 23, 13, 43, 17, 38, 47, 32, 5, 24, 33, 39, 50, 34, 19, 41, 49, 1, 45, 6, 28, 40, 21, 36, 15, 18, 30, 46], [11>22, 11>48, 11>29, 11>20, 11>31, 11>13, 11>17, 11>47, 11>32, 11>39, 11>49, 11>28, 11>40, 11>30, 10>48, 10>29, 10>27, 10>14, 10>47, 10>32, 10>33, 10>39, 10>50, 10>19, 10>49, 10>28, 10>40, 10>30, 22>29, 22>37, 22>27, 22>38, 22>47, 22>32, 22>24, 22>41, 22>49, 22>36, 7>10, 7>26, 7>27, 7>31, 7>32, 7>24, 7>19, 7>41, 7>49, 7>45, 7>28, 7>40, 2>22, 2>48, 2>9, 2>35, 2>37, 2>27, 2>23, 2>47, 2>6, 2>21, 48>49, 8>42, 8>29, 8>47, 8>24, 8>39, 8>45, 8>46, 42>46, 26>31, 26>38, 26>47, 26>33, 26>49, 26>36, 9>42, 9>37, 9>39, 9>49, 9>45, 9>40, 9>21, 29>42, 29>35, 29>47, 29>32, 29>33, 29>39, 29>45, 29>40, 29>30, 29>46, 20>42, 20>26, 20>35, 20>37, 20>27, 20>23, 20>38, 20>33, 20>50, 20>40, 35>43, 35>38, 35>39, 35>49, 35>45, 35>40, 37>38, 37>46, 4>48, 4>8, 4>29, 4>37, 4>47, 4>50, 4>34, 4>19, 4>41, 4>45, 4>36, 4>15, 4>18, 27>42, 27>31, 27>39, 27>50, 27>34, 27>41, 27>30, 14>42, 14>20, 14>37, 14>43, 14>47, 14>32, 14>34, 31>48, 31>42, 31>37, 31>43, 31>33, 31>50, 31>45, 31>36, 23>42, 23>35, 23>50, 23>28, 13>22, 13>48, 13>26, 13>14, 13>38, 13>47, 13>32, 13>33, 13>45, 13>40, 13>21, 13>15, 13>30, 13>46, 43>50, 43>45, 43>46, 17>22, 17>20, 17>35, 17>41, 17>49, 17>21, 38>47, 38>41, 32>48, 32>43, 32>38, 32>39, 32>50, 5>7, 5>8, 5>42, 5>37, 5>13, 5>47, 5>19, 5>41, 5>45, 5>6, 5>28, 5>36, 5>15, 5>30, 5>46, 24>26, 24>29, 24>27, 24>43, 24>47, 24>45, 24>28, 24>30, 33>37, 33>43, 33>50, 33>41, 33>46, 39>48, 39>50, 34>38, 34>39, 34>45, 19>42, 19>26, 19>37, 19>27, 19>31, 19>38, 19>33, 19>34, 19>41, 19>21, 19>46, 41>48, 41>47, 1>35, 1>37, 1>31, 1>23, 1>17, 1>5, 1>33, 1>39, 1>50, 1>34, 1>28, 1>40, 1>15, 1>46, 45>50, 45>46, 6>11, 6>9, 6>39, 6>19, 6>41, 6>28, 6>40, 6>21, 6>36, 6>18, 28>42, 28>29, 28>43, 28>38, 28>47, 28>33, 28>50, 28>45, 28>40, 28>30, 40>42, 40>47, 40>41, 21>42, 21>38, 21>24, 21>33, 21>41, 21>49, 21>40, 21>46, 36>38, 36>49, 36>45, 36>46, 15>22, 15>20, 15>35, 15>27, 15>23, 15>38, 15>47, 15>39, 15>50, 15>19, 15>41, 15>28, 15>40, 15>18, 18>20, 18>31, 18>23, 18>43, 18>38, 18>24, 18>50, 18>34, 18>19, 18>41, 18>49, 30>42, 30>37, 30>43, 30>38, 46>47, 46>49], [37<13, 31>19, 42<47, 8<14, 1>45, 26<33, 22>6, 43<34, 20>28, 49<30, 42>21, 8>40, 34<6, 21>36, 5<1, 38<28, 32>15, 17<21, 19<28, 1>6, 17<5, 37>46, 17<45, 13>46, 11>45, 11>31, 33<45, 7<27, 39<18, 20>1, 24<21, 9>21, 42>5, 29>46, 20>40, 8<4, 47>28, 9<33, 23>13, 7<43, 33>40, 24>6, 26<39, 10<17, 10>32, 9>24, 11<35, 35>6, 20<18, 21<15, 5>24, 20>4, 8>5, 28<36, 26>41, 35<39, 41>46, 20>49, 43>45, 8<47, 13<32, 50>1, 11>4, 22>34, 38<45, 35>21, 34>30, 33<28, 4>45, 7>38, 42<23, 8<26, 30>46, 22<38, 20>43, 11<40, 29>13, 10>20, 9<32, 20<46, 9>1, 20<30, 11>33, 5<15, 31>6, 7>20, 24>46, 11<6, 19<21, 33<15], [ (11, 4), (10, 2), (22, 3), (7, 1), (2, 1), (48, 4), (8, 1), (42, 4), (26, 4), (9, 3), (29, 3), (20, 3), (35, 1), (37, 1), (4, 1), (27, 4), (14, 4), (31, 3), (23, 4), (13, 2), (43, 2), (17, 2), (38, 2), (47, 1), (32, 2), (5, 3), (24, 2), (33, 1), (39, 2), (50, 4), (34, 2), (19, 2), (41, 4), (49, 2), (1, 3), (45, 4), (6, 4), (28, 1), (40, 2), (21, 2), (36, 4), (15, 2), (18, 1), (30, 2), (46, 3)], [ (37<13, 4), (31>19, 4), (42<47, 4), (8<14, 4), (1>45, 2), (26<33, 4), (22>6, 1), (43<34, 2), (20>28, 3), (49<30, 2), (42>21, 2), (8>40, 4), (34<6, 2), (21>36, 1), (5<1, 2), (38<28, 4), (32>15, 3), (17<21, 1), (19<28, 1), (1>6, 3), (17<5, 2), (37>46, 3), (17<45, 4), (13>46, 3), (11>45, 3), (11>31, 3), (33<45, 4), (7<27, 2), (39<18, 2), (20>1, 4), (24<21, 2), (9>21, 3), (42>5, 1), (29>46, 2), (20>40, 2), (8<4, 3), (47>28, 2), (9<33, 1), (23>13, 1), (7<43, 4), (33>40, 2), (24>6, 2), (26<39, 3), (10<17, 2), (10>32, 2), (9>24, 2), (11<35, 3), (35>6, 2), (20<18, 2), (21<15, 3), (5>24, 4), (20>4, 2), (8>5, 3), (28<36, 2), (26>41, 4), (35<39, 2), (41>46, 2), (20>49, 2), (43>45, 2), (8<47, 4), (13<32, 3), (50>1, 1), (11>4, 1), (22>34, 3), (38<45, 2), (35>21, 2), (34>30, 2), (33<28, 1), (4>45, 1), (7>38, 3), (42<23, 3), (8<26, 1), (30>46, 2), (22<38, 1), (20>43, 4), (11<40, 2), (29>13, 1), (10>20, 2), (9<32, 1), (20<46, 4), (9>1, 4), (20<30, 2), (11>33, 3), (5<15, 1), (31>6, 4), (7>20, 3), (24>46, 2), (11<6, 3), (19<21, 4), (33<15, 3)])).

%% 50, 750, [<, >]
%% 50, 4, 4

test(1, (50, 750, [<, >]), (50, 4, 4), ([40, 21, 28, 20, 45, 29, 32, 17, 13, 31, 12, 39, 26, 11, 8, 36, 46, 2, 7, 14, 41, 18, 50, 16, 4, 42, 5, 30, 25, 22, 49, 1, 6, 48, 23, 9, 44, 35, 15, 3, 27, 38, 33, 24, 47, 37, 43, 34, 10, 19], [40>41, 40>50, 40>48, 40>43, 21>40, 21>28, 21>45, 21>29, 21>39, 21>26, 21>49, 21>48, 21>23, 21>44, 21>35, 21>47, 28>40, 28>29, 28>46, 28>38, 20>21, 20>31, 20>36, 20>42, 20>49, 20>44, 20>38, 20>37, 45>46, 45>49, 45>48, 45>47, 29>36, 29>41, 29>48, 29>44, 29>35, 29>47, 29>43, 29>34, 32>39, 32>46, 32>49, 32>44, 32>38, 32>47, 32>43, 32>34, 17>32, 17>39, 17>36, 17>50, 17>22, 17>49, 17>47, 17>37, 13>29, 13>41, 13>42, 13>25, 13>49, 13>44, 13>35, 13>24, 13>43, 13>19, 31>46, 31>38, 31>33, 31>37, 12>28, 12>20, 12>29, 12>26, 12>36, 12>14, 12>16, 12>42, 12>25, 12>22, 12>48, 12>35, 12>15, 12>24, 12>19, 39>46, 39>50, 39>49, 26>28, 26>45, 26>32, 26>39, 26>41, 26>27, 26>38, 26>33, 26>47, 26>37, 26>43, 26>34, 11>40, 11>21, 11>45, 11>32, 11>31, 11>14, 11>16, 11>42, 11>48, 11>47, 11>34, 8>20, 8>45, 8>31, 8>12, 8>46, 8>50, 8>16, 8>42, 8>48, 8>24, 8>47, 8>19, 36>46, 36>50, 36>42, 36>48, 36>44, 36>47, 36>43, 46>50, 46>49, 46>47, 2>20, 2>29, 2>17, 2>39, 2>41, 2>42, 2>22, 2>6, 2>23, 2>9, 2>44, 2>35, 2>15, 2>24, 2>47, 2>34, 7>20, 7>45, 7>32, 7>26, 7>14, 7>41, 7>50, 7>49, 7>35, 7>15, 7>27, 7>10, 14>40, 14>28, 14>20, 14>29, 14>50, 14>42, 14>25, 14>15, 14>38, 14>33, 14>37, 14>19, 41>46, 41>48, 41>47, 41>43, 18>21, 18>28, 18>32, 18>41, 18>50, 18>42, 18>30, 18>23, 18>27, 18>38, 18>47, 16>40, 16>29, 16>32, 16>39, 16>36, 16>41, 16>49, 16>48, 16>23, 16>35, 16>27, 4>39, 4>26, 4>14, 4>41, 4>18, 4>50, 4>25, 4>22, 4>6, 4>35, 4>38, 4>47, 4>37, 4>10, 4>19, 42>50, 5>21, 5>25, 5>49, 5>6, 5>48, 5>35, 5>27, 5>38, 5>24, 5>37, 5>43, 5>19, 30>45, 30>50, 30>42, 30>44, 30>33, 25>40, 25>28, 25>39, 25>46, 25>50, 25>49, 25>35, 25>43, 25>34, 22>40, 22>28, 22>26, 22>50, 22>23, 22>35, 1>40, 1>21, 1>20, 1>29, 1>32, 1>31, 1>14, 1>4, 1>22, 1>35, 1>15, 1>33, 1>37, 6>21, 6>45, 6>17, 6>11, 6>36, 6>7, 6>42, 6>49, 6>9, 6>44, 6>35, 6>38, 6>47, 23>45, 23>31, 23>26, 23>46, 23>48, 23>35, 23>38, 23>47, 23>37, 9>21, 9>20, 9>45, 9>32, 9>31, 9>12, 9>26, 9>36, 9>25, 9>48, 9>23, 9>44, 9>15, 9>47, 44>45, 44>49, 44>47, 35>40, 35>46, 35>41, 35>44, 15>28, 15>46, 15>41, 15>50, 15>25, 15>49, 15>38, 15>33, 15>24, 15>47, 15>43, 3>20, 3>17, 3>13, 3>39, 3>26, 3>11, 3>8, 3>46, 3>16, 3>42, 3>25, 3>49, 3>6, 3>35, 3>15, 3>33, 3>47, 3>10, 27>28, 27>45, 27>29, 27>32, 27>48, 38>46, 38>49, 33>46, 33>50, 33>42, 33>49, 33>43, 24>28, 24>45, 24>32, 24>46, 24>50, 24>42, 24>35, 24>47, 24>43, 47>49, 37>40, 37>45, 37>39, 37>50, 37>42, 37>49, 37>44, 37>38, 43>49, 43>44, 34>36, 10>21, 10>45, 10>29, 10>39, 10>50, 10>16, 10>22, 10>27, 10>24, 19>32, 19>41, 19>25, 19>22, 19>27, 19>24, 19>47, 19>37], [2>48, 1>48, 2<7, 3<47], [ (40, 2), (21, 3), (28, 2), (20, 4), (45, 1), (29, 1), (32, 3), (17, 2), (13, 1), (31, 1), (12, 2), (39, 1), (26, 4), (11, 1), (8, 4), (36, 4), (46, 1), (2, 4), (7, 3), (14, 2), (41, 4), (18, 3), (50, 2), (16, 3), (4, 3), (42, 2), (5, 4), (30, 2), (25, 2), (22, 2), (49, 1), (1, 2), (6, 3), (48, 2), (23, 3), (9, 4), (44, 1), (35, 4), (15, 2), (3, 3), (27, 2), (38, 4), (33, 2), (24, 3), (47, 3), (37, 3), (43, 1), (34, 4), (10, 4), (19, 3)], [ (2>48, 4), (1>48, 1), (2<7, 4), (3<47, 1)])).

test(2, (50, 750, [<, >]), (50, 4, 4), ([19, 49, 21, 18, 9, 38, 12, 11, 39, 31, 42, 16, 35, 22, 14, 2, 8, 40, 46, 3, 7, 48, 10, 27, 33, 6, 47, 1, 15, 44, 24, 32, 4, 37, 43, 30, 20, 28, 25, 26, 29, 34, 13, 5, 36, 41, 23, 17, 50, 45], [19>49, 19>39, 19>31, 19>42, 19>22, 19>48, 19>44, 19>24, 19>32, 19>36, 49>50, 21>49, 21>38, 21>42, 21>35, 21>40, 21>48, 21>47, 21>41, 18>21, 18>31, 18>42, 18>40, 18>27, 18>47, 18>32, 18>28, 18>36, 18>41, 18>23, 18>45, 9>21, 9>38, 9>12, 9>11, 9>39, 9>42, 9>16, 9>24, 9>32, 9>20, 9>28, 9>26, 9>34, 38>42, 38>40, 38>48, 38>43, 12>21, 12>18, 12>38, 12>31, 12>33, 12>24, 12>37, 12>43, 12>28, 12>41, 12>17, 12>50, 11>19, 11>18, 11>31, 11>42, 11>40, 11>27, 11>33, 11>15, 11>44, 11>37, 11>43, 11>28, 11>29, 11>36, 39>47, 39>43, 39>41, 39>50, 31>42, 31>35, 31>48, 31>33, 31>37, 31>43, 31>41, 31>45, 42>46, 42>44, 16>19, 16>49, 16>39, 16>42, 16>22, 16>40, 16>27, 16>24, 16>43, 16>41, 16>23, 16>17, 16>50, 35>49, 35>39, 35>42, 35>37, 35>43, 35>50, 22>31, 22>35, 22>48, 22>33, 22>24, 22>37, 22>25, 22>29, 22>50, 14>19, 14>21, 14>38, 14>39, 14>31, 14>42, 14>35, 14>40, 14>33, 14>43, 14>25, 14>34, 2>21, 2>9, 2>39, 2>16, 2>40, 2>3, 2>7, 2>47, 2>24, 2>32, 2>43, 2>20, 2>25, 2>5, 2>50, 8>49, 8>38, 8>12, 8>11, 8>40, 8>46, 8>27, 8>33, 8>47, 8>30, 8>28, 8>17, 8>50, 8>45, 40>46, 40>47, 40>43, 40>41, 46>49, 46>48, 3>21, 3>39, 3>8, 3>48, 3>6, 3>24, 3>30, 3>20, 3>28, 3>25, 3>26, 7>18, 7>39, 7>35, 7>22, 7>8, 7>40, 7>24, 7>32, 7>43, 7>20, 7>29, 7>36, 7>17, 48>49, 48>50, 10>19, 10>38, 10>12, 10>31, 10>35, 10>46, 10>33, 10>44, 10>32, 10>43, 10>25, 10>34, 10>13, 10>45, 27>49, 27>31, 27>35, 27>46, 27>33, 27>47, 27>32, 27>37, 27>30, 27>41, 27>50, 27>45, 33>40, 33>34, 33>36, 33>41, 6>21, 6>9, 6>38, 6>11, 6>31, 6>35, 6>14, 6>10, 6>27, 6>32, 6>37, 6>20, 6>34, 6>13, 6>50, 47>50, 1>21, 1>31, 1>22, 1>40, 1>10, 1>15, 1>32, 1>43, 1>30, 1>13, 1>23, 1>17, 1>45, 15>21, 15>38, 15>42, 15>35, 15>22, 15>48, 15>33, 15>24, 15>30, 15>28, 15>25, 15>26, 15>41, 44>49, 44>48, 44>50, 24>40, 24>48, 24>47, 24>32, 24>25, 24>29, 24>45, 32>38, 32>39, 4>9, 4>12, 4>11, 4>31, 4>42, 4>16, 4>14, 4>40, 4>27, 4>47, 4>44, 4>24, 4>32, 4>43, 4>20, 4>26, 4>29, 4>34, 4>36, 4>41, 4>45, 37>38, 37>40, 37>41, 37>50, 43>49, 43>46, 43>45, 30>39, 30>31, 30>42, 30>40, 30>46, 30>33, 30>47, 30>34, 30>36, 20>49, 20>38, 20>39, 20>46, 20>48, 20>27, 20>32, 20>43, 20>34, 28>49, 28>31, 28>35, 28>48, 28>47, 28>44, 28>32, 28>43, 28>30, 28>36, 28>41, 28>45, 25>31, 25>42, 25>40, 25>27, 25>33, 25>32, 25>28, 25>36, 26>49, 26>42, 26>46, 26>48, 26>47, 26>50, 29>31, 29>35, 29>40, 29>46, 29>47, 29>44, 29>34, 29>50, 34>49, 34>38, 34>39, 34>42, 34>48, 34>43, 34>50, 34>45, 13>19, 13>21, 13>39, 13>35, 13>22, 13>33, 13>47, 13>24, 13>32, 13>30, 13>36, 13>17, 13>50, 13>45, 5>18, 5>9, 5>38, 5>12, 5>14, 5>33, 5>47, 5>44, 5>20, 5>28, 5>25, 5>29, 5>41, 5>23, 5>45, 36>42, 36>44, 36>45, 41>49, 41>42, 41>46, 41>48, 23>31, 23>42, 23>48, 23>47, 23>43, 23>30, 23>25, 23>34, 23>50, 17>21, 17>18, 17>46, 17>33, 17>37, 17>30, 17>29, 17>34, 45>49, 45>47], [39>17, 30<36, 21>5, 10<45], [ (19, 4), (49, 1), (21, 2), (18, 3), (9, 3), (38, 2), (12, 4), (11, 3), (39, 1), (31, 4), (42, 1), (16, 4), (35, 2), (22, 1), (14, 1), (2, 1), (8, 3), (40, 2), (46, 4), (3, 2), (7, 4), (48, 1), (10, 3), (27, 2), (33, 1), (6, 1), (47, 4), (1, 1), (15, 3), (44, 3), (24, 4), (32, 2), (4, 3), (37, 1), (43, 4), (30, 3), (20, 4), (28, 2), (25, 2), (26, 1), (29, 3), (34, 3), (13, 4), (5, 2), (36, 4), (41, 4), (23, 2), (17, 4), (50, 1), (45, 2)], [ (39>17, 1), (30<36, 2), (21>5, 4), (10<45, 2)])).

test(3, (50, 750, [<, >]), (50, 4, 4), ([50, 3, 15, 9, 20, 39, 31, 6, 30, 24, 41, 10, 32, 44, 19, 40, 22, 33, 46, 29, 35, 45, 36, 48, 27, 28, 43, 47, 37, 16, 34, 26, 5, 38, 11, 2, 13, 23, 8, 17, 21, 49, 4, 12, 14, 25, 1, 42, 7, 18], [3>20, 3>31, 3>6, 3>41, 3>48, 3>43, 3>38, 3>11, 3>17, 3>49, 3>14, 15>31, 15>30, 15>41, 15>35, 15>45, 15>36, 15>48, 15>28, 15>37, 15>34, 15>26, 15>17, 15>21, 15>42, 9>20, 9>39, 9>44, 9>22, 9>46, 9>48, 9>26, 9>11, 9>49, 9>12, 9>25, 9>18, 20>32, 20>27, 20>28, 20>34, 20>21, 39>50, 39>48, 39>43, 39>49, 39>42, 31>39, 31>41, 31>45, 31>47, 6>50, 6>15, 6>20, 6>31, 6>41, 6>44, 6>33, 6>35, 6>45, 6>27, 6>28, 6>43, 6>47, 6>16, 6>34, 6>26, 6>23, 6>8, 6>17, 6>49, 6>14, 6>7, 30>31, 30>41, 30>44, 30>46, 30>45, 30>36, 30>43, 30>34, 30>49, 24>30, 24>32, 24>36, 24>43, 24>42, 10>50, 10>15, 10>30, 10>19, 10>46, 10>29, 10>36, 10>43, 10>37, 10>16, 10>34, 10>26, 10>23, 10>17, 10>49, 10>12, 32>40, 32>33, 32>45, 32>43, 32>34, 32>42, 19>31, 19>22, 19>35, 19>43, 19>26, 19>25, 40>49, 22>50, 22>39, 22>30, 22>41, 22>40, 22>36, 22>48, 22>27, 22>47, 22>34, 22>26, 33>39, 33>44, 33>35, 33>45, 33>43, 33>37, 33>49, 46>47, 46>49, 29>39, 29>31, 29>40, 29>36, 29>47, 29>34, 29>49, 35>50, 35>39, 35>41, 35>40, 35>46, 35>36, 35>48, 35>43, 35>42, 45>46, 45>49, 36>39, 36>46, 36>48, 36>49, 27>31, 27>32, 27>40, 27>36, 27>48, 27>37, 27>42, 28>30, 28>44, 28>35, 28>36, 28>48, 28>43, 28>34, 28>49, 43>50, 43>47, 47>50, 37>39, 37>48, 37>47, 37>49, 16>50, 16>39, 16>31, 16>24, 16>32, 16>40, 16>22, 16>27, 16>28, 16>43, 16>47, 16>37, 34>44, 34>40, 34>35, 34>36, 34>37, 34>38, 34>49, 26>30, 26>41, 26>32, 26>46, 26>28, 26>47, 26>37, 26>49, 5>50, 5>9, 5>30, 5>19, 5>29, 5>45, 5>36, 5>47, 5>34, 5>38, 5>13, 5>8, 5>7, 38>46, 38>43, 11>31, 11>30, 11>32, 11>48, 11>16, 11>34, 11>17, 11>12, 11>14, 11>18, 2>15, 2>31, 2>6, 2>10, 2>44, 2>22, 2>46, 2>45, 2>27, 2>28, 2>26, 2>23, 2>21, 2>14, 13>50, 13>44, 13>19, 13>29, 13>35, 13>36, 13>28, 13>47, 13>34, 13>26, 13>14, 23>39, 23>31, 23>37, 23>38, 8>50, 8>15, 8>39, 8>31, 8>35, 8>27, 8>43, 8>26, 8>11, 8>23, 8>21, 8>14, 17>50, 17>32, 17>19, 17>46, 17>28, 17>43, 17>34, 17>25, 17>18, 21>31, 21>41, 21>45, 21>36, 21>27, 21>28, 21>43, 21>34, 21>26, 21>25, 4>15, 4>9, 4>24, 4>22, 4>29, 4>35, 4>36, 4>27, 4>34, 4>21, 12>39, 12>31, 12>44, 12>19, 12>40, 12>46, 12>35, 12>26, 12>17, 14>30, 14>24, 14>32, 14>44, 14>33, 14>27, 14>17, 14>18, 25>46, 25>29, 25>48, 25>47, 25>37, 25>42, 1>20, 1>39, 1>24, 1>35, 1>45, 1>27, 1>16, 1>26, 1>38, 1>13, 1>21, 1>4, 1>12, 1>14, 1>18, 42>50, 42>46, 42>48, 42>47, 7>39, 7>31, 7>10, 7>19, 7>40, 7>46, 7>48, 7>43, 7>37, 7>16, 7>38, 7>17, 7>49, 18>20, 18>30, 18>24, 18>44, 18>22, 18>33, 18>35, 18>48, 18>43, 18>49, 18>42], [13>1, 43<16, 9<1, 30<42], [ (50, 1), (3, 3), (15, 4), (9, 2), (20, 2), (39, 3), (31, 2), (6, 4), (30, 3), (24, 2), (41, 2), (10, 3), (32, 4), (44, 3), (19, 2), (40, 2), (22, 4), (33, 3), (46, 2), (29, 4), (35, 3), (45, 2), (36, 4), (48, 4), (27, 3), (28, 3), (43, 4), (47, 4), (37, 1), (16, 4), (34, 3), (26, 4), (5, 1), (38, 2), (11, 2), (2, 4), (13, 2), (23, 1), (8, 2), (17, 2), (21, 1), (49, 1), (4, 4), (12, 2), (14, 1), (25, 2), (1, 2), (42, 2), (7, 3), (18, 4)], [ (13>1, 3), (43<16, 4), (9<1, 1), (30<42, 4)])).

test(4, (50, 750, [<, >]), (50, 4, 4), ([35, 48, 11, 18, 33, 5, 21, 1, 47, 15, 38, 42, 6, 39, 27, 23, 25, 32, 3, 49, 46, 34, 36, 29, 37, 9, 31, 13, 50, 43, 28, 12, 10, 45, 20, 16, 30, 26, 7, 4, 17, 14, 41, 40, 44, 22, 24, 8, 2, 19], [35>49, 35>43, 35>45, 35>40, 48>49, 11>35, 11>21, 11>38, 11>39, 11>27, 11>23, 11>25, 11>49, 11>46, 11>37, 11>45, 11>40, 11>24, 11>19, 18>48, 18>47, 18>39, 18>27, 18>32, 18>46, 18>50, 18>30, 18>44, 18>22, 18>19, 33>48, 33>38, 33>49, 33>36, 33>43, 33>45, 33>44, 5>18, 5>47, 5>38, 5>6, 5>39, 5>25, 5>32, 5>49, 5>34, 5>36, 5>9, 5>43, 5>12, 5>10, 5>45, 5>17, 5>40, 5>44, 21>38, 21>42, 21>49, 21>46, 21>50, 21>43, 21>28, 21>45, 21>40, 21>24, 1>35, 1>18, 1>5, 1>15, 1>6, 1>27, 1>49, 1>46, 1>34, 1>37, 1>13, 1>28, 1>20, 1>7, 1>4, 1>17, 1>41, 1>40, 1>24, 1>2, 1>19, 47>48, 47>49, 15>33, 15>47, 15>27, 15>23, 15>25, 15>49, 15>43, 15>45, 15>16, 15>30, 15>41, 15>40, 38>49, 42>47, 42>49, 42>43, 42>44, 6>48, 6>11, 6>33, 6>42, 6>27, 6>25, 6>32, 6>46, 6>36, 6>37, 6>9, 6>45, 6>24, 39>47, 39>42, 39>43, 39>45, 39>40, 27>35, 27>48, 27>38, 27>32, 27>46, 27>36, 27>29, 27>37, 27>28, 27>30, 23>48, 23>38, 23>27, 23>49, 23>36, 23>29, 23>30, 23>24, 25>33, 25>29, 25>37, 25>41, 32>48, 32>33, 32>47, 32>36, 3>5, 3>38, 3>39, 3>25, 3>49, 3>34, 3>37, 3>13, 3>50, 3>20, 3>26, 3>7, 3>24, 34>47, 34>42, 34>46, 34>37, 36>38, 36>46, 36>50, 29>39, 29>49, 29>34, 29>36, 29>43, 29>30, 29>44, 37>42, 37>43, 9>35, 9>21, 9>27, 9>49, 9>37, 9>13, 9>50, 9>45, 9>20, 9>26, 9>17, 9>24, 31>42, 31>39, 31>32, 31>49, 31>34, 31>36, 31>40, 13>35, 13>48, 13>21, 13>47, 13>37, 13>45, 13>16, 13>14, 13>22, 13>24, 13>19, 43>48, 28>35, 28>33, 28>32, 28>49, 28>31, 28>43, 28>41, 12>38, 12>32, 12>34, 12>30, 12>17, 12>14, 12>41, 12>40, 12>44, 12>19, 10>39, 10>32, 10>34, 10>50, 10>43, 10>20, 10>26, 10>41, 10>40, 10>19, 45>47, 20>33, 20>27, 20>23, 20>46, 20>31, 20>30, 16>35, 16>42, 16>23, 16>49, 16>34, 16>29, 16>26, 16>41, 16>44, 16>19, 30>38, 30>49, 30>37, 30>31, 30>43, 30>44, 26>35, 26>48, 26>38, 26>49, 26>34, 26>36, 26>29, 26>50, 26>41, 7>11, 7>15, 7>42, 7>27, 7>32, 7>36, 7>9, 7>20, 7>44, 4>35, 4>48, 4>21, 4>39, 4>27, 4>32, 4>49, 4>34, 4>9, 4>50, 4>12, 4>20, 4>16, 4>41, 4>40, 4>44, 4>19, 17>35, 17>18, 17>33, 17>38, 17>27, 17>23, 17>29, 17>43, 17>45, 17>20, 17>41, 17>44, 14>21, 14>15, 14>38, 14>25, 14>29, 14>45, 14>30, 14>26, 14>17, 14>22, 41>48, 41>46, 41>45, 41>44, 40>47, 44>48, 44>49, 44>46, 22>35, 22>38, 22>42, 22>39, 22>27, 22>23, 22>25, 22>32, 22>49, 22>34, 22>43, 22>45, 22>26, 22>41, 22>44, 24>47, 24>39, 24>46, 24>34, 24>29, 24>37, 24>43, 24>45, 24>40, 24>44, 8>47, 8>27, 8>23, 8>32, 8>34, 8>36, 8>29, 8>37, 8>45, 8>30, 8>22, 8>19, 2>35, 2>47, 2>6, 2>39, 2>27, 2>49, 2>34, 2>36, 2>9, 2>31, 2>13, 2>20, 2>24, 2>8, 2>19, 19>21, 19>47, 19>39, 19>34, 19>28, 19>45, 19>24], [35>18, 18>41, 42<46, 37<4], [ (35, 4), (48, 2), (11, 4), (18, 1), (33, 3), (5, 3), (21, 3), (1, 3), (47, 1), (15, 3), (38, 1), (42, 1), (6, 2), (39, 1), (27, 1), (23, 1), (25, 4), (32, 3), (3, 4), (49, 2), (46, 4), (34, 2), (36, 4), (29, 1), (37, 4), (9, 2), (31, 2), (13, 2), (50, 1), (43, 1), (28, 2), (12, 1), (10, 3), (45, 4), (20, 1), (16, 3), (30, 1), (26, 2), (7, 3), (4, 4), (17, 1), (14, 2), (41, 2), (40, 1), (44, 4), (22, 3), (24, 2), (8, 3), (2, 1), (19, 1)], [ (35>18, 3), (18>41, 1), (42<46, 2), (37<4, 2)])).

test(5, (50, 750, [<, >]), (50, 4, 4), ([32, 13, 37, 49, 40, 35, 44, 34, 9, 26, 11, 36, 15, 5, 20, 19, 30, 33, 45, 4, 1, 6, 31, 3, 27, 38, 39, 43, 2, 22, 12, 18, 21, 25, 17, 24, 28, 23, 48, 47, 29, 16, 8, 50, 42, 10, 14, 7, 41, 46], [32>37, 32>35, 32>33, 32>45, 32>39, 32>50, 32>42, 32>41, 13>32, 13>20, 13>30, 13>45, 13>39, 13>43, 13>25, 13>23, 13>42, 13>41, 37>49, 37>44, 37>45, 37>48, 37>47, 37>46, 40>43, 40>50, 40>46, 35>37, 35>40, 35>36, 35>38, 35>43, 35>47, 35>42, 35>46, 44>49, 44>46, 34>37, 34>40, 34>38, 34>39, 34>48, 9>32, 9>26, 9>31, 9>12, 9>25, 9>17, 9>42, 9>10, 9>41, 26>35, 26>44, 26>34, 26>33, 26>31, 26>43, 26>48, 26>29, 11>40, 11>34, 11>15, 11>20, 11>30, 11>33, 11>45, 11>22, 11>12, 11>24, 11>28, 11>41, 36>37, 36>38, 36>48, 15>32, 15>44, 15>34, 15>36, 15>30, 15>39, 15>22, 15>18, 15>17, 15>28, 15>23, 15>48, 15>47, 15>42, 15>41, 5>49, 5>40, 5>35, 5>44, 5>34, 5>26, 5>11, 5>30, 5>22, 5>12, 5>21, 5>17, 5>28, 5>47, 5>10, 20>49, 20>26, 20>30, 20>38, 20>43, 20>22, 20>21, 20>46, 19>49, 19>40, 19>35, 19>30, 19>45, 19>39, 19>25, 19>29, 30>44, 30>33, 30>45, 30>31, 30>50, 33>40, 33>34, 33>38, 33>39, 33>43, 33>47, 33>41, 33>46, 45>47, 4>32, 4>13, 4>37, 4>49, 4>34, 4>26, 4>11, 4>45, 4>12, 4>25, 4>50, 4>7, 1>32, 1>13, 1>11, 1>30, 1>33, 1>45, 1>6, 1>23, 1>8, 1>41, 6>26, 6>25, 6>24, 6>8, 6>7, 31>32, 31>37, 31>44, 31>34, 31>36, 31>41, 3>35, 3>36, 3>19, 3>33, 3>27, 3>38, 3>43, 3>22, 3>12, 3>28, 3>23, 3>8, 3>46, 27>32, 27>49, 27>44, 27>34, 27>33, 27>45, 27>50, 27>41, 38>49, 38>39, 38>42, 39>40, 39>43, 43>49, 2>40, 2>26, 2>5, 2>33, 2>45, 2>4, 2>27, 2>25, 2>24, 2>29, 2>14, 2>7, 22>32, 22>34, 22>45, 22>23, 22>50, 12>49, 12>34, 12>26, 12>20, 12>33, 12>45, 12>38, 12>43, 12>21, 12>17, 12>24, 12>47, 12>16, 12>50, 18>37, 18>34, 18>20, 18>38, 18>22, 18>42, 21>37, 21>44, 21>34, 21>26, 21>36, 21>33, 21>45, 21>38, 21>39, 21>43, 21>24, 21>28, 21>23, 21>29, 21>42, 21>41, 21>46, 25>37, 25>30, 25>28, 25>47, 25>46, 17>32, 17>37, 17>49, 17>39, 17>25, 17>50, 17>42, 17>46, 24>40, 24>34, 24>39, 24>43, 24>28, 24>48, 24>42, 28>35, 28>34, 28>39, 28>48, 28>47, 28>29, 28>41, 23>37, 23>35, 23>44, 23>34, 23>30, 23>28, 23>50, 23>41, 47>49, 47>50, 29>32, 29>49, 29>40, 29>44, 29>36, 29>30, 29>31, 29>43, 29>48, 29>47, 29>50, 29>46, 16>37, 16>35, 16>19, 16>27, 16>43, 16>18, 16>28, 16>48, 16>47, 8>35, 8>44, 8>34, 8>26, 8>11, 8>36, 8>33, 8>38, 8>43, 8>12, 8>17, 8>23, 8>50, 8>41, 42>43, 42>48, 10>11, 10>15, 10>20, 10>19, 10>33, 10>45, 10>22, 10>25, 10>28, 10>48, 10>47, 10>16, 10>41, 14>38, 14>18, 14>25, 14>23, 14>48, 14>29, 7>37, 7>40, 7>11, 7>36, 7>20, 7>45, 7>27, 7>43, 7>22, 7>12, 7>18, 7>17, 7>24, 7>23, 7>10, 7>14, 46>50], [38<42, 17>48, 33<2, 15<8], [ (32, 3), (13, 4), (37, 4), (49, 2), (40, 1), (35, 1), (44, 2), (34, 3), (9, 4), (26, 1), (11, 2), (36, 4), (15, 4), (5, 3), (20, 3), (19, 2), (30, 3), (33, 4), (45, 4), (4, 3), (1, 3), (6, 3), (31, 4), (3, 4), (27, 3), (38, 4), (39, 2), (43, 1), (2, 2), (22, 4), (12, 3), (18, 2), (21, 1), (25, 3), (17, 2), (24, 4), (28, 3), (23, 3), (48, 3), (47, 1), (29, 2), (16, 1), (8, 2), (50, 3), (42, 4), (10, 4), (14, 3), (7, 4), (41, 1), (46, 3)], [ (38<42, 3), (17>48, 2), (33<2, 4), (15<8, 3)])).

test(6, (50, 750, [<, >]), (50, 4, 4), ([11, 48, 40, 7, 2, 38, 20, 24, 4, 47, 33, 32, 1, 45, 41, 50, 27, 46, 12, 10, 3, 30, 42, 43, 22, 17, 8, 6, 9, 31, 25, 29, 13, 35, 39, 5, 37, 36, 28, 18, 16, 23, 26, 44, 21, 15, 19, 49, 14, 34], [11>48, 11>40, 11>24, 11>47, 11>32, 11>45, 11>41, 11>27, 11>46, 11>12, 11>30, 11>43, 11>17, 11>31, 11>39, 11>18, 11>26, 11>21, 11>15, 11>49, 11>14, 48>49, 40>48, 40>41, 40>42, 40>43, 7>38, 7>20, 7>47, 7>33, 7>43, 7>22, 7>9, 7>13, 7>35, 7>39, 7>37, 7>18, 7>16, 7>26, 7>44, 7>14, 2>7, 2>24, 2>47, 2>33, 2>32, 2>30, 2>42, 2>17, 2>29, 2>13, 2>18, 38>48, 38>45, 38>41, 38>50, 38>39, 20>40, 20>32, 20>45, 20>22, 20>37, 24>48, 24>38, 24>47, 24>33, 24>41, 24>50, 24>30, 24>25, 24>35, 24>39, 24>44, 4>38, 4>47, 4>33, 4>32, 4>41, 4>27, 4>42, 4>22, 4>6, 4>9, 4>31, 4>13, 4>36, 4>18, 4>23, 4>15, 33>48, 33>40, 33>43, 33>39, 33>44, 32>38, 32>42, 32>43, 32>39, 32>36, 32>44, 1>48, 1>38, 1>24, 1>47, 1>32, 1>27, 1>3, 1>30, 1>31, 1>25, 1>26, 1>15, 45>47, 45>46, 45>49, 41>42, 41>43, 41>49, 27>47, 27>33, 27>32, 27>50, 27>43, 27>31, 27>39, 27>37, 27>49, 27>34, 46>48, 46>47, 12>48, 12>40, 12>38, 12>45, 12>13, 12>39, 12>36, 12>28, 12>18, 12>16, 12>23, 12>26, 12>44, 12>15, 10>24, 10>33, 10>32, 10>27, 10>46, 10>42, 10>31, 10>25, 10>29, 10>23, 10>26, 10>44, 10>21, 10>49, 3>11, 3>38, 3>24, 3>45, 3>50, 3>27, 3>8, 3>6, 3>39, 3>5, 3>18, 3>23, 3>15, 30>48, 30>47, 30>39, 30>34, 42>45, 42>46, 42>43, 42>44, 42>49, 43>48, 43>50, 43>46, 43>44, 22>46, 22>29, 22>37, 17>48, 17>40, 17>20, 17>47, 17>32, 17>50, 17>35, 17>36, 17>28, 17>26, 17>21, 8>48, 8>40, 8>47, 8>33, 8>45, 8>50, 8>10, 8>17, 8>13, 8>35, 8>18, 8>23, 8>26, 8>19, 8>14, 8>34, 6>48, 6>40, 6>32, 6>46, 6>10, 6>30, 6>8, 6>9, 6>25, 6>29, 6>23, 6>49, 9>48, 9>50, 9>27, 9>25, 9>35, 9>28, 9>16, 9>26, 9>15, 31>38, 31>47, 31>33, 25>47, 25>30, 25>42, 25>29, 25>35, 25>36, 25>49, 29>30, 29>34, 13>33, 13>32, 13>45, 13>27, 13>46, 13>25, 13>39, 13>36, 13>28, 13>44, 13>21, 13>15, 13>34, 35>48, 35>47, 35>45, 35>46, 35>37, 39>48, 39>40, 39>50, 39>46, 39>42, 39>44, 5>24, 5>32, 5>27, 5>12, 5>29, 5>23, 5>21, 5>14, 37>48, 37>46, 37>42, 37>49, 36>48, 36>40, 36>38, 36>43, 36>37, 28>48, 28>40, 28>50, 28>46, 28>29, 28>35, 28>36, 28>44, 28>49, 18>24, 18>41, 18>42, 18>25, 18>35, 18>36, 18>49, 16>47, 16>46, 16>43, 16>39, 16>37, 16>36, 16>19, 16>34, 23>24, 23>27, 23>46, 23>35, 23>39, 23>28, 23>26, 23>44, 26>38, 26>33, 26>32, 26>41, 26>50, 26>27, 26>43, 26>39, 26>44, 44>45, 21>40, 21>38, 21>33, 21>43, 21>39, 21>49, 15>38, 15>20, 15>32, 15>50, 15>30, 15>22, 15>25, 15>18, 15>16, 15>23, 15>44, 19>48, 19>20, 19>47, 19>30, 19>42, 19>43, 19>25, 19>29, 19>39, 19>36, 19>28, 19>23, 14>48, 14>40, 14>24, 14>47, 14>30, 14>25, 14>39, 14>16, 34>40, 34>38, 34>47, 34>37, 34>36, 34>44], [8<39, 33>5, 38>41, 32<22], [ (11, 2), (48, 3), (40, 4), (7, 2), (2, 1), (38, 1), (20, 4), (24, 2), (4, 2), (47, 3), (33, 2), (32, 1), (1, 3), (45, 2), (41, 2), (50, 2), (27, 4), (46, 2), (12, 3), (10, 4), (3, 4), (30, 3), (42, 3), (43, 3), (22, 3), (17, 2), (8, 4), (6, 2), (9, 4), (31, 1), (25, 3), (29, 4), (13, 2), (35, 1), (39, 3), (5, 2), (37, 1), (36, 1), (28, 4), (18, 2), (16, 4), (23, 1), (26, 1), (44, 2), (21, 1), (15, 4), (19, 3), (49, 4), (14, 3), (34, 4)], [ (8<39, 1), (33>5, 3), (38>41, 1), (32<22, 3)])).

test(7, (50, 750, [<, >]), (50, 4, 4), ([16, 1, 33, 42, 12, 37, 46, 25, 24, 44, 39, 48, 30, 29, 8, 10, 17, 14, 15, 34, 22, 50, 27, 26, 43, 49, 20, 19, 36, 41, 2, 13, 38, 5, 23, 7, 6, 4, 47, 9, 11, 3, 18, 45, 32, 35, 31, 28, 40, 21], [16>42, 16>46, 16>24, 16>44, 16>39, 16>30, 16>34, 16>22, 16>27, 16>36, 16>38, 16>23, 16>18, 16>45, 16>32, 16>21, 1>12, 1>10, 1>15, 1>22, 1>5, 1>9, 1>21, 33>37, 33>41, 33>45, 33>35, 42>43, 12>25, 12>48, 12>14, 12>22, 12>50, 12>43, 12>20, 12>41, 12>23, 12>47, 12>32, 12>35, 12>21, 37>44, 37>39, 37>48, 37>50, 37>43, 25>33, 25>44, 25>48, 25>30, 25>34, 25>27, 25>26, 25>45, 25>32, 25>28, 25>40, 24>46, 24>25, 24>44, 24>48, 24>27, 24>49, 24>36, 24>41, 24>28, 44>46, 44>45, 39>42, 39>48, 39>50, 39>43, 39>41, 39>45, 30>42, 30>50, 30>43, 30>36, 30>38, 30>35, 29>37, 29>30, 29>41, 8>16, 8>46, 8>25, 8>15, 8>50, 8>27, 8>19, 8>23, 8>9, 8>18, 8>45, 8>35, 8>31, 8>21, 10>42, 10>46, 10>25, 10>29, 10>15, 10>27, 10>38, 10>35, 10>31, 10>40, 17>33, 17>39, 17>43, 17>20, 17>36, 17>38, 17>18, 17>32, 14>48, 14>30, 14>38, 14>23, 14>18, 14>35, 14>31, 14>28, 15>16, 15>37, 15>25, 15>24, 15>50, 15>32, 15>31, 15>28, 34>42, 34>39, 34>48, 34>43, 34>49, 34>45, 22>33, 22>42, 22>44, 22>27, 22>43, 22>45, 22>40, 27>37, 27>44, 27>39, 27>48, 27>29, 27>34, 27>50, 27>43, 27>38, 27>35, 27>40, 26>33, 26>42, 26>46, 26>49, 26>41, 26>35, 20>37, 20>46, 20>44, 20>30, 20>29, 20>50, 20>43, 20>23, 20>35, 20>21, 19>33, 19>42, 19>37, 19>25, 19>34, 19>41, 19>23, 19>45, 19>28, 36>37, 36>46, 36>44, 36>48, 36>49, 36>41, 36>38, 36>45, 36>40, 41>44, 41>47, 41>45, 2>16, 2>33, 2>17, 2>15, 2>34, 2>26, 2>19, 2>38, 2>7, 2>4, 2>47, 2>9, 2>11, 2>3, 2>18, 2>32, 2>40, 13>33, 13>42, 13>44, 13>48, 13>14, 13>22, 13>20, 13>38, 13>40, 38>42, 38>44, 38>48, 38>43, 38>41, 5>46, 5>25, 5>24, 5>30, 5>14, 5>19, 5>6, 5>11, 5>45, 5>35, 5>40, 23>33, 23>25, 23>48, 23>27, 23>41, 23>47, 23>31, 7>16, 7>44, 7>39, 7>48, 7>30, 7>29, 7>10, 7>17, 7>14, 7>50, 7>43, 7>49, 7>9, 7>32, 6>33, 6>42, 6>12, 6>44, 6>39, 6>48, 6>29, 6>50, 6>36, 6>41, 6>7, 6>45, 6>32, 6>35, 6>40, 4>16, 4>24, 4>44, 4>39, 4>30, 4>10, 4>17, 4>15, 4>20, 4>36, 4>47, 4>45, 4>32, 4>40, 47>50, 47>49, 9>16, 9>33, 9>46, 9>24, 9>44, 9>14, 9>34, 9>22, 9>27, 9>26, 9>43, 9>49, 9>36, 9>13, 9>38, 9>23, 9>47, 9>11, 9>32, 11>16, 11>37, 11>24, 11>44, 11>30, 11>14, 11>26, 11>19, 11>36, 11>23, 11>31, 11>28, 3>16, 3>33, 3>24, 3>44, 3>48, 3>30, 3>8, 3>17, 3>27, 3>26, 3>20, 3>5, 3>11, 3>18, 3>28, 3>40, 3>21, 18>37, 18>46, 18>30, 18>27, 18>43, 18>49, 18>36, 18>45, 18>31, 18>28, 45>46, 45>48, 32>42, 32>43, 32>38, 35>42, 35>44, 35>48, 35>36, 35>47, 31>37, 31>44, 31>34, 31>36, 28>46, 28>44, 28>39, 28>50, 28>36, 28>38, 28>47, 28>40, 40>46, 40>44, 40>50, 21>33, 21>37, 21>25, 21>44, 21>48, 21>34, 21>27, 21>26, 21>47, 21>31, 21>40], [43<28, 29<7, 43<4, 43<45], [ (16, 3), (1, 4), (33, 4), (42, 2), (12, 1), (37, 2), (46, 3), (25, 3), (24, 3), (44, 4), (39, 1), (48, 1), (30, 1), (29, 4), (8, 1), (10, 2), (17, 4), (14, 1), (15, 3), (34, 4), (22, 3), (50, 3), (27, 3), (26, 4), (43, 4), (49, 3), (20, 3), (19, 4), (36, 4), (41, 1), (2, 1), (13, 4), (38, 2), (5, 2), (23, 2), (7, 4), (6, 2), (4, 4), (47, 3), (9, 1), (11, 2), (3, 2), (18, 1), (45, 2), (32, 1), (35, 1), (31, 4), (28, 1), (40, 3), (21, 1)], [ (43<28, 3), (29<7, 3), (43<4, 2), (43<45, 3)])).

test(8, (50, 750, [<, >]), (50, 4, 4), ([3, 43, 8, 1, 23, 7, 17, 13, 16, 24, 45, 49, 38, 21, 14, 34, 18, 4, 35, 36, 31, 22, 9, 2, 47, 44, 40, 29, 41, 37, 12, 28, 6, 10, 30, 11, 15, 25, 32, 50, 39, 48, 42, 20, 26, 27, 5, 33, 46, 19], [3>8, 3>7, 3>16, 3>38, 3>21, 3>14, 3>35, 3>47, 3>40, 3>12, 3>28, 3>10, 3>32, 3>48, 3>20, 3>27, 3>5, 43>45, 43>47, 43>46, 8>13, 8>38, 8>35, 8>36, 8>47, 8>29, 8>37, 8>26, 8>27, 8>33, 8>19, 1>23, 1>21, 1>18, 1>4, 1>36, 1>31, 1>9, 1>44, 1>29, 1>10, 1>11, 1>48, 1>42, 1>20, 1>27, 1>5, 1>19, 23>43, 23>24, 23>45, 23>34, 23>36, 23>50, 23>39, 7>43, 7>8, 7>23, 7>13, 7>16, 7>24, 7>45, 7>34, 7>35, 7>36, 7>40, 7>29, 7>41, 7>15, 7>50, 7>39, 7>20, 7>26, 17>24, 17>41, 17>25, 17>20, 17>26, 17>46, 13>43, 13>23, 13>24, 13>45, 13>49, 13>36, 13>22, 13>47, 13>39, 13>48, 13>26, 13>33, 13>46, 16>49, 16>34, 16>36, 16>31, 16>47, 16>40, 16>29, 16>41, 16>37, 16>50, 16>26, 16>27, 16>46, 24>43, 24>45, 24>38, 24>36, 24>40, 24>28, 24>25, 24>50, 45>50, 45>48, 38>45, 38>50, 38>42, 38>46, 21>23, 21>49, 21>31, 21>37, 21>50, 21>27, 14>45, 14>38, 14>21, 14>47, 14>29, 14>25, 14>50, 34>50, 34>42, 34>46, 18>23, 18>45, 18>34, 18>28, 18>32, 18>39, 18>48, 18>26, 4>43, 4>23, 4>13, 4>16, 4>38, 4>18, 4>9, 4>40, 4>29, 4>11, 4>25, 4>20, 35>49, 35>37, 36>43, 36>45, 36>49, 31>49, 31>36, 31>47, 31>41, 31>37, 31>39, 31>48, 22>45, 22>47, 22>40, 22>26, 22>27, 9>23, 9>13, 9>24, 9>21, 9>36, 9>41, 9>15, 9>42, 9>46, 2>3, 2>7, 2>16, 2>38, 2>34, 2>18, 2>35, 2>31, 2>9, 2>44, 2>28, 2>10, 2>11, 2>32, 2>39, 2>48, 2>20, 2>33, 44>45, 44>47, 40>43, 40>50, 40>48, 40>46, 29>38, 29>35, 29>36, 29>37, 41>49, 41>50, 37>43, 37>38, 37>40, 37>41, 37>50, 37>48, 12>31, 12>22, 12>44, 12>40, 12>39, 12>27, 12>46, 28>38, 28>34, 28>35, 28>36, 28>30, 28>32, 28>46, 6>43, 6>38, 6>35, 6>44, 6>29, 6>12, 6>10, 6>25, 6>50, 6>48, 6>20, 6>27, 6>46, 10>43, 10>24, 10>45, 10>21, 10>14, 10>34, 10>18, 10>36, 10>29, 10>30, 10>15, 10>25, 10>48, 10>20, 10>26, 10>33, 10>19, 30>38, 30>34, 30>31, 30>40, 11>13, 11>16, 11>24, 11>45, 11>49, 11>36, 11>22, 11>44, 11>41, 11>37, 11>28, 11>42, 11>20, 11>46, 11>19, 15>43, 15>49, 15>36, 15>47, 15>40, 15>29, 15>28, 15>25, 15>50, 15>26, 15>33, 25>43, 25>38, 25>44, 25>40, 25>41, 25>48, 25>46, 32>45, 32>49, 32>35, 32>50, 39>43, 39>40, 42>47, 42>44, 42>50, 20>23, 20>24, 20>49, 20>38, 20>31, 20>22, 20>47, 20>25, 20>48, 20>42, 26>45, 26>49, 26>34, 26>29, 26>41, 26>37, 26>28, 26>50, 26>48, 26>46, 27>45, 27>49, 27>35, 27>31, 27>47, 27>41, 27>28, 27>32, 27>50, 27>39, 27>48, 27>42, 5>7, 5>38, 5>21, 5>34, 5>18, 5>28, 5>6, 5>11, 5>15, 33>49, 33>38, 33>34, 33>35, 33>44, 33>40, 33>37, 33>39, 33>46, 46>48, 19>38, 19>36, 19>31, 19>47, 19>40, 19>41, 19>37, 19>28, 19>25, 19>32, 19>39, 19>20, 19>26, 19>33], [35<41, 12<50, 13<31, 21>48], [ (3, 1), (43, 3), (8, 1), (1, 1), (23, 1), (7, 2), (17, 4), (13, 3), (16, 3), (24, 4), (45, 3), (49, 2), (38, 4), (21, 2), (14, 1), (34, 2), (18, 1), (4, 4), (35, 3), (36, 1), (31, 2), (22, 4), (9, 4), (2, 2), (47, 2), (44, 4), (40, 3), (29, 2), (41, 3), (37, 1), (12, 2), (28, 1), (6, 2), (10, 3), (30, 4), (11, 2), (15, 1), (25, 2), (32, 2), (50, 2), (39, 3), (48, 3), (42, 1), (20, 2), (26, 3), (27, 3), (5, 4), (33, 1), (46, 2), (19, 4)], [ (35<41, 2), (12<50, 3), (13<31, 1), (21>48, 2)])).

test(9, (50, 750, [<, >]), (50, 4, 4), ([26, 20, 22, 37, 7, 9, 29, 10, 8, 27, 48, 38, 12, 35, 47, 39, 25, 13, 50, 49, 23, 30, 4, 32, 45, 6, 17, 3, 19, 46, 14, 16, 34, 31, 42, 24, 15, 2, 44, 21, 40, 33, 5, 28, 43, 41, 11, 18, 36, 1], [26>48, 26>38, 26>31, 26>42, 26>33, 26>28, 26>41, 20>26, 20>27, 20>48, 20>38, 20>47, 20>50, 20>23, 20>30, 20>31, 20>24, 20>21, 22>26, 22>37, 22>29, 22>27, 22>35, 22>45, 22>31, 22>42, 22>44, 37>41, 7>48, 7>35, 7>47, 7>39, 7>49, 7>32, 7>14, 7>15, 7>21, 7>28, 7>41, 7>11, 9>22, 9>29, 9>10, 9>27, 9>12, 9>39, 9>13, 9>30, 9>32, 9>45, 9>17, 9>19, 9>34, 9>24, 9>33, 9>28, 9>43, 29>37, 29>39, 29>30, 29>45, 29>46, 29>42, 29>41, 29>36, 10>37, 10>29, 10>38, 10>49, 10>19, 10>46, 10>42, 10>15, 10>41, 8>26, 8>22, 8>37, 8>48, 8>12, 8>47, 8>39, 8>30, 8>19, 8>46, 8>31, 8>24, 8>21, 8>40, 8>41, 8>11, 27>37, 27>35, 27>47, 27>45, 27>46, 27>44, 27>40, 27>36, 38>47, 38>50, 38>49, 38>44, 12>48, 12>39, 12>25, 12>13, 12>50, 12>14, 12>16, 12>31, 12>15, 35>37, 47>48, 47>50, 39>50, 39>49, 39>42, 25>48, 25>38, 25>50, 25>45, 25>46, 25>31, 25>44, 25>43, 13>48, 13>25, 13>23, 13>19, 13>24, 13>33, 13>41, 13>18, 23>29, 23>35, 23>47, 23>50, 23>45, 23>46, 23>42, 23>28, 23>41, 23>36, 30>37, 30>38, 30>46, 30>31, 30>42, 30>33, 4>26, 4>7, 4>8, 4>48, 4>38, 4>35, 4>25, 4>49, 4>30, 4>6, 4>19, 4>46, 4>24, 4>15, 4>21, 4>33, 4>28, 4>43, 4>18, 32>37, 32>47, 32>50, 32>45, 32>34, 32>42, 32>40, 32>43, 32>36, 45>48, 45>50, 45>49, 6>22, 6>10, 6>27, 6>38, 6>35, 6>50, 6>30, 6>45, 6>46, 6>14, 6>34, 6>42, 6>43, 6>36, 17>26, 17>20, 17>27, 17>38, 17>47, 17>39, 17>46, 17>40, 17>36, 3>37, 3>7, 3>8, 3>27, 3>48, 3>47, 3>45, 3>6, 3>19, 3>46, 3>43, 19>20, 19>37, 19>39, 19>25, 19>23, 19>30, 19>46, 19>34, 19>42, 19>24, 19>40, 46>48, 46>50, 46>49, 14>26, 14>48, 14>35, 14>30, 14>32, 14>16, 14>24, 14>40, 14>28, 14>41, 14>36, 16>26, 16>27, 16>48, 16>25, 16>23, 16>17, 16>19, 16>24, 16>33, 16>43, 16>18, 34>48, 34>47, 34>39, 34>50, 34>40, 34>43, 31>47, 31>50, 31>43, 31>41, 42>49, 42>45, 24>37, 24>29, 24>47, 24>50, 24>31, 24>44, 24>28, 24>41, 15>37, 15>48, 15>25, 15>30, 15>24, 15>21, 15>41, 2>7, 2>29, 2>35, 2>13, 2>49, 2>30, 2>3, 2>46, 2>16, 2>5, 2>43, 2>11, 2>36, 44>50, 44>49, 44>45, 21>26, 21>47, 21>39, 21>25, 21>49, 21>34, 21>42, 40>47, 33>35, 33>39, 33>50, 33>45, 33>46, 33>42, 33>40, 33>41, 5>39, 5>49, 5>23, 5>30, 5>32, 5>46, 5>16, 5>21, 5>43, 5>18, 28>38, 28>47, 28>39, 28>50, 28>30, 28>42, 28>41, 43>50, 41>50, 41>45, 41>43, 11>26, 11>20, 11>38, 11>12, 11>47, 11>25, 11>23, 11>32, 11>14, 11>24, 11>21, 11>28, 11>41, 11>36, 18>26, 18>20, 18>22, 18>29, 18>27, 18>38, 18>23, 18>19, 18>31, 18>41, 36>37, 36>38, 36>47, 36>39, 36>45, 36>43, 1>26, 1>37, 1>29, 1>48, 1>38, 1>35, 1>49, 1>4, 1>32, 1>17, 1>3, 1>34, 1>24, 1>44, 1>33, 1>36], [16<41, 29>5, 35>16, 6>2], [ (26, 1), (20, 4), (22, 4), (37, 4), (7, 4), (9, 4), (29, 4), (10, 4), (8, 2), (27, 3), (48, 2), (38, 1), (12, 2), (35, 4), (47, 2), (39, 3), (25, 4), (13, 4), (50, 4), (49, 4), (23, 1), (30, 2), (4, 1), (32, 1), (45, 3), (6, 1), (17, 2), (3, 4), (19, 1), (46, 2), (14, 4), (16, 1), (34, 1), (31, 2), (42, 3), (24, 4), (15, 3), (2, 3), (44, 2), (21, 4), (40, 2), (33, 3), (5, 4), (28, 1), (43, 2), (41, 3), (11, 2), (18, 4), (36, 2), (1, 3)], [ (16<41, 1), (29>5, 3), (35>16, 2), (6>2, 1)])).

test(10, (50, 750, [<, >]), (50, 4, 4), ([31, 14, 25, 4, 3, 1, 7, 42, 30, 29, 15, 21, 27, 8, 35, 48, 23, 50, 39, 13, 41, 26, 24, 44, 11, 6, 46, 43, 38, 22, 17, 37, 19, 5, 40, 45, 49, 47, 10, 12, 32, 36, 16, 20, 28, 2, 18, 33, 34, 9], [31>48, 31>39, 31>41, 31>44, 31>38, 31>36, 31>33, 14>25, 14>42, 14>39, 14>41, 14>26, 14>40, 14>49, 14>20, 25>31, 25>30, 25>29, 25>48, 25>41, 25>43, 25>37, 25>34, 4>30, 4>29, 4>35, 4>39, 4>44, 4>6, 4>46, 4>17, 4>37, 4>49, 4>36, 4>16, 4>34, 3>25, 3>27, 3>13, 3>41, 3>26, 3>6, 3>22, 3>5, 3>47, 3>12, 3>28, 1>14, 1>25, 1>30, 1>21, 1>48, 1>23, 1>50, 1>39, 1>26, 1>44, 1>38, 1>37, 1>19, 1>49, 1>12, 1>16, 1>20, 1>18, 1>34, 7>30, 7>48, 7>50, 7>46, 7>38, 7>37, 7>49, 7>10, 42>43, 30>42, 30>48, 30>41, 30>44, 30>45, 30>33, 30>34, 29>31, 29>42, 29>35, 29>39, 29>46, 29>45, 29>47, 15>25, 15>21, 15>35, 15>23, 15>39, 15>24, 15>43, 15>47, 15>32, 15>36, 15>20, 21>25, 21>30, 21>23, 21>41, 21>26, 21>38, 21>45, 21>32, 21>28, 21>34, 27>30, 27>39, 27>41, 27>44, 27>32, 27>36, 27>33, 8>14, 8>35, 8>48, 8>50, 8>44, 8>43, 8>22, 8>19, 8>40, 8>12, 8>36, 8>28, 8>33, 8>9, 35>50, 35>41, 35>46, 35>43, 35>38, 35>45, 35>49, 35>47, 48>50, 48>49, 23>25, 23>42, 23>30, 23>27, 23>44, 23>38, 23>45, 23>49, 23>28, 23>34, 39>50, 39>46, 39>43, 39>47, 13>31, 13>30, 13>29, 13>15, 13>24, 13>43, 13>22, 13>47, 41>46, 41>45, 26>42, 26>45, 26>47, 26>36, 26>34, 24>25, 24>35, 24>41, 24>26, 24>46, 24>43, 24>37, 24>33, 44>45, 11>14, 11>30, 11>13, 11>22, 11>17, 11>37, 11>19, 11>47, 11>36, 11>28, 6>31, 6>15, 6>35, 6>23, 6>39, 6>43, 6>22, 6>40, 6>49, 6>32, 6>36, 6>20, 6>33, 6>34, 6>9, 46>49, 38>42, 38>41, 38>44, 22>31, 22>25, 22>42, 22>30, 22>35, 22>48, 22>23, 22>50, 22>39, 22>44, 22>43, 22>37, 22>40, 22>45, 22>49, 22>36, 17>30, 17>29, 17>35, 17>48, 17>50, 17>24, 17>43, 17>38, 17>47, 17>36, 17>28, 17>34, 37>42, 37>50, 37>43, 37>38, 19>25, 19>29, 19>27, 19>48, 19>41, 19>38, 19>49, 19>36, 19>28, 5>14, 5>42, 5>15, 5>27, 5>35, 5>13, 5>41, 5>44, 5>11, 5>19, 5>20, 5>18, 5>9, 40>50, 40>43, 40>45, 45>49, 47>50, 10>15, 10>27, 10>41, 10>44, 10>38, 10>37, 10>47, 10>32, 12>31, 12>14, 12>30, 12>15, 12>27, 12>35, 12>48, 12>23, 12>39, 12>13, 12>24, 12>46, 12>37, 12>19, 12>40, 12>49, 12>47, 12>36, 32>42, 32>35, 32>39, 32>41, 32>46, 32>37, 32>40, 32>45, 32>47, 32>36, 32>34, 36>48, 36>46, 16>25, 16>27, 16>23, 16>50, 16>39, 16>41, 16>24, 16>46, 16>38, 16>32, 16>36, 16>20, 20>25, 20>29, 20>21, 20>23, 20>41, 20>44, 20>36, 20>28, 28>31, 28>35, 28>41, 28>43, 28>37, 2>25, 2>3, 2>27, 2>8, 2>26, 2>46, 2>43, 2>22, 2>17, 2>47, 2>12, 2>36, 2>28, 2>9, 18>25, 18>30, 18>29, 18>27, 18>50, 18>24, 18>44, 18>36, 18>20, 18>33, 18>34, 33>42, 33>35, 33>39, 33>43, 33>47, 34>35, 34>39, 34>41, 34>44, 34>43, 34>37, 9>14, 9>21, 9>27, 9>13, 9>24, 9>44, 9>38, 9>17, 9>19, 9>49, 9>12, 9>32, 9>20, 9>34], [43>18, 31>32, 46>33, 11>17], [ (31, 1), (14, 1), (25, 1), (4, 2), (3, 2), (1, 2), (7, 2), (42, 4), (30, 4), (29, 4), (15, 4), (21, 3), (27, 1), (8, 1), (35, 4), (48, 3), (23, 1), (50, 4), (39, 1), (13, 2), (41, 2), (26, 4), (24, 4), (44, 1), (11, 2), (6, 1), (46, 3), (43, 1), (38, 4), (22, 1), (17, 3), (37, 2), (19, 1), (5, 3), (40, 1), (45, 3), (49, 2), (47, 1), (10, 2), (12, 4), (32, 4), (36, 4), (16, 3), (20, 1), (28, 1), (2, 4), (18, 4), (33, 1), (34, 2), (9, 1)], [ (43>18, 2), (31>32, 1), (46>33, 2), (11>17, 4)])).

%% 50, 250, [<, >]
%% 5, 0, 1

test(1, (50, 250, [<, >]), (5, 0, 1), ([33, 28, 41, 5, 11], [5>33, 5>28], [], [ (33, 1), (28, 1), (41, 1), (5, 1), (11, 1)], [])).

test(2, (50, 250, [<, >]), (5, 0, 1), ([33, 32, 31, 18, 46], [18>32], [], [ (33, 1), (32, 1), (31, 1), (18, 1), (46, 1)], [])).

test(3, (50, 250, [<, >]), (5, 0, 1), ([43, 32, 12, 30, 7], [12>30], [], [ (43, 1), (32, 1), (12, 1), (30, 1), (7, 1)], [])).

test(4, (50, 250, [<, >]), (5, 0, 1), ([13, 42, 47, 10, 30], [10>13], [], [ (13, 1), (42, 1), (47, 1), (10, 1), (30, 1)], [])).

test(5, (50, 250, [<, >]), (5, 0, 1), ([27, 3, 49, 33, 24], [27>33, 3>24], [], [ (27, 1), (3, 1), (49, 1), (33, 1), (24, 1)], [])).

test(6, (50, 250, [<, >]), (5, 0, 1), ([30, 9, 31, 37, 11], [30>37], [], [ (30, 1), (9, 1), (31, 1), (37, 1), (11, 1)], [])).

test(7, (50, 250, [<, >]), (5, 0, 1), ([19, 32, 16, 8, 30], [16>19], [], [ (19, 1), (32, 1), (16, 1), (8, 1), (30, 1)], [])).

test(8, (50, 250, [<, >]), (5, 0, 1), ([5, 30, 44, 9, 33], [], [], [ (5, 1), (30, 1), (44, 1), (9, 1), (33, 1)], [])).

test(9, (50, 250, [<, >]), (5, 0, 1), ([23, 39, 2, 47, 4], [2>4], [], [ (23, 1), (39, 1), (2, 1), (47, 1), (4, 1)], [])).

test(10, (50, 250, [<, >]), (5, 0, 1), ([43, 9, 7, 35, 50], [], [], [ (43, 1), (9, 1), (7, 1), (35, 1), (50, 1)], [])).

%% 50, 250, [<, >]
%% 10, 0, 1

test(1, (50, 250, [<, >]), (10, 0, 1), ([32, 42, 35, 20, 8, 40, 17, 21, 49, 47], [42>49, 17>32, 17>40, 21>32, 21>47], [], [ (32, 1), (42, 1), (35, 1), (20, 1), (8, 1), (40, 1), (17, 1), (21, 1), (49, 1), (47, 1)], [])).

test(2, (50, 250, [<, >]), (10, 0, 1), ([4, 14, 20, 16, 36, 45, 10, 48, 13, 11], [4>11, 14>36, 14>45, 20>36, 20>48, 10>45, 11>20, 11>16, 11>36], [], [ (4, 1), (14, 1), (20, 1), (16, 1), (36, 1), (45, 1), (10, 1), (48, 1), (13, 1), (11, 1)], [])).

test(3, (50, 250, [<, >]), (10, 0, 1), ([35, 17, 37, 40, 29, 6, 28, 2, 18, 31], [35>40, 29>31, 6>37], [], [ (35, 1), (17, 1), (37, 1), (40, 1), (29, 1), (6, 1), (28, 1), (2, 1), (18, 1), (31, 1)], [])).

test(4, (50, 250, [<, >]), (10, 0, 1), ([34, 41, 13, 20, 14, 39, 9, 38, 33, 22], [20>38, 22>34], [], [ (34, 1), (41, 1), (13, 1), (20, 1), (14, 1), (39, 1), (9, 1), (38, 1), (33, 1), (22, 1)], [])).

test(5, (50, 250, [<, >]), (10, 0, 1), ([19, 23, 34, 3, 12, 25, 42, 22, 6, 27], [12>19, 12>27, 22>25, 6>22, 6>27], [], [ (19, 1), (23, 1), (34, 1), (3, 1), (12, 1), (25, 1), (42, 1), (22, 1), (6, 1), (27, 1)], [])).

test(6, (50, 250, [<, >]), (10, 0, 1), ([25, 8, 12, 41, 31, 42, 33, 2, 45, 46], [25>46, 8>46, 12>41, 31>45, 33>41], [], [ (25, 1), (8, 1), (12, 1), (41, 1), (31, 1), (42, 1), (33, 1), (2, 1), (45, 1), (46, 1)], [])).

test(7, (50, 250, [<, >]), (10, 0, 1), ([26, 32, 16, 38, 40, 28, 33, 31, 3, 13], [26>38, 16>26, 16>28, 38>40, 31>32, 3>32, 3>16, 3>33, 3>31], [], [ (26, 1), (32, 1), (16, 1), (38, 1), (40, 1), (28, 1), (33, 1), (31, 1), (3, 1), (13, 1)], [])).

test(8, (50, 250, [<, >]), (10, 0, 1), ([32, 49, 35, 38, 39, 40, 1, 47, 21, 12], [38>39, 38>40, 40>47, 21>39, 12>49, 12>21], [], [ (32, 1), (49, 1), (35, 1), (38, 1), (39, 1), (40, 1), (1, 1), (47, 1), (21, 1), (12, 1)], [])).

test(9, (50, 250, [<, >]), (10, 0, 1), ([2, 49, 24, 15, 37, 31, 46, 20, 41, 4], [2>24, 24>37, 24>46, 15>37, 15>20], [], [ (2, 1), (49, 1), (24, 1), (15, 1), (37, 1), (31, 1), (46, 1), (20, 1), (41, 1), (4, 1)], [])).

test(10, (50, 250, [<, >]), (10, 0, 1), ([15, 8, 45, 3, 16, 12, 25, 38, 31, 50], [8>25, 3>8, 3>38, 3>31, 3>50, 12>16], [], [ (15, 1), (8, 1), (45, 1), (3, 1), (16, 1), (12, 1), (25, 1), (38, 1), (31, 1), (50, 1)], [])).

%% 50, 250, [<, >]
%% 15, 0, 1

test(1, (50, 250, [<, >]), (15, 0, 1), ([24, 29, 5, 17, 38, 14, 50, 47, 45, 1, 30, 36, 46, 39, 12], [24>38, 24>47, 5>29, 5>12, 17>29, 1>50, 1>47, 30>45, 12>50, 12>36], [], [ (24, 1), (29, 1), (5, 1), (17, 1), (38, 1), (14, 1), (50, 1), (47, 1), (45, 1), (1, 1), (30, 1), (36, 1), (46, 1), (39, 1), (12, 1)], [])).

test(2, (50, 250, [<, >]), (15, 0, 1), ([22, 45, 37, 6, 42, 10, 5, 26, 2, 17, 46, 38, 49, 40, 20], [6>49, 42>49, 5>22, 5>49, 5>20, 2>49, 17>37, 38>40], [], [ (22, 1), (45, 1), (37, 1), (6, 1), (42, 1), (10, 1), (5, 1), (26, 1), (2, 1), (17, 1), (46, 1), (38, 1), (49, 1), (40, 1), (20, 1)], [])).

test(3, (50, 250, [<, >]), (15, 0, 1), ([1, 42, 46, 18, 13, 36, 24, 19, 6, 14, 44, 48, 50, 34, 26], [1>50, 1>26, 46>50, 13>42, 24>44, 6>18, 14>44, 26>48], [], [ (1, 1), (42, 1), (46, 1), (18, 1), (13, 1), (36, 1), (24, 1), (19, 1), (6, 1), (14, 1), (44, 1), (48, 1), (50, 1), (34, 1), (26, 1)], [])).

test(4, (50, 250, [<, >]), (15, 0, 1), ([17, 35, 3, 8, 40, 10, 30, 44, 37, 4, 46, 16, 12, 23, 47], [17>30, 17>46, 35>40, 3>10, 8>44, 8>37, 10>23, 30>35, 37>47, 4>40, 4>37, 4>23, 16>23, 23>40, 23>44, 23>47], [], [ (17, 1), (35, 1), (3, 1), (8, 1), (40, 1), (10, 1), (30, 1), (44, 1), (37, 1), (4, 1), (46, 1), (16, 1), (12, 1), (23, 1), (47, 1)], [])).

test(5, (50, 250, [<, >]), (15, 0, 1), ([13, 12, 17, 46, 9, 2, 48, 27, 31, 24, 47, 37, 10, 26, 1], [13>31, 12>47, 2>13, 37>48, 10>24, 26>31, 1>27, 1>10], [], [ (13, 1), (12, 1), (17, 1), (46, 1), (9, 1), (2, 1), (48, 1), (27, 1), (31, 1), (24, 1), (47, 1), (37, 1), (10, 1), (26, 1), (1, 1)], [])).

test(6, (50, 250, [<, >]), (15, 0, 1), ([24, 40, 43, 41, 44, 36, 19, 38, 31, 11, 2, 1, 18, 7, 4], [19>40, 11>36, 11>19, 18>40, 18>43, 7>40, 7>38], [], [ (24, 1), (40, 1), (43, 1), (41, 1), (44, 1), (36, 1), (19, 1), (38, 1), (31, 1), (11, 1), (2, 1), (1, 1), (18, 1), (7, 1), (4, 1)], [])).

test(7, (50, 250, [<, >]), (15, 0, 1), ([1, 46, 23, 48, 37, 8, 30, 47, 2, 33, 14, 18, 26, 36, 35], [1>23, 1>30, 1>26, 8>14, 30>35, 2>23, 2>48, 2>8, 14>48, 14>37, 18>36, 26>46, 35>46], [], [ (1, 1), (46, 1), (23, 1), (48, 1), (37, 1), (8, 1), (30, 1), (47, 1), (2, 1), (33, 1), (14, 1), (18, 1), (26, 1), (36, 1), (35, 1)], [])).

test(8, (50, 250, [<, >]), (15, 0, 1), ([24, 50, 44, 14, 19, 11, 34, 7, 47, 22, 20, 40, 25, 3, 42], [24>47, 14>20, 14>25, 11>24, 11>20, 11>40, 11>42, 34>47, 7>50, 7>47, 20>24, 3>50], [], [ (24, 1), (50, 1), (44, 1), (14, 1), (19, 1), (11, 1), (34, 1), (7, 1), (47, 1), (22, 1), (20, 1), (40, 1), (25, 1), (3, 1), (42, 1)], [])).

test(9, (50, 250, [<, >]), (15, 0, 1), ([48, 30, 44, 36, 33, 19, 1, 21, 4, 31, 2, 11, 29, 37, 5], [1>21, 21>31, 4>29, 31>48, 2>19, 2>4, 2>31, 11>44, 11>21, 29>30, 5>30, 5>31, 5>11], [], [ (48, 1), (30, 1), (44, 1), (36, 1), (33, 1), (19, 1), (1, 1), (21, 1), (4, 1), (31, 1), (2, 1), (11, 1), (29, 1), (37, 1), (5, 1)], [])).

test(10, (50, 250, [<, >]), (15, 0, 1), ([35, 18, 21, 41, 6, 9, 30, 40, 44, 3, 34, 49, 37, 7, 8], [18>30, 18>34, 21>49, 21>37, 41>44, 6>7, 9>49, 3>30, 3>37, 3>7, 3>8, 7>18, 7>9, 8>41, 8>34], [], [ (35, 1), (18, 1), (21, 1), (41, 1), (6, 1), (9, 1), (30, 1), (40, 1), (44, 1), (3, 1), (34, 1), (49, 1), (37, 1), (7, 1), (8, 1)], [])).

%% 50, 250, [<, >]
%% 20, 0, 1

test(1, (50, 250, [<, >]), (20, 0, 1), ([35, 15, 20, 44, 27, 4, 22, 1, 3, 5, 13, 2, 19, 50, 46, 24, 21, 14, 10, 33], [15>46, 20>22, 20>24, 4>44, 4>33, 22>27, 1>20, 1>50, 3>35, 3>46, 3>24, 5>20, 5>27, 5>21, 13>20, 2>24, 2>21, 2>10, 21>44, 14>21, 14>33, 10>24], [], [ (35, 1), (15, 1), (20, 1), (44, 1), (27, 1), (4, 1), (22, 1), (1, 1), (3, 1), (5, 1), (13, 1), (2, 1), (19, 1), (50, 1), (46, 1), (24, 1), (21, 1), (14, 1), (10, 1), (33, 1)], [])).

test(2, (50, 250, [<, >]), (20, 0, 1), ([32, 33, 7, 8, 18, 22, 24, 26, 17, 15, 31, 49, 27, 41, 9, 5, 29, 30, 47, 4], [32>47, 33>49, 7>30, 8>32, 26>41, 26>29, 15>32, 15>24, 15>26, 27>32, 9>15, 9>30, 5>8, 5>29, 4>41], [], [ (32, 1), (33, 1), (7, 1), (8, 1), (18, 1), (22, 1), (24, 1), (26, 1), (17, 1), (15, 1), (31, 1), (49, 1), (27, 1), (41, 1), (9, 1), (5, 1), (29, 1), (30, 1), (47, 1), (4, 1)], [])).

test(3, (50, 250, [<, >]), (20, 0, 1), ([28, 20, 4, 49, 2, 25, 32, 35, 13, 29, 23, 31, 10, 43, 14, 30, 19, 15, 48, 18], [20>32, 4>49, 2>20, 2>32, 2>13, 2>29, 2>23, 2>31, 2>19, 25>43, 32>48, 13>14, 13>19, 31>48, 10>28, 10>30, 14>25, 14>23, 14>31, 14>48, 19>35, 19>30, 15>28, 15>48, 18>43, 18>19], [], [ (28, 1), (20, 1), (4, 1), (49, 1), (2, 1), (25, 1), (32, 1), (35, 1), (13, 1), (29, 1), (23, 1), (31, 1), (10, 1), (43, 1), (14, 1), (30, 1), (19, 1), (15, 1), (48, 1), (18, 1)], [])).

test(4, (50, 250, [<, >]), (20, 0, 1), ([11, 37, 36, 28, 1, 39, 33, 30, 22, 4, 6, 25, 31, 42, 23, 14, 20, 45, 27, 43], [11>36, 36>45, 1>37, 1>36, 39>45, 33>36, 22>45, 6>22, 25>33, 25>42, 25>43, 31>42, 23>37, 14>28, 14>31, 27>42, 27>43], [], [ (11, 1), (37, 1), (36, 1), (28, 1), (1, 1), (39, 1), (33, 1), (30, 1), (22, 1), (4, 1), (6, 1), (25, 1), (31, 1), (42, 1), (23, 1), (14, 1), (20, 1), (45, 1), (27, 1), (43, 1)], [])).

test(5, (50, 250, [<, >]), (20, 0, 1), ([26, 46, 23, 5, 7, 1, 38, 49, 2, 27, 16, 30, 12, 43, 17, 11, 24, 33, 37, 31], [26>30, 23>46, 23>24, 5>7, 7>23, 7>38, 7>12, 7>11, 1>26, 1>30, 1>11, 1>33, 2>16, 2>12, 2>31, 27>49, 16>31, 30>43, 30>37, 12>26, 12>49, 12>30, 12>17, 11>38, 11>30, 11>33, 11>37, 24>27, 33>37], [], [ (26, 1), (46, 1), (23, 1), (5, 1), (7, 1), (1, 1), (38, 1), (49, 1), (2, 1), (27, 1), (16, 1), (30, 1), (12, 1), (43, 1), (17, 1), (11, 1), (24, 1), (33, 1), (37, 1), (31, 1)], [])).

test(6, (50, 250, [<, >]), (20, 0, 1), ([50, 9, 47, 14, 32, 41, 26, 7, 36, 8, 24, 25, 29, 44, 11, 10, 42, 19, 40, 35], [9>29, 9>10, 9>42, 47>50, 14>50, 14>35, 32>47, 41>50, 41>47, 41>42, 7>47, 7>10, 36>47, 36>41, 8>42, 24>25, 24>44, 29>40, 44>47, 11>24, 11>44, 11>42, 10>32, 19>35, 40>50, 40>41], [], [ (50, 1), (9, 1), (47, 1), (14, 1), (32, 1), (41, 1), (26, 1), (7, 1), (36, 1), (8, 1), (24, 1), (25, 1), (29, 1), (44, 1), (11, 1), (10, 1), (42, 1), (19, 1), (40, 1), (35, 1)], [])).

test(7, (50, 250, [<, >]), (20, 0, 1), ([15, 35, 47, 33, 26, 4, 50, 49, 38, 32, 40, 5, 28, 31, 2, 7, 18, 36, 43, 39], [15>36, 33>36, 26>32, 26>43, 26>39, 4>47, 40>47, 5>26, 5>32, 28>49, 28>31, 2>32, 7>33, 7>38, 7>36, 18>33, 18>31, 36>38, 39>49, 39>40], [], [ (15, 1), (35, 1), (47, 1), (33, 1), (26, 1), (4, 1), (50, 1), (49, 1), (38, 1), (32, 1), (40, 1), (5, 1), (28, 1), (31, 1), (2, 1), (7, 1), (18, 1), (36, 1), (43, 1), (39, 1)], [])).

test(8, (50, 250, [<, >]), (20, 0, 1), ([11, 28, 31, 48, 8, 40, 47, 6, 14, 4, 35, 37, 15, 1, 24, 45, 29, 9, 3, 50], [28>31, 28>35, 31>37, 8>48, 8>40, 8>37, 6>31, 15>48, 15>45, 1>11, 1>14, 1>37, 24>48, 24>45, 45>50, 29>35, 9>40, 9>47, 9>14], [], [ (11, 1), (28, 1), (31, 1), (48, 1), (8, 1), (40, 1), (47, 1), (6, 1), (14, 1), (4, 1), (35, 1), (37, 1), (15, 1), (1, 1), (24, 1), (45, 1), (29, 1), (9, 1), (3, 1), (50, 1)], [])).

test(9, (50, 250, [<, >]), (20, 0, 1), ([3, 9, 8, 43, 28, 38, 47, 42, 19, 33, 24, 35, 40, 5, 14, 13, 31, 12, 2, 29], [3>35, 3>5, 3>31, 9>35, 8>19, 28>40, 19>33, 24>33, 24>40, 40>42, 5>9, 5>28, 5>47, 14>29, 13>38, 31>33, 31>35, 2>8, 2>33, 29>35, 29>31], [], [ (3, 1), (9, 1), (8, 1), (43, 1), (28, 1), (38, 1), (47, 1), (42, 1), (19, 1), (33, 1), (24, 1), (35, 1), (40, 1), (5, 1), (14, 1), (13, 1), (31, 1), (12, 1), (2, 1), (29, 1)], [])).

test(10, (50, 250, [<, >]), (20, 0, 1), ([16, 26, 22, 18, 38, 15, 11, 47, 8, 50, 1, 24, 3, 13, 25, 43, 41, 2, 27, 48], [16>26, 26>50, 15>16, 15>27, 11>13, 11>48, 8>50, 8>48, 1>16, 3>26, 3>22, 3>25, 13>43], [], [ (16, 1), (26, 1), (22, 1), (18, 1), (38, 1), (15, 1), (11, 1), (47, 1), (8, 1), (50, 1), (1, 1), (24, 1), (3, 1), (13, 1), (25, 1), (43, 1), (41, 1), (2, 1), (27, 1), (48, 1)], [])).

%% 50, 250, [<, >]
%% 25, 0, 1

test(1, (50, 250, [<, >]), (25, 0, 1), ([39, 6, 4, 36, 34, 20, 49, 37, 42, 27, 5, 22, 12, 8, 43, 16, 38, 28, 17, 47, 1, 13, 46, 9, 26], [39>43, 39>47, 6>9, 4>34, 4>8, 4>38, 36>49, 36>43, 36>47, 34>43, 34>47, 20>28, 37>39, 37>42, 37>43, 42>47, 27>39, 5>36, 5>49, 5>43, 5>46, 12>47, 28>43, 1>34, 1>38, 1>47, 1>9, 13>22, 13>16, 13>17, 13>46, 9>39, 9>49, 9>16], [], [ (39, 1), (6, 1), (4, 1), (36, 1), (34, 1), (20, 1), (49, 1), (37, 1), (42, 1), (27, 1), (5, 1), (22, 1), (12, 1), (8, 1), (43, 1), (16, 1), (38, 1), (28, 1), (17, 1), (47, 1), (1, 1), (13, 1), (46, 1), (9, 1), (26, 1)], [])).

test(2, (50, 250, [<, >]), (25, 0, 1), ([3, 15, 17, 13, 23, 27, 18, 16, 42, 43, 48, 31, 6, 50, 25, 36, 37, 45, 41, 39, 20, 10, 4, 44, 14], [3>15, 3>17, 3>31, 3>20, 15>31, 15>25, 17>42, 17>25, 23>27, 23>42, 23>43, 23>25, 27>50, 27>36, 27>39, 18>23, 16>17, 16>20, 43>45, 6>37, 25>42, 25>37, 25>41, 36>37, 37>48, 45>48, 41>50, 39>50, 39>41, 20>45, 20>44, 10>16, 4>50, 4>41, 4>44, 44>48, 14>18, 14>48, 14>41, 14>39], [], [ (3, 1), (15, 1), (17, 1), (13, 1), (23, 1), (27, 1), (18, 1), (16, 1), (42, 1), (43, 1), (48, 1), (31, 1), (6, 1), (50, 1), (25, 1), (36, 1), (37, 1), (45, 1), (41, 1), (39, 1), (20, 1), (10, 1), (4, 1), (44, 1), (14, 1)], [])).

test(3, (50, 250, [<, >]), (25, 0, 1), ([28, 31, 37, 20, 34, 43, 21, 40, 50, 8, 45, 44, 13, 16, 39, 29, 15, 6, 25, 36, 17, 49, 3, 32, 30], [28>37, 28>50, 28>29, 31>44, 37>39, 43>45, 21>37, 21>39, 8>15, 13>40, 13>16, 16>37, 29>34, 29>43, 29>50, 15>28, 15>43, 15>36, 6>44, 6>36, 25>31, 25>34, 25>30, 17>37, 3>21, 3>25, 3>17, 3>49, 32>37, 30>31, 30>45, 30>49], [], [ (28, 1), (31, 1), (37, 1), (20, 1), (34, 1), (43, 1), (21, 1), (40, 1), (50, 1), (8, 1), (45, 1), (44, 1), (13, 1), (16, 1), (39, 1), (29, 1), (15, 1), (6, 1), (25, 1), (36, 1), (17, 1), (49, 1), (3, 1), (32, 1), (30, 1)], [])).

test(4, (50, 250, [<, >]), (25, 0, 1), ([14, 25, 37, 26, 46, 2, 19, 23, 34, 40, 17, 45, 15, 6, 43, 16, 4, 11, 24, 12, 18, 13, 22, 32, 48], [25>32, 25>48, 2>45, 19>25, 19>40, 40>45, 17>34, 17>45, 17>32, 6>40, 6>11, 16>25, 4>14, 4>11, 11>16, 12>19, 12>23, 12>15, 12>32, 18>26, 13>18, 22>23], [], [ (14, 1), (25, 1), (37, 1), (26, 1), (46, 1), (2, 1), (19, 1), (23, 1), (34, 1), (40, 1), (17, 1), (45, 1), (15, 1), (6, 1), (43, 1), (16, 1), (4, 1), (11, 1), (24, 1), (12, 1), (18, 1), (13, 1), (22, 1), (32, 1), (48, 1)], [])).

test(5, (50, 250, [<, >]), (25, 0, 1), ([34, 20, 4, 45, 24, 22, 3, 6, 43, 48, 36, 5, 40, 44, 8, 47, 31, 37, 49, 39, 50, 15, 9, 42, 10], [34>36, 34>44, 20>48, 45>50, 24>48, 3>45, 3>37, 6>40, 6>8, 6>31, 6>49, 6>42, 43>44, 43>49, 40>48, 8>34, 8>15, 8>10, 31>37, 37>45, 37>50, 49>50, 39>44, 39>42, 15>36, 15>47, 9>22, 9>37, 10>20, 10>24], [], [ (34, 1), (20, 1), (4, 1), (45, 1), (24, 1), (22, 1), (3, 1), (6, 1), (43, 1), (48, 1), (36, 1), (5, 1), (40, 1), (44, 1), (8, 1), (47, 1), (31, 1), (37, 1), (49, 1), (39, 1), (50, 1), (15, 1), (9, 1), (42, 1), (10, 1)], [])).

test(6, (50, 250, [<, >]), (25, 0, 1), ([31, 34, 49, 22, 44, 17, 10, 13, 14, 48, 26, 24, 28, 12, 46, 37, 23, 33, 19, 16, 41, 30, 11, 45, 20], [22>48, 22>24, 22>33, 44>48, 10>49, 10>14, 10>16, 13>45, 14>24, 14>33, 14>20, 26>49, 12>23, 12>33, 12>30, 37>48, 33>44, 19>44, 19>26, 19>28, 16>22, 41>45, 30>41, 11>12], [], [ (31, 1), (34, 1), (49, 1), (22, 1), (44, 1), (17, 1), (10, 1), (13, 1), (14, 1), (48, 1), (26, 1), (24, 1), (28, 1), (12, 1), (46, 1), (37, 1), (23, 1), (33, 1), (19, 1), (16, 1), (41, 1), (30, 1), (11, 1), (45, 1), (20, 1)], [])).

test(7, (50, 250, [<, >]), (25, 0, 1), ([17, 6, 18, 33, 32, 28, 3, 40, 16, 11, 37, 46, 14, 48, 29, 10, 35, 25, 41, 30, 9, 5, 20, 21, 8], [6>28, 6>11, 18>35, 28>37, 28>29, 28>41, 3>17, 3>28, 3>30, 16>32, 11>40, 11>46, 11>29, 11>21, 14>16, 14>21, 29>40, 10>28, 10>35, 10>20, 25>37, 25>48, 30>37, 9>18, 9>48, 9>29, 9>41, 5>46, 5>14, 5>10, 5>21, 20>28, 20>40, 20>46, 8>21], [], [ (17, 1), (6, 1), (18, 1), (33, 1), (32, 1), (28, 1), (3, 1), (40, 1), (16, 1), (11, 1), (37, 1), (46, 1), (14, 1), (48, 1), (29, 1), (10, 1), (35, 1), (25, 1), (41, 1), (30, 1), (9, 1), (5, 1), (20, 1), (21, 1), (8, 1)], [])).

test(8, (50, 250, [<, >]), (25, 0, 1), ([22, 35, 45, 36, 27, 4, 1, 41, 32, 17, 24, 43, 47, 33, 39, 26, 8, 18, 9, 15, 7, 11, 30, 10, 23], [35>41, 35>43, 27>30, 4>22, 4>41, 4>17, 4>47, 4>39, 4>18, 4>23, 1>41, 1>11, 17>35, 17>45, 17>32, 17>33, 24>26, 26>32, 26>30, 8>32, 8>24, 8>33, 8>15, 18>45, 18>32, 18>33, 9>27, 15>27, 7>33, 7>10, 11>27, 11>47, 11>18, 30>35, 30>41], [], [ (22, 1), (35, 1), (45, 1), (36, 1), (27, 1), (4, 1), (1, 1), (41, 1), (32, 1), (17, 1), (24, 1), (43, 1), (47, 1), (33, 1), (39, 1), (26, 1), (8, 1), (18, 1), (9, 1), (15, 1), (7, 1), (11, 1), (30, 1), (10, 1), (23, 1)], [])).

test(9, (50, 250, [<, >]), (25, 0, 1), ([3, 40, 4, 1, 19, 42, 48, 9, 27, 32, 7, 16, 22, 23, 47, 39, 24, 10, 50, 49, 20, 41, 28, 37, 11], [3>4, 3>32, 3>23, 3>20, 3>41, 4>23, 4>50, 4>37, 19>22, 19>47, 9>16, 9>10, 27>39, 27>28, 32>39, 7>32, 7>10, 16>19, 16>32, 22>27, 47>49, 10>42, 10>16, 10>41, 49>50, 20>22, 28>39, 28>50, 28>37, 11>37], [], [ (3, 1), (40, 1), (4, 1), (1, 1), (19, 1), (42, 1), (48, 1), (9, 1), (27, 1), (32, 1), (7, 1), (16, 1), (22, 1), (23, 1), (47, 1), (39, 1), (24, 1), (10, 1), (50, 1), (49, 1), (20, 1), (41, 1), (28, 1), (37, 1), (11, 1)], [])).

test(10, (50, 250, [<, >]), (25, 0, 1), ([19, 38, 2, 1, 23, 33, 40, 9, 10, 43, 28, 20, 18, 30, 4, 22, 42, 7, 26, 24, 34, 47, 29, 45, 8], [38>40, 38>45, 2>40, 2>30, 1>20, 1>7, 1>8, 23>42, 23>26, 9>23, 10>38, 10>30, 20>33, 18>23, 18>33, 18>22, 18>26, 18>47, 30>47, 4>22, 22>23, 22>30, 7>40, 7>18, 7>26, 7>8, 26>29, 24>29, 34>40, 29>40, 29>47, 8>18, 8>42, 8>26], [], [ (19, 1), (38, 1), (2, 1), (1, 1), (23, 1), (33, 1), (40, 1), (9, 1), (10, 1), (43, 1), (28, 1), (20, 1), (18, 1), (30, 1), (4, 1), (22, 1), (42, 1), (7, 1), (26, 1), (24, 1), (34, 1), (47, 1), (29, 1), (45, 1), (8, 1)], [])).

%% 50, 250, [<, >]
%% 30, 0, 1

test(1, (50, 250, [<, >]), (30, 0, 1), ([16, 39, 46, 43, 33, 10, 15, 35, 23, 5, 2, 48, 42, 25, 13, 19, 31, 34, 14, 7, 12, 17, 27, 30, 45, 32, 44, 38, 24, 40], [16>45, 46>48, 10>40, 15>39, 15>35, 15>31, 35>39, 23>33, 23>48, 23>42, 23>34, 5>15, 5>12, 5>27, 2>35, 2>23, 2>25, 25>35, 25>30, 13>35, 13>14, 13>38, 13>24, 19>39, 31>46, 14>43, 14>48, 7>16, 7>39, 7>15, 7>35, 7>23, 7>12, 7>24, 12>13, 12>17, 12>32, 12>24, 17>48, 27>48, 27>30, 38>39, 24>33, 24>27, 24>45], [], [ (16, 1), (39, 1), (46, 1), (43, 1), (33, 1), (10, 1), (15, 1), (35, 1), (23, 1), (5, 1), (2, 1), (48, 1), (42, 1), (25, 1), (13, 1), (19, 1), (31, 1), (34, 1), (14, 1), (7, 1), (12, 1), (17, 1), (27, 1), (30, 1), (45, 1), (32, 1), (44, 1), (38, 1), (24, 1), (40, 1)], [])).

test(2, (50, 250, [<, >]), (30, 0, 1), ([1, 28, 22, 49, 45, 6, 7, 43, 47, 44, 8, 14, 20, 30, 34, 26, 32, 4, 5, 46, 12, 2, 39, 27, 50, 13, 9, 31, 33, 16], [1>16, 28>31, 22>32, 45>46, 45>50, 6>47, 6>14, 6>13, 7>30, 7>26, 7>31, 44>45, 44>47, 8>34, 8>9, 14>26, 14>39, 14>27, 20>22, 20>45, 30>45, 30>50, 30>31, 34>44, 26>32, 4>49, 4>47, 4>9, 5>22, 5>6, 5>12, 46>49, 12>44, 12>13, 2>44, 2>30, 27>49, 27>47, 27>34, 27>50, 13>28, 13>26, 13>32, 13>27, 9>22, 9>46, 9>12, 31>39, 33>46, 33>50, 16>49, 16>45], [], [ (1, 1), (28, 1), (22, 1), (49, 1), (45, 1), (6, 1), (7, 1), (43, 1), (47, 1), (44, 1), (8, 1), (14, 1), (20, 1), (30, 1), (34, 1), (26, 1), (32, 1), (4, 1), (5, 1), (46, 1), (12, 1), (2, 1), (39, 1), (27, 1), (50, 1), (13, 1), (9, 1), (31, 1), (33, 1), (16, 1)], [])).

test(3, (50, 250, [<, >]), (30, 0, 1), ([3, 39, 17, 7, 35, 33, 46, 5, 1, 37, 40, 36, 43, 21, 26, 19, 47, 9, 30, 10, 34, 22, 2, 31, 48, 50, 18, 20, 45, 44], [3>35, 3>33, 3>47, 3>30, 39>40, 17>36, 17>21, 7>9, 7>10, 7>18, 35>46, 35>48, 35>44, 33>37, 5>26, 5>30, 1>46, 1>36, 1>44, 37>46, 37>40, 37>48, 37>45, 40>48, 43>47, 21>36, 26>48, 19>35, 19>46, 19>40, 19>45, 9>43, 30>47, 30>34, 30>48, 34>39, 22>26, 31>39, 31>40, 31>34, 31>45, 48>50, 18>33, 18>46, 18>37, 18>31, 20>33, 20>34, 45>48], [], [ (3, 1), (39, 1), (17, 1), (7, 1), (35, 1), (33, 1), (46, 1), (5, 1), (1, 1), (37, 1), (40, 1), (36, 1), (43, 1), (21, 1), (26, 1), (19, 1), (47, 1), (9, 1), (30, 1), (10, 1), (34, 1), (22, 1), (2, 1), (31, 1), (48, 1), (50, 1), (18, 1), (20, 1), (45, 1), (44, 1)], [])).

test(4, (50, 250, [<, >]), (30, 0, 1), ([38, 19, 50, 3, 40, 6, 15, 23, 32, 25, 22, 29, 16, 49, 12, 17, 43, 31, 41, 8, 48, 2, 21, 24, 18, 34, 28, 26, 4, 47], [38>43, 19>29, 19>24, 3>38, 3>40, 3>48, 3>4, 40>50, 6>47, 15>38, 15>17, 15>31, 15>41, 15>48, 15>18, 32>49, 25>47, 22>41, 22>24, 29>49, 29>48, 12>38, 12>17, 12>21, 12>26, 12>47, 17>19, 17>23, 17>31, 8>19, 8>15, 48>49, 2>24, 21>40, 21>32, 24>32, 24>29, 24>28, 34>48, 28>50, 26>38, 26>41, 4>38, 4>25, 4>43], [], [ (38, 1), (19, 1), (50, 1), (3, 1), (40, 1), (6, 1), (15, 1), (23, 1), (32, 1), (25, 1), (22, 1), (29, 1), (16, 1), (49, 1), (12, 1), (17, 1), (43, 1), (31, 1), (41, 1), (8, 1), (48, 1), (2, 1), (21, 1), (24, 1), (18, 1), (34, 1), (28, 1), (26, 1), (4, 1), (47, 1)], [])).

test(5, (50, 250, [<, >]), (30, 0, 1), ([23, 48, 35, 34, 28, 37, 36, 49, 31, 42, 10, 4, 44, 39, 8, 13, 18, 47, 12, 20, 19, 43, 21, 1, 27, 45, 25, 11, 29, 6], [23>42, 23>27, 34>39, 28>31, 28>39, 37>42, 37>47, 36>43, 31>48, 31>45, 42>47, 42>45, 10>48, 10>35, 10>18, 10>25, 44>48, 44>47, 8>31, 8>44, 8>39, 8>18, 13>45, 13>29, 18>42, 12>35, 12>25, 20>48, 20>21, 19>31, 21>28, 21>44, 21>43, 1>4, 27>44, 11>28, 11>43, 29>42, 6>48, 6>36, 6>31, 6>12, 6>21], [], [ (23, 1), (48, 1), (35, 1), (34, 1), (28, 1), (37, 1), (36, 1), (49, 1), (31, 1), (42, 1), (10, 1), (4, 1), (44, 1), (39, 1), (8, 1), (13, 1), (18, 1), (47, 1), (12, 1), (20, 1), (19, 1), (43, 1), (21, 1), (1, 1), (27, 1), (45, 1), (25, 1), (11, 1), (29, 1), (6, 1)], [])).

test(6, (50, 250, [<, >]), (30, 0, 1), ([37, 24, 36, 23, 43, 4, 1, 35, 2, 13, 34, 11, 47, 18, 28, 17, 5, 6, 22, 29, 44, 38, 50, 25, 48, 49, 7, 10, 15, 42], [37>43, 37>47, 36>42, 23>29, 4>11, 1>43, 1>13, 1>47, 1>5, 1>15, 2>36, 13>35, 13>34, 34>36, 34>42, 11>37, 11>36, 11>50, 11>48, 11>42, 47>50, 18>50, 18>49, 28>36, 17>36, 17>35, 17>49, 5>24, 5>25, 6>36, 6>11, 6>28, 6>42, 29>47, 29>38, 29>42, 25>42, 7>44, 7>15, 10>47, 10>50, 15>36, 15>23, 15>42, 42>44], [], [ (37, 1), (24, 1), (36, 1), (23, 1), (43, 1), (4, 1), (1, 1), (35, 1), (2, 1), (13, 1), (34, 1), (11, 1), (47, 1), (18, 1), (28, 1), (17, 1), (5, 1), (6, 1), (22, 1), (29, 1), (44, 1), (38, 1), (50, 1), (25, 1), (48, 1), (49, 1), (7, 1), (10, 1), (15, 1), (42, 1)], [])).

test(7, (50, 250, [<, >]), (30, 0, 1), ([1, 40, 26, 8, 16, 32, 37, 36, 45, 42, 49, 29, 5, 11, 18, 43, 22, 41, 4, 46, 13, 2, 19, 33, 24, 35, 44, 31, 47, 48], [1>26, 1>36, 1>5, 1>19, 1>33, 1>31, 40>46, 26>32, 26>46, 26>47, 8>37, 16>35, 16>47, 32>33, 37>46, 36>40, 36>37, 29>43, 29>33, 29>44, 5>40, 5>44, 5>47, 11>18, 11>22, 11>44, 18>36, 22>24, 13>32, 13>18, 13>19, 2>22, 2>41, 19>46, 19>24, 33>44, 24>37, 24>36, 24>31, 24>47, 35>36, 31>36, 31>35], [], [ (1, 1), (40, 1), (26, 1), (8, 1), (16, 1), (32, 1), (37, 1), (36, 1), (45, 1), (42, 1), (49, 1), (29, 1), (5, 1), (11, 1), (18, 1), (43, 1), (22, 1), (41, 1), (4, 1), (46, 1), (13, 1), (2, 1), (19, 1), (33, 1), (24, 1), (35, 1), (44, 1), (31, 1), (47, 1), (48, 1)], [])).

test(8, (50, 250, [<, >]), (30, 0, 1), ([19, 43, 44, 12, 8, 27, 14, 29, 35, 41, 2, 11, 42, 47, 6, 30, 49, 3, 24, 21, 10, 45, 4, 50, 34, 18, 36, 9, 28, 15], [19>42, 43>50, 44>50, 12>34, 8>27, 8>45, 8>50, 29>44, 2>19, 2>47, 2>49, 6>43, 6>44, 6>21, 6>9, 6>28, 3>43, 3>41, 3>11, 3>49, 24>29, 24>35, 21>29, 21>30, 10>19, 10>43, 10>27, 10>24, 45>50, 4>30, 4>36, 34>36, 18>27, 18>35, 18>30, 18>45, 36>45, 9>12, 9>28, 28>42, 28>45, 15>44, 15>18, 15>36], [], [ (19, 1), (43, 1), (44, 1), (12, 1), (8, 1), (27, 1), (14, 1), (29, 1), (35, 1), (41, 1), (2, 1), (11, 1), (42, 1), (47, 1), (6, 1), (30, 1), (49, 1), (3, 1), (24, 1), (21, 1), (10, 1), (45, 1), (4, 1), (50, 1), (34, 1), (18, 1), (36, 1), (9, 1), (28, 1), (15, 1)], [])).

test(9, (50, 250, [<, >]), (30, 0, 1), ([7, 19, 16, 20, 43, 11, 25, 3, 13, 22, 24, 6, 41, 48, 14, 40, 46, 29, 30, 18, 27, 42, 2, 45, 37, 50, 49, 31, 12, 34], [7>22, 7>41, 7>37, 7>12, 16>20, 16>30, 16>42, 16>45, 16>37, 16>34, 20>40, 20>34, 11>20, 11>13, 11>45, 25>40, 25>37, 25>50, 3>41, 3>14, 3>18, 13>40, 22>41, 24>40, 6>45, 14>19, 14>46, 14>49, 14>34, 29>49, 30>48, 18>43, 18>24, 18>27, 18>45, 2>14, 2>46, 37>42, 37>45, 34>43], [], [ (7, 1), (19, 1), (16, 1), (20, 1), (43, 1), (11, 1), (25, 1), (3, 1), (13, 1), (22, 1), (24, 1), (6, 1), (41, 1), (48, 1), (14, 1), (40, 1), (46, 1), (29, 1), (30, 1), (18, 1), (27, 1), (42, 1), (2, 1), (45, 1), (37, 1), (50, 1), (49, 1), (31, 1), (12, 1), (34, 1)], [])).

test(10, (50, 250, [<, >]), (30, 0, 1), ([9, 35, 4, 5, 37, 14, 22, 46, 12, 47, 36, 24, 48, 30, 1, 11, 31, 19, 15, 49, 17, 27, 16, 21, 2, 41, 26, 50, 40, 39], [9>14, 9>50, 35>46, 35>39, 4>9, 4>37, 4>48, 5>46, 5>11, 5>17, 5>40, 14>15, 14>16, 22>47, 22>30, 22>50, 46>50, 12>48, 12>19, 12>49, 12>17, 36>47, 36>41, 36>50, 24>35, 24>41, 1>4, 1>14, 1>31, 1>16, 1>40, 31>48, 31>41, 31>50, 31>40, 19>37, 17>24, 27>49, 27>41, 27>39, 21>35, 21>37, 21>48, 2>47, 2>30, 2>15, 2>40, 26>41, 40>46, 39>47], [], [ (9, 1), (35, 1), (4, 1), (5, 1), (37, 1), (14, 1), (22, 1), (46, 1), (12, 1), (47, 1), (36, 1), (24, 1), (48, 1), (30, 1), (1, 1), (11, 1), (31, 1), (19, 1), (15, 1), (49, 1), (17, 1), (27, 1), (16, 1), (21, 1), (2, 1), (41, 1), (26, 1), (50, 1), (40, 1), (39, 1)], [])).

%% 50, 250, [<, >]
%% 35, 0, 1

test(1, (50, 250, [<, >]), (35, 0, 1), ([2, 19, 43, 4, 25, 34, 7, 21, 22, 29, 5, 6, 17, 27, 30, 46, 41, 13, 32, 44, 42, 33, 23, 10, 11, 15, 1, 47, 37, 31, 36, 24, 9, 16, 20], [2>6, 2>46, 19>27, 19>32, 19>24, 19>20, 4>43, 4>25, 4>29, 4>32, 4>33, 4>10, 25>43, 25>44, 25>31, 7>21, 7>27, 22>46, 22>32, 5>25, 5>34, 5>10, 5>11, 5>20, 6>33, 6>11, 6>24, 27>37, 13>27, 13>30, 44>46, 23>43, 10>17, 10>36, 11>30, 11>32, 11>42, 11>15, 11>47, 11>37, 15>22, 15>32, 1>34, 1>29, 1>9, 1>20, 37>43, 36>37, 24>27, 24>36, 9>29, 9>41, 9>44, 9>36, 16>29, 16>41, 16>23, 16>37, 16>36, 20>29, 20>24], [], [ (2, 1), (19, 1), (43, 1), (4, 1), (25, 1), (34, 1), (7, 1), (21, 1), (22, 1), (29, 1), (5, 1), (6, 1), (17, 1), (27, 1), (30, 1), (46, 1), (41, 1), (13, 1), (32, 1), (44, 1), (42, 1), (33, 1), (23, 1), (10, 1), (11, 1), (15, 1), (1, 1), (47, 1), (37, 1), (31, 1), (36, 1), (24, 1), (9, 1), (16, 1), (20, 1)], [])).

test(2, (50, 250, [<, >]), (35, 0, 1), ([34, 42, 48, 23, 8, 46, 37, 49, 25, 15, 21, 1, 16, 30, 4, 22, 6, 47, 2, 24, 38, 17, 18, 36, 44, 26, 32, 29, 50, 5, 10, 11, 41, 13, 33], [42>47, 23>36, 23>44, 23>26, 23>50, 8>34, 8>25, 8>44, 8>32, 8>50, 15>23, 15>16, 15>17, 21>34, 21>48, 21>44, 1>49, 16>17, 30>38, 30>32, 4>37, 4>16, 4>17, 22>30, 22>24, 22>36, 6>8, 6>22, 6>36, 6>44, 47>50, 2>22, 2>47, 2>29, 38>41, 17>48, 17>47, 17>29, 18>23, 18>46, 18>37, 18>26, 36>41, 44>48, 26>37, 26>33, 29>46, 29>49, 29>44, 29>41, 5>48, 5>25, 5>30, 10>17, 10>29, 10>41, 11>23, 11>37, 11>21, 11>30, 11>47, 11>36, 11>33, 13>48, 13>37, 13>24, 33>37, 33>47, 33>44], [], [ (34, 1), (42, 1), (48, 1), (23, 1), (8, 1), (46, 1), (37, 1), (49, 1), (25, 1), (15, 1), (21, 1), (1, 1), (16, 1), (30, 1), (4, 1), (22, 1), (6, 1), (47, 1), (2, 1), (24, 1), (38, 1), (17, 1), (18, 1), (36, 1), (44, 1), (26, 1), (32, 1), (29, 1), (50, 1), (5, 1), (10, 1), (11, 1), (41, 1), (13, 1), (33, 1)], [])).

test(3, (50, 250, [<, >]), (35, 0, 1), ([20, 35, 9, 38, 24, 4, 36, 21, 45, 13, 41, 49, 31, 42, 28, 17, 10, 39, 11, 2, 16, 48, 43, 15, 29, 44, 32, 8, 1, 5, 7, 47, 18, 22, 46], [20>35, 20>42, 20>43, 20>44, 35>41, 35>39, 9>41, 9>31, 9>11, 9>15, 38>49, 24>36, 24>41, 24>31, 24>42, 24>39, 24>32, 4>15, 36>43, 36>44, 21>48, 13>17, 42>45, 28>35, 17>35, 17>28, 17>44, 10>13, 10>42, 39>49, 11>24, 11>45, 11>49, 11>39, 11>22, 2>38, 2>39, 2>46, 16>29, 15>41, 32>39, 8>48, 1>49, 1>28, 1>17, 1>32, 1>47, 1>46, 5>35, 5>11, 5>22, 7>36, 7>45, 7>41, 7>39, 7>16, 18>38, 22>49, 46>47], [], [ (20, 1), (35, 1), (9, 1), (38, 1), (24, 1), (4, 1), (36, 1), (21, 1), (45, 1), (13, 1), (41, 1), (49, 1), (31, 1), (42, 1), (28, 1), (17, 1), (10, 1), (39, 1), (11, 1), (2, 1), (16, 1), (48, 1), (43, 1), (15, 1), (29, 1), (44, 1), (32, 1), (8, 1), (1, 1), (5, 1), (7, 1), (47, 1), (18, 1), (22, 1), (46, 1)], [])).

test(4, (50, 250, [<, >]), (35, 0, 1), ([26, 21, 16, 38, 40, 22, 6, 44, 35, 34, 25, 4, 43, 14, 20, 1, 50, 33, 49, 37, 39, 12, 46, 29, 30, 11, 5, 47, 9, 36, 45, 2, 42, 24, 19], [26>38, 26>40, 26>50, 21>26, 21>40, 21>35, 21>25, 21>47, 16>25, 16>49, 16>39, 16>30, 38>40, 22>38, 6>47, 35>47, 35>36, 34>47, 25>43, 25>37, 4>40, 4>25, 4>37, 14>16, 14>34, 1>43, 1>5, 1>45, 33>38, 37>39, 39>42, 12>38, 12>40, 12>30, 29>35, 29>33, 29>49, 29>45, 30>49, 11>42, 5>22, 5>46, 9>39, 9>45, 9>19, 2>35, 2>25, 2>14, 2>20, 2>37, 2>47, 42>44, 42>43, 24>44, 24>39, 19>22, 19>20, 19>49], [], [ (26, 1), (21, 1), (16, 1), (38, 1), (40, 1), (22, 1), (6, 1), (44, 1), (35, 1), (34, 1), (25, 1), (4, 1), (43, 1), (14, 1), (20, 1), (1, 1), (50, 1), (33, 1), (49, 1), (37, 1), (39, 1), (12, 1), (46, 1), (29, 1), (30, 1), (11, 1), (5, 1), (47, 1), (9, 1), (36, 1), (45, 1), (2, 1), (42, 1), (24, 1), (19, 1)], [])).

test(5, (50, 250, [<, >]), (35, 0, 1), ([40, 31, 24, 6, 33, 47, 12, 1, 4, 9, 50, 3, 42, 22, 5, 15, 10, 28, 18, 7, 11, 25, 34, 38, 45, 41, 26, 36, 16, 39, 32, 13, 35, 43, 30], [6>15, 6>7, 6>41, 33>47, 33>35, 12>25, 1>9, 1>15, 1>11, 4>7, 4>43, 9>15, 9>36, 9>35, 3>24, 3>18, 3>11, 3>25, 3>45, 22>31, 22>26, 22>32, 22>35, 22>30, 5>40, 5>50, 5>22, 5>36, 5>13, 15>39, 10>40, 10>24, 28>36, 18>31, 18>47, 7>40, 7>33, 7>47, 7>42, 7>38, 11>24, 11>12, 11>45, 25>50, 25>26, 34>36, 38>47, 38>45, 26>38, 26>43, 36>38, 16>47, 32>35, 32>43, 13>31, 13>33, 13>28, 13>25, 13>26, 13>16, 30>41], [], [ (40, 1), (31, 1), (24, 1), (6, 1), (33, 1), (47, 1), (12, 1), (1, 1), (4, 1), (9, 1), (50, 1), (3, 1), (42, 1), (22, 1), (5, 1), (15, 1), (10, 1), (28, 1), (18, 1), (7, 1), (11, 1), (25, 1), (34, 1), (38, 1), (45, 1), (41, 1), (26, 1), (36, 1), (16, 1), (39, 1), (32, 1), (13, 1), (35, 1), (43, 1), (30, 1)], [])).

test(6, (50, 250, [<, >]), (35, 0, 1), ([23, 41, 47, 37, 3, 14, 19, 34, 32, 8, 29, 6, 30, 26, 44, 35, 50, 20, 49, 22, 10, 28, 11, 7, 33, 48, 45, 24, 27, 42, 31, 21, 18, 5, 38], [23>41, 23>35, 23>50, 37>50, 37>42, 3>23, 3>41, 3>26, 3>22, 3>11, 14>47, 14>32, 19>37, 19>44, 19>28, 34>44, 32>49, 8>14, 8>29, 8>22, 8>45, 8>27, 8>18, 29>48, 6>41, 6>47, 6>29, 6>44, 6>11, 6>27, 6>38, 30>32, 30>44, 26>27, 35>41, 20>37, 20>32, 20>44, 20>42, 22>23, 22>34, 10>37, 10>38, 28>44, 28>49, 28>48, 11>48, 7>19, 7>32, 27>37, 27>34, 27>33, 27>38, 42>44, 31>49, 21>23, 21>37, 21>24, 18>19, 18>20, 5>34, 5>35, 5>42, 38>44], [], [ (23, 1), (41, 1), (47, 1), (37, 1), (3, 1), (14, 1), (19, 1), (34, 1), (32, 1), (8, 1), (29, 1), (6, 1), (30, 1), (26, 1), (44, 1), (35, 1), (50, 1), (20, 1), (49, 1), (22, 1), (10, 1), (28, 1), (11, 1), (7, 1), (33, 1), (48, 1), (45, 1), (24, 1), (27, 1), (42, 1), (31, 1), (21, 1), (18, 1), (5, 1), (38, 1)], [])).

test(7, (50, 250, [<, >]), (35, 0, 1), ([2, 19, 42, 44, 32, 37, 22, 43, 47, 41, 18, 5, 25, 21, 24, 33, 30, 11, 23, 14, 46, 15, 27, 6, 29, 13, 12, 48, 9, 1, 28, 4, 35, 38, 49], [2>44, 2>32, 2>18, 2>46, 2>27, 2>29, 19>22, 32>44, 37>41, 22>35, 18>42, 18>47, 18>41, 18>27, 5>23, 5>6, 5>13, 25>38, 21>43, 21>48, 24>47, 24>29, 24>38, 33>48, 33>49, 30>37, 30>46, 11>37, 11>24, 11>27, 23>30, 23>29, 14>32, 14>37, 14>41, 14>48, 15>44, 15>30, 15>23, 15>29, 15>48, 6>14, 6>38, 13>42, 13>43, 13>24, 13>35, 9>42, 9>32, 9>18, 9>25, 9>35, 1>32, 1>22, 1>6, 28>44, 4>24, 4>14, 4>29, 38>44, 38>41], [], [ (2, 1), (19, 1), (42, 1), (44, 1), (32, 1), (37, 1), (22, 1), (43, 1), (47, 1), (41, 1), (18, 1), (5, 1), (25, 1), (21, 1), (24, 1), (33, 1), (30, 1), (11, 1), (23, 1), (14, 1), (46, 1), (15, 1), (27, 1), (6, 1), (29, 1), (13, 1), (12, 1), (48, 1), (9, 1), (1, 1), (28, 1), (4, 1), (35, 1), (38, 1), (49, 1)], [])).

test(8, (50, 250, [<, >]), (35, 0, 1), ([14, 47, 2, 37, 44, 23, 38, 49, 29, 5, 31, 32, 39, 36, 20, 9, 40, 18, 13, 46, 25, 17, 21, 11, 19, 10, 6, 7, 43, 16, 30, 41, 12, 42, 3], [14>49, 14>17, 14>42, 2>47, 2>49, 2>17, 23>47, 23>39, 23>46, 38>49, 29>38, 29>36, 5>32, 5>18, 5>12, 31>36, 32>42, 39>44, 39>49, 39>46, 39>41, 39>42, 20>29, 20>36, 20>41, 9>32, 9>36, 9>18, 9>19, 40>49, 18>19, 13>14, 13>19, 25>38, 17>44, 17>19, 21>49, 21>29, 21>30, 11>16, 19>38, 19>32, 10>44, 10>38, 10>25, 6>31, 6>20, 6>11, 7>44, 7>23, 7>29, 7>19, 16>39, 16>40, 30>47, 30>44, 30>38, 30>49, 30>39, 12>23, 12>17, 12>43, 12>42, 3>17, 3>10, 3>43, 3>42], [], [ (14, 1), (47, 1), (2, 1), (37, 1), (44, 1), (23, 1), (38, 1), (49, 1), (29, 1), (5, 1), (31, 1), (32, 1), (39, 1), (36, 1), (20, 1), (9, 1), (40, 1), (18, 1), (13, 1), (46, 1), (25, 1), (17, 1), (21, 1), (11, 1), (19, 1), (10, 1), (6, 1), (7, 1), (43, 1), (16, 1), (30, 1), (41, 1), (12, 1), (42, 1), (3, 1)], [])).

test(9, (50, 250, [<, >]), (35, 0, 1), ([46, 21, 22, 37, 50, 12, 43, 42, 39, 19, 47, 35, 20, 10, 6, 27, 13, 1, 29, 3, 16, 2, 33, 41, 48, 8, 31, 15, 38, 17, 24, 30, 25, 28, 32], [46>50, 21>50, 21>33, 22>39, 22>35, 12>39, 12>19, 12>48, 19>20, 19>48, 10>22, 10>47, 10>27, 10>15, 6>20, 6>33, 27>29, 27>41, 27>38, 27>28, 13>17, 1>47, 1>6, 1>32, 29>46, 29>47, 29>38, 3>43, 3>35, 3>10, 16>46, 2>10, 2>15, 33>39, 33>35, 33>48, 41>50, 8>29, 8>32, 15>33, 15>41, 15>17, 38>43, 17>21, 17>31, 24>42, 24>33, 24>32, 30>38, 25>37, 25>28, 28>41, 32>41], [], [ (46, 1), (21, 1), (22, 1), (37, 1), (50, 1), (12, 1), (43, 1), (42, 1), (39, 1), (19, 1), (47, 1), (35, 1), (20, 1), (10, 1), (6, 1), (27, 1), (13, 1), (1, 1), (29, 1), (3, 1), (16, 1), (2, 1), (33, 1), (41, 1), (48, 1), (8, 1), (31, 1), (15, 1), (38, 1), (17, 1), (24, 1), (30, 1), (25, 1), (28, 1), (32, 1)], [])).

test(10, (50, 250, [<, >]), (35, 0, 1), ([5, 1, 41, 7, 27, 11, 37, 45, 38, 48, 34, 47, 30, 43, 18, 29, 2, 12, 19, 46, 20, 25, 22, 13, 33, 14, 8, 24, 31, 23, 35, 16, 4, 32, 21], [5>37, 5>30, 5>14, 1>41, 1>37, 1>38, 41>48, 7>43, 7>18, 7>20, 27>32, 11>32, 37>38, 38>45, 38>43, 34>37, 30>34, 43>45, 18>41, 18>45, 18>38, 18>22, 18>24, 29>37, 2>45, 2>48, 2>13, 2>33, 12>45, 12>18, 12>19, 12>16, 19>41, 19>27, 46>47, 20>37, 20>43, 20>32, 20>21, 25>37, 25>32, 22>27, 13>25, 13>14, 33>48, 33>47, 14>46, 14>16, 8>11, 8>47, 8>21, 24>46, 23>45, 35>37, 35>38, 16>38, 16>20, 16>22, 16>24, 16>31, 4>35, 4>16, 21>47, 21>24], [], [ (5, 1), (1, 1), (41, 1), (7, 1), (27, 1), (11, 1), (37, 1), (45, 1), (38, 1), (48, 1), (34, 1), (47, 1), (30, 1), (43, 1), (18, 1), (29, 1), (2, 1), (12, 1), (19, 1), (46, 1), (20, 1), (25, 1), (22, 1), (13, 1), (33, 1), (14, 1), (8, 1), (24, 1), (31, 1), (23, 1), (35, 1), (16, 1), (4, 1), (32, 1), (21, 1)], [])).

%% 50, 250, [<, >]
%% 40, 0, 1

test(1, (50, 250, [<, >]), (40, 0, 1), ([46, 39, 22, 21, 26, 33, 16, 17, 24, 20, 40, 15, 36, 7, 27, 38, 4, 41, 6, 42, 11, 8, 3, 34, 12, 35, 28, 25, 45, 10, 19, 9, 5, 31, 47, 30, 23, 18, 14, 29], [22>35, 22>45, 21>22, 21>42, 26>46, 33>38, 33>47, 16>22, 17>35, 17>25, 24>39, 24>27, 24>35, 24>30, 20>39, 20>41, 20>35, 20>25, 40>41, 15>22, 15>47, 15>30, 27>28, 38>39, 38>41, 4>11, 41>46, 41>47, 6>21, 6>26, 6>11, 6>25, 6>23, 42>46, 11>15, 11>12, 11>28, 8>12, 8>30, 3>15, 3>11, 12>46, 12>24, 35>36, 25>27, 25>47, 10>30, 19>21, 19>40, 19>28, 19>47, 19>29, 9>30, 5>38, 5>28, 31>47, 18>46, 18>20, 18>36, 18>38, 14>42, 14>18, 29>45], [], [ (46, 1), (39, 1), (22, 1), (21, 1), (26, 1), (33, 1), (16, 1), (17, 1), (24, 1), (20, 1), (40, 1), (15, 1), (36, 1), (7, 1), (27, 1), (38, 1), (4, 1), (41, 1), (6, 1), (42, 1), (11, 1), (8, 1), (3, 1), (34, 1), (12, 1), (35, 1), (28, 1), (25, 1), (45, 1), (10, 1), (19, 1), (9, 1), (5, 1), (31, 1), (47, 1), (30, 1), (23, 1), (18, 1), (14, 1), (29, 1)], [])).

test(2, (50, 250, [<, >]), (40, 0, 1), ([27, 48, 41, 22, 20, 42, 16, 40, 35, 46, 4, 37, 39, 47, 5, 1, 45, 11, 6, 9, 17, 43, 38, 25, 29, 32, 15, 12, 44, 2, 18, 21, 26, 34, 50, 14, 36, 30, 33, 23], [27>35, 22>46, 22>33, 20>41, 20>43, 20>29, 20>44, 20>21, 42>47, 42>50, 16>37, 35>42, 35>39, 35>47, 4>42, 4>11, 4>9, 4>14, 37>48, 37>40, 37>39, 37>47, 39>46, 39>44, 39>50, 5>22, 5>38, 5>12, 5>21, 5>33, 1>39, 1>34, 1>50, 1>14, 1>36, 11>40, 11>34, 6>45, 6>12, 6>14, 6>30, 9>47, 9>29, 9>34, 9>33, 17>40, 17>18, 25>46, 25>37, 25>43, 25>32, 25>33, 29>47, 29>45, 32>40, 32>47, 32>34, 15>20, 15>17, 15>33, 12>20, 12>46, 12>39, 12>44, 2>11, 2>32, 2>12, 2>21, 18>39, 18>44, 21>40, 21>35, 21>47, 21>38, 21>33, 26>39, 26>50, 34>42, 34>37, 34>45, 14>34, 14>23, 36>47, 30>47, 30>45, 33>42, 33>47, 33>34, 33>50, 33>36, 23>37, 23>32, 23>33], [], [ (27, 1), (48, 1), (41, 1), (22, 1), (20, 1), (42, 1), (16, 1), (40, 1), (35, 1), (46, 1), (4, 1), (37, 1), (39, 1), (47, 1), (5, 1), (1, 1), (45, 1), (11, 1), (6, 1), (9, 1), (17, 1), (43, 1), (38, 1), (25, 1), (29, 1), (32, 1), (15, 1), (12, 1), (44, 1), (2, 1), (18, 1), (21, 1), (26, 1), (34, 1), (50, 1), (14, 1), (36, 1), (30, 1), (33, 1), (23, 1)], [])).

test(3, (50, 250, [<, >]), (40, 0, 1), ([14, 15, 30, 23, 21, 33, 4, 28, 24, 10, 36, 12, 47, 5, 48, 20, 42, 8, 39, 26, 9, 50, 29, 27, 19, 31, 40, 38, 44, 16, 45, 43, 3, 46, 32, 41, 49, 25, 17, 6], [15>47, 15>31, 15>38, 30>46, 23>30, 23>24, 21>23, 21>24, 21>48, 21>39, 21>38, 33>50, 33>49, 4>23, 28>30, 24>33, 24>39, 24>25, 10>14, 10>49, 12>27, 12>38, 47>49, 5>24, 5>9, 5>29, 20>24, 20>27, 20>44, 8>47, 8>40, 8>32, 39>46, 26>36, 26>50, 26>40, 26>41, 9>39, 9>29, 29>39, 29>44, 27>44, 27>46, 27>32, 19>21, 19>41, 31>33, 31>45, 31>32, 40>48, 38>50, 38>43, 16>26, 16>29, 16>40, 16>32, 16>17, 3>28, 3>20, 3>26, 3>50, 3>32, 46>48, 25>26, 25>40, 17>48, 17>44, 6>30, 6>47, 6>9, 6>27], [], [ (14, 1), (15, 1), (30, 1), (23, 1), (21, 1), (33, 1), (4, 1), (28, 1), (24, 1), (10, 1), (36, 1), (12, 1), (47, 1), (5, 1), (48, 1), (20, 1), (42, 1), (8, 1), (39, 1), (26, 1), (9, 1), (50, 1), (29, 1), (27, 1), (19, 1), (31, 1), (40, 1), (38, 1), (44, 1), (16, 1), (45, 1), (43, 1), (3, 1), (46, 1), (32, 1), (41, 1), (49, 1), (25, 1), (17, 1), (6, 1)], [])).

test(4, (50, 250, [<, >]), (40, 0, 1), ([41, 30, 38, 19, 8, 11, 43, 7, 37, 10, 22, 4, 2, 27, 31, 23, 18, 5, 3, 29, 47, 24, 17, 33, 50, 26, 12, 28, 32, 39, 42, 44, 21, 49, 20, 45, 6, 48, 46, 13], [30>37, 19>27, 19>24, 8>47, 8>44, 11>37, 11>13, 7>38, 7>19, 7>31, 7>23, 7>39, 7>44, 10>27, 10>23, 10>12, 10>39, 10>49, 22>42, 22>45, 22>48, 4>7, 4>50, 2>30, 2>21, 2>49, 2>45, 27>45, 31>38, 23>38, 23>43, 23>37, 23>24, 23>45, 18>19, 18>43, 18>23, 18>29, 18>24, 5>11, 5>31, 5>39, 3>43, 3>22, 3>28, 3>45, 29>39, 47>50, 17>31, 12>29, 12>33, 12>28, 12>48, 28>37, 28>47, 28>39, 32>45, 32>46, 39>47, 39>49, 21>27, 21>24, 21>39, 20>30, 20>24, 20>28, 20>46, 45>50, 6>24, 6>42, 13>22, 13>23, 13>29, 13>42, 13>46], [], [ (41, 1), (30, 1), (38, 1), (19, 1), (8, 1), (11, 1), (43, 1), (7, 1), (37, 1), (10, 1), (22, 1), (4, 1), (2, 1), (27, 1), (31, 1), (23, 1), (18, 1), (5, 1), (3, 1), (29, 1), (47, 1), (24, 1), (17, 1), (33, 1), (50, 1), (26, 1), (12, 1), (28, 1), (32, 1), (39, 1), (42, 1), (44, 1), (21, 1), (49, 1), (20, 1), (45, 1), (6, 1), (48, 1), (46, 1), (13, 1)], [])).

test(5, (50, 250, [<, >]), (40, 0, 1), ([48, 30, 13, 47, 43, 49, 4, 27, 35, 12, 6, 33, 32, 7, 50, 10, 21, 3, 42, 14, 44, 23, 39, 8, 36, 20, 26, 18, 22, 16, 46, 11, 25, 40, 5, 34, 29, 28, 9, 19], [30>33, 30>40, 13>50, 47>49, 4>32, 4>40, 35>36, 12>14, 12>44, 12>16, 12>19, 6>50, 6>16, 6>9, 32>33, 7>47, 7>27, 7>35, 7>12, 7>32, 7>39, 7>11, 7>40, 21>42, 21>23, 3>36, 3>16, 3>40, 3>19, 42>49, 14>33, 14>39, 14>36, 44>47, 44>46, 23>50, 23>44, 39>50, 8>12, 8>32, 36>44, 36>39, 36>46, 20>30, 20>42, 20>39, 26>30, 18>48, 18>36, 18>26, 22>48, 22>23, 22>36, 22>25, 22>40, 16>30, 16>36, 46>47, 11>44, 11>16, 25>48, 25>27, 25>50, 25>39, 25>29, 40>49, 40>50, 40>42, 5>27, 5>32, 5>21, 29>40, 9>43, 9>35, 9>18, 9>46, 9>11, 19>33, 19>21], [], [ (48, 1), (30, 1), (13, 1), (47, 1), (43, 1), (49, 1), (4, 1), (27, 1), (35, 1), (12, 1), (6, 1), (33, 1), (32, 1), (7, 1), (50, 1), (10, 1), (21, 1), (3, 1), (42, 1), (14, 1), (44, 1), (23, 1), (39, 1), (8, 1), (36, 1), (20, 1), (26, 1), (18, 1), (22, 1), (16, 1), (46, 1), (11, 1), (25, 1), (40, 1), (5, 1), (34, 1), (29, 1), (28, 1), (9, 1), (19, 1)], [])).

test(6, (50, 250, [<, >]), (40, 0, 1), ([14, 17, 22, 49, 25, 31, 28, 19, 23, 3, 50, 15, 12, 16, 37, 2, 21, 27, 47, 48, 44, 7, 42, 41, 36, 11, 29, 43, 32, 33, 34, 30, 46, 5, 9, 20, 18, 35, 45, 4], [14>22, 14>23, 14>37, 14>42, 14>46, 17>30, 22>36, 25>42, 25>34, 25>46, 31>42, 31>43, 28>44, 28>41, 28>32, 28>45, 19>29, 19>30, 19>35, 23>43, 23>35, 3>21, 3>42, 3>33, 15>19, 15>45, 12>21, 16>22, 16>36, 16>20, 16>45, 2>28, 2>27, 2>48, 2>44, 2>36, 2>45, 21>23, 27>48, 27>44, 47>49, 44>47, 7>12, 42>47, 41>49, 36>41, 36>46, 36>45, 11>17, 11>12, 11>21, 11>44, 29>47, 29>36, 29>33, 32>42, 33>36, 34>49, 34>43, 30>47, 46>48, 5>31, 5>16, 5>37, 5>34, 5>30, 9>31, 9>28, 9>23, 20>44, 20>33, 18>31, 18>37, 18>27, 18>47, 18>48, 18>34, 18>20, 4>14, 4>45], [], [ (14, 1), (17, 1), (22, 1), (49, 1), (25, 1), (31, 1), (28, 1), (19, 1), (23, 1), (3, 1), (50, 1), (15, 1), (12, 1), (16, 1), (37, 1), (2, 1), (21, 1), (27, 1), (47, 1), (48, 1), (44, 1), (7, 1), (42, 1), (41, 1), (36, 1), (11, 1), (29, 1), (43, 1), (32, 1), (33, 1), (34, 1), (30, 1), (46, 1), (5, 1), (9, 1), (20, 1), (18, 1), (35, 1), (45, 1), (4, 1)], [])).

test(7, (50, 250, [<, >]), (40, 0, 1), ([4, 21, 28, 27, 7, 41, 19, 40, 9, 29, 39, 14, 12, 3, 26, 11, 24, 32, 16, 47, 43, 46, 44, 34, 23, 22, 20, 2, 50, 38, 35, 36, 48, 8, 5, 10, 45, 25, 37, 17], [4>21, 4>50, 4>10, 21>39, 21>26, 21>24, 28>29, 27>32, 27>43, 7>26, 7>32, 7>43, 7>35, 19>23, 40>41, 40>47, 9>40, 9>16, 9>22, 9>25, 29>40, 29>35, 39>43, 39>44, 14>35, 12>41, 12>43, 12>23, 12>22, 3>27, 3>12, 3>34, 26>27, 26>47, 26>43, 26>50, 26>38, 11>43, 11>48, 11>25, 24>44, 32>44, 16>21, 16>40, 16>34, 16>38, 43>44, 44>47, 23>26, 23>43, 22>27, 22>41, 22>29, 22>32, 22>44, 22>38, 22>36, 20>40, 20>29, 20>23, 20>50, 20>36, 2>28, 2>27, 2>12, 2>3, 2>26, 2>34, 2>10, 36>40, 36>47, 36>48, 8>22, 5>11, 5>20, 5>48, 5>25, 10>28, 10>50, 10>36, 10>37, 25>43, 25>37, 17>40, 17>48], [], [ (4, 1), (21, 1), (28, 1), (27, 1), (7, 1), (41, 1), (19, 1), (40, 1), (9, 1), (29, 1), (39, 1), (14, 1), (12, 1), (3, 1), (26, 1), (11, 1), (24, 1), (32, 1), (16, 1), (47, 1), (43, 1), (46, 1), (44, 1), (34, 1), (23, 1), (22, 1), (20, 1), (2, 1), (50, 1), (38, 1), (35, 1), (36, 1), (48, 1), (8, 1), (5, 1), (10, 1), (45, 1), (25, 1), (37, 1), (17, 1)], [])).

test(8, (50, 250, [<, >]), (40, 0, 1), ([25, 18, 11, 22, 41, 49, 10, 50, 15, 17, 34, 5, 29, 45, 8, 9, 2, 33, 37, 32, 40, 44, 46, 3, 13, 14, 38, 23, 36, 6, 42, 47, 27, 43, 39, 12, 48, 24, 19, 26], [25>26, 18>26, 11>22, 11>13, 11>47, 11>39, 11>24, 22>32, 10>41, 10>50, 10>13, 10>42, 15>41, 15>49, 15>19, 17>34, 17>29, 17>19, 34>37, 5>17, 5>29, 5>42, 5>39, 5>48, 5>26, 29>41, 29>47, 45>48, 8>18, 8>50, 8>33, 8>13, 8>26, 9>45, 9>32, 9>47, 9>39, 2>11, 2>17, 2>34, 2>38, 2>6, 33>50, 33>38, 33>48, 37>41, 32>34, 40>49, 40>42, 46>48, 3>18, 3>10, 3>45, 3>24, 13>17, 13>33, 13>42, 14>41, 38>43, 38>39, 23>41, 23>44, 23>27, 36>41, 36>45, 36>46, 6>18, 6>22, 6>48, 42>44, 42>46, 27>33, 27>32, 27>39, 39>41, 39>45, 12>18, 12>15, 12>45, 24>50, 24>27, 19>45, 26>45, 26>38], [], [ (25, 1), (18, 1), (11, 1), (22, 1), (41, 1), (49, 1), (10, 1), (50, 1), (15, 1), (17, 1), (34, 1), (5, 1), (29, 1), (45, 1), (8, 1), (9, 1), (2, 1), (33, 1), (37, 1), (32, 1), (40, 1), (44, 1), (46, 1), (3, 1), (13, 1), (14, 1), (38, 1), (23, 1), (36, 1), (6, 1), (42, 1), (47, 1), (27, 1), (43, 1), (39, 1), (12, 1), (48, 1), (24, 1), (19, 1), (26, 1)], [])).

test(9, (50, 250, [<, >]), (40, 0, 1), ([18, 14, 15, 44, 32, 20, 34, 45, 4, 23, 19, 17, 25, 35, 29, 7, 27, 9, 26, 48, 33, 12, 24, 2, 36, 37, 40, 49, 43, 1, 39, 30, 31, 38, 3, 28, 42, 47, 16, 46], [18>44, 18>26, 14>45, 14>17, 14>49, 14>39, 14>16, 15>20, 15>25, 15>36, 15>49, 32>40, 20>26, 20>48, 20>47, 34>40, 4>15, 4>24, 4>16, 23>33, 23>31, 19>35, 19>29, 19>26, 19>36, 17>35, 17>38, 25>44, 25>32, 25>38, 35>44, 35>46, 29>45, 29>42, 7>47, 27>34, 27>45, 27>43, 9>44, 9>12, 9>31, 9>28, 26>29, 26>46, 48>49, 33>35, 33>43, 12>23, 12>37, 24>28, 2>20, 2>24, 2>43, 2>38, 37>44, 37>48, 37>47, 1>35, 1>39, 1>38, 1>46, 30>33, 31>32, 31>40, 31>46, 3>24, 3>43, 3>46, 28>43, 28>42, 28>47, 42>48, 16>19, 16>30, 16>31, 16>47], [], [ (18, 1), (14, 1), (15, 1), (44, 1), (32, 1), (20, 1), (34, 1), (45, 1), (4, 1), (23, 1), (19, 1), (17, 1), (25, 1), (35, 1), (29, 1), (7, 1), (27, 1), (9, 1), (26, 1), (48, 1), (33, 1), (12, 1), (24, 1), (2, 1), (36, 1), (37, 1), (40, 1), (49, 1), (43, 1), (1, 1), (39, 1), (30, 1), (31, 1), (38, 1), (3, 1), (28, 1), (42, 1), (47, 1), (16, 1), (46, 1)], [])).

test(10, (50, 250, [<, >]), (40, 0, 1), ([19, 44, 16, 10, 15, 13, 25, 49, 5, 12, 33, 27, 32, 30, 31, 22, 26, 36, 43, 21, 29, 2, 41, 20, 47, 39, 9, 50, 34, 7, 42, 35, 40, 14, 11, 24, 1, 3, 6, 48], [19>49, 19>31, 19>35, 19>48, 44>47, 16>44, 16>49, 16>43, 16>20, 16>47, 16>48, 10>27, 10>31, 10>29, 10>41, 10>20, 10>35, 15>32, 13>22, 13>39, 25>36, 25>47, 5>25, 5>49, 5>27, 5>29, 5>9, 12>19, 12>44, 12>43, 12>41, 12>50, 33>50, 33>35, 27>30, 27>47, 32>34, 30>49, 30>40, 22>43, 26>27, 26>31, 36>44, 36>41, 36>42, 36>40, 36>48, 21>31, 21>47, 29>39, 29>34, 2>49, 2>48, 41>43, 20>31, 39>40, 39>48, 9>36, 9>40, 34>43, 34>47, 7>16, 7>30, 7>26, 7>11, 42>44, 40>50, 14>30, 14>34, 11>12, 24>49, 24>31, 1>5, 1>33, 1>43, 1>29, 1>3, 3>15, 3>13, 3>41, 3>7, 3>6, 6>49, 6>21, 6>42], [], [ (19, 1), (44, 1), (16, 1), (10, 1), (15, 1), (13, 1), (25, 1), (49, 1), (5, 1), (12, 1), (33, 1), (27, 1), (32, 1), (30, 1), (31, 1), (22, 1), (26, 1), (36, 1), (43, 1), (21, 1), (29, 1), (2, 1), (41, 1), (20, 1), (47, 1), (39, 1), (9, 1), (50, 1), (34, 1), (7, 1), (42, 1), (35, 1), (40, 1), (14, 1), (11, 1), (24, 1), (1, 1), (3, 1), (6, 1), (48, 1)], [])).

%% 50, 250, [<, >]
%% 45, 0, 1

test(1, (50, 250, [<, >]), (45, 0, 1), ([18, 49, 14, 29, 35, 43, 1, 13, 3, 9, 47, 30, 17, 22, 45, 24, 31, 27, 2, 11, 8, 44, 34, 16, 5, 42, 4, 40, 10, 38, 36, 23, 33, 12, 41, 46, 28, 32, 25, 19, 39, 37, 21, 26, 20], [18>45, 18>37, 18>26, 14>49, 14>44, 14>16, 14>20, 29>34, 35>42, 35>46, 1>29, 1>22, 1>44, 1>38, 1>12, 1>32, 1>37, 13>45, 13>16, 3>24, 3>16, 3>5, 9>13, 9>22, 9>45, 9>11, 9>10, 9>19, 9>37, 30>41, 17>30, 22>47, 45>49, 24>41, 24>25, 31>42, 31>38, 31>32, 27>44, 27>33, 27>41, 2>29, 2>3, 2>17, 2>11, 2>44, 2>42, 2>40, 2>33, 11>49, 11>22, 11>24, 11>31, 8>36, 8>12, 8>32, 34>49, 34>47, 34>44, 34>42, 16>27, 16>33, 16>46, 16>19, 5>47, 5>39, 42>49, 4>47, 4>10, 4>46, 4>32, 40>44, 10>14, 10>19, 10>21, 38>45, 38>39, 36>43, 23>32, 33>34, 33>41, 33>37, 12>47, 12>30, 12>45, 12>24, 12>26, 32>45, 25>43, 19>29, 19>25, 19>20, 39>44, 39>40, 37>47, 37>46, 21>47, 21>28, 21>39, 26>38, 26>33, 20>29, 20>46], [], [ (18, 1), (49, 1), (14, 1), (29, 1), (35, 1), (43, 1), (1, 1), (13, 1), (3, 1), (9, 1), (47, 1), (30, 1), (17, 1), (22, 1), (45, 1), (24, 1), (31, 1), (27, 1), (2, 1), (11, 1), (8, 1), (44, 1), (34, 1), (16, 1), (5, 1), (42, 1), (4, 1), (40, 1), (10, 1), (38, 1), (36, 1), (23, 1), (33, 1), (12, 1), (41, 1), (46, 1), (28, 1), (32, 1), (25, 1), (19, 1), (39, 1), (37, 1), (21, 1), (26, 1), (20, 1)], [])).

test(2, (50, 250, [<, >]), (45, 0, 1), ([4, 21, 33, 7, 5, 22, 32, 40, 25, 2, 9, 43, 23, 17, 31, 45, 47, 14, 50, 3, 27, 19, 11, 8, 6, 15, 46, 29, 13, 24, 39, 26, 28, 16, 12, 30, 34, 18, 41, 36, 10, 48, 35, 42, 1], [4>31, 4>15, 4>29, 4>36, 21>47, 21>28, 21>42, 7>40, 7>43, 7>17, 7>45, 7>27, 7>11, 7>39, 7>28, 5>22, 22>43, 22>45, 22>27, 22>36, 22>35, 22>42, 32>39, 32>35, 40>42, 25>33, 25>39, 25>36, 2>7, 2>40, 2>43, 2>45, 2>41, 9>47, 43>45, 23>47, 23>27, 23>24, 23>39, 23>36, 17>25, 17>50, 31>47, 31>50, 31>48, 14>33, 14>46, 14>36, 3>32, 3>43, 3>23, 3>26, 27>43, 27>48, 19>21, 19>32, 11>22, 11>50, 11>27, 11>18, 8>43, 8>24, 8>12, 6>7, 6>31, 15>22, 15>31, 15>29, 15>30, 15>18, 29>41, 13>50, 13>19, 13>15, 13>30, 13>18, 13>41, 13>36, 39>50, 26>41, 26>48, 28>40, 28>35, 16>33, 16>40, 16>25, 12>40, 12>31, 12>48, 12>42, 30>41, 34>50, 34>42, 18>50, 41>43, 10>40, 10>27, 35>40, 35>50, 1>40, 1>50, 1>15], [], [ (4, 1), (21, 1), (33, 1), (7, 1), (5, 1), (22, 1), (32, 1), (40, 1), (25, 1), (2, 1), (9, 1), (43, 1), (23, 1), (17, 1), (31, 1), (45, 1), (47, 1), (14, 1), (50, 1), (3, 1), (27, 1), (19, 1), (11, 1), (8, 1), (6, 1), (15, 1), (46, 1), (29, 1), (13, 1), (24, 1), (39, 1), (26, 1), (28, 1), (16, 1), (12, 1), (30, 1), (34, 1), (18, 1), (41, 1), (36, 1), (10, 1), (48, 1), (35, 1), (42, 1), (1, 1)], [])).

test(3, (50, 250, [<, >]), (45, 0, 1), ([8, 30, 10, 19, 49, 50, 4, 29, 28, 11, 48, 44, 22, 27, 47, 34, 46, 16, 12, 42, 20, 9, 35, 45, 37, 14, 41, 40, 38, 33, 24, 7, 21, 32, 31, 15, 23, 13, 26, 43, 5, 39, 17, 36, 2], [8>30, 8>19, 8>28, 8>36, 30>46, 10>19, 10>43, 19>48, 19>20, 4>44, 4>22, 4>47, 28>44, 28>43, 11>30, 11>45, 11>39, 44>48, 44>47, 22>34, 22>37, 27>48, 47>48, 34>50, 34>40, 46>50, 16>49, 16>21, 16>32, 12>42, 12>14, 12>41, 12>21, 12>31, 12>39, 42>44, 42>43, 20>22, 20>36, 9>30, 9>49, 9>50, 9>12, 9>32, 9>36, 35>48, 35>46, 35>41, 35>40, 35>38, 45>49, 14>44, 14>46, 14>40, 14>24, 14>15, 14>43, 33>36, 24>30, 24>27, 7>29, 7>37, 7>15, 21>35, 21>37, 21>40, 21>38, 21>23, 32>50, 32>34, 32>37, 31>40, 15>28, 15>33, 15>26, 23>48, 23>32, 13>47, 13>37, 13>24, 13>21, 5>48, 5>40, 39>46, 39>42, 17>22, 17>31, 36>44, 36>41, 2>19, 2>48, 2>22, 2>32, 2>23], [], [ (8, 1), (30, 1), (10, 1), (19, 1), (49, 1), (50, 1), (4, 1), (29, 1), (28, 1), (11, 1), (48, 1), (44, 1), (22, 1), (27, 1), (47, 1), (34, 1), (46, 1), (16, 1), (12, 1), (42, 1), (20, 1), (9, 1), (35, 1), (45, 1), (37, 1), (14, 1), (41, 1), (40, 1), (38, 1), (33, 1), (24, 1), (7, 1), (21, 1), (32, 1), (31, 1), (15, 1), (23, 1), (13, 1), (26, 1), (43, 1), (5, 1), (39, 1), (17, 1), (36, 1), (2, 1)], [])).

test(4, (50, 250, [<, >]), (45, 0, 1), ([14, 48, 40, 3, 39, 21, 29, 2, 19, 25, 35, 6, 10, 36, 42, 49, 15, 33, 4, 23, 22, 7, 32, 16, 38, 47, 18, 43, 46, 45, 27, 31, 11, 37, 41, 1, 8, 28, 44, 17, 12, 50, 30, 13, 9], [40>48, 3>48, 3>4, 3>27, 3>30, 39>49, 39>44, 21>48, 21>39, 21>37, 29>31, 2>14, 2>36, 2>33, 2>16, 2>30, 2>9, 19>38, 19>43, 25>32, 25>43, 35>36, 35>47, 35>45, 35>41, 6>28, 10>40, 10>19, 10>33, 10>47, 10>27, 10>41, 42>46, 15>29, 15>35, 15>45, 33>49, 4>32, 23>42, 23>45, 22>39, 22>25, 22>49, 7>19, 7>36, 7>43, 7>45, 32>35, 32>45, 16>25, 16>35, 16>42, 16>50, 38>46, 18>47, 18>27, 45>49, 27>33, 27>47, 31>42, 31>43, 11>14, 11>22, 11>16, 11>43, 11>17, 41>49, 1>48, 1>29, 1>42, 1>33, 1>8, 1>28, 1>44, 8>14, 8>39, 8>36, 8>41, 8>44, 8>50, 17>35, 17>32, 17>47, 12>39, 12>32, 12>31, 12>41, 30>45, 30>37, 13>19, 13>49, 9>10, 9>36, 9>23, 9>22, 9>16, 9>13], [], [ (14, 1), (48, 1), (40, 1), (3, 1), (39, 1), (21, 1), (29, 1), (2, 1), (19, 1), (25, 1), (35, 1), (6, 1), (10, 1), (36, 1), (42, 1), (49, 1), (15, 1), (33, 1), (4, 1), (23, 1), (22, 1), (7, 1), (32, 1), (16, 1), (38, 1), (47, 1), (18, 1), (43, 1), (46, 1), (45, 1), (27, 1), (31, 1), (11, 1), (37, 1), (41, 1), (1, 1), (8, 1), (28, 1), (44, 1), (17, 1), (12, 1), (50, 1), (30, 1), (13, 1), (9, 1)], [])).

test(5, (50, 250, [<, >]), (45, 0, 1), ([4, 11, 50, 17, 23, 40, 3, 45, 5, 21, 46, 33, 35, 36, 10, 16, 25, 38, 6, 47, 7, 37, 19, 2, 32, 27, 34, 22, 9, 31, 44, 49, 42, 26, 39, 20, 29, 28, 48, 12, 41, 13, 15, 30, 24], [4>50, 4>5, 4>10, 4>37, 4>12, 4>24, 11>17, 11>23, 11>45, 11>24, 17>33, 17>35, 17>19, 17>49, 17>41, 23>40, 23>25, 23>37, 23>27, 23>49, 40>45, 40>48, 40>41, 3>4, 3>26, 45>49, 5>21, 5>35, 5>6, 5>49, 5>41, 21>40, 21>26, 21>48, 33>38, 33>39, 36>46, 10>16, 10>34, 10>44, 10>42, 10>48, 16>50, 16>37, 25>29, 25>28, 25>48, 6>32, 6>9, 6>49, 6>29, 6>28, 6>15, 6>24, 7>38, 7>32, 7>22, 37>45, 37>38, 37>44, 19>40, 19>32, 19>34, 19>49, 19>29, 2>23, 2>10, 2>42, 27>47, 27>31, 27>30, 34>50, 22>37, 9>31, 9>48, 31>45, 31>36, 31>44, 49>50, 26>44, 26>39, 26>30, 39>45, 39>44, 20>31, 20>29, 29>38, 29>34, 29>31, 28>34, 48>50, 12>37, 12>28, 12>13, 41>45, 41>49, 13>50, 13>33, 13>16, 13>20, 15>40, 15>25, 15>28, 15>24, 24>34], [], [ (4, 1), (11, 1), (50, 1), (17, 1), (23, 1), (40, 1), (3, 1), (45, 1), (5, 1), (21, 1), (46, 1), (33, 1), (35, 1), (36, 1), (10, 1), (16, 1), (25, 1), (38, 1), (6, 1), (47, 1), (7, 1), (37, 1), (19, 1), (2, 1), (32, 1), (27, 1), (34, 1), (22, 1), (9, 1), (31, 1), (44, 1), (49, 1), (42, 1), (26, 1), (39, 1), (20, 1), (29, 1), (28, 1), (48, 1), (12, 1), (41, 1), (13, 1), (15, 1), (30, 1), (24, 1)], [])).

test(6, (50, 250, [<, >]), (45, 0, 1), ([20, 14, 19, 5, 10, 41, 23, 33, 3, 37, 25, 46, 44, 30, 1, 11, 4, 9, 24, 16, 28, 49, 12, 26, 32, 42, 45, 38, 21, 7, 40, 47, 36, 17, 43, 2, 39, 13, 8, 18, 27, 35, 22, 6, 31], [20>38, 20>21, 20>47, 14>41, 14>33, 14>37, 14>49, 14>40, 14>18, 19>23, 19>32, 19>22, 5>46, 5>30, 5>49, 5>26, 5>47, 5>17, 5>35, 5>6, 10>11, 23>25, 23>24, 23>35, 33>41, 33>43, 3>19, 3>6, 37>41, 37>49, 25>47, 46>49, 44>46, 30>49, 1>19, 1>12, 11>16, 11>35, 4>19, 4>41, 4>35, 9>32, 9>35, 9>22, 16>19, 16>26, 16>32, 16>38, 28>33, 12>46, 12>30, 12>49, 12>18, 12>35, 42>45, 38>41, 21>28, 21>26, 21>47, 7>41, 7>37, 7>32, 7>17, 36>41, 36>43, 17>23, 17>30, 17>43, 17>22, 43>45, 2>9, 2>28, 2>32, 2>36, 13>25, 8>23, 8>11, 8>24, 8>42, 18>41, 18>30, 27>46, 27>44, 27>35, 35>46, 35>42, 35>45, 35>38, 22>33, 22>49, 22>39, 6>20, 6>33, 6>32, 6>40, 6>27, 31>47], [], [ (20, 1), (14, 1), (19, 1), (5, 1), (10, 1), (41, 1), (23, 1), (33, 1), (3, 1), (37, 1), (25, 1), (46, 1), (44, 1), (30, 1), (1, 1), (11, 1), (4, 1), (9, 1), (24, 1), (16, 1), (28, 1), (49, 1), (12, 1), (26, 1), (32, 1), (42, 1), (45, 1), (38, 1), (21, 1), (7, 1), (40, 1), (47, 1), (36, 1), (17, 1), (43, 1), (2, 1), (39, 1), (13, 1), (8, 1), (18, 1), (27, 1), (35, 1), (22, 1), (6, 1), (31, 1)], [])).

test(7, (50, 250, [<, >]), (45, 0, 1), ([14, 24, 26, 1, 38, 16, 32, 6, 48, 49, 7, 12, 5, 41, 20, 50, 13, 44, 37, 4, 18, 39, 15, 42, 47, 3, 29, 28, 35, 40, 23, 46, 25, 30, 21, 33, 27, 2, 34, 9, 31, 19, 43, 17, 8], [14>37, 24>32, 24>47, 24>28, 24>46, 24>30, 26>44, 1>6, 1>48, 1>18, 1>15, 38>49, 16>44, 16>18, 16>35, 16>40, 16>33, 16>34, 32>38, 32>43, 6>26, 6>16, 6>32, 6>12, 6>8, 49>50, 7>26, 7>20, 12>32, 12>42, 12>19, 5>32, 5>35, 5>21, 5>27, 5>19, 5>43, 41>42, 20>28, 20>46, 20>27, 20>31, 13>50, 13>21, 44>47, 4>24, 4>26, 18>42, 18>43, 39>50, 15>16, 15>39, 15>23, 15>19, 42>48, 42>46, 42>43, 3>42, 3>23, 3>17, 29>49, 28>44, 35>39, 40>47, 23>26, 23>38, 23>25, 46>48, 25>26, 25>29, 30>48, 30>47, 21>26, 33>50, 27>39, 27>30, 2>37, 2>4, 2>27, 34>38, 34>40, 9>17, 19>24, 19>26, 19>39, 19>47, 19>40, 19>43, 17>24, 17>32, 17>41, 17>25, 8>14, 8>32, 8>44, 8>34], [], [ (14, 1), (24, 1), (26, 1), (1, 1), (38, 1), (16, 1), (32, 1), (6, 1), (48, 1), (49, 1), (7, 1), (12, 1), (5, 1), (41, 1), (20, 1), (50, 1), (13, 1), (44, 1), (37, 1), (4, 1), (18, 1), (39, 1), (15, 1), (42, 1), (47, 1), (3, 1), (29, 1), (28, 1), (35, 1), (40, 1), (23, 1), (46, 1), (25, 1), (30, 1), (21, 1), (33, 1), (27, 1), (2, 1), (34, 1), (9, 1), (31, 1), (19, 1), (43, 1), (17, 1), (8, 1)], [])).

test(8, (50, 250, [<, >]), (45, 0, 1), ([26, 5, 25, 14, 28, 46, 7, 10, 29, 23, 22, 44, 24, 6, 49, 11, 20, 41, 31, 40, 15, 13, 45, 4, 50, 19, 37, 8, 48, 17, 43, 42, 35, 16, 33, 9, 32, 39, 27, 30, 47, 21, 1, 2, 18], [26>46, 26>45, 26>32, 5>46, 5>32, 25>49, 25>27, 14>28, 14>49, 14>48, 14>17, 14>39, 28>44, 28>45, 28>50, 28>30, 7>41, 7>37, 7>8, 7>17, 7>42, 7>32, 7>27, 7>30, 10>28, 10>46, 10>31, 10>45, 10>48, 10>43, 29>37, 29>30, 23>30, 22>35, 22>39, 44>46, 24>28, 6>26, 6>17, 6>43, 6>35, 11>15, 20>26, 20>49, 20>42, 31>40, 15>28, 15>20, 15>30, 13>47, 13>18, 45>46, 4>23, 4>31, 4>19, 4>17, 4>30, 4>47, 19>25, 19>44, 37>44, 37>43, 8>14, 8>46, 8>44, 8>37, 8>33, 8>32, 8>21, 17>29, 17>49, 43>49, 35>45, 35>50, 16>41, 16>19, 16>32, 33>49, 33>48, 33>43, 33>35, 33>47, 9>14, 9>24, 9>19, 9>16, 32>49, 39>44, 27>44, 27>45, 27>37, 27>48, 21>41, 21>31, 21>40, 21>27, 1>41, 1>43, 1>18, 2>5, 2>23, 2>49, 2>41, 2>31, 2>45, 2>4, 2>33, 18>29, 18>41, 18>37], [], [ (26, 1), (5, 1), (25, 1), (14, 1), (28, 1), (46, 1), (7, 1), (10, 1), (29, 1), (23, 1), (22, 1), (44, 1), (24, 1), (6, 1), (49, 1), (11, 1), (20, 1), (41, 1), (31, 1), (40, 1), (15, 1), (13, 1), (45, 1), (4, 1), (50, 1), (19, 1), (37, 1), (8, 1), (48, 1), (17, 1), (43, 1), (42, 1), (35, 1), (16, 1), (33, 1), (9, 1), (32, 1), (39, 1), (27, 1), (30, 1), (47, 1), (21, 1), (1, 1), (2, 1), (18, 1)], [])).

test(9, (50, 250, [<, >]), (45, 0, 1), ([11, 45, 18, 15, 27, 23, 46, 24, 2, 40, 8, 20, 35, 16, 41, 6, 21, 1, 25, 5, 32, 36, 29, 9, 34, 19, 4, 37, 17, 39, 22, 26, 38, 47, 49, 14, 3, 31, 33, 50, 28, 13, 30, 7, 43], [11>45, 11>27, 11>41, 11>36, 11>49, 11>31, 18>35, 18>21, 15>45, 15>20, 27>43, 23>32, 23>34, 23>26, 24>31, 2>17, 2>22, 2>31, 40>41, 8>23, 8>26, 20>23, 20>35, 20>41, 20>47, 20>30, 16>45, 16>24, 16>40, 16>36, 16>34, 16>37, 6>24, 6>40, 6>35, 6>16, 6>32, 6>29, 6>7, 21>23, 21>35, 21>36, 21>43, 1>45, 1>2, 1>8, 1>25, 1>29, 1>34, 1>37, 1>22, 1>38, 25>39, 5>23, 5>8, 5>22, 5>31, 32>34, 32>39, 32>49, 29>38, 29>33, 9>24, 9>36, 9>49, 9>43, 34>40, 34>47, 34>43, 19>45, 19>32, 4>46, 4>21, 4>36, 4>17, 4>22, 37>38, 17>22, 17>30, 39>41, 39>43, 22>41, 22>34, 22>38, 26>31, 14>46, 14>37, 14>17, 3>4, 3>28, 3>7, 31>45, 31>41, 33>45, 33>36, 33>50, 33>43, 28>46, 13>25, 13>30, 30>35, 30>41, 7>23, 7>8, 7>32, 7>29, 7>47], [], [ (11, 1), (45, 1), (18, 1), (15, 1), (27, 1), (23, 1), (46, 1), (24, 1), (2, 1), (40, 1), (8, 1), (20, 1), (35, 1), (16, 1), (41, 1), (6, 1), (21, 1), (1, 1), (25, 1), (5, 1), (32, 1), (36, 1), (29, 1), (9, 1), (34, 1), (19, 1), (4, 1), (37, 1), (17, 1), (39, 1), (22, 1), (26, 1), (38, 1), (47, 1), (49, 1), (14, 1), (3, 1), (31, 1), (33, 1), (50, 1), (28, 1), (13, 1), (30, 1), (7, 1), (43, 1)], [])).

test(10, (50, 250, [<, >]), (45, 0, 1), ([8, 35, 44, 38, 3, 20, 28, 11, 19, 41, 27, 1, 16, 2, 31, 29, 45, 14, 4, 22, 49, 37, 39, 34, 9, 46, 32, 36, 5, 40, 25, 42, 48, 30, 47, 10, 12, 7, 23, 50, 43, 17, 13, 21, 33], [8>42, 8>21, 35>39, 35>46, 35>48, 44>46, 3>29, 3>9, 3>36, 3>47, 20>28, 20>37, 20>42, 20>33, 28>35, 28>31, 28>45, 28>46, 11>38, 11>34, 11>50, 11>13, 19>49, 19>39, 19>32, 19>48, 19>43, 41>43, 27>36, 27>30, 1>32, 1>5, 16>20, 16>29, 16>22, 16>46, 16>50, 16>43, 2>39, 2>9, 2>48, 2>23, 31>44, 31>47, 29>38, 29>40, 29>42, 14>48, 14>23, 14>17, 14>21, 4>48, 4>30, 4>47, 4>12, 4>17, 22>49, 37>38, 37>49, 34>45, 34>36, 34>40, 9>16, 9>34, 9>46, 9>32, 9>30, 5>20, 5>22, 5>36, 5>12, 40>44, 40>45, 40>49, 25>45, 25>34, 25>46, 25>48, 42>48, 48>49, 30>41, 10>45, 10>32, 10>42, 12>39, 12>42, 7>35, 7>44, 7>28, 7>31, 7>12, 7>50, 23>49, 23>37, 23>39, 23>32, 17>22, 13>28, 13>23, 13>17, 21>39, 21>32, 21>48, 21>33, 33>46], [], [ (8, 1), (35, 1), (44, 1), (38, 1), (3, 1), (20, 1), (28, 1), (11, 1), (19, 1), (41, 1), (27, 1), (1, 1), (16, 1), (2, 1), (31, 1), (29, 1), (45, 1), (14, 1), (4, 1), (22, 1), (49, 1), (37, 1), (39, 1), (34, 1), (9, 1), (46, 1), (32, 1), (36, 1), (5, 1), (40, 1), (25, 1), (42, 1), (48, 1), (30, 1), (47, 1), (10, 1), (12, 1), (7, 1), (23, 1), (50, 1), (43, 1), (17, 1), (13, 1), (21, 1), (33, 1)], [])).

%% 50, 250, [<, >]
%% 50, 0, 1

test(1, (50, 250, [<, >]), (50, 0, 1), ([34, 30, 31, 9, 47, 15, 11, 50, 25, 37, 26, 4, 49, 14, 29, 23, 17, 36, 22, 3, 28, 7, 46, 20, 39, 2, 8, 44, 27, 24, 5, 38, 19, 13, 43, 41, 33, 16, 42, 45, 32, 10, 21, 18, 48, 40, 12, 1, 35, 6], [34>49, 30>43, 30>33, 30>45, 31>45, 9>31, 9>28, 9>16, 15>36, 15>41, 15>45, 11>34, 11>16, 25>46, 25>48, 37>38, 4>30, 4>11, 4>29, 4>17, 4>36, 4>32, 4>48, 4>6, 14>34, 14>25, 14>44, 14>16, 29>36, 29>45, 23>37, 23>46, 23>42, 17>29, 17>28, 17>41, 17>32, 17>18, 22>31, 22>25, 22>48, 22>40, 3>14, 3>41, 3>40, 28>46, 28>38, 7>11, 7>29, 7>46, 7>24, 7>33, 7>21, 7>40, 20>47, 39>49, 39>44, 2>4, 2>46, 2>48, 8>37, 8>29, 8>44, 8>16, 44>50, 27>28, 24>34, 24>41, 5>8, 5>44, 38>46, 13>14, 13>16, 43>49, 43>48, 41>50, 41>42, 16>50, 16>17, 16>20, 16>21, 45>46, 32>48, 32>35, 10>46, 10>20, 10>19, 10>18, 21>31, 21>29, 21>28, 21>44, 21>45, 21>35, 18>47, 18>39, 18>21, 40>49, 40>44, 12>47, 12>28, 12>19, 12>13, 1>31, 1>49, 1>46, 1>39, 1>8, 1>32, 35>36, 35>43, 6>11, 6>49, 6>28, 6>21, 6>18], [], [ (34, 1), (30, 1), (31, 1), (9, 1), (47, 1), (15, 1), (11, 1), (50, 1), (25, 1), (37, 1), (26, 1), (4, 1), (49, 1), (14, 1), (29, 1), (23, 1), (17, 1), (36, 1), (22, 1), (3, 1), (28, 1), (7, 1), (46, 1), (20, 1), (39, 1), (2, 1), (8, 1), (44, 1), (27, 1), (24, 1), (5, 1), (38, 1), (19, 1), (13, 1), (43, 1), (41, 1), (33, 1), (16, 1), (42, 1), (45, 1), (32, 1), (10, 1), (21, 1), (18, 1), (48, 1), (40, 1), (12, 1), (1, 1), (35, 1), (6, 1)], [])).

test(2, (50, 250, [<, >]), (50, 0, 1), ([30, 9, 42, 12, 40, 43, 7, 5, 3, 1, 48, 39, 45, 35, 26, 19, 13, 46, 29, 28, 21, 38, 49, 32, 14, 11, 36, 6, 47, 16, 17, 2, 15, 24, 18, 33, 4, 22, 23, 10, 50, 20, 31, 25, 8, 37, 44, 27, 41, 34], [30>46, 30>49, 9>48, 9>37, 42>45, 42>49, 42>47, 12>35, 12>26, 12>38, 12>16, 12>15, 12>18, 12>37, 43>49, 43>44, 7>12, 7>26, 7>31, 7>44, 5>39, 5>26, 5>13, 5>23, 5>50, 5>41, 3>30, 3>5, 3>49, 3>18, 1>39, 1>49, 1>14, 1>31, 1>8, 39>42, 39>41, 35>40, 26>41, 19>42, 19>43, 19>46, 19>47, 19>25, 13>21, 13>32, 13>15, 13>34, 29>46, 29>32, 28>37, 21>42, 21>45, 21>31, 21>25, 38>47, 32>38, 14>43, 14>48, 14>28, 14>32, 14>17, 14>20, 11>39, 11>33, 11>44, 11>34, 36>42, 36>44, 6>9, 6>7, 6>18, 6>22, 47>50, 16>21, 16>47, 16>24, 16>44, 17>19, 17>29, 17>44, 2>40, 2>43, 2>38, 2>14, 2>47, 2>24, 15>45, 15>29, 15>31, 15>27, 24>39, 24>47, 24>37, 18>25, 4>7, 4>45, 4>13, 4>50, 22>47, 22>24, 22>34, 23>42, 23>45, 23>24, 10>17, 10>31, 10>37, 20>26, 20>46, 20>38, 20>49, 20>27, 31>50, 25>42, 25>26, 8>16, 8>33, 8>50, 8>31, 37>40, 37>45, 37>50, 44>47, 27>28, 41>48], [], [ (30, 1), (9, 1), (42, 1), (12, 1), (40, 1), (43, 1), (7, 1), (5, 1), (3, 1), (1, 1), (48, 1), (39, 1), (45, 1), (35, 1), (26, 1), (19, 1), (13, 1), (46, 1), (29, 1), (28, 1), (21, 1), (38, 1), (49, 1), (32, 1), (14, 1), (11, 1), (36, 1), (6, 1), (47, 1), (16, 1), (17, 1), (2, 1), (15, 1), (24, 1), (18, 1), (33, 1), (4, 1), (22, 1), (23, 1), (10, 1), (50, 1), (20, 1), (31, 1), (25, 1), (8, 1), (37, 1), (44, 1), (27, 1), (41, 1), (34, 1)], [])).

test(3, (50, 250, [<, >]), (50, 0, 1), ([44, 45, 11, 20, 19, 47, 12, 17, 7, 9, 36, 50, 6, 38, 3, 24, 37, 25, 15, 35, 8, 21, 5, 13, 46, 41, 1, 4, 27, 14, 40, 22, 29, 10, 43, 23, 42, 30, 32, 34, 31, 16, 48, 33, 39, 28, 2, 49, 18, 26], [44>50, 11>38, 11>15, 11>21, 11>46, 11>29, 11>43, 11>23, 11>42, 11>33, 11>39, 20>40, 20>30, 19>43, 47>50, 12>15, 12>29, 12>32, 12>33, 17>29, 17>23, 17>42, 17>32, 7>50, 7>24, 7>34, 7>26, 9>25, 9>26, 36>50, 36>48, 6>44, 6>11, 6>20, 6>38, 6>49, 38>47, 3>37, 3>4, 3>29, 3>23, 3>31, 24>25, 37>48, 25>38, 25>43, 25>42, 25>31, 25>49, 15>38, 15>37, 15>26, 35>36, 35>46, 8>20, 8>25, 8>10, 21>45, 21>36, 21>33, 5>44, 5>25, 5>35, 5>40, 13>50, 13>15, 13>21, 13>27, 13>32, 41>47, 1>12, 1>15, 1>22, 1>28, 1>26, 4>47, 4>7, 4>35, 4>5, 4>29, 4>16, 4>39, 27>50, 27>35, 27>41, 27>34, 14>47, 14>50, 14>15, 14>16, 22>38, 22>32, 22>39, 29>50, 29>38, 29>48, 10>11, 10>47, 10>23, 10>39, 43>46, 23>44, 23>47, 23>34, 42>43, 30>49, 34>47, 31>37, 16>24, 16>25, 16>46, 16>30, 48>49, 33>37, 39>47, 39>42, 28>30, 28>34, 2>36, 2>50, 2>5, 2>10, 2>23, 18>23, 18>49, 26>34], [], [ (44, 1), (45, 1), (11, 1), (20, 1), (19, 1), (47, 1), (12, 1), (17, 1), (7, 1), (9, 1), (36, 1), (50, 1), (6, 1), (38, 1), (3, 1), (24, 1), (37, 1), (25, 1), (15, 1), (35, 1), (8, 1), (21, 1), (5, 1), (13, 1), (46, 1), (41, 1), (1, 1), (4, 1), (27, 1), (14, 1), (40, 1), (22, 1), (29, 1), (10, 1), (43, 1), (23, 1), (42, 1), (30, 1), (32, 1), (34, 1), (31, 1), (16, 1), (48, 1), (33, 1), (39, 1), (28, 1), (2, 1), (49, 1), (18, 1), (26, 1)], [])).

test(4, (50, 250, [<, >]), (50, 0, 1), ([35, 15, 38, 4, 11, 17, 19, 12, 37, 3, 50, 1, 14, 34, 22, 36, 26, 9, 45, 47, 40, 29, 13, 32, 2, 31, 48, 24, 27, 18, 44, 5, 23, 10, 39, 33, 25, 6, 20, 42, 21, 8, 49, 41, 7, 16, 46, 43, 30, 28], [35>45, 35>40, 35>44, 15>31, 15>27, 15>23, 15>33, 4>15, 4>11, 4>37, 4>14, 4>47, 4>29, 4>21, 4>7, 11>37, 11>39, 11>46, 11>43, 17>32, 17>44, 17>39, 19>22, 19>28, 12>47, 12>41, 12>30, 3>36, 3>9, 3>46, 1>2, 1>6, 1>41, 14>34, 14>47, 14>29, 14>25, 34>49, 22>24, 22>44, 26>37, 9>14, 9>22, 9>32, 9>18, 9>41, 40>46, 29>32, 13>50, 13>14, 13>20, 32>35, 32>44, 2>17, 2>3, 2>26, 2>44, 2>33, 2>6, 31>33, 24>38, 24>32, 24>42, 27>37, 18>35, 18>38, 18>39, 44>49, 5>12, 5>31, 5>23, 5>33, 5>30, 23>50, 23>39, 10>14, 10>48, 10>21, 39>50, 39>43, 33>39, 25>45, 25>40, 25>31, 6>12, 6>9, 6>27, 6>49, 20>32, 20>27, 20>39, 20>49, 20>41, 42>44, 42>49, 42>46, 21>36, 21>29, 21>49, 21>46, 21>28, 8>17, 8>44, 41>42, 7>38, 7>50, 7>45, 7>10, 7>25, 7>49, 7>16, 7>46, 7>28, 16>21, 46>49, 30>45, 30>47, 30>33, 28>34, 28>47], [], [ (35, 1), (15, 1), (38, 1), (4, 1), (11, 1), (17, 1), (19, 1), (12, 1), (37, 1), (3, 1), (50, 1), (1, 1), (14, 1), (34, 1), (22, 1), (36, 1), (26, 1), (9, 1), (45, 1), (47, 1), (40, 1), (29, 1), (13, 1), (32, 1), (2, 1), (31, 1), (48, 1), (24, 1), (27, 1), (18, 1), (44, 1), (5, 1), (23, 1), (10, 1), (39, 1), (33, 1), (25, 1), (6, 1), (20, 1), (42, 1), (21, 1), (8, 1), (49, 1), (41, 1), (7, 1), (16, 1), (46, 1), (43, 1), (30, 1), (28, 1)], [])).

test(5, (50, 250, [<, >]), (50, 0, 1), ([42, 20, 29, 22, 47, 30, 3, 17, 14, 37, 16, 7, 31, 45, 5, 9, 24, 10, 34, 25, 2, 15, 13, 33, 1, 43, 39, 48, 8, 28, 11, 18, 49, 38, 6, 46, 4, 50, 27, 35, 40, 21, 44, 26, 19, 36, 12, 23, 41, 32], [20>47, 20>27, 29>45, 29>34, 29>33, 29>43, 29>32, 22>42, 22>33, 22>28, 22>36, 47>49, 30>50, 3>17, 3>31, 3>10, 3>25, 3>15, 3>13, 3>6, 3>4, 3>26, 17>29, 17>22, 17>37, 17>39, 17>26, 14>17, 14>45, 14>48, 14>44, 14>26, 16>30, 16>28, 16>38, 16>36, 7>47, 7>9, 7>10, 7>34, 7>15, 7>18, 7>27, 31>49, 31>35, 31>44, 5>17, 5>14, 5>10, 5>35, 9>24, 9>34, 9>39, 24>44, 10>24, 10>28, 10>26, 34>45, 34>48, 34>41, 2>5, 2>15, 2>4, 2>21, 2>12, 2>41, 15>42, 15>50, 15>27, 15>19, 13>39, 13>27, 13>35, 33>43, 33>44, 1>14, 1>10, 1>2, 1>11, 43>45, 43>46, 39>45, 39>48, 39>46, 48>49, 8>42, 8>30, 8>15, 8>12, 28>43, 28>50, 11>37, 11>24, 11>49, 11>35, 11>36, 18>43, 18>39, 6>14, 6>16, 6>23, 4>16, 4>26, 4>32, 27>38, 35>37, 35>49, 35>40, 21>27, 21>44, 44>47, 26>37, 26>34, 26>49, 19>25, 19>43, 19>27, 19>44, 36>42, 36>40, 12>29, 12>24, 12>28, 23>42, 23>27, 23>26, 23>32, 32>42, 32>43], [], [ (42, 1), (20, 1), (29, 1), (22, 1), (47, 1), (30, 1), (3, 1), (17, 1), (14, 1), (37, 1), (16, 1), (7, 1), (31, 1), (45, 1), (5, 1), (9, 1), (24, 1), (10, 1), (34, 1), (25, 1), (2, 1), (15, 1), (13, 1), (33, 1), (1, 1), (43, 1), (39, 1), (48, 1), (8, 1), (28, 1), (11, 1), (18, 1), (49, 1), (38, 1), (6, 1), (46, 1), (4, 1), (50, 1), (27, 1), (35, 1), (40, 1), (21, 1), (44, 1), (26, 1), (19, 1), (36, 1), (12, 1), (23, 1), (41, 1), (32, 1)], [])).

test(6, (50, 250, [<, >]), (50, 0, 1), ([47, 9, 44, 11, 50, 2, 38, 49, 40, 17, 13, 15, 19, 48, 28, 24, 25, 27, 1, 30, 6, 7, 34, 16, 45, 23, 5, 14, 46, 39, 37, 32, 10, 35, 3, 36, 4, 18, 33, 20, 42, 8, 26, 41, 29, 21, 22, 31, 43, 12], [9>49, 9>17, 9>19, 9>28, 9>30, 9>14, 9>10, 9>20, 11>13, 11>19, 11>24, 11>42, 11>12, 2>47, 2>24, 2>12, 38>39, 40>47, 40>49, 40>46, 17>45, 17>26, 13>25, 13>37, 13>33, 13>29, 13>22, 13>31, 15>45, 15>20, 19>38, 19>25, 19>21, 28>46, 24>40, 24>48, 24>28, 24>46, 24>41, 25>40, 25>41, 25>43, 27>40, 27>32, 27>29, 1>49, 1>37, 1>42, 30>34, 30>45, 6>20, 6>43, 7>47, 7>11, 7>49, 7>19, 7>22, 34>35, 16>34, 16>37, 16>32, 16>20, 16>31, 45>49, 23>45, 23>39, 23>36, 23>33, 5>9, 5>50, 5>40, 5>36, 5>12, 39>44, 39>41, 32>50, 10>50, 10>40, 10>13, 10>48, 3>50, 3>7, 3>14, 3>18, 3>22, 36>40, 36>48, 4>40, 4>17, 18>48, 18>23, 18>46, 18>37, 18>42, 18>26, 18>41, 33>40, 20>47, 20>36, 20>41, 42>47, 42>45, 8>13, 8>34, 8>10, 8>18, 8>12, 26>28, 26>39, 26>37, 26>32, 26>33, 29>38, 29>31, 29>43, 21>47, 21>45, 22>28, 22>46, 22>32, 31>42, 12>48, 12>29, 12>43], [], [ (47, 1), (9, 1), (44, 1), (11, 1), (50, 1), (2, 1), (38, 1), (49, 1), (40, 1), (17, 1), (13, 1), (15, 1), (19, 1), (48, 1), (28, 1), (24, 1), (25, 1), (27, 1), (1, 1), (30, 1), (6, 1), (7, 1), (34, 1), (16, 1), (45, 1), (23, 1), (5, 1), (14, 1), (46, 1), (39, 1), (37, 1), (32, 1), (10, 1), (35, 1), (3, 1), (36, 1), (4, 1), (18, 1), (33, 1), (20, 1), (42, 1), (8, 1), (26, 1), (41, 1), (29, 1), (21, 1), (22, 1), (31, 1), (43, 1), (12, 1)], [])).

test(7, (50, 250, [<, >]), (50, 0, 1), ([15, 34, 27, 22, 10, 12, 16, 41, 46, 13, 5, 45, 44, 24, 49, 20, 32, 21, 36, 8, 26, 19, 28, 43, 25, 37, 14, 6, 35, 2, 9, 11, 4, 40, 39, 48, 3, 1, 7, 42, 30, 17, 18, 50, 38, 47, 33, 31, 23, 29], [15>34, 15>49, 15>20, 15>26, 15>43, 15>37, 15>35, 15>50, 15>47, 34>41, 34>39, 27>49, 27>28, 27>42, 27>38, 22>27, 22>41, 22>32, 22>26, 22>48, 22>29, 10>34, 10>41, 10>26, 10>43, 10>42, 10>38, 12>34, 12>46, 12>20, 12>19, 16>22, 16>20, 16>40, 16>18, 41>44, 13>16, 13>45, 13>42, 13>18, 5>27, 5>45, 5>43, 5>25, 44>45, 24>43, 24>35, 20>32, 20>21, 20>33, 32>34, 21>24, 21>43, 21>25, 21>48, 21>29, 8>13, 8>44, 8>49, 26>49, 26>36, 26>43, 26>47, 19>37, 19>35, 28>46, 28>49, 28>31, 43>45, 14>17, 6>15, 6>8, 6>26, 6>39, 6>50, 35>50, 2>34, 2>10, 2>36, 2>30, 2>47, 9>12, 9>11, 9>39, 9>48, 9>30, 9>18, 9>50, 11>41, 11>19, 11>17, 4>24, 4>42, 4>18, 4>47, 39>49, 39>40, 39>42, 48>49, 3>41, 3>44, 3>32, 3>19, 3>42, 3>50, 3>38, 1>12, 1>49, 1>9, 1>18, 7>34, 7>22, 7>39, 7>30, 42>46, 30>34, 30>35, 30>48, 30>33, 17>34, 17>47, 17>23, 18>27, 18>37, 38>45, 38>50, 47>48, 33>34, 31>36, 31>39, 23>27, 23>36, 23>29, 29>43], [], [ (15, 1), (34, 1), (27, 1), (22, 1), (10, 1), (12, 1), (16, 1), (41, 1), (46, 1), (13, 1), (5, 1), (45, 1), (44, 1), (24, 1), (49, 1), (20, 1), (32, 1), (21, 1), (36, 1), (8, 1), (26, 1), (19, 1), (28, 1), (43, 1), (25, 1), (37, 1), (14, 1), (6, 1), (35, 1), (2, 1), (9, 1), (11, 1), (4, 1), (40, 1), (39, 1), (48, 1), (3, 1), (1, 1), (7, 1), (42, 1), (30, 1), (17, 1), (18, 1), (50, 1), (38, 1), (47, 1), (33, 1), (31, 1), (23, 1), (29, 1)], [])).

test(8, (50, 250, [<, >]), (50, 0, 1), ([34, 32, 17, 15, 19, 41, 39, 10, 28, 14, 1, 3, 26, 31, 12, 35, 30, 16, 23, 11, 45, 27, 43, 33, 49, 46, 47, 20, 44, 48, 40, 21, 8, 5, 25, 38, 42, 9, 6, 36, 18, 22, 29, 7, 2, 24, 37, 4, 13, 50], [34>50, 32>50, 15>28, 15>48, 15>42, 15>18, 19>27, 19>25, 19>37, 41>48, 10>39, 10>48, 10>21, 10>18, 10>29, 28>45, 28>46, 28>47, 28>50, 14>50, 1>39, 1>35, 1>40, 1>6, 1>13, 3>10, 3>12, 3>9, 3>29, 3>50, 26>30, 26>36, 31>43, 31>37, 12>28, 12>26, 12>46, 35>36, 30>39, 30>49, 30>38, 16>17, 16>19, 16>20, 16>38, 16>24, 16>37, 23>39, 23>26, 23>47, 23>40, 23>25, 23>50, 11>34, 11>17, 11>23, 11>22, 45>46, 45>47, 27>45, 27>37, 43>47, 33>49, 47>50, 20>39, 20>50, 40>46, 40>50, 21>43, 8>11, 8>37, 5>23, 5>11, 25>30, 25>45, 25>40, 38>47, 42>44, 9>23, 9>45, 9>46, 9>44, 9>48, 9>40, 6>15, 6>47, 6>44, 6>21, 6>38, 6>24, 6>13, 36>43, 36>37, 18>35, 18>49, 29>46, 29>48, 7>17, 7>39, 7>16, 7>25, 2>22, 24>35, 24>38, 24>29, 37>38, 4>26, 4>31, 4>45, 4>27, 4>43, 13>16, 13>21, 13>22], [], [ (34, 1), (32, 1), (17, 1), (15, 1), (19, 1), (41, 1), (39, 1), (10, 1), (28, 1), (14, 1), (1, 1), (3, 1), (26, 1), (31, 1), (12, 1), (35, 1), (30, 1), (16, 1), (23, 1), (11, 1), (45, 1), (27, 1), (43, 1), (33, 1), (49, 1), (46, 1), (47, 1), (20, 1), (44, 1), (48, 1), (40, 1), (21, 1), (8, 1), (5, 1), (25, 1), (38, 1), (42, 1), (9, 1), (6, 1), (36, 1), (18, 1), (22, 1), (29, 1), (7, 1), (2, 1), (24, 1), (37, 1), (4, 1), (13, 1), (50, 1)], [])).

test(9, (50, 250, [<, >]), (50, 0, 1), ([30, 32, 49, 26, 3, 10, 20, 29, 44, 34, 39, 16, 47, 21, 25, 43, 7, 41, 17, 9, 50, 31, 27, 6, 2, 13, 22, 14, 1, 12, 19, 40, 35, 28, 42, 36, 46, 8, 5, 15, 45, 33, 38, 11, 18, 4, 37, 23, 24, 48], [30>35, 30>46, 30>33, 32>50, 26>36, 26>46, 3>29, 3>7, 3>27, 3>36, 3>37, 10>34, 10>47, 10>41, 10>12, 10>35, 10>42, 20>49, 20>26, 20>25, 29>49, 34>36, 16>47, 16>25, 16>50, 16>33, 21>32, 21>29, 21>27, 21>23, 43>44, 7>36, 7>8, 7>45, 7>11, 7>48, 41>47, 41>43, 17>30, 17>34, 17>35, 17>38, 9>30, 9>32, 9>19, 9>37, 9>24, 9>48, 31>34, 31>40, 27>45, 6>25, 6>8, 6>18, 6>24, 2>16, 2>43, 2>12, 2>15, 13>34, 13>33, 14>27, 14>28, 14>15, 14>18, 1>30, 1>29, 1>16, 1>21, 1>43, 1>12, 1>40, 1>36, 1>33, 12>32, 12>26, 12>17, 12>40, 12>42, 12>36, 19>44, 19>27, 19>33, 40>45, 35>45, 35>38, 28>29, 28>41, 28>50, 28>40, 28>36, 28>45, 36>50, 8>10, 8>20, 8>14, 8>18, 8>48, 5>32, 5>10, 5>44, 5>39, 5>31, 5>27, 15>39, 15>47, 15>22, 33>38, 38>39, 38>40, 11>39, 11>41, 11>50, 11>46, 11>38, 11>37, 18>31, 18>40, 18>42, 4>21, 4>41, 4>19, 23>35, 24>34, 24>41, 24>27, 24>40, 24>46], [], [ (30, 1), (32, 1), (49, 1), (26, 1), (3, 1), (10, 1), (20, 1), (29, 1), (44, 1), (34, 1), (39, 1), (16, 1), (47, 1), (21, 1), (25, 1), (43, 1), (7, 1), (41, 1), (17, 1), (9, 1), (50, 1), (31, 1), (27, 1), (6, 1), (2, 1), (13, 1), (22, 1), (14, 1), (1, 1), (12, 1), (19, 1), (40, 1), (35, 1), (28, 1), (42, 1), (36, 1), (46, 1), (8, 1), (5, 1), (15, 1), (45, 1), (33, 1), (38, 1), (11, 1), (18, 1), (4, 1), (37, 1), (23, 1), (24, 1), (48, 1)], [])).

test(10, (50, 250, [<, >]), (50, 0, 1), ([39, 32, 36, 46, 30, 38, 25, 49, 17, 28, 31, 21, 40, 15, 18, 13, 50, 6, 42, 48, 9, 10, 16, 24, 23, 19, 11, 33, 7, 5, 29, 14, 1, 12, 37, 44, 45, 22, 47, 26, 35, 34, 2, 8, 20, 27, 41, 43, 3, 4], [39>42, 32>50, 32>43, 36>38, 36>44, 36>43, 30>39, 30>50, 30>42, 30>47, 30>43, 25>38, 25>29, 25>35, 17>48, 17>23, 17>19, 17>22, 17>27, 17>41, 28>36, 28>49, 28>40, 21>45, 21>35, 40>46, 40>42, 15>30, 15>34, 18>31, 13>26, 6>46, 6>38, 6>21, 6>50, 6>9, 6>11, 6>44, 6>34, 42>48, 9>38, 9>28, 9>10, 10>39, 10>40, 10>15, 10>16, 10>24, 10>44, 10>20, 16>40, 16>26, 23>32, 23>31, 23>29, 23>47, 19>31, 11>15, 11>37, 11>22, 11>20, 11>27, 11>43, 7>28, 7>15, 7>48, 5>17, 5>18, 5>6, 5>8, 29>32, 29>36, 29>30, 29>38, 29>37, 29>47, 29>41, 14>16, 14>27, 1>16, 1>2, 12>25, 12>22, 12>35, 12>43, 37>44, 44>48, 45>46, 22>40, 26>46, 26>29, 26>37, 26>35, 34>40, 34>50, 34>43, 2>21, 2>24, 2>23, 2>33, 2>7, 2>5, 2>12, 2>35, 8>30, 8>9, 8>24, 8>29, 8>26, 20>30, 20>49, 20>40, 20>33, 20>29, 27>49, 41>43, 3>46, 3>17, 3>31, 3>21, 3>48, 3>19, 3>11, 3>29, 3>45, 4>42], [], [ (39, 1), (32, 1), (36, 1), (46, 1), (30, 1), (38, 1), (25, 1), (49, 1), (17, 1), (28, 1), (31, 1), (21, 1), (40, 1), (15, 1), (18, 1), (13, 1), (50, 1), (6, 1), (42, 1), (48, 1), (9, 1), (10, 1), (16, 1), (24, 1), (23, 1), (19, 1), (11, 1), (33, 1), (7, 1), (5, 1), (29, 1), (14, 1), (1, 1), (12, 1), (37, 1), (44, 1), (45, 1), (22, 1), (47, 1), (26, 1), (35, 1), (34, 1), (2, 1), (8, 1), (20, 1), (27, 1), (41, 1), (43, 1), (3, 1), (4, 1)], [])).

%% 50, 250, [<, >]
%% 5, 5, 1

test(1, (50, 250, [<, >]), (5, 5, 1), ([45, 41, 36, 21, 8], [36>45, 21>41], [45<36, 41>8, 45>41, 36>21, 45<8], [ (45, 1), (41, 1), (36, 1), (21, 1), (8, 1)], [ (45<36, 1), (41>8, 1), (45>41, 1), (36>21, 1), (45<8, 1)])).

test(2, (50, 250, [<, >]), (5, 5, 1), ([27, 41, 40, 4, 25], [27>40], [27<4, 41<40, 41<4, 27<25, 27<41], [ (27, 1), (41, 1), (40, 1), (4, 1), (25, 1)], [ (27<4, 1), (41<40, 1), (41<4, 1), (27<25, 1), (27<41, 1)])).

test(3, (50, 250, [<, >]), (5, 5, 1), ([18, 46, 22, 9, 16], [18>46], [22>16, 18>16, 46<22, 18<9, 22>9], [ (18, 1), (46, 1), (22, 1), (9, 1), (16, 1)], [ (22>16, 1), (18>16, 1), (46<22, 1), (18<9, 1), (22>9, 1)])).

test(4, (50, 250, [<, >]), (5, 5, 1), ([12, 42, 48, 4, 10], [], [12>48, 48>10, 42>4, 42<48, 12>4], [ (12, 1), (42, 1), (48, 1), (4, 1), (10, 1)], [ (12>48, 1), (48>10, 1), (42>4, 1), (42<48, 1), (12>4, 1)])).

test(5, (50, 250, [<, >]), (5, 5, 1), ([34, 49, 42, 20, 13], [20>49, 13>34], [34<42, 49<20, 42>13, 34<20, 42<20], [ (34, 1), (49, 1), (42, 1), (20, 1), (13, 1)], [ (34<42, 1), (49<20, 1), (42>13, 1), (34<20, 1), (42<20, 1)])).

test(6, (50, 250, [<, >]), (5, 5, 1), ([2, 11, 38, 19, 6], [2>11, 6>19], [11>38, 11>19, 38>19, 2>38, 2<6], [ (2, 1), (11, 1), (38, 1), (19, 1), (6, 1)], [ (11>38, 1), (11>19, 1), (38>19, 1), (2>38, 1), (2<6, 1)])).

test(7, (50, 250, [<, >]), (5, 5, 1), ([10, 26, 45, 44, 46], [10>26], [26>44, 10>26, 45>46, 26>45, 10<46], [ (10, 1), (26, 1), (45, 1), (44, 1), (46, 1)], [ (26>44, 1), (10>26, 1), (45>46, 1), (26>45, 1), (10<46, 1)])).

test(8, (50, 250, [<, >]), (5, 5, 1), ([4, 17, 21, 19, 26], [4>21], [19>26, 4>19, 21>19, 4<17, 17<19], [ (4, 1), (17, 1), (21, 1), (19, 1), (26, 1)], [ (19>26, 1), (4>19, 1), (21>19, 1), (4<17, 1), (17<19, 1)])).

test(9, (50, 250, [<, >]), (5, 5, 1), ([20, 17, 49, 37, 9], [9>49], [17<9, 20>37, 17>37, 20>17, 37<9], [ (20, 1), (17, 1), (49, 1), (37, 1), (9, 1)], [ (17<9, 1), (20>37, 1), (17>37, 1), (20>17, 1), (37<9, 1)])).

test(10, (50, 250, [<, >]), (5, 5, 1), ([43, 25, 42, 26, 7], [], [42<7, 25>26, 25>42, 43>25, 43>7], [ (43, 1), (25, 1), (42, 1), (26, 1), (7, 1)], [ (42<7, 1), (25>26, 1), (25>42, 1), (43>25, 1), (43>7, 1)])).

%% 50, 250, [<, >]
%% 10, 10, 1

test(1, (50, 250, [<, >]), (10, 10, 1), ([41, 36, 5, 49, 14, 22, 15, 12, 3, 26], [36>41, 5>14, 5>26, 14>49, 3>12, 3>26], [36>5, 36>14, 14>12, 41>12, 15>26, 14>3, 49>14, 5>15, 5>26, 36>3], [ (41, 1), (36, 1), (5, 1), (49, 1), (14, 1), (22, 1), (15, 1), (12, 1), (3, 1), (26, 1)], [ (36>5, 1), (36>14, 1), (14>12, 1), (41>12, 1), (15>26, 1), (14>3, 1), (49>14, 1), (5>15, 1), (5>26, 1), (36>3, 1)])).

test(2, (50, 250, [<, >]), (10, 10, 1), ([34, 43, 28, 13, 22, 31, 50, 36, 38, 39], [34>38, 22>34, 22>36, 31>36, 36>39, 38>43], [28<38, 13<39, 31<50, 31>36, 34>22, 43<22, 34<31, 13>22, 34>39, 22<50], [ (34, 1), (43, 1), (28, 1), (13, 1), (22, 1), (31, 1), (50, 1), (36, 1), (38, 1), (39, 1)], [ (28<38, 1), (13<39, 1), (31<50, 1), (31>36, 1), (34>22, 1), (43<22, 1), (34<31, 1), (13>22, 1), (34>39, 1), (22<50, 1)])).

test(3, (50, 250, [<, >]), (10, 10, 1), ([11, 15, 19, 10, 39, 32, 23, 29, 5, 45], [11>39, 11>23, 19>23, 5>11], [11<10, 15>19, 10<23, 11<15, 19<32, 19<39, 39<29, 29<45, 39>32, 10>5], [ (11, 1), (15, 1), (19, 1), (10, 1), (39, 1), (32, 1), (23, 1), (29, 1), (5, 1), (45, 1)], [ (11<10, 1), (15>19, 1), (10<23, 1), (11<15, 1), (19<32, 1), (19<39, 1), (39<29, 1), (29<45, 1), (39>32, 1), (10>5, 1)])).

test(4, (50, 250, [<, >]), (10, 10, 1), ([24, 11, 39, 35, 6, 22, 50, 45, 42, 26], [24>39, 24>35, 24>26, 6>22], [50>45, 11>45, 6<45, 22>26, 24<42, 50<42, 22<45, 6>50, 39<22, 22<42], [ (24, 1), (11, 1), (39, 1), (35, 1), (6, 1), (22, 1), (50, 1), (45, 1), (42, 1), (26, 1)], [ (50>45, 1), (11>45, 1), (6<45, 1), (22>26, 1), (24<42, 1), (50<42, 1), (22<45, 1), (6>50, 1), (39<22, 1), (22<42, 1)])).

test(5, (50, 250, [<, >]), (10, 10, 1), ([9, 10, 30, 17, 27, 19, 12, 26, 2, 49], [12>19, 2>9], [27<19, 17>27, 9<26, 30>12, 10>30, 30<2, 30>49, 9>30, 17<12, 9>10], [ (9, 1), (10, 1), (30, 1), (17, 1), (27, 1), (19, 1), (12, 1), (26, 1), (2, 1), (49, 1)], [ (27<19, 1), (17>27, 1), (9<26, 1), (30>12, 1), (10>30, 1), (30<2, 1), (30>49, 1), (9>30, 1), (17<12, 1), (9>10, 1)])).

test(6, (50, 250, [<, >]), (10, 10, 1), ([6, 32, 40, 29, 3, 25, 9, 22, 20, 27], [3>6], [32>27, 32>20, 6>27, 32>22, 6>32, 32>29, 40<20, 29>25, 6<40, 29>20], [ (6, 1), (32, 1), (40, 1), (29, 1), (3, 1), (25, 1), (9, 1), (22, 1), (20, 1), (27, 1)], [ (32>27, 1), (32>20, 1), (6>27, 1), (32>22, 1), (6>32, 1), (32>29, 1), (40<20, 1), (29>25, 1), (6<40, 1), (29>20, 1)])).

test(7, (50, 250, [<, >]), (10, 10, 1), ([5, 31, 8, 41, 1, 20, 39, 17, 36, 38], [5>36, 8>39, 1>20], [5>1, 41>38, 41<17, 41<39, 8>41, 31<39, 41>36, 31<1, 31<38, 31<20], [ (5, 1), (31, 1), (8, 1), (41, 1), (1, 1), (20, 1), (39, 1), (17, 1), (36, 1), (38, 1)], [ (5>1, 1), (41>38, 1), (41<17, 1), (41<39, 1), (8>41, 1), (31<39, 1), (41>36, 1), (31<1, 1), (31<38, 1), (31<20, 1)])).

test(8, (50, 250, [<, >]), (10, 10, 1), ([44, 23, 45, 10, 12, 13, 42, 31, 24, 47], [23>24, 23>47, 10>23, 10>42, 12>45, 13>24, 24>31], [42>31, 44>23, 24>47, 44>12, 45<24, 12<13, 44<10, 23<42, 45>31, 23<13], [ (44, 1), (23, 1), (45, 1), (10, 1), (12, 1), (13, 1), (42, 1), (31, 1), (24, 1), (47, 1)], [ (42>31, 1), (44>23, 1), (24>47, 1), (44>12, 1), (45<24, 1), (12<13, 1), (44<10, 1), (23<42, 1), (45>31, 1), (23<13, 1)])).

test(9, (50, 250, [<, >]), (10, 10, 1), ([33, 11, 3, 40, 49, 8, 20, 17, 41, 13], [11>33, 3>49, 8>17, 13>20], [17<41, 49<17, 40<13, 8<13, 40>41, 49<13, 33<8, 3<13, 3>40, 40>8], [ (33, 1), (11, 1), (3, 1), (40, 1), (49, 1), (8, 1), (20, 1), (17, 1), (41, 1), (13, 1)], [ (17<41, 1), (49<17, 1), (40<13, 1), (8<13, 1), (40>41, 1), (49<13, 1), (33<8, 1), (3<13, 1), (3>40, 1), (40>8, 1)])).

test(10, (50, 250, [<, >]), (10, 10, 1), ([42, 15, 31, 25, 37, 40, 12, 29, 8, 1], [15>40, 31>42, 25>42, 12>29, 1>12], [42>40, 15<1, 25<40, 31<8, 25>1, 31<25, 42>37, 15>31, 15<29, 37>1], [ (42, 1), (15, 1), (31, 1), (25, 1), (37, 1), (40, 1), (12, 1), (29, 1), (8, 1), (1, 1)], [ (42>40, 1), (15<1, 1), (25<40, 1), (31<8, 1), (25>1, 1), (31<25, 1), (42>37, 1), (15>31, 1), (15<29, 1), (37>1, 1)])).

%% 50, 250, [<, >]
%% 15, 15, 1

test(1, (50, 250, [<, >]), (15, 15, 1), ([17, 29, 13, 45, 32, 47, 21, 12, 41, 19, 40, 44, 36, 50, 42], [17>40, 13>29, 13>19, 13>50, 32>40, 21>29, 12>29, 12>13, 12>45, 12>47, 12>44, 12>42, 19>42, 44>50, 36>40, 36>50, 42>45], [19>42, 17>40, 19>40, 17<19, 32<41, 21<42, 32>40, 13>47, 13<41, 13>50, 32>47, 45<41, 45>50, 29<50, 29<32], [ (17, 1), (29, 1), (13, 1), (45, 1), (32, 1), (47, 1), (21, 1), (12, 1), (41, 1), (19, 1), (40, 1), (44, 1), (36, 1), (50, 1), (42, 1)], [ (19>42, 1), (17>40, 1), (19>40, 1), (17<19, 1), (32<41, 1), (21<42, 1), (32>40, 1), (13>47, 1), (13<41, 1), (13>50, 1), (32>47, 1), (45<41, 1), (45>50, 1), (29<50, 1), (29<32, 1)])).

test(2, (50, 250, [<, >]), (15, 15, 1), ([29, 46, 4, 9, 21, 26, 39, 34, 7, 50, 6, 20, 10, 45, 2], [29>34, 4>46, 4>9, 4>26, 4>39, 9>26, 9>20, 21>34, 7>20, 20>26, 10>29, 10>34, 10>20, 2>6], [4<21, 29>45, 26>2, 26>6, 46<39, 39>6, 21>34, 39>20, 21<50, 21<2, 21<20, 9>34, 4>9, 9>39, 4>45], [ (29, 1), (46, 1), (4, 1), (9, 1), (21, 1), (26, 1), (39, 1), (34, 1), (7, 1), (50, 1), (6, 1), (20, 1), (10, 1), (45, 1), (2, 1)], [ (4<21, 1), (29>45, 1), (26>2, 1), (26>6, 1), (46<39, 1), (39>6, 1), (21>34, 1), (39>20, 1), (21<50, 1), (21<2, 1), (21<20, 1), (9>34, 1), (4>9, 1), (9>39, 1), (4>45, 1)])).

test(3, (50, 250, [<, >]), (15, 15, 1), ([9, 35, 10, 4, 33, 22, 34, 49, 48, 16, 23, 27, 45, 28, 41], [9>10, 35>49, 35>41, 10>28, 10>41, 4>23, 4>45, 4>41, 22>35, 34>48, 16>35, 16>49, 23>45, 23>28, 27>33, 45>49, 28>33], [33<23, 49<48, 48>45, 35<10, 10>45, 4<34, 16<27, 34<23, 35>22, 34>45, 22>48, 10<28, 9>41, 49>45, 45<41], [ (9, 1), (35, 1), (10, 1), (4, 1), (33, 1), (22, 1), (34, 1), (49, 1), (48, 1), (16, 1), (23, 1), (27, 1), (45, 1), (28, 1), (41, 1)], [ (33<23, 1), (49<48, 1), (48>45, 1), (35<10, 1), (10>45, 1), (4<34, 1), (16<27, 1), (34<23, 1), (35>22, 1), (34>45, 1), (22>48, 1), (10<28, 1), (9>41, 1), (49>45, 1), (45<41, 1)])).

test(4, (50, 250, [<, >]), (15, 15, 1), ([19, 37, 48, 3, 15, 24, 7, 2, 17, 42, 47, 29, 20, 39, 27], [19>39, 15>27, 7>20, 2>20, 29>42], [15>42, 3>47, 48>27, 19>29, 48<17, 37<7, 24<42, 7<29, 42>39, 19<2, 37>29, 3<42, 42>27, 7<47, 3>39], [ (19, 1), (37, 1), (48, 1), (3, 1), (15, 1), (24, 1), (7, 1), (2, 1), (17, 1), (42, 1), (47, 1), (29, 1), (20, 1), (39, 1), (27, 1)], [ (15>42, 1), (3>47, 1), (48>27, 1), (19>29, 1), (48<17, 1), (37<7, 1), (24<42, 1), (7<29, 1), (42>39, 1), (19<2, 1), (37>29, 1), (3<42, 1), (42>27, 1), (7<47, 1), (3>39, 1)])).

test(5, (50, 250, [<, >]), (15, 15, 1), ([11, 35, 25, 15, 46, 3, 4, 9, 17, 50, 32, 18, 24, 20, 12], [46>50, 4>35, 9>12, 20>32, 12>24], [11>4, 11>35, 11<18, 25<20, 15>3, 46<20, 32<12, 25<32, 11<25, 11<9, 50<32, 3>18, 18<24, 25>3, 4>32], [ (11, 1), (35, 1), (25, 1), (15, 1), (46, 1), (3, 1), (4, 1), (9, 1), (17, 1), (50, 1), (32, 1), (18, 1), (24, 1), (20, 1), (12, 1)], [ (11>4, 1), (11>35, 1), (11<18, 1), (25<20, 1), (15>3, 1), (46<20, 1), (32<12, 1), (25<32, 1), (11<25, 1), (11<9, 1), (50<32, 1), (3>18, 1), (18<24, 1), (25>3, 1), (4>32, 1)])).

test(6, (50, 250, [<, >]), (15, 15, 1), ([45, 27, 30, 9, 2, 24, 8, 12, 35, 11, 23, 19, 44, 22, 32], [30>45, 9>24, 9>44, 12>45, 11>30, 19>22, 22>44], [9>24, 30>22, 9>32, 9<8, 2>35, 12<35, 35<11, 24<12, 35<23, 12<32, 2<24, 45>11, 2<11, 24<23, 30<11], [ (45, 1), (27, 1), (30, 1), (9, 1), (2, 1), (24, 1), (8, 1), (12, 1), (35, 1), (11, 1), (23, 1), (19, 1), (44, 1), (22, 1), (32, 1)], [ (9>24, 1), (30>22, 1), (9>32, 1), (9<8, 1), (2>35, 1), (12<35, 1), (35<11, 1), (24<12, 1), (35<23, 1), (12<32, 1), (2<24, 1), (45>11, 1), (2<11, 1), (24<23, 1), (30<11, 1)])).

test(7, (50, 250, [<, >]), (15, 15, 1), ([13, 31, 44, 48, 25, 7, 26, 3, 6, 22, 50, 32, 11, 36, 5], [13>31, 13>26, 25>26, 26>48, 3>26, 3>32, 11>50, 36>50, 5>6], [7>50, 48<22, 48<26, 6<36, 48>36, 7<32, 7<26, 25<6, 44>6, 32<11, 44>11, 44>26, 48<50, 31<5, 25>3], [ (13, 1), (31, 1), (44, 1), (48, 1), (25, 1), (7, 1), (26, 1), (3, 1), (6, 1), (22, 1), (50, 1), (32, 1), (11, 1), (36, 1), (5, 1)], [ (7>50, 1), (48<22, 1), (48<26, 1), (6<36, 1), (48>36, 1), (7<32, 1), (7<26, 1), (25<6, 1), (44>6, 1), (32<11, 1), (44>11, 1), (44>26, 1), (48<50, 1), (31<5, 1), (25>3, 1)])).

test(8, (50, 250, [<, >]), (15, 15, 1), ([43, 34, 15, 42, 41, 3, 24, 9, 49, 39, 27, 11, 14, 46, 6], [34>43, 34>42, 3>15, 3>41, 3>11, 24>34, 9>27, 27>46, 11>43, 11>39, 6>41, 6>46], [42<14, 15>39, 41<3, 41>24, 43>6, 24<6, 11>46, 34<15, 39<6, 24>11, 34>49, 27<14, 9<39, 49>14, 15<49], [ (43, 1), (34, 1), (15, 1), (42, 1), (41, 1), (3, 1), (24, 1), (9, 1), (49, 1), (39, 1), (27, 1), (11, 1), (14, 1), (46, 1), (6, 1)], [ (42<14, 1), (15>39, 1), (41<3, 1), (41>24, 1), (43>6, 1), (24<6, 1), (11>46, 1), (34<15, 1), (39<6, 1), (24>11, 1), (34>49, 1), (27<14, 1), (9<39, 1), (49>14, 1), (15<49, 1)])).

test(9, (50, 250, [<, >]), (15, 15, 1), ([28, 8, 18, 40, 47, 44, 5, 35, 46, 4, 25, 27, 21, 31, 36], [28>35, 28>46, 8>21, 18>35, 44>46, 4>25, 4>36, 27>40, 21>40, 31>47, 31>36], [46<25, 5<4, 28>25, 4<31, 8<40, 47>4, 28>35, 5<27, 18>40, 8>44, 28<31, 8>35, 28<4, 47>5, 18<47], [ (28, 1), (8, 1), (18, 1), (40, 1), (47, 1), (44, 1), (5, 1), (35, 1), (46, 1), (4, 1), (25, 1), (27, 1), (21, 1), (31, 1), (36, 1)], [ (46<25, 1), (5<4, 1), (28>25, 1), (4<31, 1), (8<40, 1), (47>4, 1), (28>35, 1), (5<27, 1), (18>40, 1), (8>44, 1), (28<31, 1), (8>35, 1), (28<4, 1), (47>5, 1), (18<47, 1)])).

test(10, (50, 250, [<, >]), (15, 15, 1), ([30, 11, 47, 33, 1, 2, 15, 50, 48, 21, 43, 28, 45, 22, 49], [11>49, 1>30, 2>47, 2>28, 15>47, 48>50, 21>50, 21>43, 21>49, 43>50, 22>47], [47<28, 50<22, 47<21, 30>1, 1>21, 43<49, 43>22, 30>50, 11<45, 30<21, 50<49, 2<21, 1>48, 48<49, 1<49], [ (30, 1), (11, 1), (47, 1), (33, 1), (1, 1), (2, 1), (15, 1), (50, 1), (48, 1), (21, 1), (43, 1), (28, 1), (45, 1), (22, 1), (49, 1)], [ (47<28, 1), (50<22, 1), (47<21, 1), (30>1, 1), (1>21, 1), (43<49, 1), (43>22, 1), (30>50, 1), (11<45, 1), (30<21, 1), (50<49, 1), (2<21, 1), (1>48, 1), (48<49, 1), (1<49, 1)])).

%% 50, 250, [<, >]
%% 20, 20, 1

test(1, (50, 250, [<, >]), (20, 20, 1), ([24, 36, 35, 17, 37, 49, 42, 9, 41, 20, 46, 5, 2, 14, 39, 43, 33, 13, 15, 34], [36>42, 36>41, 37>46, 9>24, 9>35, 20>39, 5>42, 2>24, 14>37, 14>43, 33>35, 15>49, 34>36, 34>43], [24>9, 24<39, 9<15, 24>15, 37>2, 17>2, 35<42, 36<39, 42<34, 37>42, 42>46, 42>13, 35>17, 36<49, 33>13, 42<39, 41<39, 49>14, 9<43, 17<46], [ (24, 1), (36, 1), (35, 1), (17, 1), (37, 1), (49, 1), (42, 1), (9, 1), (41, 1), (20, 1), (46, 1), (5, 1), (2, 1), (14, 1), (39, 1), (43, 1), (33, 1), (13, 1), (15, 1), (34, 1)], [ (24>9, 1), (24<39, 1), (9<15, 1), (24>15, 1), (37>2, 1), (17>2, 1), (35<42, 1), (36<39, 1), (42<34, 1), (37>42, 1), (42>46, 1), (42>13, 1), (35>17, 1), (36<49, 1), (33>13, 1), (42<39, 1), (41<39, 1), (49>14, 1), (9<43, 1), (17<46, 1)])).

test(2, (50, 250, [<, >]), (20, 20, 1), ([18, 38, 13, 12, 45, 44, 36, 32, 21, 46, 48, 2, 50, 1, 26, 8, 33, 31, 35, 40], [18>44, 18>32, 18>31, 13>36, 13>31, 12>13, 12>44, 12>32, 32>45, 32>40, 46>50, 2>18, 2>13, 2>12, 2>40, 1>32, 26>44, 26>40, 33>46, 31>35, 40>45, 40>46], [38>45, 32<35, 13<12, 32<2, 12>21, 13<50, 38>40, 44<33, 13<35, 38>32, 48<35, 1>33, 2<35, 38>8, 21<33, 36>33, 12>8, 2>8, 18<2, 26>33], [ (18, 1), (38, 1), (13, 1), (12, 1), (45, 1), (44, 1), (36, 1), (32, 1), (21, 1), (46, 1), (48, 1), (2, 1), (50, 1), (1, 1), (26, 1), (8, 1), (33, 1), (31, 1), (35, 1), (40, 1)], [ (38>45, 1), (32<35, 1), (13<12, 1), (32<2, 1), (12>21, 1), (13<50, 1), (38>40, 1), (44<33, 1), (13<35, 1), (38>32, 1), (48<35, 1), (1>33, 1), (2<35, 1), (38>8, 1), (21<33, 1), (36>33, 1), (12>8, 1), (2>8, 1), (18<2, 1), (26>33, 1)])).

test(3, (50, 250, [<, >]), (20, 20, 1), ([27, 11, 39, 50, 34, 10, 9, 1, 40, 49, 24, 37, 22, 17, 4, 31, 32, 29, 45, 15], [11>34, 11>49, 10>27, 10>34, 10>22, 9>39, 9>49, 9>37, 1>39, 1>40, 1>29, 1>15, 37>49, 22>31, 4>24, 31>45, 15>49, 15>31], [1<37, 9>49, 49>31, 10>37, 9>22, 50<1, 22<45, 32>15, 17<4, 10>40, 9<24, 10<4, 27<15, 1>15, 29>45, 39<22, 37>31, 37>17, 27<50, 39<45], [ (27, 1), (11, 1), (39, 1), (50, 1), (34, 1), (10, 1), (9, 1), (1, 1), (40, 1), (49, 1), (24, 1), (37, 1), (22, 1), (17, 1), (4, 1), (31, 1), (32, 1), (29, 1), (45, 1), (15, 1)], [ (1<37, 1), (9>49, 1), (49>31, 1), (10>37, 1), (9>22, 1), (50<1, 1), (22<45, 1), (32>15, 1), (17<4, 1), (10>40, 1), (9<24, 1), (10<4, 1), (27<15, 1), (1>15, 1), (29>45, 1), (39<22, 1), (37>31, 1), (37>17, 1), (27<50, 1), (39<45, 1)])).

test(4, (50, 250, [<, >]), (20, 20, 1), ([18, 8, 15, 46, 19, 27, 28, 42, 31, 47, 29, 3, 34, 48, 12, 9, 45, 30, 6, 11], [8>31, 15>34, 19>47, 27>28, 28>45, 29>30, 3>34, 12>19, 12>42, 12>30, 9>19, 9>34, 9>45, 9>30], [31<34, 29>45, 19<11, 29>34, 15<34, 34<12, 8>11, 18>15, 19>12, 47<6, 46>19, 15>46, 18<31, 31<3, 34<48, 3<48, 15>31, 3>9, 27<3, 18<45], [ (18, 1), (8, 1), (15, 1), (46, 1), (19, 1), (27, 1), (28, 1), (42, 1), (31, 1), (47, 1), (29, 1), (3, 1), (34, 1), (48, 1), (12, 1), (9, 1), (45, 1), (30, 1), (6, 1), (11, 1)], [ (31<34, 1), (29>45, 1), (19<11, 1), (29>34, 1), (15<34, 1), (34<12, 1), (8>11, 1), (18>15, 1), (19>12, 1), (47<6, 1), (46>19, 1), (15>46, 1), (18<31, 1), (31<3, 1), (34<48, 1), (3<48, 1), (15>31, 1), (3>9, 1), (27<3, 1), (18<45, 1)])).

test(5, (50, 250, [<, >]), (20, 20, 1), ([49, 46, 22, 18, 47, 6, 48, 26, 12, 37, 23, 21, 38, 30, 39, 27, 1, 15, 43, 40], [46>48, 22>47, 22>39, 18>21, 6>22, 6>37, 12>46, 12>27, 23>47, 23>26, 23>43, 21>37, 21>38, 38>40, 30>47, 39>47, 27>37, 27>39, 1>46, 15>48, 15>21, 15>30, 15>39, 15>40, 43>48, 40>47], [49>39, 21>39, 46>43, 23<21, 26<15, 12<30, 23<15, 46<23, 47<6, 6<37, 12<38, 30<1, 6>43, 6>23, 18>27, 48>30, 26<40, 38<40, 39>43, 22<6], [ (49, 1), (46, 1), (22, 1), (18, 1), (47, 1), (6, 1), (48, 1), (26, 1), (12, 1), (37, 1), (23, 1), (21, 1), (38, 1), (30, 1), (39, 1), (27, 1), (1, 1), (15, 1), (43, 1), (40, 1)], [ (49>39, 1), (21>39, 1), (46>43, 1), (23<21, 1), (26<15, 1), (12<30, 1), (23<15, 1), (46<23, 1), (47<6, 1), (6<37, 1), (12<38, 1), (30<1, 1), (6>43, 1), (6>23, 1), (18>27, 1), (48>30, 1), (26<40, 1), (38<40, 1), (39>43, 1), (22<6, 1)])).

test(6, (50, 250, [<, >]), (20, 20, 1), ([1, 48, 12, 28, 36, 5, 44, 37, 34, 49, 13, 22, 20, 25, 24, 29, 38, 7, 27, 21], [1>37, 1>49, 1>29, 1>38, 12>37, 12>49, 12>29, 5>48, 5>24, 34>48, 34>37, 13>29, 22>28, 22>37, 22>29, 20>44, 20>49, 20>27, 25>49, 24>29, 7>12, 7>44, 27>48, 21>25], [1>21, 37<20, 1>49, 28>13, 37>34, 24<27, 13<27, 1>20, 34<13, 49<38, 28<37, 5>20, 34>29, 44>20, 1<44, 13<38, 29<27, 5<27, 7<27, 37>38], [ (1, 1), (48, 1), (12, 1), (28, 1), (36, 1), (5, 1), (44, 1), (37, 1), (34, 1), (49, 1), (13, 1), (22, 1), (20, 1), (25, 1), (24, 1), (29, 1), (38, 1), (7, 1), (27, 1), (21, 1)], [ (1>21, 1), (37<20, 1), (1>49, 1), (28>13, 1), (37>34, 1), (24<27, 1), (13<27, 1), (1>20, 1), (34<13, 1), (49<38, 1), (28<37, 1), (5>20, 1), (34>29, 1), (44>20, 1), (1<44, 1), (13<38, 1), (29<27, 1), (5<27, 1), (7<27, 1), (37>38, 1)])).

test(7, (50, 250, [<, >]), (20, 20, 1), ([8, 39, 24, 7, 30, 31, 13, 48, 17, 40, 22, 9, 3, 38, 19, 6, 26, 28, 45, 11], [8>9, 24>40, 7>24, 13>22, 13>38, 17>30, 17>48, 17>26, 17>28, 22>39, 9>17, 3>7, 3>38, 3>6, 19>26, 6>40, 6>45, 26>39, 26>48, 11>38], [7<30, 38<45, 31<19, 30>45, 17>19, 48<19, 22<3, 39>9, 30<9, 48>17, 48<3, 7<22, 48>9, 39<24, 8<38, 30>40, 17<45, 48>22, 30<28, 13<45], [ (8, 1), (39, 1), (24, 1), (7, 1), (30, 1), (31, 1), (13, 1), (48, 1), (17, 1), (40, 1), (22, 1), (9, 1), (3, 1), (38, 1), (19, 1), (6, 1), (26, 1), (28, 1), (45, 1), (11, 1)], [ (7<30, 1), (38<45, 1), (31<19, 1), (30>45, 1), (17>19, 1), (48<19, 1), (22<3, 1), (39>9, 1), (30<9, 1), (48>17, 1), (48<3, 1), (7<22, 1), (48>9, 1), (39<24, 1), (8<38, 1), (30>40, 1), (17<45, 1), (48>22, 1), (30<28, 1), (13<45, 1)])).

test(8, (50, 250, [<, >]), (20, 20, 1), ([32, 25, 28, 41, 39, 5, 37, 19, 18, 44, 35, 46, 47, 34, 23, 27, 15, 10, 29, 40], [25>32, 25>35, 5>39, 5>34, 5>23, 5>29, 19>39, 19>37, 19>27, 18>44, 18>35, 18>47, 46>47, 23>25, 23>28, 23>39, 15>32, 15>39, 15>18, 40>44], [39<27, 39<18, 46>34, 19>10, 41>44, 23<40, 35>46, 18>46, 19<15, 28>23, 44<10, 41>40, 39>19, 41<29, 34<23, 37>34, 39<10, 10<40, 37<18, 41<37], [ (32, 1), (25, 1), (28, 1), (41, 1), (39, 1), (5, 1), (37, 1), (19, 1), (18, 1), (44, 1), (35, 1), (46, 1), (47, 1), (34, 1), (23, 1), (27, 1), (15, 1), (10, 1), (29, 1), (40, 1)], [ (39<27, 1), (39<18, 1), (46>34, 1), (19>10, 1), (41>44, 1), (23<40, 1), (35>46, 1), (18>46, 1), (19<15, 1), (28>23, 1), (44<10, 1), (41>40, 1), (39>19, 1), (41<29, 1), (34<23, 1), (37>34, 1), (39<10, 1), (10<40, 1), (37<18, 1), (41<37, 1)])).

test(9, (50, 250, [<, >]), (20, 20, 1), ([16, 18, 21, 2, 4, 29, 49, 15, 22, 19, 35, 41, 27, 14, 17, 50, 44, 24, 3, 40], [16>35, 16>44, 18>49, 21>50, 21>40, 4>22, 4>24, 29>40, 15>17, 22>49, 22>50, 22>40, 19>41, 19>44, 35>41, 35>44, 41>44, 27>50, 14>17, 17>19, 17>50, 3>29, 3>49, 3>15, 3>19, 3>35, 40>44], [27<14, 14<50, 49>35, 29<49, 41>27, 18>3, 29<22, 4>14, 2<14, 22>50, 16>35, 27<17, 4>44, 4<41, 17>3, 17>44, 18>22, 2<49, 29<17, 15<44], [ (16, 1), (18, 1), (21, 1), (2, 1), (4, 1), (29, 1), (49, 1), (15, 1), (22, 1), (19, 1), (35, 1), (41, 1), (27, 1), (14, 1), (17, 1), (50, 1), (44, 1), (24, 1), (3, 1), (40, 1)], [ (27<14, 1), (14<50, 1), (49>35, 1), (29<49, 1), (41>27, 1), (18>3, 1), (29<22, 1), (4>14, 1), (2<14, 1), (22>50, 1), (16>35, 1), (27<17, 1), (4>44, 1), (4<41, 1), (17>3, 1), (17>44, 1), (18>22, 1), (2<49, 1), (29<17, 1), (15<44, 1)])).

test(10, (50, 250, [<, >]), (20, 20, 1), ([35, 21, 31, 27, 30, 32, 25, 22, 11, 13, 47, 34, 19, 1, 49, 29, 37, 26, 45, 17], [27>35, 25>27, 25>26, 11>34, 11>29, 11>37, 13>31, 13>45, 19>31, 19>27, 19>34, 1>47, 1>45, 26>34, 26>49, 45>47, 17>31, 17>22, 17>45], [11<45, 35>17, 13>47, 25<19, 31>45, 25<22, 35>29, 32<25, 31>1, 25<45, 29>17, 35<11, 27<34, 25<13, 27<25, 31<22, 30>47, 25>34, 31<37, 34>1], [ (35, 1), (21, 1), (31, 1), (27, 1), (30, 1), (32, 1), (25, 1), (22, 1), (11, 1), (13, 1), (47, 1), (34, 1), (19, 1), (1, 1), (49, 1), (29, 1), (37, 1), (26, 1), (45, 1), (17, 1)], [ (11<45, 1), (35>17, 1), (13>47, 1), (25<19, 1), (31>45, 1), (25<22, 1), (35>29, 1), (32<25, 1), (31>1, 1), (25<45, 1), (29>17, 1), (35<11, 1), (27<34, 1), (25<13, 1), (27<25, 1), (31<22, 1), (30>47, 1), (25>34, 1), (31<37, 1), (34>1, 1)])).

%% 50, 250, [<, >]
%% 25, 25, 1

test(1, (50, 250, [<, >]), (25, 25, 1), ([34, 8, 12, 18, 17, 11, 6, 21, 19, 22, 5, 23, 46, 26, 14, 41, 24, 25, 4, 42, 33, 7, 32, 15, 35], [34>41, 34>35, 8>26, 12>22, 12>46, 12>25, 18>34, 18>19, 18>26, 18>24, 18>32, 17>34, 17>21, 17>22, 11>22, 11>46, 11>42, 21>23, 21>42, 21>33, 21>35, 22>25, 22>33, 5>42, 5>15, 23>41, 23>25, 23>35, 24>26, 24>41, 4>8, 4>42, 7>42, 32>42, 32>35, 15>17, 15>41], [11<15, 12>6, 33<32, 11<25, 34>23, 15<35, 8>23, 8<6, 4>35, 11<4, 34<46, 18<32, 18>5, 7>32, 18>11, 17>32, 23<25, 46>26, 18<41, 26<15, 6<41, 22<7, 6<26, 4<7, 22>26], [ (34, 1), (8, 1), (12, 1), (18, 1), (17, 1), (11, 1), (6, 1), (21, 1), (19, 1), (22, 1), (5, 1), (23, 1), (46, 1), (26, 1), (14, 1), (41, 1), (24, 1), (25, 1), (4, 1), (42, 1), (33, 1), (7, 1), (32, 1), (15, 1), (35, 1)], [ (11<15, 1), (12>6, 1), (33<32, 1), (11<25, 1), (34>23, 1), (15<35, 1), (8>23, 1), (8<6, 1), (4>35, 1), (11<4, 1), (34<46, 1), (18<32, 1), (18>5, 1), (7>32, 1), (18>11, 1), (17>32, 1), (23<25, 1), (46>26, 1), (18<41, 1), (26<15, 1), (6<41, 1), (22<7, 1), (6<26, 1), (4<7, 1), (22>26, 1)])).

test(2, (50, 250, [<, >]), (25, 25, 1), ([18, 39, 34, 22, 28, 6, 1, 10, 29, 26, 16, 9, 23, 30, 8, 43, 17, 7, 38, 47, 50, 12, 33, 25, 19], [22>39, 22>38, 28>29, 6>26, 6>16, 6>8, 6>17, 6>38, 1>39, 1>6, 1>10, 1>29, 1>16, 1>33, 10>26, 10>50, 29>47, 26>38, 16>30, 16>47, 9>10, 9>25, 23>29, 30>50, 8>26, 8>17, 43>47, 17>19, 7>30, 12>22, 12>47, 19>43, 19>47, 19>25], [17>47, 29<16, 22>10, 47>50, 34<22, 28<1, 18<33, 1<50, 28>16, 22<8, 8<33, 50>33, 10<29, 29>9, 29<43, 1>17, 28<38, 6<38, 29<47, 7>25, 16<8, 16>47, 1>26, 22>50, 16<38], [ (18, 1), (39, 1), (34, 1), (22, 1), (28, 1), (6, 1), (1, 1), (10, 1), (29, 1), (26, 1), (16, 1), (9, 1), (23, 1), (30, 1), (8, 1), (43, 1), (17, 1), (7, 1), (38, 1), (47, 1), (50, 1), (12, 1), (33, 1), (25, 1), (19, 1)], [ (17>47, 1), (29<16, 1), (22>10, 1), (47>50, 1), (34<22, 1), (28<1, 1), (18<33, 1), (1<50, 1), (28>16, 1), (22<8, 1), (8<33, 1), (50>33, 1), (10<29, 1), (29>9, 1), (29<43, 1), (1>17, 1), (28<38, 1), (6<38, 1), (29<47, 1), (7>25, 1), (16<8, 1), (16>47, 1), (1>26, 1), (22>50, 1), (16<38, 1)])).

test(3, (50, 250, [<, >]), (25, 25, 1), ([27, 4, 21, 11, 15, 6, 39, 29, 32, 12, 10, 7, 2, 5, 47, 44, 23, 25, 16, 48, 22, 45, 34, 35, 24], [4>11, 4>7, 11>44, 6>12, 6>23, 12>21, 12>22, 12>24, 10>21, 2>27, 2>39, 2>44, 5>12, 47>48, 44>47, 44>48, 23>27, 23>29, 23>34, 25>47, 16>32, 16>35, 22>45, 22>34, 34>44, 34>45, 35>45, 24>25, 24>35], [6<29, 47<25, 29<2, 11<45, 32<10, 6>25, 10>23, 15<2, 10>7, 11>39, 47<24, 15>10, 11>12, 12<44, 23>22, 5<48, 29>22, 21>12, 6<35, 39>44, 23>48, 10<24, 15<48, 25>24, 6<23], [ (27, 1), (4, 1), (21, 1), (11, 1), (15, 1), (6, 1), (39, 1), (29, 1), (32, 1), (12, 1), (10, 1), (7, 1), (2, 1), (5, 1), (47, 1), (44, 1), (23, 1), (25, 1), (16, 1), (48, 1), (22, 1), (45, 1), (34, 1), (35, 1), (24, 1)], [ (6<29, 1), (47<25, 1), (29<2, 1), (11<45, 1), (32<10, 1), (6>25, 1), (10>23, 1), (15<2, 1), (10>7, 1), (11>39, 1), (47<24, 1), (15>10, 1), (11>12, 1), (12<44, 1), (23>22, 1), (5<48, 1), (29>22, 1), (21>12, 1), (6<35, 1), (39>44, 1), (23>48, 1), (10<24, 1), (15<48, 1), (25>24, 1), (6<23, 1)])).

test(4, (50, 250, [<, >]), (25, 25, 1), ([31, 15, 46, 28, 34, 12, 27, 21, 39, 1, 26, 9, 47, 32, 42, 13, 18, 2, 11, 48, 10, 29, 50, 35, 16], [31>42, 31>48, 31>35, 15>32, 28>48, 12>31, 12>28, 27>48, 27>29, 21>35, 1>46, 1>9, 1>42, 1>18, 1>11, 1>48, 26>28, 9>34, 9>12, 13>26, 13>47, 13>32, 18>31, 2>46, 2>28, 2>18, 11>21, 11>42, 10>32, 29>50, 35>42, 16>28, 16>34, 16>18], [9<32, 13>2, 48>35, 13<18, 39<11, 35<16, 42<2, 28<26, 29>16, 1<35, 50<35, 10>16, 15>26, 12<13, 42>29, 26<11, 34>9, 28>18, 46>10, 26>50, 42<13, 1<10, 9<48, 1>47, 11<10], [ (31, 1), (15, 1), (46, 1), (28, 1), (34, 1), (12, 1), (27, 1), (21, 1), (39, 1), (1, 1), (26, 1), (9, 1), (47, 1), (32, 1), (42, 1), (13, 1), (18, 1), (2, 1), (11, 1), (48, 1), (10, 1), (29, 1), (50, 1), (35, 1), (16, 1)], [ (9<32, 1), (13>2, 1), (48>35, 1), (13<18, 1), (39<11, 1), (35<16, 1), (42<2, 1), (28<26, 1), (29>16, 1), (1<35, 1), (50<35, 1), (10>16, 1), (15>26, 1), (12<13, 1), (42>29, 1), (26<11, 1), (34>9, 1), (28>18, 1), (46>10, 1), (26>50, 1), (42<13, 1), (1<10, 1), (9<48, 1), (1>47, 1), (11<10, 1)])).

test(5, (50, 250, [<, >]), (25, 25, 1), ([24, 3, 7, 40, 30, 37, 17, 41, 28, 16, 29, 8, 4, 50, 25, 39, 35, 49, 38, 13, 31, 18, 10, 11, 21], [3>29, 3>38, 3>10, 7>40, 7>41, 7>29, 7>13, 7>21, 40>50, 40>49, 37>50, 17>49, 28>37, 28>35, 16>30, 16>29, 16>49, 29>30, 29>49, 8>37, 8>17, 8>39, 8>38, 4>39, 4>13, 39>49, 35>37, 13>49, 13>18, 18>37, 18>28, 10>24, 10>40, 10>29, 11>17, 11>29], [7>21, 16>8, 24<8, 30>21, 29<13, 4>50, 17>21, 40>35, 3<11, 40<17, 50<18, 13>18, 29<25, 50<38, 28<16, 7>17, 40>50, 37>39, 39<31, 3<8, 39>18, 13>11, 49<13, 40<30, 41<49], [ (24, 1), (3, 1), (7, 1), (40, 1), (30, 1), (37, 1), (17, 1), (41, 1), (28, 1), (16, 1), (29, 1), (8, 1), (4, 1), (50, 1), (25, 1), (39, 1), (35, 1), (49, 1), (38, 1), (13, 1), (31, 1), (18, 1), (10, 1), (11, 1), (21, 1)], [ (7>21, 1), (16>8, 1), (24<8, 1), (30>21, 1), (29<13, 1), (4>50, 1), (17>21, 1), (40>35, 1), (3<11, 1), (40<17, 1), (50<18, 1), (13>18, 1), (29<25, 1), (50<38, 1), (28<16, 1), (7>17, 1), (40>50, 1), (37>39, 1), (39<31, 1), (3<8, 1), (39>18, 1), (13>11, 1), (49<13, 1), (40<30, 1), (41<49, 1)])).

test(6, (50, 250, [<, >]), (25, 25, 1), ([34, 35, 36, 47, 14, 42, 5, 10, 9, 38, 31, 3, 49, 17, 1, 41, 2, 22, 32, 26, 19, 43, 6, 28, 12], [35>47, 35>43, 36>42, 14>38, 14>17, 14>32, 5>36, 9>38, 3>36, 3>42, 1>47, 1>3, 1>12, 41>43, 2>47, 2>31, 2>49, 22>42, 22>38, 19>22, 19>26, 19>28, 43>49, 6>35, 6>47, 6>38, 6>17, 6>22, 6>28, 28>49, 28>43], [22<32, 3<19, 1<32, 19>28, 6>12, 49>6, 47<28, 9>26, 10<9, 35>49, 35>2, 14<43, 34<1, 14>3, 17>19, 31>2, 47>17, 36<1, 35<41, 36<12, 47<49, 5<3, 49>28, 38<28, 5>41], [ (34, 1), (35, 1), (36, 1), (47, 1), (14, 1), (42, 1), (5, 1), (10, 1), (9, 1), (38, 1), (31, 1), (3, 1), (49, 1), (17, 1), (1, 1), (41, 1), (2, 1), (22, 1), (32, 1), (26, 1), (19, 1), (43, 1), (6, 1), (28, 1), (12, 1)], [ (22<32, 1), (3<19, 1), (1<32, 1), (19>28, 1), (6>12, 1), (49>6, 1), (47<28, 1), (9>26, 1), (10<9, 1), (35>49, 1), (35>2, 1), (14<43, 1), (34<1, 1), (14>3, 1), (17>19, 1), (31>2, 1), (47>17, 1), (36<1, 1), (35<41, 1), (36<12, 1), (47<49, 1), (5<3, 1), (49>28, 1), (38<28, 1), (5>41, 1)])).

test(7, (50, 250, [<, >]), (25, 25, 1), ([47, 38, 27, 32, 20, 5, 30, 13, 11, 2, 19, 39, 26, 50, 16, 40, 8, 21, 37, 7, 28, 41, 4, 25, 18], [27>47, 32>37, 32>41, 20>32, 5>26, 13>26, 13>50, 13>37, 11>38, 11>50, 2>37, 2>4, 19>30, 39>47, 39>41, 26>28, 16>40, 8>50, 21>47, 37>41, 7>13, 7>25, 28>38, 28>50, 4>32, 4>20, 4>25, 25>27, 18>26], [47>41, 13>16, 32<37, 47<25, 47<26, 20>21, 11>18, 8>41, 16>40, 20>4, 27>37, 13>2, 20<8, 2>37, 11>41, 26>4, 41>18, 20>11, 39>18, 13>18, 39<21, 19>21, 39>25, 32>20, 11>16], [ (47, 1), (38, 1), (27, 1), (32, 1), (20, 1), (5, 1), (30, 1), (13, 1), (11, 1), (2, 1), (19, 1), (39, 1), (26, 1), (50, 1), (16, 1), (40, 1), (8, 1), (21, 1), (37, 1), (7, 1), (28, 1), (41, 1), (4, 1), (25, 1), (18, 1)], [ (47>41, 1), (13>16, 1), (32<37, 1), (47<25, 1), (47<26, 1), (20>21, 1), (11>18, 1), (8>41, 1), (16>40, 1), (20>4, 1), (27>37, 1), (13>2, 1), (20<8, 1), (2>37, 1), (11>41, 1), (26>4, 1), (41>18, 1), (20>11, 1), (39>18, 1), (13>18, 1), (39<21, 1), (19>21, 1), (39>25, 1), (32>20, 1), (11>16, 1)])).

test(8, (50, 250, [<, >]), (25, 25, 1), ([15, 22, 23, 41, 33, 13, 36, 46, 29, 26, 21, 27, 3, 20, 18, 49, 42, 28, 12, 44, 5, 17, 19, 11, 16], [15>21, 22>42, 22>44, 23>27, 23>44, 41>49, 33>46, 13>41, 13>49, 13>16, 36>41, 36>42, 29>44, 26>41, 26>46, 21>49, 3>23, 3>41, 3>13, 3>36, 3>17, 20>22, 20>27, 18>23, 28>46, 12>26, 12>21, 12>27, 12>49, 44>49, 5>33, 17>33, 17>46, 17>18, 17>42, 17>19, 19>41, 11>23, 11>18, 11>28, 16>29, 16>26, 16>44], [29>21, 46>17, 20<5, 20<49, 36<16, 20<11, 22<20, 44<17, 22<28, 46<44, 26<21, 26>18, 22<18, 33>18, 29<11, 15>17, 49<19, 27>20, 33<42, 33<44, 42<16, 46>12, 3<19, 41<44, 13>28], [ (15, 1), (22, 1), (23, 1), (41, 1), (33, 1), (13, 1), (36, 1), (46, 1), (29, 1), (26, 1), (21, 1), (27, 1), (3, 1), (20, 1), (18, 1), (49, 1), (42, 1), (28, 1), (12, 1), (44, 1), (5, 1), (17, 1), (19, 1), (11, 1), (16, 1)], [ (29>21, 1), (46>17, 1), (20<5, 1), (20<49, 1), (36<16, 1), (20<11, 1), (22<20, 1), (44<17, 1), (22<28, 1), (46<44, 1), (26<21, 1), (26>18, 1), (22<18, 1), (33>18, 1), (29<11, 1), (15>17, 1), (49<19, 1), (27>20, 1), (33<42, 1), (33<44, 1), (42<16, 1), (46>12, 1), (3<19, 1), (41<44, 1), (13>28, 1)])).

test(9, (50, 250, [<, >]), (25, 25, 1), ([12, 38, 27, 25, 36, 45, 40, 15, 14, 5, 31, 1, 47, 29, 33, 17, 16, 43, 50, 42, 37, 10, 2, 6, 34], [12>27, 12>42, 38>45, 25>29, 36>45, 36>40, 15>47, 15>50, 14>33, 14>50, 14>34, 5>12, 5>50, 31>37, 1>14, 1>10, 29>38, 29>31, 29>33, 33>45, 16>42, 43>47, 37>40, 37>47, 10>25, 6>16, 6>50, 34>45, 34>43, 34>42], [15>2, 27>25, 5>6, 1<37, 15<42, 45>29, 45<2, 38>29, 14<29, 25>31, 14<2, 36<10, 15<6, 29<42, 17>10, 45>50, 17>16, 14>50, 14<47, 31>16, 45<14, 5>1, 31>6, 42>34, 25<40], [ (12, 1), (38, 1), (27, 1), (25, 1), (36, 1), (45, 1), (40, 1), (15, 1), (14, 1), (5, 1), (31, 1), (1, 1), (47, 1), (29, 1), (33, 1), (17, 1), (16, 1), (43, 1), (50, 1), (42, 1), (37, 1), (10, 1), (2, 1), (6, 1), (34, 1)], [ (15>2, 1), (27>25, 1), (5>6, 1), (1<37, 1), (15<42, 1), (45>29, 1), (45<2, 1), (38>29, 1), (14<29, 1), (25>31, 1), (14<2, 1), (36<10, 1), (15<6, 1), (29<42, 1), (17>10, 1), (45>50, 1), (17>16, 1), (14>50, 1), (14<47, 1), (31>16, 1), (45<14, 1), (5>1, 1), (31>6, 1), (42>34, 1), (25<40, 1)])).

test(10, (50, 250, [<, >]), (25, 25, 1), ([50, 39, 6, 35, 33, 28, 26, 45, 15, 42, 49, 14, 24, 17, 43, 40, 47, 13, 9, 2, 25, 12, 20, 21, 32], [6>28, 35>45, 26>47, 15>50, 15>26, 17>42, 40>45, 40>43, 13>15, 9>26, 9>12, 12>33, 20>50, 20>33, 21>35, 21>26, 32>42, 32>43], [35<12, 15<40, 14<24, 17<25, 49>47, 50<28, 13>32, 39<17, 26<21, 15<43, 45>12, 45>20, 39>12, 35>9, 39<40, 49<17, 50>49, 42>40, 33<26, 14<21, 17<13, 15>47, 39>15, 45>43, 42<9], [ (50, 1), (39, 1), (6, 1), (35, 1), (33, 1), (28, 1), (26, 1), (45, 1), (15, 1), (42, 1), (49, 1), (14, 1), (24, 1), (17, 1), (43, 1), (40, 1), (47, 1), (13, 1), (9, 1), (2, 1), (25, 1), (12, 1), (20, 1), (21, 1), (32, 1)], [ (35<12, 1), (15<40, 1), (14<24, 1), (17<25, 1), (49>47, 1), (50<28, 1), (13>32, 1), (39<17, 1), (26<21, 1), (15<43, 1), (45>12, 1), (45>20, 1), (39>12, 1), (35>9, 1), (39<40, 1), (49<17, 1), (50>49, 1), (42>40, 1), (33<26, 1), (14<21, 1), (17<13, 1), (15>47, 1), (39>15, 1), (45>43, 1), (42<9, 1)])).

%% 50, 250, [<, >]
%% 30, 30, 1

test(1, (50, 250, [<, >]), (30, 30, 1), ([38, 28, 10, 36, 21, 14, 25, 45, 46, 3, 27, 19, 34, 13, 9, 18, 22, 33, 39, 16, 42, 49, 32, 30, 12, 35, 24, 50, 17, 26], [28>33, 10>12, 10>24, 10>50, 21>38, 21>45, 14>38, 14>36, 14>33, 46>50, 27>36, 19>30, 19>50, 34>35, 13>21, 13>34, 13>33, 13>39, 13>49, 9>14, 9>13, 9>26, 18>33, 22>32, 33>50, 16>19, 16>32, 16>35, 32>49, 30>36, 12>45, 12>46, 12>42, 24>34, 17>28, 17>46, 17>33, 17>30], [27>19, 32<17, 39>12, 28<24, 27>32, 10<14, 39>24, 18>49, 33>42, 18>30, 39>35, 14>25, 34<26, 28>17, 25>27, 14<18, 21>24, 42>49, 16>35, 25<13, 18<26, 36<14, 46>24, 42>50, 46>12, 25<19, 19<49, 35>17, 3<30, 45>17], [ (38, 1), (28, 1), (10, 1), (36, 1), (21, 1), (14, 1), (25, 1), (45, 1), (46, 1), (3, 1), (27, 1), (19, 1), (34, 1), (13, 1), (9, 1), (18, 1), (22, 1), (33, 1), (39, 1), (16, 1), (42, 1), (49, 1), (32, 1), (30, 1), (12, 1), (35, 1), (24, 1), (50, 1), (17, 1), (26, 1)], [ (27>19, 1), (32<17, 1), (39>12, 1), (28<24, 1), (27>32, 1), (10<14, 1), (39>24, 1), (18>49, 1), (33>42, 1), (18>30, 1), (39>35, 1), (14>25, 1), (34<26, 1), (28>17, 1), (25>27, 1), (14<18, 1), (21>24, 1), (42>49, 1), (16>35, 1), (25<13, 1), (18<26, 1), (36<14, 1), (46>24, 1), (42>50, 1), (46>12, 1), (25<19, 1), (19<49, 1), (35>17, 1), (3<30, 1), (45>17, 1)])).

test(2, (50, 250, [<, >]), (30, 30, 1), ([36, 22, 1, 33, 24, 16, 31, 50, 48, 49, 42, 18, 3, 26, 2, 4, 5, 28, 19, 47, 35, 20, 8, 46, 30, 23, 38, 9, 29, 6], [22>47, 22>46, 1>36, 1>3, 1>30, 1>6, 24>38, 24>29, 16>29, 18>19, 18>38, 3>35, 26>31, 26>30, 2>8, 4>33, 4>47, 4>46, 5>33, 5>24, 5>48, 5>35, 5>20, 28>30, 19>46, 47>50, 20>48, 8>48, 8>42, 8>26, 8>47, 8>20, 8>29, 30>49, 30>42, 9>36, 29>38], [36>24, 33>16, 19>29, 49>18, 16>50, 1<18, 5<19, 8<29, 36<20, 18<38, 24>30, 4<9, 49>8, 18>2, 24>47, 42<4, 36<49, 3<5, 2>35, 31<49, 22>28, 1<5, 48<35, 4<29, 24<18, 50<18, 20<8, 16>18, 22>1, 33>35], [ (36, 1), (22, 1), (1, 1), (33, 1), (24, 1), (16, 1), (31, 1), (50, 1), (48, 1), (49, 1), (42, 1), (18, 1), (3, 1), (26, 1), (2, 1), (4, 1), (5, 1), (28, 1), (19, 1), (47, 1), (35, 1), (20, 1), (8, 1), (46, 1), (30, 1), (23, 1), (38, 1), (9, 1), (29, 1), (6, 1)], [ (36>24, 1), (33>16, 1), (19>29, 1), (49>18, 1), (16>50, 1), (1<18, 1), (5<19, 1), (8<29, 1), (36<20, 1), (18<38, 1), (24>30, 1), (4<9, 1), (49>8, 1), (18>2, 1), (24>47, 1), (42<4, 1), (36<49, 1), (3<5, 1), (2>35, 1), (31<49, 1), (22>28, 1), (1<5, 1), (48<35, 1), (4<29, 1), (24<18, 1), (50<18, 1), (20<8, 1), (16>18, 1), (22>1, 1), (33>35, 1)])).

test(3, (50, 250, [<, >]), (30, 30, 1), ([26, 41, 39, 17, 16, 47, 40, 1, 33, 48, 23, 38, 36, 35, 19, 13, 28, 8, 30, 43, 42, 9, 21, 32, 44, 22, 45, 11, 31, 46], [39>48, 16>33, 16>28, 16>22, 40>46, 33>40, 23>38, 38>42, 35>47, 35>38, 19>41, 19>42, 19>46, 13>48, 13>28, 13>21, 13>31, 13>46, 8>22, 30>39, 30>35, 43>46, 9>47, 9>44, 9>11, 21>23, 21>46, 32>35, 22>40, 22>33, 22>35, 22>30, 11>26, 11>41, 11>22, 11>46, 31>39, 31>43], [17>16, 39<33, 38>8, 35>13, 44>46, 41>11, 41>32, 26>17, 33>45, 30>31, 40>45, 9>45, 8>22, 48<11, 41>9, 40>23, 39>40, 26<9, 40>38, 22>31, 23>36, 44>22, 42<45, 40<43, 36<46, 40>30, 23>42, 36<13, 41<19, 19<21], [ (26, 1), (41, 1), (39, 1), (17, 1), (16, 1), (47, 1), (40, 1), (1, 1), (33, 1), (48, 1), (23, 1), (38, 1), (36, 1), (35, 1), (19, 1), (13, 1), (28, 1), (8, 1), (30, 1), (43, 1), (42, 1), (9, 1), (21, 1), (32, 1), (44, 1), (22, 1), (45, 1), (11, 1), (31, 1), (46, 1)], [ (17>16, 1), (39<33, 1), (38>8, 1), (35>13, 1), (44>46, 1), (41>11, 1), (41>32, 1), (26>17, 1), (33>45, 1), (30>31, 1), (40>45, 1), (9>45, 1), (8>22, 1), (48<11, 1), (41>9, 1), (40>23, 1), (39>40, 1), (26<9, 1), (40>38, 1), (22>31, 1), (23>36, 1), (44>22, 1), (42<45, 1), (40<43, 1), (36<46, 1), (40>30, 1), (23>42, 1), (36<13, 1), (41<19, 1), (19<21, 1)])).

test(4, (50, 250, [<, >]), (30, 30, 1), ([26, 1, 12, 48, 44, 38, 46, 8, 22, 10, 31, 19, 18, 28, 9, 37, 17, 24, 41, 50, 6, 40, 47, 27, 7, 36, 21, 11, 43, 29], [26>44, 26>38, 26>36, 12>44, 12>40, 48>50, 38>40, 38>43, 46>48, 8>26, 8>18, 22>44, 22>36, 10>17, 31>41, 19>21, 18>26, 18>27, 28>47, 9>38, 9>50, 37>41, 17>48, 17>38, 17>37, 24>38, 24>28, 24>47, 40>47, 47>48, 27>48, 7>22, 7>31, 7>37, 36>41, 36>50, 21>36, 11>31, 11>17, 11>41, 11>40], [44>22, 12<50, 12>19, 37>6, 6<7, 26>12, 46<29, 10>37, 47>43, 44<18, 7>29, 40>47, 10>40, 26>17, 19<40, 48<44, 9>36, 40<43, 48>38, 50<21, 12<40, 17<41, 1<17, 26>36, 1>6, 26>50, 10>6, 28>37, 8>21, 27<11], [ (26, 1), (1, 1), (12, 1), (48, 1), (44, 1), (38, 1), (46, 1), (8, 1), (22, 1), (10, 1), (31, 1), (19, 1), (18, 1), (28, 1), (9, 1), (37, 1), (17, 1), (24, 1), (41, 1), (50, 1), (6, 1), (40, 1), (47, 1), (27, 1), (7, 1), (36, 1), (21, 1), (11, 1), (43, 1), (29, 1)], [ (44>22, 1), (12<50, 1), (12>19, 1), (37>6, 1), (6<7, 1), (26>12, 1), (46<29, 1), (10>37, 1), (47>43, 1), (44<18, 1), (7>29, 1), (40>47, 1), (10>40, 1), (26>17, 1), (19<40, 1), (48<44, 1), (9>36, 1), (40<43, 1), (48>38, 1), (50<21, 1), (12<40, 1), (17<41, 1), (1<17, 1), (26>36, 1), (1>6, 1), (26>50, 1), (10>6, 1), (28>37, 1), (8>21, 1), (27<11, 1)])).

test(5, (50, 250, [<, >]), (30, 30, 1), ([21, 23, 5, 34, 8, 33, 20, 1, 17, 37, 9, 16, 13, 4, 14, 35, 28, 18, 19, 32, 38, 22, 50, 47, 42, 2, 25, 15, 48, 3], [21>37, 21>25, 23>34, 5>23, 5>20, 5>14, 34>35, 8>13, 8>19, 8>38, 8>50, 8>25, 33>50, 20>42, 1>23, 1>8, 1>37, 1>13, 1>2, 17>23, 17>50, 37>38, 9>13, 9>18, 16>34, 16>48, 13>28, 13>25, 4>8, 4>33, 4>9, 4>25, 4>15, 14>23, 14>34, 14>20, 28>34, 28>37, 28>50, 18>20, 19>23, 19>37, 19>47, 38>47, 22>25, 2>5, 3>5, 3>28, 3>38, 3>25], [38<47, 22<50, 19<32, 14<35, 25<48, 8>13, 28<2, 17<16, 17<42, 37<28, 28>25, 1<22, 23<5, 17<15, 5<20, 37<14, 8>33, 33<20, 34<15, 13<19, 17>48, 20>35, 1<9, 13<15, 21<35, 4<38, 20>19, 47<48, 50>3, 13<3], [ (21, 1), (23, 1), (5, 1), (34, 1), (8, 1), (33, 1), (20, 1), (1, 1), (17, 1), (37, 1), (9, 1), (16, 1), (13, 1), (4, 1), (14, 1), (35, 1), (28, 1), (18, 1), (19, 1), (32, 1), (38, 1), (22, 1), (50, 1), (47, 1), (42, 1), (2, 1), (25, 1), (15, 1), (48, 1), (3, 1)], [ (38<47, 1), (22<50, 1), (19<32, 1), (14<35, 1), (25<48, 1), (8>13, 1), (28<2, 1), (17<16, 1), (17<42, 1), (37<28, 1), (28>25, 1), (1<22, 1), (23<5, 1), (17<15, 1), (5<20, 1), (37<14, 1), (8>33, 1), (33<20, 1), (34<15, 1), (13<19, 1), (17>48, 1), (20>35, 1), (1<9, 1), (13<15, 1), (21<35, 1), (4<38, 1), (20>19, 1), (47<48, 1), (50>3, 1), (13<3, 1)])).

test(6, (50, 250, [<, >]), (30, 30, 1), ([11, 44, 30, 1, 2, 35, 8, 3, 4, 48, 50, 26, 10, 6, 33, 41, 46, 20, 5, 31, 7, 16, 19, 37, 47, 25, 15, 9, 49, 36], [11>47, 11>15, 30>35, 30>48, 30>50, 1>8, 1>26, 2>33, 2>9, 35>37, 8>30, 8>33, 8>36, 3>8, 3>48, 3>31, 4>11, 4>33, 26>48, 10>44, 10>20, 10>16, 10>36, 6>48, 6>41, 6>46, 6>31, 6>19, 6>49, 20>46, 20>31, 20>36, 16>31, 16>47, 19>35, 19>20, 19>25, 19>49, 47>50, 47>49, 25>48, 25>50, 25>26, 25>33, 25>49, 15>20], [26<19, 10<20, 44>6, 20>49, 25<15, 33<46, 9>36, 25<9, 11<47, 37<15, 35<26, 2<4, 11<16, 31<49, 5>7, 35>15, 6>20, 3<48, 8>10, 1<2, 35<49, 11<33, 19<9, 6>41, 35>6, 1>48, 41<25, 35<37, 30<15, 4<37], [ (11, 1), (44, 1), (30, 1), (1, 1), (2, 1), (35, 1), (8, 1), (3, 1), (4, 1), (48, 1), (50, 1), (26, 1), (10, 1), (6, 1), (33, 1), (41, 1), (46, 1), (20, 1), (5, 1), (31, 1), (7, 1), (16, 1), (19, 1), (37, 1), (47, 1), (25, 1), (15, 1), (9, 1), (49, 1), (36, 1)], [ (26<19, 1), (10<20, 1), (44>6, 1), (20>49, 1), (25<15, 1), (33<46, 1), (9>36, 1), (25<9, 1), (11<47, 1), (37<15, 1), (35<26, 1), (2<4, 1), (11<16, 1), (31<49, 1), (5>7, 1), (35>15, 1), (6>20, 1), (3<48, 1), (8>10, 1), (1<2, 1), (35<49, 1), (11<33, 1), (19<9, 1), (6>41, 1), (35>6, 1), (1>48, 1), (41<25, 1), (35<37, 1), (30<15, 1), (4<37, 1)])).

test(7, (50, 250, [<, >]), (30, 30, 1), ([39, 48, 18, 24, 42, 32, 19, 20, 16, 36, 4, 21, 6, 28, 22, 1, 12, 9, 31, 43, 3, 33, 41, 44, 8, 40, 17, 15, 30, 14], [39>40, 18>31, 24>28, 19>22, 16>24, 16>42, 16>33, 16>17, 4>18, 4>42, 4>30, 21>44, 6>32, 22>28, 1>19, 1>40, 12>39, 12>48, 12>21, 9>39, 9>18, 9>41, 9>44, 31>36, 31>33, 3>6, 3>44, 3>40, 44>48, 8>48, 8>36, 8>40, 40>41, 17>21, 17>43, 17>40, 15>19, 30>39, 30>44, 14>36, 14>30], [21<44, 28<17, 4>3, 39<6, 41>14, 22<43, 16<21, 32<28, 8<30, 32>6, 28>15, 44>14, 1<3, 21<12, 18<17, 4<44, 21>17, 42>1, 1>44, 8>40, 48<31, 22<17, 42>22, 16>6, 4<41, 43<44, 12>33, 42>16, 12>44, 28>43], [ (39, 1), (48, 1), (18, 1), (24, 1), (42, 1), (32, 1), (19, 1), (20, 1), (16, 1), (36, 1), (4, 1), (21, 1), (6, 1), (28, 1), (22, 1), (1, 1), (12, 1), (9, 1), (31, 1), (43, 1), (3, 1), (33, 1), (41, 1), (44, 1), (8, 1), (40, 1), (17, 1), (15, 1), (30, 1), (14, 1)], [ (21<44, 1), (28<17, 1), (4>3, 1), (39<6, 1), (41>14, 1), (22<43, 1), (16<21, 1), (32<28, 1), (8<30, 1), (32>6, 1), (28>15, 1), (44>14, 1), (1<3, 1), (21<12, 1), (18<17, 1), (4<44, 1), (21>17, 1), (42>1, 1), (1>44, 1), (8>40, 1), (48<31, 1), (22<17, 1), (42>22, 1), (16>6, 1), (4<41, 1), (43<44, 1), (12>33, 1), (42>16, 1), (12>44, 1), (28>43, 1)])).

test(8, (50, 250, [<, >]), (30, 30, 1), ([11, 42, 8, 33, 10, 25, 16, 35, 40, 14, 15, 38, 46, 19, 39, 23, 29, 12, 28, 41, 9, 3, 2, 13, 26, 4, 5, 1, 32, 31], [11>25, 11>35, 8>31, 10>25, 10>16, 10>23, 16>38, 14>42, 14>26, 15>26, 15>31, 19>42, 39>40, 39>41, 12>42, 41>46, 9>11, 9>13, 3>33, 3>19, 3>39, 3>13, 2>15, 2>9, 4>25, 4>35, 4>15, 4>31, 5>25, 5>40, 5>39, 5>9, 1>3, 1>26, 1>32, 31>32], [42<1, 46>26, 14<38, 9<3, 15>31, 33>46, 10<46, 10<29, 35>38, 2>13, 19<39, 28<31, 46<5, 8>25, 16>29, 28>13, 16>12, 10>32, 19<13, 16<1, 29<13, 25>16, 46<39, 39>31, 2>26, 25>14, 15<9, 16>46, 33<15, 46<28], [ (11, 1), (42, 1), (8, 1), (33, 1), (10, 1), (25, 1), (16, 1), (35, 1), (40, 1), (14, 1), (15, 1), (38, 1), (46, 1), (19, 1), (39, 1), (23, 1), (29, 1), (12, 1), (28, 1), (41, 1), (9, 1), (3, 1), (2, 1), (13, 1), (26, 1), (4, 1), (5, 1), (1, 1), (32, 1), (31, 1)], [ (42<1, 1), (46>26, 1), (14<38, 1), (9<3, 1), (15>31, 1), (33>46, 1), (10<46, 1), (10<29, 1), (35>38, 1), (2>13, 1), (19<39, 1), (28<31, 1), (46<5, 1), (8>25, 1), (16>29, 1), (28>13, 1), (16>12, 1), (10>32, 1), (19<13, 1), (16<1, 1), (29<13, 1), (25>16, 1), (46<39, 1), (39>31, 1), (2>26, 1), (25>14, 1), (15<9, 1), (16>46, 1), (33<15, 1), (46<28, 1)])).

test(9, (50, 250, [<, >]), (30, 30, 1), ([50, 1, 48, 8, 45, 36, 39, 31, 46, 12, 3, 18, 49, 9, 16, 32, 27, 47, 30, 5, 29, 38, 43, 23, 20, 17, 44, 25, 6, 15], [1>8, 1>39, 1>12, 1>20, 1>15, 8>45, 8>9, 8>15, 39>50, 39>45, 12>30, 3>50, 3>6, 18>45, 16>45, 16>31, 16>20, 16>17, 32>39, 27>46, 27>43, 47>48, 30>50, 5>47, 5>44, 29>39, 29>31, 29>38, 38>50, 38>39, 43>45, 23>48, 23>38, 20>48, 20>43, 17>48, 17>49, 17>27, 17>23, 17>25, 44>46, 44>47, 6>17, 15>48, 15>39], [36<43, 45<31, 39<9, 17>25, 31>20, 30>25, 29<23, 9<27, 43>20, 36<20, 36<29, 46>12, 50>5, 8>27, 46>29, 39<15, 18>49, 27>25, 30>17, 12>44, 5>6, 1>38, 36>17, 1>45, 48<32, 50>46, 31>49, 36>16, 38<43, 3<18], [ (50, 1), (1, 1), (48, 1), (8, 1), (45, 1), (36, 1), (39, 1), (31, 1), (46, 1), (12, 1), (3, 1), (18, 1), (49, 1), (9, 1), (16, 1), (32, 1), (27, 1), (47, 1), (30, 1), (5, 1), (29, 1), (38, 1), (43, 1), (23, 1), (20, 1), (17, 1), (44, 1), (25, 1), (6, 1), (15, 1)], [ (36<43, 1), (45<31, 1), (39<9, 1), (17>25, 1), (31>20, 1), (30>25, 1), (29<23, 1), (9<27, 1), (43>20, 1), (36<20, 1), (36<29, 1), (46>12, 1), (50>5, 1), (8>27, 1), (46>29, 1), (39<15, 1), (18>49, 1), (27>25, 1), (30>17, 1), (12>44, 1), (5>6, 1), (1>38, 1), (36>17, 1), (1>45, 1), (48<32, 1), (50>46, 1), (31>49, 1), (36>16, 1), (38<43, 1), (3<18, 1)])).

test(10, (50, 250, [<, >]), (30, 30, 1), ([48, 49, 27, 35, 16, 40, 41, 23, 31, 25, 37, 13, 26, 7, 45, 19, 50, 3, 9, 43, 30, 20, 36, 17, 12, 18, 34, 22, 1, 14], [27>31, 35>45, 35>36, 16>41, 16>45, 25>26, 25>45, 25>34, 37>43, 13>40, 13>19, 13>36, 7>27, 19>35, 19>50, 3>48, 3>13, 3>17, 9>25, 9>43, 9>36, 30>45, 20>36, 36>40, 36>41, 12>48, 18>36, 34>49, 22>35, 1>48, 1>31, 1>19, 1>12, 14>30], [45>36, 48<26, 36>1, 13>26, 40>18, 16>50, 16>25, 48<36, 37>7, 26<12, 31>25, 30<14, 16<19, 41<3, 40<13, 50>1, 7<43, 48<19, 19>43, 25>34, 45<12, 20>36, 16>31, 23<14, 36>17, 49<40, 27<30, 41<25, 48>3, 49<43], [ (48, 1), (49, 1), (27, 1), (35, 1), (16, 1), (40, 1), (41, 1), (23, 1), (31, 1), (25, 1), (37, 1), (13, 1), (26, 1), (7, 1), (45, 1), (19, 1), (50, 1), (3, 1), (9, 1), (43, 1), (30, 1), (20, 1), (36, 1), (17, 1), (12, 1), (18, 1), (34, 1), (22, 1), (1, 1), (14, 1)], [ (45>36, 1), (48<26, 1), (36>1, 1), (13>26, 1), (40>18, 1), (16>50, 1), (16>25, 1), (48<36, 1), (37>7, 1), (26<12, 1), (31>25, 1), (30<14, 1), (16<19, 1), (41<3, 1), (40<13, 1), (50>1, 1), (7<43, 1), (48<19, 1), (19>43, 1), (25>34, 1), (45<12, 1), (20>36, 1), (16>31, 1), (23<14, 1), (36>17, 1), (49<40, 1), (27<30, 1), (41<25, 1), (48>3, 1), (49<43, 1)])).

%% 50, 250, [<, >]
%% 35, 35, 1

test(1, (50, 250, [<, >]), (35, 35, 1), ([35, 38, 27, 11, 9, 13, 17, 12, 14, 40, 25, 47, 26, 6, 34, 8, 1, 2, 15, 45, 29, 39, 5, 10, 36, 19, 49, 7, 44, 4, 28, 31, 3, 41, 21], [35>49, 35>44, 38>49, 27>41, 11>13, 11>28, 9>25, 9>39, 9>28, 9>41, 13>35, 13>47, 13>36, 13>41, 17>40, 14>40, 14>47, 14>26, 25>35, 25>28, 26>27, 26>47, 8>31, 1>29, 1>7, 2>38, 2>26, 2>39, 2>19, 15>40, 15>25, 15>21, 45>49, 29>34, 39>40, 39>45, 5>14, 5>40, 5>7, 19>26, 19>31, 7>27, 7>36, 7>41, 44>49, 4>27, 4>5, 4>28, 28>38, 28>44, 31>36, 3>29, 3>10, 3>4, 21>40, 21>47, 21>26, 21>29], [36>44, 17<1, 27>19, 11>5, 35>19, 13>47, 6>4, 1<31, 47<26, 39>5, 39<10, 39>31, 26>6, 5>41, 34<15, 14>45, 1>2, 9<45, 35<10, 29>41, 17<41, 45<49, 35>29, 29>10, 14>7, 35<12, 44>28, 27<25, 14>29, 13<3, 11>13, 31<41, 34>41, 9>41, 34>4], [ (35, 1), (38, 1), (27, 1), (11, 1), (9, 1), (13, 1), (17, 1), (12, 1), (14, 1), (40, 1), (25, 1), (47, 1), (26, 1), (6, 1), (34, 1), (8, 1), (1, 1), (2, 1), (15, 1), (45, 1), (29, 1), (39, 1), (5, 1), (10, 1), (36, 1), (19, 1), (49, 1), (7, 1), (44, 1), (4, 1), (28, 1), (31, 1), (3, 1), (41, 1), (21, 1)], [ (36>44, 1), (17<1, 1), (27>19, 1), (11>5, 1), (35>19, 1), (13>47, 1), (6>4, 1), (1<31, 1), (47<26, 1), (39>5, 1), (39<10, 1), (39>31, 1), (26>6, 1), (5>41, 1), (34<15, 1), (14>45, 1), (1>2, 1), (9<45, 1), (35<10, 1), (29>41, 1), (17<41, 1), (45<49, 1), (35>29, 1), (29>10, 1), (14>7, 1), (35<12, 1), (44>28, 1), (27<25, 1), (14>29, 1), (13<3, 1), (11>13, 1), (31<41, 1), (34>41, 1), (9>41, 1), (34>4, 1)])).

test(2, (50, 250, [<, >]), (35, 35, 1), ([12, 45, 3, 21, 40, 13, 14, 27, 37, 25, 10, 50, 17, 15, 11, 46, 36, 24, 31, 34, 33, 9, 16, 44, 47, 32, 7, 48, 39, 42, 28, 26, 20, 29, 38], [12>13, 12>33, 3>45, 3>21, 3>17, 3>33, 3>32, 3>48, 3>20, 21>45, 40>44, 13>27, 13>32, 13>48, 13>39, 13>38, 14>36, 14>44, 14>39, 14>42, 37>40, 37>42, 25>45, 25>50, 25>39, 10>25, 10>17, 10>15, 17>25, 17>24, 15>33, 11>36, 11>47, 11>48, 36>40, 36>48, 36>38, 34>38, 9>45, 9>37, 9>50, 9>24, 9>33, 9>29, 9>38, 16>21, 16>47, 16>48, 16>39, 16>26, 44>50, 44>46, 32>47, 7>14, 7>37, 7>25, 42>45, 28>37, 28>50, 28>44, 28>47, 28>42, 26>50, 26>42, 20>29, 29>37, 38>46], [50<34, 46>29, 15<33, 12>27, 11<7, 21>46, 36>39, 3>9, 14>25, 32<38, 12<14, 14<24, 40<48, 45>16, 11<38, 44<47, 16<39, 13<11, 31<38, 45<38, 36<42, 15<39, 16<20, 14>33, 46>48, 24<29, 37<25, 25>47, 11<16, 25<44, 21<40, 25<42, 3<38, 21>44, 36<29], [ (12, 1), (45, 1), (3, 1), (21, 1), (40, 1), (13, 1), (14, 1), (27, 1), (37, 1), (25, 1), (10, 1), (50, 1), (17, 1), (15, 1), (11, 1), (46, 1), (36, 1), (24, 1), (31, 1), (34, 1), (33, 1), (9, 1), (16, 1), (44, 1), (47, 1), (32, 1), (7, 1), (48, 1), (39, 1), (42, 1), (28, 1), (26, 1), (20, 1), (29, 1), (38, 1)], [ (50<34, 1), (46>29, 1), (15<33, 1), (12>27, 1), (11<7, 1), (21>46, 1), (36>39, 1), (3>9, 1), (14>25, 1), (32<38, 1), (12<14, 1), (14<24, 1), (40<48, 1), (45>16, 1), (11<38, 1), (44<47, 1), (16<39, 1), (13<11, 1), (31<38, 1), (45<38, 1), (36<42, 1), (15<39, 1), (16<20, 1), (14>33, 1), (46>48, 1), (24<29, 1), (37<25, 1), (25>47, 1), (11<16, 1), (25<44, 1), (21<40, 1), (25<42, 1), (3<38, 1), (21>44, 1), (36<29, 1)])).

test(3, (50, 250, [<, >]), (35, 35, 1), ([43, 7, 37, 36, 22, 40, 45, 4, 11, 34, 38, 19, 35, 1, 24, 33, 30, 23, 3, 21, 16, 15, 12, 17, 29, 13, 44, 42, 5, 25, 47, 14, 50, 48, 32], [43>50, 43>48, 7>24, 37>43, 22>29, 22>44, 45>50, 4>34, 4>16, 4>13, 11>36, 11>23, 11>17, 11>44, 34>43, 34>44, 38>45, 38>42, 19>44, 19>32, 35>47, 1>4, 1>3, 1>13, 1>47, 24>45, 33>43, 33>47, 30>36, 30>44, 23>45, 23>38, 3>38, 3>13, 3>47, 21>45, 21>32, 16>35, 16>30, 15>23, 15>44, 15>48, 12>37, 12>21, 17>38, 29>43, 29>40, 29>34, 29>50, 29>48, 13>34, 13>23, 13>42, 13>14, 42>45, 5>37, 5>40], [30<23, 24<48, 21<50, 36>40, 1<12, 19<25, 21>14, 19<14, 34<15, 35<3, 11<19, 40<24, 36>25, 22>16, 5<25, 40<23, 4>42, 40>34, 16<5, 29<48, 25<47, 11>23, 23<3, 15<42, 7<16, 35<25, 47>48, 13<44, 34<32, 36<14, 40>11, 43>7, 23>44, 13>42, 22<24], [ (43, 1), (7, 1), (37, 1), (36, 1), (22, 1), (40, 1), (45, 1), (4, 1), (11, 1), (34, 1), (38, 1), (19, 1), (35, 1), (1, 1), (24, 1), (33, 1), (30, 1), (23, 1), (3, 1), (21, 1), (16, 1), (15, 1), (12, 1), (17, 1), (29, 1), (13, 1), (44, 1), (42, 1), (5, 1), (25, 1), (47, 1), (14, 1), (50, 1), (48, 1), (32, 1)], [ (30<23, 1), (24<48, 1), (21<50, 1), (36>40, 1), (1<12, 1), (19<25, 1), (21>14, 1), (19<14, 1), (34<15, 1), (35<3, 1), (11<19, 1), (40<24, 1), (36>25, 1), (22>16, 1), (5<25, 1), (40<23, 1), (4>42, 1), (40>34, 1), (16<5, 1), (29<48, 1), (25<47, 1), (11>23, 1), (23<3, 1), (15<42, 1), (7<16, 1), (35<25, 1), (47>48, 1), (13<44, 1), (34<32, 1), (36<14, 1), (40>11, 1), (43>7, 1), (23>44, 1), (13>42, 1), (22<24, 1)])).

test(4, (50, 250, [<, >]), (35, 35, 1), ([2, 22, 41, 34, 39, 29, 21, 38, 32, 47, 33, 14, 28, 8, 40, 3, 20, 12, 17, 13, 15, 45, 23, 46, 50, 49, 1, 10, 6, 11, 44, 27, 5, 4, 42], [2>33, 2>12, 2>23, 2>46, 2>50, 22>29, 22>28, 22>40, 41>45, 41>42, 34>44, 29>44, 29>42, 21>33, 21>45, 21>49, 21>42, 32>34, 32>33, 32>45, 32>50, 33>49, 14>29, 14>23, 28>46, 8>40, 8>13, 8>49, 40>42, 3>34, 3>50, 3>6, 20>33, 20>28, 20>44, 12>34, 12>29, 12>17, 13>29, 13>33, 13>46, 15>33, 15>44, 23>28, 1>41, 1>38, 1>8, 1>40, 1>44, 10>39, 10>23, 10>11, 6>41, 6>20, 6>50, 11>23, 27>29, 27>44, 5>46, 5>10, 5>44, 5>42, 42>50], [10>4, 40<5, 14>10, 49>6, 34>29, 29>32, 20>12, 33>27, 21<4, 10<5, 32>6, 33>13, 13<46, 45>1, 39<32, 13<42, 39<28, 11<4, 47<17, 21>17, 33<45, 15>11, 22>49, 14<46, 41>34, 33>44, 8<40, 32>14, 27<4, 29>11, 50>5, 28<17, 12<45, 15>10, 50<10], [ (2, 1), (22, 1), (41, 1), (34, 1), (39, 1), (29, 1), (21, 1), (38, 1), (32, 1), (47, 1), (33, 1), (14, 1), (28, 1), (8, 1), (40, 1), (3, 1), (20, 1), (12, 1), (17, 1), (13, 1), (15, 1), (45, 1), (23, 1), (46, 1), (50, 1), (49, 1), (1, 1), (10, 1), (6, 1), (11, 1), (44, 1), (27, 1), (5, 1), (4, 1), (42, 1)], [ (10>4, 1), (40<5, 1), (14>10, 1), (49>6, 1), (34>29, 1), (29>32, 1), (20>12, 1), (33>27, 1), (21<4, 1), (10<5, 1), (32>6, 1), (33>13, 1), (13<46, 1), (45>1, 1), (39<32, 1), (13<42, 1), (39<28, 1), (11<4, 1), (47<17, 1), (21>17, 1), (33<45, 1), (15>11, 1), (22>49, 1), (14<46, 1), (41>34, 1), (33>44, 1), (8<40, 1), (32>14, 1), (27<4, 1), (29>11, 1), (50>5, 1), (28<17, 1), (12<45, 1), (15>10, 1), (50<10, 1)])).

test(5, (50, 250, [<, >]), (35, 35, 1), ([22, 37, 45, 38, 2, 35, 42, 31, 26, 24, 49, 8, 17, 39, 6, 32, 23, 9, 4, 34, 36, 48, 21, 30, 14, 25, 44, 40, 47, 12, 1, 19, 27, 13, 46], [22>31, 22>49, 22>47, 37>44, 45>48, 38>47, 2>45, 2>35, 2>23, 2>30, 2>27, 2>46, 31>39, 31>40, 24>42, 24>32, 8>45, 8>23, 8>12, 8>46, 17>30, 17>47, 39>48, 6>12, 23>44, 9>24, 9>12, 4>42, 4>9, 34>39, 36>47, 48>49, 21>22, 21>32, 21>48, 21>40, 30>40, 25>26, 25>34, 25>30, 12>48, 12>25, 12>13, 1>38, 1>8, 1>23, 1>4, 1>14, 1>25, 19>23, 19>46, 27>38, 13>49, 13>44, 13>40, 46>47], [37<24, 37>47, 24<39, 38>42, 32<21, 26<23, 38<23, 25>12, 45<23, 8>14, 30<13, 45>31, 19<13, 35<48, 49>47, 35<31, 42<14, 35>1, 42>23, 49<25, 38<39, 45<27, 31>1, 2>9, 32>44, 32>9, 42>31, 24>34, 39<9, 48>12, 35>30, 25<44, 35>6, 48<21, 22<37], [ (22, 1), (37, 1), (45, 1), (38, 1), (2, 1), (35, 1), (42, 1), (31, 1), (26, 1), (24, 1), (49, 1), (8, 1), (17, 1), (39, 1), (6, 1), (32, 1), (23, 1), (9, 1), (4, 1), (34, 1), (36, 1), (48, 1), (21, 1), (30, 1), (14, 1), (25, 1), (44, 1), (40, 1), (47, 1), (12, 1), (1, 1), (19, 1), (27, 1), (13, 1), (46, 1)], [ (37<24, 1), (37>47, 1), (24<39, 1), (38>42, 1), (32<21, 1), (26<23, 1), (38<23, 1), (25>12, 1), (45<23, 1), (8>14, 1), (30<13, 1), (45>31, 1), (19<13, 1), (35<48, 1), (49>47, 1), (35<31, 1), (42<14, 1), (35>1, 1), (42>23, 1), (49<25, 1), (38<39, 1), (45<27, 1), (31>1, 1), (2>9, 1), (32>44, 1), (32>9, 1), (42>31, 1), (24>34, 1), (39<9, 1), (48>12, 1), (35>30, 1), (25<44, 1), (35>6, 1), (48<21, 1), (22<37, 1)])).

test(6, (50, 250, [<, >]), (35, 35, 1), ([35, 40, 1, 27, 16, 38, 14, 9, 41, 44, 25, 45, 19, 22, 39, 49, 23, 37, 30, 4, 21, 42, 18, 11, 7, 34, 46, 2, 17, 3, 28, 13, 48, 26, 8], [35>49, 1>25, 1>22, 1>4, 1>46, 1>17, 27>34, 16>19, 38>44, 14>16, 14>30, 14>34, 14>46, 9>44, 9>13, 19>39, 19>23, 19>28, 19>48, 22>27, 39>45, 23>25, 37>48, 30>44, 4>19, 4>30, 4>7, 4>48, 21>27, 21>41, 21>45, 18>40, 18>42, 11>40, 11>39, 7>39, 2>49, 2>4, 2>42, 2>18, 17>19, 17>28, 3>40, 3>38, 28>41, 28>44, 13>35, 13>38, 13>17, 26>45, 26>37, 8>21, 8>18], [39>4, 45>2, 22>13, 18>34, 40<14, 14<25, 27>7, 18>3, 39<42, 23>18, 38<18, 19>4, 38<41, 44>23, 27>49, 44>3, 34>28, 41<26, 27>14, 1<46, 23<34, 30<2, 22<23, 22<8, 1<13, 37<4, 45>18, 39<11, 35>22, 39<18, 1>44, 35<13, 14<3, 16<19, 19>22], [ (35, 1), (40, 1), (1, 1), (27, 1), (16, 1), (38, 1), (14, 1), (9, 1), (41, 1), (44, 1), (25, 1), (45, 1), (19, 1), (22, 1), (39, 1), (49, 1), (23, 1), (37, 1), (30, 1), (4, 1), (21, 1), (42, 1), (18, 1), (11, 1), (7, 1), (34, 1), (46, 1), (2, 1), (17, 1), (3, 1), (28, 1), (13, 1), (48, 1), (26, 1), (8, 1)], [ (39>4, 1), (45>2, 1), (22>13, 1), (18>34, 1), (40<14, 1), (14<25, 1), (27>7, 1), (18>3, 1), (39<42, 1), (23>18, 1), (38<18, 1), (19>4, 1), (38<41, 1), (44>23, 1), (27>49, 1), (44>3, 1), (34>28, 1), (41<26, 1), (27>14, 1), (1<46, 1), (23<34, 1), (30<2, 1), (22<23, 1), (22<8, 1), (1<13, 1), (37<4, 1), (45>18, 1), (39<11, 1), (35>22, 1), (39<18, 1), (1>44, 1), (35<13, 1), (14<3, 1), (16<19, 1), (19>22, 1)])).

test(7, (50, 250, [<, >]), (35, 35, 1), ([26, 39, 45, 42, 50, 5, 34, 30, 10, 11, 43, 16, 29, 14, 31, 19, 27, 12, 41, 37, 2, 36, 35, 22, 33, 47, 23, 15, 24, 17, 3, 18, 21, 49, 44], [26>39, 26>31, 26>41, 26>44, 42>50, 5>17, 34>42, 34>35, 30>42, 30>43, 10>42, 10>49, 11>23, 11>21, 16>21, 29>49, 14>19, 31>47, 19>29, 27>34, 27>49, 12>26, 12>15, 41>50, 41>44, 2>44, 22>45, 22>30, 22>43, 22>29, 33>34, 23>36, 23>49, 15>34, 15>43, 15>19, 15>37, 15>35, 15>33, 15>18, 24>26, 24>31, 24>49, 17>34, 17>47, 17>18, 3>26, 3>14, 3>18, 18>50, 18>30, 18>19, 18>23, 18>21, 18>44, 21>26, 21>36, 21>44, 44>45, 44>49], [42>27, 11>12, 11<27, 37>22, 30>35, 45<14, 42<35, 47<24, 31<18, 34>44, 35>24, 42<31, 11>47, 10<47, 3>21, 5<37, 39>14, 42<14, 11<33, 17>3, 26>39, 29>2, 34<37, 39>34, 37>3, 30<3, 37>18, 34<12, 29>15, 11>22, 30>49, 33>15, 29>35, 3<44, 12<2], [ (26, 1), (39, 1), (45, 1), (42, 1), (50, 1), (5, 1), (34, 1), (30, 1), (10, 1), (11, 1), (43, 1), (16, 1), (29, 1), (14, 1), (31, 1), (19, 1), (27, 1), (12, 1), (41, 1), (37, 1), (2, 1), (36, 1), (35, 1), (22, 1), (33, 1), (47, 1), (23, 1), (15, 1), (24, 1), (17, 1), (3, 1), (18, 1), (21, 1), (49, 1), (44, 1)], [ (42>27, 1), (11>12, 1), (11<27, 1), (37>22, 1), (30>35, 1), (45<14, 1), (42<35, 1), (47<24, 1), (31<18, 1), (34>44, 1), (35>24, 1), (42<31, 1), (11>47, 1), (10<47, 1), (3>21, 1), (5<37, 1), (39>14, 1), (42<14, 1), (11<33, 1), (17>3, 1), (26>39, 1), (29>2, 1), (34<37, 1), (39>34, 1), (37>3, 1), (30<3, 1), (37>18, 1), (34<12, 1), (29>15, 1), (11>22, 1), (30>49, 1), (33>15, 1), (29>35, 1), (3<44, 1), (12<2, 1)])).

test(8, (50, 250, [<, >]), (35, 35, 1), ([22, 8, 2, 40, 9, 29, 39, 38, 10, 5, 1, 35, 36, 37, 21, 34, 4, 6, 19, 42, 30, 7, 11, 17, 20, 50, 26, 44, 49, 48, 3, 31, 13, 15, 12], [22>35, 22>34, 22>30, 8>29, 2>10, 2>21, 2>7, 40>48, 9>50, 9>15, 38>42, 38>44, 10>36, 5>8, 5>11, 5>15, 1>40, 1>37, 1>49, 1>15, 35>50, 21>22, 21>38, 21>44, 21>31, 34>40, 34>37, 4>39, 4>10, 4>35, 4>21, 6>29, 6>21, 6>7, 6>20, 7>11, 7>44, 11>40, 11>50, 17>37, 17>48, 20>22, 20>29, 20>21, 20>30, 20>44, 26>35, 26>31, 3>9, 3>38, 3>31, 3>12, 31>38, 31>35, 13>37, 13>15, 15>22, 15>17, 15>50, 12>39, 12>49], [30>15, 2<1, 34<3, 38<35, 22<49, 39<13, 40>31, 26<12, 37>20, 38>3, 20>13, 5>3, 7>11, 22>2, 19>12, 2>35, 38>15, 21>26, 38>37, 19>42, 39<3, 36>31, 39>10, 42>44, 11<49, 4<48, 29<13, 29>6, 6<15, 9<39, 44<13, 1>35, 2>37, 40<19, 26>48], [ (22, 1), (8, 1), (2, 1), (40, 1), (9, 1), (29, 1), (39, 1), (38, 1), (10, 1), (5, 1), (1, 1), (35, 1), (36, 1), (37, 1), (21, 1), (34, 1), (4, 1), (6, 1), (19, 1), (42, 1), (30, 1), (7, 1), (11, 1), (17, 1), (20, 1), (50, 1), (26, 1), (44, 1), (49, 1), (48, 1), (3, 1), (31, 1), (13, 1), (15, 1), (12, 1)], [ (30>15, 1), (2<1, 1), (34<3, 1), (38<35, 1), (22<49, 1), (39<13, 1), (40>31, 1), (26<12, 1), (37>20, 1), (38>3, 1), (20>13, 1), (5>3, 1), (7>11, 1), (22>2, 1), (19>12, 1), (2>35, 1), (38>15, 1), (21>26, 1), (38>37, 1), (19>42, 1), (39<3, 1), (36>31, 1), (39>10, 1), (42>44, 1), (11<49, 1), (4<48, 1), (29<13, 1), (29>6, 1), (6<15, 1), (9<39, 1), (44<13, 1), (1>35, 1), (2>37, 1), (40<19, 1), (26>48, 1)])).

test(9, (50, 250, [<, >]), (35, 35, 1), ([9, 34, 50, 25, 12, 46, 20, 38, 33, 36, 31, 26, 7, 35, 14, 49, 43, 1, 41, 4, 15, 32, 39, 42, 3, 21, 5, 30, 2, 47, 18, 8, 22, 44, 16], [9>38, 9>32, 9>18, 25>32, 12>34, 12>20, 12>15, 12>22, 20>46, 38>42, 33>49, 36>43, 36>42, 31>50, 31>32, 26>34, 7>50, 7>36, 35>38, 35>36, 14>32, 14>39, 14>30, 49>50, 43>50, 43>46, 43>49, 1>38, 1>33, 1>26, 1>14, 1>8, 4>25, 4>38, 4>33, 4>7, 4>32, 15>36, 15>41, 3>46, 3>31, 3>21, 3>5, 21>46, 21>36, 21>41, 5>25, 5>7, 5>16, 30>36, 30>41, 2>33, 2>22, 2>44, 18>46, 18>26, 8>33, 8>36, 8>18, 22>33, 44>49, 16>39], [36>42, 38>14, 9<38, 7<49, 50>44, 50<1, 12>8, 46<44, 30<8, 3<5, 43<21, 34>31, 26<18, 7>21, 34>3, 50<12, 35>15, 47<22, 5<44, 39<47, 9>14, 9>36, 32<22, 33>41, 25<22, 7>5, 15>8, 46<42, 31>16, 7>3, 1>8, 50<22, 25>33, 18<22, 14<39], [ (9, 1), (34, 1), (50, 1), (25, 1), (12, 1), (46, 1), (20, 1), (38, 1), (33, 1), (36, 1), (31, 1), (26, 1), (7, 1), (35, 1), (14, 1), (49, 1), (43, 1), (1, 1), (41, 1), (4, 1), (15, 1), (32, 1), (39, 1), (42, 1), (3, 1), (21, 1), (5, 1), (30, 1), (2, 1), (47, 1), (18, 1), (8, 1), (22, 1), (44, 1), (16, 1)], [ (36>42, 1), (38>14, 1), (9<38, 1), (7<49, 1), (50>44, 1), (50<1, 1), (12>8, 1), (46<44, 1), (30<8, 1), (3<5, 1), (43<21, 1), (34>31, 1), (26<18, 1), (7>21, 1), (34>3, 1), (50<12, 1), (35>15, 1), (47<22, 1), (5<44, 1), (39<47, 1), (9>14, 1), (9>36, 1), (32<22, 1), (33>41, 1), (25<22, 1), (7>5, 1), (15>8, 1), (46<42, 1), (31>16, 1), (7>3, 1), (1>8, 1), (50<22, 1), (25>33, 1), (18<22, 1), (14<39, 1)])).

test(10, (50, 250, [<, >]), (35, 35, 1), ([33, 5, 21, 37, 32, 38, 47, 11, 46, 50, 15, 20, 44, 45, 8, 3, 25, 30, 16, 19, 6, 41, 28, 26, 13, 17, 29, 34, 40, 36, 4, 14, 24, 10, 27], [33>37, 33>44, 5>46, 5>16, 5>24, 21>37, 37>45, 11>50, 11>15, 11>20, 46>50, 15>46, 15>26, 15>27, 20>45, 20>29, 45>47, 45>50, 8>34, 8>36, 3>33, 3>37, 3>32, 3>50, 3>6, 3>17, 3>34, 30>37, 16>47, 16>26, 19>37, 6>45, 6>19, 41>45, 28>44, 28>34, 26>40, 13>26, 13>40, 17>33, 17>47, 17>30, 17>36, 29>36, 34>47, 34>46, 34>44, 34>45, 34>41, 36>50, 4>33, 4>5, 4>38, 4>15, 4>41, 4>14, 4>10, 14>15, 14>20, 14>28, 14>24, 24>46, 24>36, 10>11, 10>15, 27>41], [46<41, 47>28, 21>44, 46>8, 5>44, 21>34, 44>3, 28<27, 11<44, 37>36, 17<36, 5<32, 36<27, 44<34, 30>34, 5<17, 13<14, 46>27, 20>24, 41>4, 6>13, 20>34, 21>32, 15>40, 50>44, 17>4, 50>15, 44<25, 41>26, 40>27, 46<44, 29>36, 37<3, 16<27, 21>4], [ (33, 1), (5, 1), (21, 1), (37, 1), (32, 1), (38, 1), (47, 1), (11, 1), (46, 1), (50, 1), (15, 1), (20, 1), (44, 1), (45, 1), (8, 1), (3, 1), (25, 1), (30, 1), (16, 1), (19, 1), (6, 1), (41, 1), (28, 1), (26, 1), (13, 1), (17, 1), (29, 1), (34, 1), (40, 1), (36, 1), (4, 1), (14, 1), (24, 1), (10, 1), (27, 1)], [ (46<41, 1), (47>28, 1), (21>44, 1), (46>8, 1), (5>44, 1), (21>34, 1), (44>3, 1), (28<27, 1), (11<44, 1), (37>36, 1), (17<36, 1), (5<32, 1), (36<27, 1), (44<34, 1), (30>34, 1), (5<17, 1), (13<14, 1), (46>27, 1), (20>24, 1), (41>4, 1), (6>13, 1), (20>34, 1), (21>32, 1), (15>40, 1), (50>44, 1), (17>4, 1), (50>15, 1), (44<25, 1), (41>26, 1), (40>27, 1), (46<44, 1), (29>36, 1), (37<3, 1), (16<27, 1), (21>4, 1)])).

%% 50, 250, [<, >]
%% 40, 40, 1

test(1, (50, 250, [<, >]), (40, 40, 1), ([39, 7, 15, 3, 22, 29, 27, 8, 17, 26, 43, 37, 28, 50, 13, 41, 25, 10, 24, 6, 12, 46, 38, 35, 48, 42, 9, 47, 20, 34, 5, 11, 21, 14, 30, 32, 18, 33, 36, 4], [7>50, 7>18, 7>33, 15>46, 3>17, 3>26, 3>28, 3>9, 3>32, 3>18, 22>29, 22>27, 22>50, 22>36, 29>34, 29>32, 27>29, 27>43, 27>42, 27>33, 8>37, 8>35, 8>32, 17>27, 17>46, 17>48, 17>36, 26>29, 26>42, 28>39, 28>34, 13>28, 13>21, 41>43, 25>39, 25>28, 25>50, 25>30, 10>17, 24>26, 24>46, 6>37, 6>50, 6>38, 6>20, 6>32, 12>39, 12>22, 12>26, 12>37, 12>38, 12>36, 46>47, 35>38, 42>46, 9>15, 9>37, 9>21, 20>43, 20>35, 34>46, 34>47, 5>15, 5>27, 5>38, 5>42, 11>27, 11>25, 11>47, 11>14, 11>36, 21>29, 21>33, 21>36, 14>26, 14>50, 14>30, 30>41, 32>43, 32>38, 32>35, 18>47, 18>33, 18>36, 33>39, 36>47, 4>39, 4>26, 4>41, 4>10, 4>34], [28>35, 29<50, 46<48, 41<5, 28<5, 6<4, 5<18, 26<5, 7>21, 41<12, 15<50, 3<8, 50>24, 24>38, 10>24, 48<9, 10>30, 24<9, 29<46, 20<11, 3>29, 12<11, 7<5, 46>14, 13>47, 47>36, 3>10, 3<50, 39<48, 34<14, 32>33, 28<13, 7<18, 13>35, 9>33, 34<18, 26<42, 50<41, 8>35, 39>6], [ (39, 1), (7, 1), (15, 1), (3, 1), (22, 1), (29, 1), (27, 1), (8, 1), (17, 1), (26, 1), (43, 1), (37, 1), (28, 1), (50, 1), (13, 1), (41, 1), (25, 1), (10, 1), (24, 1), (6, 1), (12, 1), (46, 1), (38, 1), (35, 1), (48, 1), (42, 1), (9, 1), (47, 1), (20, 1), (34, 1), (5, 1), (11, 1), (21, 1), (14, 1), (30, 1), (32, 1), (18, 1), (33, 1), (36, 1), (4, 1)], [ (28>35, 1), (29<50, 1), (46<48, 1), (41<5, 1), (28<5, 1), (6<4, 1), (5<18, 1), (26<5, 1), (7>21, 1), (41<12, 1), (15<50, 1), (3<8, 1), (50>24, 1), (24>38, 1), (10>24, 1), (48<9, 1), (10>30, 1), (24<9, 1), (29<46, 1), (20<11, 1), (3>29, 1), (12<11, 1), (7<5, 1), (46>14, 1), (13>47, 1), (47>36, 1), (3>10, 1), (3<50, 1), (39<48, 1), (34<14, 1), (32>33, 1), (28<13, 1), (7<18, 1), (13>35, 1), (9>33, 1), (34<18, 1), (26<42, 1), (50<41, 1), (8>35, 1), (39>6, 1)])).

test(2, (50, 250, [<, >]), (40, 40, 1), ([7, 44, 24, 17, 13, 19, 22, 2, 50, 42, 41, 8, 23, 33, 38, 40, 36, 35, 43, 18, 26, 3, 20, 12, 11, 10, 29, 28, 15, 47, 27, 25, 49, 4, 34, 30, 48, 37, 1, 6], [7>42, 7>43, 7>20, 24>41, 24>38, 24>36, 24>48, 24>37, 17>26, 17>20, 17>25, 13>17, 13>22, 13>40, 13>25, 13>30, 13>37, 19>50, 19>38, 19>40, 19>20, 22>36, 22>43, 2>23, 2>48, 2>6, 42>44, 42>43, 41>42, 41>49, 8>28, 8>34, 23>43, 23>28, 40>50, 36>42, 35>37, 43>44, 43>47, 18>38, 26>40, 3>24, 3>15, 3>47, 3>34, 3>37, 20>26, 20>28, 20>47, 20>27, 11>24, 10>40, 10>47, 29>38, 28>41, 15>24, 15>30, 27>50, 27>36, 25>44, 25>30, 25>37, 4>17, 4>22, 4>8, 4>23, 4>48, 4>6, 34>48, 37>50, 1>33, 1>29, 6>19, 6>8, 6>40, 6>20, 6>15, 6>49], [13>43, 43>3, 17<27, 38<1, 41>28, 10>34, 29<4, 36>6, 36>15, 33>30, 44<11, 18<3, 24<35, 7>3, 42>10, 42>47, 8>48, 41>43, 22>6, 27<1, 40<3, 13>11, 8<27, 13>2, 50>11, 2>38, 26<15, 23>33, 41>6, 50<33, 25>30, 40<20, 42>40, 44>42, 17>28, 11<25, 2<4, 2>30, 8<12, 33>12], [ (7, 1), (44, 1), (24, 1), (17, 1), (13, 1), (19, 1), (22, 1), (2, 1), (50, 1), (42, 1), (41, 1), (8, 1), (23, 1), (33, 1), (38, 1), (40, 1), (36, 1), (35, 1), (43, 1), (18, 1), (26, 1), (3, 1), (20, 1), (12, 1), (11, 1), (10, 1), (29, 1), (28, 1), (15, 1), (47, 1), (27, 1), (25, 1), (49, 1), (4, 1), (34, 1), (30, 1), (48, 1), (37, 1), (1, 1), (6, 1)], [ (13>43, 1), (43>3, 1), (17<27, 1), (38<1, 1), (41>28, 1), (10>34, 1), (29<4, 1), (36>6, 1), (36>15, 1), (33>30, 1), (44<11, 1), (18<3, 1), (24<35, 1), (7>3, 1), (42>10, 1), (42>47, 1), (8>48, 1), (41>43, 1), (22>6, 1), (27<1, 1), (40<3, 1), (13>11, 1), (8<27, 1), (13>2, 1), (50>11, 1), (2>38, 1), (26<15, 1), (23>33, 1), (41>6, 1), (50<33, 1), (25>30, 1), (40<20, 1), (42>40, 1), (44>42, 1), (17>28, 1), (11<25, 1), (2<4, 1), (2>30, 1), (8<12, 1), (33>12, 1)])).

test(3, (50, 250, [<, >]), (40, 40, 1), ([38, 29, 7, 32, 43, 6, 41, 20, 34, 11, 22, 18, 36, 24, 50, 19, 8, 31, 3, 27, 25, 35, 30, 15, 1, 39, 10, 28, 26, 14, 12, 48, 21, 37, 44, 40, 2, 4, 47, 46], [29>41, 29>30, 7>43, 7>34, 7>18, 7>14, 32>40, 43>50, 43>47, 6>43, 6>50, 6>21, 20>29, 20>36, 34>44, 11>18, 11>27, 11>26, 22>43, 22>47, 18>34, 18>19, 18>21, 18>44, 18>47, 36>50, 36>48, 24>35, 19>50, 19>39, 19>26, 19>37, 19>44, 8>38, 8>29, 8>11, 8>25, 8>37, 31>48, 27>34, 27>35, 25>34, 35>41, 30>36, 15>32, 15>35, 1>7, 1>27, 1>30, 1>48, 1>40, 39>50, 10>29, 10>32, 10>41, 10>15, 10>46, 14>43, 14>30, 14>15, 14>37, 12>32, 12>15, 12>39, 12>28, 12>26, 12>14, 12>48, 21>32, 21>34, 21>22, 21>47, 40>46, 2>22, 2>31, 2>35, 2>30, 2>39, 2>10, 2>37, 4>20, 4>34, 4>21], [3>26, 43<28, 1<12, 38>28, 36<14, 3>15, 25>35, 8<25, 7<50, 18<4, 43>35, 7>1, 32>25, 14<46, 41>12, 30>1, 34>8, 43>14, 20>40, 6<19, 3<47, 7<40, 39>10, 41>35, 11>48, 38>37, 35<37, 7<15, 22>25, 6<8, 32>28, 26<4, 48<2, 7<6, 41<21, 34>11, 8>47, 7>32, 27<40, 43>18], [ (38, 1), (29, 1), (7, 1), (32, 1), (43, 1), (6, 1), (41, 1), (20, 1), (34, 1), (11, 1), (22, 1), (18, 1), (36, 1), (24, 1), (50, 1), (19, 1), (8, 1), (31, 1), (3, 1), (27, 1), (25, 1), (35, 1), (30, 1), (15, 1), (1, 1), (39, 1), (10, 1), (28, 1), (26, 1), (14, 1), (12, 1), (48, 1), (21, 1), (37, 1), (44, 1), (40, 1), (2, 1), (4, 1), (47, 1), (46, 1)], [ (3>26, 1), (43<28, 1), (1<12, 1), (38>28, 1), (36<14, 1), (3>15, 1), (25>35, 1), (8<25, 1), (7<50, 1), (18<4, 1), (43>35, 1), (7>1, 1), (32>25, 1), (14<46, 1), (41>12, 1), (30>1, 1), (34>8, 1), (43>14, 1), (20>40, 1), (6<19, 1), (3<47, 1), (7<40, 1), (39>10, 1), (41>35, 1), (11>48, 1), (38>37, 1), (35<37, 1), (7<15, 1), (22>25, 1), (6<8, 1), (32>28, 1), (26<4, 1), (48<2, 1), (7<6, 1), (41<21, 1), (34>11, 1), (8>47, 1), (7>32, 1), (27<40, 1), (43>18, 1)])).

test(4, (50, 250, [<, >]), (40, 40, 1), ([35, 23, 13, 49, 26, 44, 45, 5, 47, 18, 14, 4, 33, 34, 8, 7, 11, 16, 31, 10, 46, 25, 43, 48, 36, 30, 39, 15, 41, 50, 27, 1, 42, 20, 22, 12, 28, 17, 19, 38], [23>49, 23>33, 23>43, 23>48, 13>34, 13>46, 26>48, 45>48, 5>35, 5>34, 5>25, 5>39, 5>20, 5>19, 18>44, 18>43, 18>48, 18>27, 18>19, 14>25, 4>23, 4>30, 4>20, 33>49, 33>44, 8>43, 8>50, 8>20, 8>22, 8>17, 8>19, 8>38, 7>35, 7>34, 7>48, 7>30, 7>15, 7>38, 11>27, 11>22, 11>28, 16>49, 16>44, 16>28, 31>39, 10>44, 25>26, 25>38, 36>39, 30>33, 30>36, 39>46, 39>43, 15>31, 15>48, 15>50, 41>49, 41>48, 27>50, 1>44, 1>47, 1>46, 1>25, 1>41, 1>27, 1>38, 20>35, 20>46, 22>35, 22>49, 22>34, 22>36, 12>18, 12>34, 12>20, 12>22, 17>38, 19>48], [47>31, 47>7, 49<46, 30<50, 45>16, 13<18, 48<19, 5>12, 49<39, 44>46, 5>41, 10<19, 5<22, 7>46, 35>43, 50>17, 45<34, 39>42, 11<15, 45>31, 47<28, 11>36, 11>22, 49>15, 13<28, 27>42, 18<19, 35<5, 47<38, 35<41, 13>34, 4>19, 10<25, 14<4, 43>1, 7>38, 36>28, 13>11, 25<30, 25>43], [ (35, 1), (23, 1), (13, 1), (49, 1), (26, 1), (44, 1), (45, 1), (5, 1), (47, 1), (18, 1), (14, 1), (4, 1), (33, 1), (34, 1), (8, 1), (7, 1), (11, 1), (16, 1), (31, 1), (10, 1), (46, 1), (25, 1), (43, 1), (48, 1), (36, 1), (30, 1), (39, 1), (15, 1), (41, 1), (50, 1), (27, 1), (1, 1), (42, 1), (20, 1), (22, 1), (12, 1), (28, 1), (17, 1), (19, 1), (38, 1)], [ (47>31, 1), (47>7, 1), (49<46, 1), (30<50, 1), (45>16, 1), (13<18, 1), (48<19, 1), (5>12, 1), (49<39, 1), (44>46, 1), (5>41, 1), (10<19, 1), (5<22, 1), (7>46, 1), (35>43, 1), (50>17, 1), (45<34, 1), (39>42, 1), (11<15, 1), (45>31, 1), (47<28, 1), (11>36, 1), (11>22, 1), (49>15, 1), (13<28, 1), (27>42, 1), (18<19, 1), (35<5, 1), (47<38, 1), (35<41, 1), (13>34, 1), (4>19, 1), (10<25, 1), (14<4, 1), (43>1, 1), (7>38, 1), (36>28, 1), (13>11, 1), (25<30, 1), (25>43, 1)])).

test(5, (50, 250, [<, >]), (40, 40, 1), ([25, 39, 40, 33, 44, 1, 31, 19, 10, 27, 18, 37, 24, 36, 23, 34, 2, 4, 42, 45, 30, 11, 46, 20, 35, 43, 12, 49, 7, 38, 5, 41, 28, 26, 29, 32, 14, 16, 22, 6], [40>42, 33>39, 1>39, 1>18, 1>46, 1>7, 19>45, 19>26, 10>24, 10>36, 10>42, 18>34, 18>45, 18>28, 18>32, 18>22, 37>43, 37>49, 24>42, 24>26, 24>29, 36>44, 36>45, 36>43, 23>42, 34>44, 2>7, 4>27, 4>37, 4>14, 11>40, 11>14, 46>49, 20>40, 20>37, 20>41, 35>40, 35>36, 12>31, 12>22, 7>19, 7>18, 7>37, 7>34, 7>32, 5>25, 5>37, 5>11, 5>20, 5>35, 5>43, 28>33, 28>29, 26>31, 26>37, 29>42, 29>38, 32>40, 32>34, 14>36, 14>28, 14>32, 16>20, 16>29, 22>25, 22>24, 6>31, 6>30, 6>11, 6>22], [40>7, 18<28, 10>28, 24<30, 30>46, 40<2, 11<46, 24<14, 25<6, 42<6, 40<10, 39<35, 2<26, 12>6, 36>23, 19>49, 25<45, 40>1, 28<32, 37>43, 25>29, 4>35, 40<24, 36>30, 44<19, 46>6, 45>16, 4<20, 45>30, 23>7, 31<37, 34<7, 33>22, 44<10, 40<33, 20<32, 23>29, 1>16, 44<1, 11>43], [ (25, 1), (39, 1), (40, 1), (33, 1), (44, 1), (1, 1), (31, 1), (19, 1), (10, 1), (27, 1), (18, 1), (37, 1), (24, 1), (36, 1), (23, 1), (34, 1), (2, 1), (4, 1), (42, 1), (45, 1), (30, 1), (11, 1), (46, 1), (20, 1), (35, 1), (43, 1), (12, 1), (49, 1), (7, 1), (38, 1), (5, 1), (41, 1), (28, 1), (26, 1), (29, 1), (32, 1), (14, 1), (16, 1), (22, 1), (6, 1)], [ (40>7, 1), (18<28, 1), (10>28, 1), (24<30, 1), (30>46, 1), (40<2, 1), (11<46, 1), (24<14, 1), (25<6, 1), (42<6, 1), (40<10, 1), (39<35, 1), (2<26, 1), (12>6, 1), (36>23, 1), (19>49, 1), (25<45, 1), (40>1, 1), (28<32, 1), (37>43, 1), (25>29, 1), (4>35, 1), (40<24, 1), (36>30, 1), (44<19, 1), (46>6, 1), (45>16, 1), (4<20, 1), (45>30, 1), (23>7, 1), (31<37, 1), (34<7, 1), (33>22, 1), (44<10, 1), (40<33, 1), (20<32, 1), (23>29, 1), (1>16, 1), (44<1, 1), (11>43, 1)])).

test(6, (50, 250, [<, >]), (40, 40, 1), ([8, 3, 33, 40, 34, 37, 17, 26, 16, 49, 41, 20, 18, 1, 5, 28, 46, 19, 11, 13, 4, 10, 29, 12, 39, 43, 24, 22, 23, 31, 38, 9, 6, 15, 36, 2, 50, 7, 27, 44], [8>40, 8>12, 8>43, 8>44, 3>46, 3>11, 3>13, 33>46, 34>37, 37>39, 37>44, 17>37, 16>18, 16>28, 16>39, 16>43, 16>22, 16>50, 20>36, 18>20, 18>39, 18>36, 1>17, 1>5, 1>22, 1>31, 5>43, 5>36, 5>50, 19>43, 19>38, 11>39, 11>38, 13>49, 13>29, 13>23, 4>31, 4>15, 10>31, 10>38, 29>33, 29>44, 12>33, 12>39, 12>23, 12>50, 12>27, 39>46, 39>44, 22>27, 23>33, 23>39, 23>31, 31>33, 38>44, 9>41, 9>38, 9>50, 9>44, 6>28, 6>29, 15>34, 36>49, 2>3, 2>26, 2>16, 2>10, 2>23, 2>6, 2>15, 2>27, 7>33, 7>19, 7>24, 7>50, 27>40, 27>50, 44>49], [1>31, 5<23, 43<38, 8<50, 34<36, 10<31, 49<18, 10<29, 34<10, 22>15, 33<46, 29<27, 41>19, 37<36, 11>50, 5>43, 17<15, 1<44, 8<28, 28>6, 26>18, 46<2, 34>31, 49<36, 3>44, 16<28, 10<27, 26<11, 20<9, 19<22, 40<26, 38<2, 19>39, 16>10, 8>38, 26<31, 46<13, 1<38, 40<20, 26>10], [ (8, 1), (3, 1), (33, 1), (40, 1), (34, 1), (37, 1), (17, 1), (26, 1), (16, 1), (49, 1), (41, 1), (20, 1), (18, 1), (1, 1), (5, 1), (28, 1), (46, 1), (19, 1), (11, 1), (13, 1), (4, 1), (10, 1), (29, 1), (12, 1), (39, 1), (43, 1), (24, 1), (22, 1), (23, 1), (31, 1), (38, 1), (9, 1), (6, 1), (15, 1), (36, 1), (2, 1), (50, 1), (7, 1), (27, 1), (44, 1)], [ (1>31, 1), (5<23, 1), (43<38, 1), (8<50, 1), (34<36, 1), (10<31, 1), (49<18, 1), (10<29, 1), (34<10, 1), (22>15, 1), (33<46, 1), (29<27, 1), (41>19, 1), (37<36, 1), (11>50, 1), (5>43, 1), (17<15, 1), (1<44, 1), (8<28, 1), (28>6, 1), (26>18, 1), (46<2, 1), (34>31, 1), (49<36, 1), (3>44, 1), (16<28, 1), (10<27, 1), (26<11, 1), (20<9, 1), (19<22, 1), (40<26, 1), (38<2, 1), (19>39, 1), (16>10, 1), (8>38, 1), (26<31, 1), (46<13, 1), (1<38, 1), (40<20, 1), (26>10, 1)])).

test(7, (50, 250, [<, >]), (40, 40, 1), ([50, 3, 43, 36, 37, 7, 6, 16, 29, 40, 25, 47, 11, 23, 33, 28, 39, 35, 34, 49, 8, 30, 44, 26, 4, 45, 19, 20, 5, 18, 13, 2, 12, 48, 38, 41, 24, 9, 1, 15], [3>40, 3>25, 3>26, 3>19, 3>20, 36>38, 37>43, 7>37, 6>7, 6>47, 6>48, 6>38, 16>50, 16>36, 16>29, 16>33, 16>26, 16>18, 29>50, 29>43, 11>29, 11>33, 11>41, 23>39, 33>37, 33>39, 35>45, 34>50, 8>40, 44>47, 44>49, 44>45, 26>41, 4>11, 4>49, 4>18, 19>47, 20>23, 20>30, 5>36, 5>37, 5>23, 5>33, 5>28, 5>34, 18>39, 18>19, 18>38, 13>25, 13>28, 13>18, 2>50, 2>43, 2>6, 2>11, 2>33, 2>24, 12>33, 12>13, 41>43, 41>49, 41>48, 24>50, 24>44, 9>39, 1>6, 1>11, 1>45, 15>19], [37>41, 36<8, 11>24, 25<35, 16<33, 30>41, 3>45, 30>18, 20>13, 25<48, 48>41, 37<18, 16<44, 2<15, 38>41, 7<25, 16>2, 6>24, 33>38, 16<38, 49<13, 40>5, 50>45, 50>20, 37>13, 13>9, 20<18, 40<26, 35>12, 16>41, 36>41, 44<15, 8<5, 7<30, 11<34, 43<30, 8>26, 47<11, 7>29, 26>9], [ (50, 1), (3, 1), (43, 1), (36, 1), (37, 1), (7, 1), (6, 1), (16, 1), (29, 1), (40, 1), (25, 1), (47, 1), (11, 1), (23, 1), (33, 1), (28, 1), (39, 1), (35, 1), (34, 1), (49, 1), (8, 1), (30, 1), (44, 1), (26, 1), (4, 1), (45, 1), (19, 1), (20, 1), (5, 1), (18, 1), (13, 1), (2, 1), (12, 1), (48, 1), (38, 1), (41, 1), (24, 1), (9, 1), (1, 1), (15, 1)], [ (37>41, 1), (36<8, 1), (11>24, 1), (25<35, 1), (16<33, 1), (30>41, 1), (3>45, 1), (30>18, 1), (20>13, 1), (25<48, 1), (48>41, 1), (37<18, 1), (16<44, 1), (2<15, 1), (38>41, 1), (7<25, 1), (16>2, 1), (6>24, 1), (33>38, 1), (16<38, 1), (49<13, 1), (40>5, 1), (50>45, 1), (50>20, 1), (37>13, 1), (13>9, 1), (20<18, 1), (40<26, 1), (35>12, 1), (16>41, 1), (36>41, 1), (44<15, 1), (8<5, 1), (7<30, 1), (11<34, 1), (43<30, 1), (8>26, 1), (47<11, 1), (7>29, 1), (26>9, 1)])).

test(8, (50, 250, [<, >]), (40, 40, 1), ([48, 6, 18, 3, 41, 33, 44, 25, 31, 7, 37, 30, 43, 17, 22, 34, 16, 39, 24, 36, 9, 35, 49, 21, 12, 15, 4, 40, 29, 50, 11, 32, 38, 19, 46, 10, 13, 5, 20, 14], [6>22, 6>24, 6>15, 6>10, 18>30, 18>22, 18>49, 3>44, 3>43, 3>38, 3>13, 33>46, 31>48, 31>33, 31>37, 31>40, 31>38, 7>41, 7>21, 7>32, 37>41, 37>38, 17>31, 17>20, 34>48, 34>44, 34>39, 34>36, 16>48, 16>31, 16>49, 16>40, 39>41, 24>35, 24>40, 24>32, 9>37, 9>22, 9>39, 9>12, 9>10, 9>13, 9>20, 21>41, 21>44, 21>24, 21>32, 12>44, 12>17, 15>17, 15>24, 4>6, 4>19, 40>48, 40>49, 29>33, 29>31, 29>43, 29>49, 29>32, 29>46, 11>48, 11>44, 11>36, 11>35, 11>12, 32>41, 32>35, 38>48, 38>49, 19>39, 19>36, 19>38, 10>41, 10>44, 10>25, 10>16, 10>13, 13>21, 13>50, 13>14, 5>34, 5>36, 5>38, 14>43, 14>35], [48<30, 18>5, 31>7, 32<5, 12>19, 35<10, 25>5, 36<11, 7>20, 17>29, 44<25, 17<4, 22<40, 35<21, 41>4, 31<21, 7<16, 32>10, 37>35, 37<13, 18>3, 30>32, 22>10, 44>15, 16>19, 31<15, 30<35, 36<15, 35<12, 31>22, 33>29, 15>13, 48>22, 25>4, 35>46, 40>29, 44>38, 34<12, 6<24, 33<37], [ (48, 1), (6, 1), (18, 1), (3, 1), (41, 1), (33, 1), (44, 1), (25, 1), (31, 1), (7, 1), (37, 1), (30, 1), (43, 1), (17, 1), (22, 1), (34, 1), (16, 1), (39, 1), (24, 1), (36, 1), (9, 1), (35, 1), (49, 1), (21, 1), (12, 1), (15, 1), (4, 1), (40, 1), (29, 1), (50, 1), (11, 1), (32, 1), (38, 1), (19, 1), (46, 1), (10, 1), (13, 1), (5, 1), (20, 1), (14, 1)], [ (48<30, 1), (18>5, 1), (31>7, 1), (32<5, 1), (12>19, 1), (35<10, 1), (25>5, 1), (36<11, 1), (7>20, 1), (17>29, 1), (44<25, 1), (17<4, 1), (22<40, 1), (35<21, 1), (41>4, 1), (31<21, 1), (7<16, 1), (32>10, 1), (37>35, 1), (37<13, 1), (18>3, 1), (30>32, 1), (22>10, 1), (44>15, 1), (16>19, 1), (31<15, 1), (30<35, 1), (36<15, 1), (35<12, 1), (31>22, 1), (33>29, 1), (15>13, 1), (48>22, 1), (25>4, 1), (35>46, 1), (40>29, 1), (44>38, 1), (34<12, 1), (6<24, 1), (33<37, 1)])).

test(9, (50, 250, [<, >]), (40, 40, 1), ([8, 40, 23, 16, 15, 33, 30, 20, 39, 17, 41, 38, 46, 43, 11, 18, 13, 4, 34, 6, 32, 50, 49, 7, 25, 12, 26, 27, 42, 35, 45, 29, 2, 24, 28, 19, 1, 14, 22, 9], [8>16, 8>38, 8>43, 8>13, 8>34, 8>42, 40>42, 16>23, 16>32, 16>27, 16>28, 15>38, 15>34, 15>22, 33>45, 30>40, 20>39, 20>46, 20>49, 20>28, 39>40, 17>40, 17>32, 38>39, 11>33, 11>17, 11>38, 11>43, 18>40, 18>39, 18>19, 13>46, 13>34, 13>27, 13>28, 4>13, 4>34, 4>49, 4>27, 4>42, 34>38, 34>43, 6>43, 6>50, 6>7, 6>25, 6>12, 7>45, 25>40, 25>41, 25>49, 12>16, 12>50, 12>27, 26>38, 26>32, 26>35, 27>49, 35>49, 35>42, 29>40, 29>45, 2>33, 2>41, 2>34, 2>45, 2>24, 24>33, 24>41, 24>35, 24>29, 24>28, 28>43, 19>43, 1>39, 1>46, 1>43, 1>32, 1>42, 1>2, 1>9, 14>23, 14>30, 14>29, 22>43, 22>35, 9>33, 9>30, 9>11, 9>13, 9>35, 9>19], [43<27, 39<18, 43>13, 7>12, 30<12, 30<27, 43<9, 2>28, 38>50, 46<12, 4<19, 15>39, 20<28, 20<2, 41<12, 33>46, 18<28, 30<9, 13<4, 34>45, 25>14, 6>7, 32>49, 18<7, 33<14, 7>25, 40<33, 40<13, 16<42, 4<50, 38>12, 18<26, 27<24, 32<7, 4>28, 30<38, 20>50, 20<14, 11<12, 26<2], [ (8, 1), (40, 1), (23, 1), (16, 1), (15, 1), (33, 1), (30, 1), (20, 1), (39, 1), (17, 1), (41, 1), (38, 1), (46, 1), (43, 1), (11, 1), (18, 1), (13, 1), (4, 1), (34, 1), (6, 1), (32, 1), (50, 1), (49, 1), (7, 1), (25, 1), (12, 1), (26, 1), (27, 1), (42, 1), (35, 1), (45, 1), (29, 1), (2, 1), (24, 1), (28, 1), (19, 1), (1, 1), (14, 1), (22, 1), (9, 1)], [ (43<27, 1), (39<18, 1), (43>13, 1), (7>12, 1), (30<12, 1), (30<27, 1), (43<9, 1), (2>28, 1), (38>50, 1), (46<12, 1), (4<19, 1), (15>39, 1), (20<28, 1), (20<2, 1), (41<12, 1), (33>46, 1), (18<28, 1), (30<9, 1), (13<4, 1), (34>45, 1), (25>14, 1), (6>7, 1), (32>49, 1), (18<7, 1), (33<14, 1), (7>25, 1), (40<33, 1), (40<13, 1), (16<42, 1), (4<50, 1), (38>12, 1), (18<26, 1), (27<24, 1), (32<7, 1), (4>28, 1), (30<38, 1), (20>50, 1), (20<14, 1), (11<12, 1), (26<2, 1)])).

test(10, (50, 250, [<, >]), (40, 40, 1), ([2, 13, 12, 23, 38, 7, 24, 10, 22, 34, 49, 21, 37, 16, 44, 5, 29, 4, 46, 42, 9, 8, 11, 30, 19, 3, 39, 14, 1, 20, 25, 15, 43, 36, 27, 26, 35, 33, 40, 17], [2>23, 2>37, 2>14, 2>43, 2>33, 12>24, 12>22, 12>30, 23>43, 23>27, 38>43, 7>12, 7>22, 7>36, 7>35, 10>44, 10>33, 22>24, 22>37, 22>30, 22>43, 22>33, 21>24, 21>22, 21>25, 21>43, 16>46, 16>36, 16>35, 5>21, 5>39, 5>33, 4>12, 4>24, 4>10, 4>34, 4>49, 4>21, 4>37, 4>11, 4>20, 4>25, 4>40, 9>44, 9>25, 8>12, 8>21, 8>9, 8>15, 8>27, 8>33, 11>24, 11>22, 11>27, 30>33, 19>49, 19>21, 3>22, 3>29, 3>42, 3>25, 3>27, 14>22, 14>21, 14>44, 14>25, 1>7, 1>22, 1>11, 1>33, 20>44, 20>46, 20>42, 25>49, 25>39, 25>43, 15>29, 15>25, 15>26, 43>46, 36>40, 26>49, 26>35, 35>49, 33>34, 17>44, 17>30], [21<44, 46<14, 12>4, 24<30, 13<43, 7<44, 9<20, 7<11, 29>27, 49<27, 42<39, 24>26, 1<15, 23<36, 44>14, 36<33, 16>15, 42>27, 10<49, 5>15, 44<35, 2>43, 23>17, 21>15, 2>42, 2<19, 26>17, 23<11, 23<44, 13>35, 24<40, 7<42, 4>35, 2<23, 11>39, 37<35, 29>14, 16<1, 49>26, 5>39], [ (2, 1), (13, 1), (12, 1), (23, 1), (38, 1), (7, 1), (24, 1), (10, 1), (22, 1), (34, 1), (49, 1), (21, 1), (37, 1), (16, 1), (44, 1), (5, 1), (29, 1), (4, 1), (46, 1), (42, 1), (9, 1), (8, 1), (11, 1), (30, 1), (19, 1), (3, 1), (39, 1), (14, 1), (1, 1), (20, 1), (25, 1), (15, 1), (43, 1), (36, 1), (27, 1), (26, 1), (35, 1), (33, 1), (40, 1), (17, 1)], [ (21<44, 1), (46<14, 1), (12>4, 1), (24<30, 1), (13<43, 1), (7<44, 1), (9<20, 1), (7<11, 1), (29>27, 1), (49<27, 1), (42<39, 1), (24>26, 1), (1<15, 1), (23<36, 1), (44>14, 1), (36<33, 1), (16>15, 1), (42>27, 1), (10<49, 1), (5>15, 1), (44<35, 1), (2>43, 1), (23>17, 1), (21>15, 1), (2>42, 1), (2<19, 1), (26>17, 1), (23<11, 1), (23<44, 1), (13>35, 1), (24<40, 1), (7<42, 1), (4>35, 1), (2<23, 1), (11>39, 1), (37<35, 1), (29>14, 1), (16<1, 1), (49>26, 1), (5>39, 1)])).

%% 50, 250, [<, >]
%% 45, 45, 1

test(1, (50, 250, [<, >]), (45, 45, 1), ([22, 33, 41, 35, 10, 14, 4, 30, 36, 3, 7, 40, 28, 46, 38, 31, 5, 18, 20, 6, 2, 16, 48, 12, 25, 26, 45, 1, 47, 19, 42, 17, 15, 8, 11, 29, 34, 21, 39, 44, 49, 43, 13, 23, 37], [22>46, 22>48, 22>47, 22>29, 33>41, 33>40, 33>42, 35>44, 10>33, 10>34, 10>21, 10>39, 14>40, 14>48, 14>42, 14>39, 14>49, 4>41, 4>48, 30>47, 3>31, 3>45, 3>17, 7>48, 7>19, 7>17, 7>49, 7>13, 40>45, 40>44, 28>31, 28>42, 28>29, 28>39, 31>40, 31>42, 31>43, 5>35, 5>46, 5>49, 18>22, 20>48, 20>49, 6>14, 6>31, 6>18, 6>26, 2>38, 2>12, 2>49, 16>42, 16>37, 12>17, 12>13, 25>36, 25>42, 1>40, 1>34, 47>49, 19>35, 19>25, 17>21, 15>41, 15>36, 15>40, 15>38, 15>20, 15>26, 8>33, 8>41, 8>14, 8>48, 8>11, 8>29, 11>22, 11>20, 11>25, 11>15, 29>40, 29>48, 29>47, 29>44, 34>48, 34>37, 21>22, 21>36, 21>26, 21>45, 21>34, 23>41, 23>38, 23>34], [33<41, 41>7, 3<31, 30>18, 31<16, 4<44, 14>46, 14<36, 26>13, 18<47, 18>17, 43>37, 47<17, 38<5, 10<28, 22>43, 20<23, 40>46, 28>2, 45>42, 6>15, 22>15, 17>29, 7>28, 40>28, 28>39, 41<34, 46<39, 35<28, 31<1, 38>8, 7>26, 3>46, 16>48, 44>49, 41>44, 4>42, 31>34, 19>44, 4<26, 35<10, 36>20, 42>49, 28>5, 36>38], [ (22, 1), (33, 1), (41, 1), (35, 1), (10, 1), (14, 1), (4, 1), (30, 1), (36, 1), (3, 1), (7, 1), (40, 1), (28, 1), (46, 1), (38, 1), (31, 1), (5, 1), (18, 1), (20, 1), (6, 1), (2, 1), (16, 1), (48, 1), (12, 1), (25, 1), (26, 1), (45, 1), (1, 1), (47, 1), (19, 1), (42, 1), (17, 1), (15, 1), (8, 1), (11, 1), (29, 1), (34, 1), (21, 1), (39, 1), (44, 1), (49, 1), (43, 1), (13, 1), (23, 1), (37, 1)], [ (33<41, 1), (41>7, 1), (3<31, 1), (30>18, 1), (31<16, 1), (4<44, 1), (14>46, 1), (14<36, 1), (26>13, 1), (18<47, 1), (18>17, 1), (43>37, 1), (47<17, 1), (38<5, 1), (10<28, 1), (22>43, 1), (20<23, 1), (40>46, 1), (28>2, 1), (45>42, 1), (6>15, 1), (22>15, 1), (17>29, 1), (7>28, 1), (40>28, 1), (28>39, 1), (41<34, 1), (46<39, 1), (35<28, 1), (31<1, 1), (38>8, 1), (7>26, 1), (3>46, 1), (16>48, 1), (44>49, 1), (41>44, 1), (4>42, 1), (31>34, 1), (19>44, 1), (4<26, 1), (35<10, 1), (36>20, 1), (42>49, 1), (28>5, 1), (36>38, 1)])).

test(2, (50, 250, [<, >]), (45, 45, 1), ([50, 4, 45, 20, 13, 7, 28, 2, 22, 26, 16, 12, 32, 8, 47, 23, 24, 49, 42, 33, 48, 25, 35, 18, 10, 39, 38, 21, 36, 40, 6, 30, 44, 14, 5, 34, 3, 11, 31, 15, 1, 9, 37, 41, 43], [4>23, 4>10, 4>43, 45>48, 20>41, 13>45, 13>14, 7>28, 7>25, 7>36, 7>40, 7>44, 28>45, 2>33, 2>34, 2>31, 22>26, 22>23, 22>39, 22>36, 26>40, 16>18, 16>36, 32>45, 32>49, 32>37, 8>45, 8>41, 23>24, 23>36, 23>40, 24>45, 24>28, 24>36, 24>34, 42>44, 25>30, 25>31, 25>37, 35>44, 18>26, 18>25, 18>44, 10>33, 10>34, 39>45, 39>49, 21>45, 36>42, 36>38, 36>44, 6>26, 6>37, 30>50, 30>32, 30>31, 14>50, 14>33, 14>25, 14>18, 14>21, 14>36, 5>22, 5>26, 5>23, 5>33, 5>41, 34>38, 3>50, 3>32, 11>42, 11>35, 11>34, 31>41, 15>28, 15>47, 15>23, 15>38, 1>45, 1>13, 1>47, 1>10, 1>36, 9>11, 9>15, 41>50, 43>49], [4>48, 10>44, 24<1, 49>38, 44>1, 13>24, 24<44, 45<34, 15<43, 22>21, 25>38, 8>34, 47>14, 32>5, 8<31, 50<44, 2<6, 28<33, 7<28, 35<1, 21>44, 7<16, 18<15, 3>9, 36>11, 26>5, 25<21, 13>12, 50>21, 7>40, 28<25, 45>31, 39<6, 42>31, 28<35, 23<15, 26>48, 25>6, 6<5, 34<31, 12>35, 26>14, 13<32, 5<43, 33<38], [ (50, 1), (4, 1), (45, 1), (20, 1), (13, 1), (7, 1), (28, 1), (2, 1), (22, 1), (26, 1), (16, 1), (12, 1), (32, 1), (8, 1), (47, 1), (23, 1), (24, 1), (49, 1), (42, 1), (33, 1), (48, 1), (25, 1), (35, 1), (18, 1), (10, 1), (39, 1), (38, 1), (21, 1), (36, 1), (40, 1), (6, 1), (30, 1), (44, 1), (14, 1), (5, 1), (34, 1), (3, 1), (11, 1), (31, 1), (15, 1), (1, 1), (9, 1), (37, 1), (41, 1), (43, 1)], [ (4>48, 1), (10>44, 1), (24<1, 1), (49>38, 1), (44>1, 1), (13>24, 1), (24<44, 1), (45<34, 1), (15<43, 1), (22>21, 1), (25>38, 1), (8>34, 1), (47>14, 1), (32>5, 1), (8<31, 1), (50<44, 1), (2<6, 1), (28<33, 1), (7<28, 1), (35<1, 1), (21>44, 1), (7<16, 1), (18<15, 1), (3>9, 1), (36>11, 1), (26>5, 1), (25<21, 1), (13>12, 1), (50>21, 1), (7>40, 1), (28<25, 1), (45>31, 1), (39<6, 1), (42>31, 1), (28<35, 1), (23<15, 1), (26>48, 1), (25>6, 1), (6<5, 1), (34<31, 1), (12>35, 1), (26>14, 1), (13<32, 1), (5<43, 1), (33<38, 1)])).

test(3, (50, 250, [<, >]), (45, 45, 1), ([21, 6, 3, 24, 15, 9, 30, 11, 10, 5, 36, 41, 23, 18, 4, 43, 1, 42, 39, 8, 26, 50, 34, 12, 37, 22, 28, 40, 2, 48, 29, 47, 44, 35, 7, 32, 19, 17, 27, 33, 31, 14, 16, 25, 38], [21>47, 6>9, 6>32, 3>43, 3>28, 3>16, 3>38, 24>41, 24>35, 15>28, 15>47, 15>16, 9>42, 9>12, 9>33, 11>21, 11>41, 11>47, 11>35, 10>18, 10>43, 10>39, 10>34, 10>12, 10>25, 5>21, 5>11, 5>10, 5>42, 5>37, 5>48, 5>27, 36>47, 23>24, 23>30, 23>26, 23>29, 23>44, 18>48, 18>44, 18>32, 4>10, 4>18, 4>34, 4>22, 4>27, 43>48, 43>44, 1>10, 1>23, 1>4, 1>26, 1>14, 8>37, 8>28, 8>17, 8>25, 26>41, 26>42, 26>35, 26>27, 12>36, 12>40, 12>16, 37>44, 22>37, 28>37, 40>43, 40>44, 2>6, 2>9, 2>35, 2>7, 2>27, 29>47, 29>44, 29>38, 47>48, 44>47, 35>41, 35>50, 7>21, 7>11, 7>23, 7>43, 7>8, 7>35, 7>32, 32>36, 32>39, 32>34, 32>37, 19>43, 19>50, 19>25, 17>40, 27>29, 33>43, 31>48, 14>21, 14>42, 14>40, 14>29, 14>31, 16>17, 25>29, 25>35, 38>43, 38>47], [23<47, 10<4, 16>38, 10>26, 42>31, 22<38, 5>44, 47<27, 35<19, 35>33, 6<25, 9>30, 1<26, 29<16, 42>50, 30<12, 24>7, 50>25, 11>31, 3<4, 43<8, 1<32, 30>11, 30<23, 6<32, 11<40, 9>29, 9<36, 4<19, 41>1, 43>42, 47<7, 2<38, 31>25, 42<16, 29<7, 24>17, 29>44, 3<40, 43<47, 24<47, 6>18, 30>42, 22>16, 8<44], [ (21, 1), (6, 1), (3, 1), (24, 1), (15, 1), (9, 1), (30, 1), (11, 1), (10, 1), (5, 1), (36, 1), (41, 1), (23, 1), (18, 1), (4, 1), (43, 1), (1, 1), (42, 1), (39, 1), (8, 1), (26, 1), (50, 1), (34, 1), (12, 1), (37, 1), (22, 1), (28, 1), (40, 1), (2, 1), (48, 1), (29, 1), (47, 1), (44, 1), (35, 1), (7, 1), (32, 1), (19, 1), (17, 1), (27, 1), (33, 1), (31, 1), (14, 1), (16, 1), (25, 1), (38, 1)], [ (23<47, 1), (10<4, 1), (16>38, 1), (10>26, 1), (42>31, 1), (22<38, 1), (5>44, 1), (47<27, 1), (35<19, 1), (35>33, 1), (6<25, 1), (9>30, 1), (1<26, 1), (29<16, 1), (42>50, 1), (30<12, 1), (24>7, 1), (50>25, 1), (11>31, 1), (3<4, 1), (43<8, 1), (1<32, 1), (30>11, 1), (30<23, 1), (6<32, 1), (11<40, 1), (9>29, 1), (9<36, 1), (4<19, 1), (41>1, 1), (43>42, 1), (47<7, 1), (2<38, 1), (31>25, 1), (42<16, 1), (29<7, 1), (24>17, 1), (29>44, 1), (3<40, 1), (43<47, 1), (24<47, 1), (6>18, 1), (30>42, 1), (22>16, 1), (8<44, 1)])).

test(4, (50, 250, [<, >]), (45, 45, 1), ([6, 26, 31, 49, 16, 34, 5, 36, 4, 27, 50, 37, 35, 24, 25, 28, 8, 46, 43, 19, 48, 45, 44, 38, 3, 15, 17, 14, 11, 1, 20, 39, 23, 42, 40, 2, 33, 21, 13, 29, 18, 32, 7, 22, 41], [6>36, 6>27, 6>46, 6>19, 6>38, 6>21, 6>7, 26>36, 26>45, 31>46, 16>27, 16>44, 16>38, 16>33, 34>35, 34>38, 5>13, 5>29, 36>45, 36>39, 4>49, 4>5, 4>24, 27>50, 27>48, 27>44, 37>39, 37>42, 35>49, 35>41, 24>34, 24>46, 24>44, 24>33, 24>41, 25>34, 25>28, 25>32, 28>35, 8>44, 8>15, 43>46, 19>43, 19>48, 19>45, 19>41, 38>48, 3>50, 3>20, 3>21, 15>37, 15>46, 15>48, 15>45, 17>26, 17>49, 17>50, 17>46, 14>16, 14>50, 14>28, 14>38, 14>32, 11>46, 11>15, 11>33, 1>31, 1>27, 1>23, 1>2, 20>42, 20>40, 20>29, 39>46, 39>45, 39>41, 23>38, 23>41, 42>46, 42>45, 2>48, 2>45, 33>49, 21>31, 21>50, 13>25, 13>28, 13>38, 13>17, 13>14, 13>23, 29>50, 29>44, 29>39, 29>40, 18>27, 18>35, 18>48, 18>29, 32>37, 32>48, 32>33, 7>44, 7>17, 22>25, 22>43, 41>42], [35>39, 1<20, 35<43, 26>29, 37<45, 50<41, 35<29, 44>11, 36<15, 26>41, 34>11, 42<2, 50<18, 37>32, 26>32, 44>21, 6>39, 8<22, 50>14, 50>44, 39<33, 3<23, 24>22, 43<40, 46<21, 25<45, 35<24, 14<22, 33>22, 48>2, 29>32, 27<39, 5<8, 4<44, 31<28, 16<8, 49<16, 3>32, 39>21, 31>20, 31>32, 34>46, 43>18, 21<41, 35<18], [ (6, 1), (26, 1), (31, 1), (49, 1), (16, 1), (34, 1), (5, 1), (36, 1), (4, 1), (27, 1), (50, 1), (37, 1), (35, 1), (24, 1), (25, 1), (28, 1), (8, 1), (46, 1), (43, 1), (19, 1), (48, 1), (45, 1), (44, 1), (38, 1), (3, 1), (15, 1), (17, 1), (14, 1), (11, 1), (1, 1), (20, 1), (39, 1), (23, 1), (42, 1), (40, 1), (2, 1), (33, 1), (21, 1), (13, 1), (29, 1), (18, 1), (32, 1), (7, 1), (22, 1), (41, 1)], [ (35>39, 1), (1<20, 1), (35<43, 1), (26>29, 1), (37<45, 1), (50<41, 1), (35<29, 1), (44>11, 1), (36<15, 1), (26>41, 1), (34>11, 1), (42<2, 1), (50<18, 1), (37>32, 1), (26>32, 1), (44>21, 1), (6>39, 1), (8<22, 1), (50>14, 1), (50>44, 1), (39<33, 1), (3<23, 1), (24>22, 1), (43<40, 1), (46<21, 1), (25<45, 1), (35<24, 1), (14<22, 1), (33>22, 1), (48>2, 1), (29>32, 1), (27<39, 1), (5<8, 1), (4<44, 1), (31<28, 1), (16<8, 1), (49<16, 1), (3>32, 1), (39>21, 1), (31>20, 1), (31>32, 1), (34>46, 1), (43>18, 1), (21<41, 1), (35<18, 1)])).

test(5, (50, 250, [<, >]), (45, 45, 1), ([42, 33, 4, 39, 9, 5, 17, 47, 38, 6, 48, 13, 11, 36, 40, 15, 28, 44, 20, 34, 7, 25, 45, 35, 19, 18, 29, 12, 46, 24, 8, 30, 37, 43, 49, 16, 21, 23, 14, 32, 3, 26, 31, 2, 1], [33>47, 33>48, 33>44, 4>39, 4>13, 4>45, 4>24, 4>26, 39>45, 39>49, 9>17, 9>28, 9>44, 9>12, 5>35, 5>29, 17>44, 17>37, 38>49, 6>24, 6>21, 13>36, 13>45, 11>37, 11>14, 15>39, 15>44, 15>20, 15>45, 15>23, 15>32, 28>36, 28>35, 44>48, 44>46, 20>38, 20>25, 20>29, 20>24, 20>26, 20>31, 34>44, 7>40, 7>25, 25>47, 25>38, 25>49, 35>49, 18>40, 18>49, 18>21, 29>49, 12>17, 12>13, 12>28, 12>16, 8>13, 8>23, 30>35, 30>37, 30>31, 37>42, 37>46, 43>44, 16>39, 16>38, 21>38, 21>44, 21>30, 21>37, 23>33, 23>26, 14>39, 14>34, 14>46, 14>21, 14>26, 32>33, 32>47, 3>39, 3>47, 3>25, 3>18, 3>12, 3>24, 26>45, 26>30, 31>45, 31>35, 2>20, 2>46, 2>16, 2>31, 1>39, 1>13, 1>35, 1>8, 1>26, 1>31, 1>2], [6<3, 39>23, 36>18, 37>21, 28>29, 6<49, 5>45, 12<37, 19>16, 42>4, 29<3, 44<2, 4<44, 38>45, 48<12, 4<17, 38<43, 12>49, 35<37, 39<6, 29>32, 32<2, 5>28, 7<21, 5>35, 42<23, 40>45, 15>43, 47>19, 21<1, 48<36, 4<19, 48>43, 5>1, 44<19, 4<26, 29>1, 9<30, 25<1, 8<21, 47>44, 39>43, 34<12, 18>24, 34>8], [ (42, 1), (33, 1), (4, 1), (39, 1), (9, 1), (5, 1), (17, 1), (47, 1), (38, 1), (6, 1), (48, 1), (13, 1), (11, 1), (36, 1), (40, 1), (15, 1), (28, 1), (44, 1), (20, 1), (34, 1), (7, 1), (25, 1), (45, 1), (35, 1), (19, 1), (18, 1), (29, 1), (12, 1), (46, 1), (24, 1), (8, 1), (30, 1), (37, 1), (43, 1), (49, 1), (16, 1), (21, 1), (23, 1), (14, 1), (32, 1), (3, 1), (26, 1), (31, 1), (2, 1), (1, 1)], [ (6<3, 1), (39>23, 1), (36>18, 1), (37>21, 1), (28>29, 1), (6<49, 1), (5>45, 1), (12<37, 1), (19>16, 1), (42>4, 1), (29<3, 1), (44<2, 1), (4<44, 1), (38>45, 1), (48<12, 1), (4<17, 1), (38<43, 1), (12>49, 1), (35<37, 1), (39<6, 1), (29>32, 1), (32<2, 1), (5>28, 1), (7<21, 1), (5>35, 1), (42<23, 1), (40>45, 1), (15>43, 1), (47>19, 1), (21<1, 1), (48<36, 1), (4<19, 1), (48>43, 1), (5>1, 1), (44<19, 1), (4<26, 1), (29>1, 1), (9<30, 1), (25<1, 1), (8<21, 1), (47>44, 1), (39>43, 1), (34<12, 1), (18>24, 1), (34>8, 1)])).

test(6, (50, 250, [<, >]), (45, 45, 1), ([35, 7, 45, 46, 48, 26, 17, 24, 13, 31, 22, 38, 12, 37, 1, 32, 19, 8, 47, 42, 34, 40, 20, 6, 49, 29, 10, 41, 2, 36, 25, 50, 23, 28, 21, 44, 16, 3, 39, 18, 14, 30, 5, 33, 9], [35>38, 7>24, 7>8, 7>34, 7>14, 7>9, 26>48, 26>39, 17>22, 24>38, 24>28, 24>30, 13>19, 13>29, 31>45, 31>46, 31>48, 22>48, 22>49, 22>36, 22>39, 38>46, 38>50, 12>35, 12>17, 12>41, 12>14, 37>50, 1>46, 1>13, 1>22, 1>2, 1>23, 1>33, 1>9, 32>47, 32>50, 32>33, 19>40, 19>20, 19>29, 19>36, 19>50, 19>44, 8>19, 8>36, 8>44, 47>50, 42>44, 34>35, 34>36, 20>42, 20>49, 20>25, 6>17, 6>49, 6>33, 49>50, 29>38, 29>32, 10>26, 10>12, 10>19, 10>47, 2>7, 2>12, 2>19, 36>39, 25>35, 25>48, 25>32, 25>33, 23>35, 23>38, 23>37, 28>33, 21>46, 21>38, 21>37, 21>32, 21>25, 3>37, 3>47, 3>42, 3>23, 3>18, 3>33, 18>31, 18>19, 14>50, 14>23, 14>44, 14>16, 30>50, 5>19, 5>40, 5>33, 33>42, 9>48, 9>26, 9>34], [16<9, 24>14, 31<1, 20>50, 34<3, 40>10, 22>49, 2>9, 34>16, 10<2, 8>42, 50>21, 37<40, 36>50, 29>10, 7>47, 46<24, 26>49, 37>10, 20<16, 35<20, 24>9, 22>5, 34>28, 31>6, 45<39, 8<25, 16>30, 46>12, 24<21, 38<30, 13<21, 24>42, 31<50, 17<5, 20>28, 49<3, 13>3, 37<32, 35>10, 42>20, 12<47, 38>25, 38<28, 7<26], [ (35, 1), (7, 1), (45, 1), (46, 1), (48, 1), (26, 1), (17, 1), (24, 1), (13, 1), (31, 1), (22, 1), (38, 1), (12, 1), (37, 1), (1, 1), (32, 1), (19, 1), (8, 1), (47, 1), (42, 1), (34, 1), (40, 1), (20, 1), (6, 1), (49, 1), (29, 1), (10, 1), (41, 1), (2, 1), (36, 1), (25, 1), (50, 1), (23, 1), (28, 1), (21, 1), (44, 1), (16, 1), (3, 1), (39, 1), (18, 1), (14, 1), (30, 1), (5, 1), (33, 1), (9, 1)], [ (16<9, 1), (24>14, 1), (31<1, 1), (20>50, 1), (34<3, 1), (40>10, 1), (22>49, 1), (2>9, 1), (34>16, 1), (10<2, 1), (8>42, 1), (50>21, 1), (37<40, 1), (36>50, 1), (29>10, 1), (7>47, 1), (46<24, 1), (26>49, 1), (37>10, 1), (20<16, 1), (35<20, 1), (24>9, 1), (22>5, 1), (34>28, 1), (31>6, 1), (45<39, 1), (8<25, 1), (16>30, 1), (46>12, 1), (24<21, 1), (38<30, 1), (13<21, 1), (24>42, 1), (31<50, 1), (17<5, 1), (20>28, 1), (49<3, 1), (13>3, 1), (37<32, 1), (35>10, 1), (42>20, 1), (12<47, 1), (38>25, 1), (38<28, 1), (7<26, 1)])).

test(7, (50, 250, [<, >]), (45, 45, 1), ([12, 5, 4, 15, 44, 35, 25, 47, 18, 40, 33, 20, 45, 3, 24, 8, 37, 48, 22, 29, 30, 39, 17, 41, 9, 13, 42, 7, 31, 27, 49, 26, 14, 1, 28, 16, 2, 50, 43, 34, 36, 10, 32, 11, 38], [12>41, 12>13, 12>16, 5>33, 5>11, 4>44, 4>8, 4>37, 4>29, 4>42, 4>31, 4>28, 4>50, 15>30, 44>48, 35>44, 35>48, 25>37, 25>39, 25>41, 25>27, 47>48, 47>50, 18>37, 40>50, 33>39, 20>25, 20>22, 20>31, 3>45, 3>8, 3>49, 3>43, 3>36, 24>45, 24>48, 24>34, 8>20, 8>37, 8>50, 37>42, 22>37, 22>28, 22>34, 22>36, 17>18, 41>47, 41>45, 41>43, 9>12, 9>48, 9>17, 9>28, 9>32, 9>11, 13>33, 13>41, 13>14, 13>16, 42>48, 42>49, 7>15, 31>47, 27>44, 14>44, 14>25, 14>49, 14>50, 1>12, 1>15, 1>44, 1>30, 1>14, 1>16, 28>44, 28>35, 28>29, 28>31, 28>36, 16>35, 16>18, 16>33, 16>39, 16>17, 2>4, 2>40, 2>16, 34>35, 34>42, 36>48, 10>45, 10>11, 10>38, 32>34, 32>36, 11>15, 11>35, 11>43], [33>9, 47>32, 49>14, 20>42, 43>10, 9<31, 48>36, 2>36, 39<36, 8<28, 17<28, 13<28, 22<32, 28<10, 48<49, 33>42, 45>7, 12<1, 47<27, 29<41, 30<36, 40>36, 35<29, 40<13, 44<32, 30<38, 4>15, 39>27, 15>20, 35>49, 12<43, 5>39, 35<1, 47>37, 48<38, 25>16, 37>38, 18>41, 4<30, 5<20, 50<32, 39<7, 44<33, 24>22, 33>1], [ (12, 1), (5, 1), (4, 1), (15, 1), (44, 1), (35, 1), (25, 1), (47, 1), (18, 1), (40, 1), (33, 1), (20, 1), (45, 1), (3, 1), (24, 1), (8, 1), (37, 1), (48, 1), (22, 1), (29, 1), (30, 1), (39, 1), (17, 1), (41, 1), (9, 1), (13, 1), (42, 1), (7, 1), (31, 1), (27, 1), (49, 1), (26, 1), (14, 1), (1, 1), (28, 1), (16, 1), (2, 1), (50, 1), (43, 1), (34, 1), (36, 1), (10, 1), (32, 1), (11, 1), (38, 1)], [ (33>9, 1), (47>32, 1), (49>14, 1), (20>42, 1), (43>10, 1), (9<31, 1), (48>36, 1), (2>36, 1), (39<36, 1), (8<28, 1), (17<28, 1), (13<28, 1), (22<32, 1), (28<10, 1), (48<49, 1), (33>42, 1), (45>7, 1), (12<1, 1), (47<27, 1), (29<41, 1), (30<36, 1), (40>36, 1), (35<29, 1), (40<13, 1), (44<32, 1), (30<38, 1), (4>15, 1), (39>27, 1), (15>20, 1), (35>49, 1), (12<43, 1), (5>39, 1), (35<1, 1), (47>37, 1), (48<38, 1), (25>16, 1), (37>38, 1), (18>41, 1), (4<30, 1), (5<20, 1), (50<32, 1), (39<7, 1), (44<33, 1), (24>22, 1), (33>1, 1)])).

test(8, (50, 250, [<, >]), (45, 45, 1), ([42, 47, 44, 23, 6, 35, 43, 21, 18, 41, 34, 11, 20, 5, 12, 22, 10, 19, 4, 46, 33, 25, 32, 3, 9, 38, 28, 26, 13, 50, 7, 39, 17, 37, 40, 8, 36, 49, 45, 31, 1, 29, 16, 27, 14], [23>50, 23>40, 6>12, 6>25, 6>50, 6>40, 6>49, 35>42, 35>47, 35>43, 35>37, 21>35, 21>36, 21>29, 21>27, 18>44, 18>23, 18>36, 18>49, 18>29, 34>35, 11>34, 11>32, 11>38, 11>39, 20>26, 5>6, 5>20, 5>25, 5>45, 12>47, 12>44, 12>35, 12>33, 12>50, 12>16, 12>14, 22>41, 22>50, 22>40, 22>27, 10>11, 10>37, 10>36, 10>27, 19>42, 19>21, 4>18, 4>41, 4>32, 4>28, 4>36, 33>43, 33>37, 33>49, 25>32, 32>44, 32>40, 3>42, 3>50, 9>21, 9>18, 9>34, 9>10, 9>37, 9>29, 38>46, 38>40, 28>41, 28>33, 28>36, 26>38, 26>37, 26>40, 13>47, 13>35, 13>20, 13>28, 13>50, 13>37, 13>49, 7>34, 7>28, 7>13, 7>49, 7>31, 17>44, 17>20, 17>33, 37>47, 37>38, 40>43, 8>34, 8>33, 8>13, 8>39, 8>31, 8>14, 36>44, 31>45, 1>42, 1>41, 1>11, 1>38, 1>39, 1>29, 29>44, 29>38, 16>41, 16>50, 27>35, 27>32, 14>42, 14>43, 14>22, 14>46, 14>32, 14>38, 14>50, 14>40], [34<10, 31>16, 32<37, 10>13, 44<21, 33>26, 17<16, 47<20, 47>34, 5<25, 12>50, 11<29, 22>36, 33<50, 17<49, 4>49, 12>1, 3<7, 33>32, 47>4, 5>36, 3>8, 21>41, 35<39, 22<16, 6>35, 18<16, 41<25, 7>37, 6>26, 44>34, 23>3, 21>14, 23>26, 42<9, 29>16, 46<1, 9<17, 5<32, 22>9, 36<16, 46<31, 3>45, 41<12, 7>8], [ (42, 1), (47, 1), (44, 1), (23, 1), (6, 1), (35, 1), (43, 1), (21, 1), (18, 1), (41, 1), (34, 1), (11, 1), (20, 1), (5, 1), (12, 1), (22, 1), (10, 1), (19, 1), (4, 1), (46, 1), (33, 1), (25, 1), (32, 1), (3, 1), (9, 1), (38, 1), (28, 1), (26, 1), (13, 1), (50, 1), (7, 1), (39, 1), (17, 1), (37, 1), (40, 1), (8, 1), (36, 1), (49, 1), (45, 1), (31, 1), (1, 1), (29, 1), (16, 1), (27, 1), (14, 1)], [ (34<10, 1), (31>16, 1), (32<37, 1), (10>13, 1), (44<21, 1), (33>26, 1), (17<16, 1), (47<20, 1), (47>34, 1), (5<25, 1), (12>50, 1), (11<29, 1), (22>36, 1), (33<50, 1), (17<49, 1), (4>49, 1), (12>1, 1), (3<7, 1), (33>32, 1), (47>4, 1), (5>36, 1), (3>8, 1), (21>41, 1), (35<39, 1), (22<16, 1), (6>35, 1), (18<16, 1), (41<25, 1), (7>37, 1), (6>26, 1), (44>34, 1), (23>3, 1), (21>14, 1), (23>26, 1), (42<9, 1), (29>16, 1), (46<1, 1), (9<17, 1), (5<32, 1), (22>9, 1), (36<16, 1), (46<31, 1), (3>45, 1), (41<12, 1), (7>8, 1)])).

test(9, (50, 250, [<, >]), (45, 45, 1), ([26, 19, 38, 28, 17, 49, 21, 40, 14, 25, 4, 24, 27, 12, 46, 22, 33, 6, 39, 2, 5, 47, 8, 43, 31, 7, 45, 41, 50, 10, 3, 16, 11, 9, 23, 36, 32, 20, 37, 48, 1, 13, 30, 29, 44], [26>41, 26>50, 26>36, 26>44, 19>24, 19>31, 19>23, 38>40, 28>38, 28>31, 28>37, 17>49, 17>21, 17>24, 17>27, 17>41, 17>50, 17>36, 17>37, 17>44, 49>50, 21>33, 21>31, 21>44, 14>45, 14>20, 25>27, 25>45, 4>19, 4>38, 4>21, 4>12, 4>6, 4>43, 4>31, 4>41, 24>49, 24>32, 27>33, 27>43, 27>32, 12>16, 12>48, 12>30, 22>38, 22>50, 33>43, 33>37, 33>48, 6>26, 6>12, 6>33, 6>32, 2>30, 5>26, 5>19, 5>28, 5>22, 5>32, 47>50, 8>19, 8>28, 8>33, 8>43, 8>37, 43>45, 7>28, 7>17, 7>14, 7>41, 7>9, 7>20, 45>50, 10>40, 10>46, 10>41, 10>16, 10>32, 10>44, 3>19, 3>28, 3>17, 3>22, 3>13, 16>26, 16>41, 16>48, 11>44, 9>12, 9>20, 23>27, 23>39, 23>30, 36>38, 36>48, 32>44, 20>49, 20>21, 37>38, 37>49, 1>28, 1>4, 1>12, 1>50, 1>29, 13>26, 13>25, 30>41, 29>33, 29>39, 29>31, 29>48, 44>46], [47<16, 21>41, 2>47, 39>8, 10<13, 28>33, 24>22, 4>8, 10<29, 40>23, 14>6, 33>16, 6<36, 14<39, 45>10, 43>31, 32>29, 33<30, 10<16, 14>32, 46>44, 27<50, 38<45, 14>47, 47<7, 12<39, 28>17, 25<31, 26<48, 21>16, 27<8, 21>1, 38>49, 40>46, 14>30, 5>50, 33>20, 33>31, 7>45, 21<32, 38<1, 26>50, 22>13, 49<43, 17<22], [ (26, 1), (19, 1), (38, 1), (28, 1), (17, 1), (49, 1), (21, 1), (40, 1), (14, 1), (25, 1), (4, 1), (24, 1), (27, 1), (12, 1), (46, 1), (22, 1), (33, 1), (6, 1), (39, 1), (2, 1), (5, 1), (47, 1), (8, 1), (43, 1), (31, 1), (7, 1), (45, 1), (41, 1), (50, 1), (10, 1), (3, 1), (16, 1), (11, 1), (9, 1), (23, 1), (36, 1), (32, 1), (20, 1), (37, 1), (48, 1), (1, 1), (13, 1), (30, 1), (29, 1), (44, 1)], [ (47<16, 1), (21>41, 1), (2>47, 1), (39>8, 1), (10<13, 1), (28>33, 1), (24>22, 1), (4>8, 1), (10<29, 1), (40>23, 1), (14>6, 1), (33>16, 1), (6<36, 1), (14<39, 1), (45>10, 1), (43>31, 1), (32>29, 1), (33<30, 1), (10<16, 1), (14>32, 1), (46>44, 1), (27<50, 1), (38<45, 1), (14>47, 1), (47<7, 1), (12<39, 1), (28>17, 1), (25<31, 1), (26<48, 1), (21>16, 1), (27<8, 1), (21>1, 1), (38>49, 1), (40>46, 1), (14>30, 1), (5>50, 1), (33>20, 1), (33>31, 1), (7>45, 1), (21<32, 1), (38<1, 1), (26>50, 1), (22>13, 1), (49<43, 1), (17<22, 1)])).

test(10, (50, 250, [<, >]), (45, 45, 1), ([32, 14, 20, 47, 46, 30, 21, 43, 50, 45, 39, 41, 35, 2, 15, 10, 11, 19, 34, 42, 1, 48, 25, 24, 28, 7, 3, 40, 27, 12, 6, 17, 33, 49, 13, 38, 9, 18, 44, 31, 29, 37, 36, 22, 16], [32>35, 14>24, 14>36, 20>42, 20>48, 20>28, 20>29, 47>48, 30>46, 30>40, 30>38, 21>40, 21>29, 43>49, 39>44, 2>47, 2>50, 2>7, 2>44, 15>35, 15>16, 11>39, 11>35, 11>40, 19>44, 34>36, 1>48, 1>7, 24>45, 24>49, 28>44, 7>47, 7>41, 7>11, 3>20, 3>46, 3>21, 3>10, 3>24, 3>7, 3>27, 3>38, 40>42, 27>32, 27>47, 27>43, 27>28, 27>49, 27>37, 12>50, 12>28, 12>17, 6>46, 6>21, 6>19, 6>7, 6>17, 6>31, 17>47, 17>35, 17>40, 17>33, 33>36, 13>35, 13>15, 13>34, 13>37, 38>39, 38>42, 9>15, 18>39, 18>25, 18>24, 44>47, 31>41, 31>40, 29>47, 29>44, 29>31, 37>39, 37>48, 37>40, 22>42, 16>27, 16>33, 16>38], [14<38, 47<18, 11<33, 45>39, 39<10, 3>36, 43>3, 19>34, 46<31, 43<36, 2>36, 6>29, 19>12, 38>31, 15<13, 27<37, 20>17, 50<13, 40>36, 29>16, 46>41, 42<17, 12<33, 21<29, 45<25, 3<12, 39>28, 2<42, 41<40, 28>27, 47>2, 7>29, 39>41, 37<16, 33<49, 39<3, 32<48, 1<3, 24<37, 39>40, 25<18, 11<24, 39<7, 42<7, 41>49], [ (32, 1), (14, 1), (20, 1), (47, 1), (46, 1), (30, 1), (21, 1), (43, 1), (50, 1), (45, 1), (39, 1), (41, 1), (35, 1), (2, 1), (15, 1), (10, 1), (11, 1), (19, 1), (34, 1), (42, 1), (1, 1), (48, 1), (25, 1), (24, 1), (28, 1), (7, 1), (3, 1), (40, 1), (27, 1), (12, 1), (6, 1), (17, 1), (33, 1), (49, 1), (13, 1), (38, 1), (9, 1), (18, 1), (44, 1), (31, 1), (29, 1), (37, 1), (36, 1), (22, 1), (16, 1)], [ (14<38, 1), (47<18, 1), (11<33, 1), (45>39, 1), (39<10, 1), (3>36, 1), (43>3, 1), (19>34, 1), (46<31, 1), (43<36, 1), (2>36, 1), (6>29, 1), (19>12, 1), (38>31, 1), (15<13, 1), (27<37, 1), (20>17, 1), (50<13, 1), (40>36, 1), (29>16, 1), (46>41, 1), (42<17, 1), (12<33, 1), (21<29, 1), (45<25, 1), (3<12, 1), (39>28, 1), (2<42, 1), (41<40, 1), (28>27, 1), (47>2, 1), (7>29, 1), (39>41, 1), (37<16, 1), (33<49, 1), (39<3, 1), (32<48, 1), (1<3, 1), (24<37, 1), (39>40, 1), (25<18, 1), (11<24, 1), (39<7, 1), (42<7, 1), (41>49, 1)])).

%% 50, 250, [<, >]
%% 50, 50, 1

test(1, (50, 250, [<, >]), (50, 50, 1), ([2, 42, 22, 48, 16, 40, 45, 1, 37, 33, 41, 4, 26, 28, 30, 43, 5, 18, 3, 21, 39, 25, 47, 15, 17, 19, 49, 11, 24, 35, 29, 34, 32, 38, 23, 12, 8, 31, 50, 6, 14, 20, 44, 7, 9, 27, 46, 36, 10, 13], [2>33, 2>41, 2>28, 2>47, 2>32, 2>23, 2>14, 2>7, 2>46, 22>41, 22>43, 22>50, 22>46, 16>42, 16>18, 16>21, 16>19, 16>34, 40>44, 45>47, 1>42, 1>26, 1>43, 1>39, 1>25, 1>49, 37>38, 41>44, 4>44, 26>40, 26>33, 26>38, 26>46, 28>40, 28>47, 28>35, 28>50, 30>47, 43>47, 5>42, 5>41, 5>24, 5>8, 5>10, 18>40, 18>43, 18>20, 3>16, 3>28, 3>25, 3>35, 3>38, 3>8, 3>31, 3>27, 21>48, 21>27, 21>46, 39>40, 39>49, 25>35, 47>50, 15>25, 15>47, 15>29, 15>31, 15>50, 17>26, 17>43, 17>25, 17>44, 19>26, 11>42, 11>48, 11>20, 11>46, 24>48, 24>49, 24>27, 35>40, 29>45, 29>33, 34>37, 32>45, 32>43, 38>47, 38>49, 23>26, 23>43, 23>25, 23>49, 12>42, 12>24, 12>35, 12>29, 12>32, 31>48, 31>47, 31>34, 6>22, 6>45, 6>15, 6>24, 6>29, 6>34, 6>36, 14>45, 14>23, 20>33, 20>39, 44>46, 7>37, 7>28, 7>21, 7>14, 7>44, 7>46, 9>41, 9>19, 27>40, 27>41, 36>38, 10>16, 10>24, 10>35, 13>45, 13>43, 13>21, 13>15], [35<29, 20<9, 5>34, 5<36, 18>38, 17<8, 26>49, 31<9, 5>29, 39>49, 49<13, 30>3, 22<43, 26>36, 5<3, 30<46, 42>6, 42>13, 42>12, 4>20, 44<27, 38<7, 41>3, 16<46, 19>7, 42<30, 16>44, 47<14, 1>26, 40<44, 2>15, 42<32, 41>6, 26>29, 26>38, 34>23, 40<27, 16>13, 49<9, 22>50, 9<36, 1<23, 33<41, 39>32, 45<1, 40>39, 31<44, 24>31, 16<9, 4>12], [ (2, 1), (42, 1), (22, 1), (48, 1), (16, 1), (40, 1), (45, 1), (1, 1), (37, 1), (33, 1), (41, 1), (4, 1), (26, 1), (28, 1), (30, 1), (43, 1), (5, 1), (18, 1), (3, 1), (21, 1), (39, 1), (25, 1), (47, 1), (15, 1), (17, 1), (19, 1), (49, 1), (11, 1), (24, 1), (35, 1), (29, 1), (34, 1), (32, 1), (38, 1), (23, 1), (12, 1), (8, 1), (31, 1), (50, 1), (6, 1), (14, 1), (20, 1), (44, 1), (7, 1), (9, 1), (27, 1), (46, 1), (36, 1), (10, 1), (13, 1)], [ (35<29, 1), (20<9, 1), (5>34, 1), (5<36, 1), (18>38, 1), (17<8, 1), (26>49, 1), (31<9, 1), (5>29, 1), (39>49, 1), (49<13, 1), (30>3, 1), (22<43, 1), (26>36, 1), (5<3, 1), (30<46, 1), (42>6, 1), (42>13, 1), (42>12, 1), (4>20, 1), (44<27, 1), (38<7, 1), (41>3, 1), (16<46, 1), (19>7, 1), (42<30, 1), (16>44, 1), (47<14, 1), (1>26, 1), (40<44, 1), (2>15, 1), (42<32, 1), (41>6, 1), (26>29, 1), (26>38, 1), (34>23, 1), (40<27, 1), (16>13, 1), (49<9, 1), (22>50, 1), (9<36, 1), (1<23, 1), (33<41, 1), (39>32, 1), (45<1, 1), (40>39, 1), (31<44, 1), (24>31, 1), (16<9, 1), (4>12, 1)])).

test(2, (50, 250, [<, >]), (50, 50, 1), ([1, 49, 32, 29, 37, 4, 20, 47, 16, 43, 27, 34, 11, 6, 45, 22, 33, 5, 28, 44, 50, 23, 2, 40, 9, 24, 39, 46, 12, 7, 3, 14, 35, 13, 15, 25, 31, 30, 17, 18, 26, 8, 19, 42, 41, 10, 38, 48, 36, 21], [1>49, 1>5, 1>40, 1>12, 1>38, 32>37, 29>38, 37>50, 37>41, 4>29, 4>43, 4>15, 4>25, 4>26, 4>38, 20>29, 20>24, 20>41, 20>21, 16>29, 16>25, 16>30, 43>49, 43>44, 27>49, 27>31, 27>36, 34>45, 11>49, 11>29, 11>47, 11>43, 11>39, 11>46, 11>38, 11>36, 6>11, 6>25, 6>30, 6>17, 22>49, 22>41, 33>47, 5>11, 5>50, 5>41, 5>48, 28>49, 28>39, 23>35, 2>49, 2>4, 2>11, 2>12, 2>38, 40>41, 9>49, 9>34, 9>11, 9>46, 9>14, 24>49, 24>34, 24>31, 39>49, 39>43, 39>48, 12>49, 12>24, 12>41, 12>48, 7>29, 7>28, 7>23, 7>31, 7>48, 3>32, 3>45, 3>21, 14>27, 14>40, 14>19, 35>46, 13>44, 15>47, 15>44, 15>31, 15>18, 15>19, 15>41, 25>49, 25>34, 25>28, 25>36, 31>44, 31>36, 30>45, 30>33, 17>44, 17>35, 17>31, 17>30, 17>21, 18>27, 26>46, 26>36, 8>32, 8>12, 8>31, 19>49, 19>24, 19>41, 19>38, 42>49, 42>43, 41>45, 10>34, 10>12, 10>42, 10>21, 48>50, 36>49, 36>46, 21>28, 21>46, 21>36], [6<41, 18>48, 22>44, 7<15, 27<5, 1>42, 6>39, 24>31, 32>6, 6<45, 22>7, 34>14, 23<31, 2<19, 20<15, 49>32, 16>30, 20>13, 32<31, 30>18, 6>7, 37>23, 35<38, 37<7, 33>5, 24<18, 44>2, 17<48, 20>47, 5<40, 4<39, 6>24, 49<43, 9>24, 47<8, 29>41, 28<8, 34<39, 1>50, 11>45, 22>46, 33>42, 50>13, 33<2, 4<43, 33>44, 14<21, 35<19, 11>24, 11<44], [ (1, 1), (49, 1), (32, 1), (29, 1), (37, 1), (4, 1), (20, 1), (47, 1), (16, 1), (43, 1), (27, 1), (34, 1), (11, 1), (6, 1), (45, 1), (22, 1), (33, 1), (5, 1), (28, 1), (44, 1), (50, 1), (23, 1), (2, 1), (40, 1), (9, 1), (24, 1), (39, 1), (46, 1), (12, 1), (7, 1), (3, 1), (14, 1), (35, 1), (13, 1), (15, 1), (25, 1), (31, 1), (30, 1), (17, 1), (18, 1), (26, 1), (8, 1), (19, 1), (42, 1), (41, 1), (10, 1), (38, 1), (48, 1), (36, 1), (21, 1)], [ (6<41, 1), (18>48, 1), (22>44, 1), (7<15, 1), (27<5, 1), (1>42, 1), (6>39, 1), (24>31, 1), (32>6, 1), (6<45, 1), (22>7, 1), (34>14, 1), (23<31, 1), (2<19, 1), (20<15, 1), (49>32, 1), (16>30, 1), (20>13, 1), (32<31, 1), (30>18, 1), (6>7, 1), (37>23, 1), (35<38, 1), (37<7, 1), (33>5, 1), (24<18, 1), (44>2, 1), (17<48, 1), (20>47, 1), (5<40, 1), (4<39, 1), (6>24, 1), (49<43, 1), (9>24, 1), (47<8, 1), (29>41, 1), (28<8, 1), (34<39, 1), (1>50, 1), (11>45, 1), (22>46, 1), (33>42, 1), (50>13, 1), (33<2, 1), (4<43, 1), (33>44, 1), (14<21, 1), (35<19, 1), (11>24, 1), (11<44, 1)])).

test(3, (50, 250, [<, >]), (50, 50, 1), ([19, 26, 49, 31, 12, 10, 5, 27, 42, 48, 30, 47, 18, 25, 1, 3, 20, 21, 33, 6, 46, 28, 17, 44, 29, 2, 4, 32, 38, 45, 14, 9, 22, 50, 16, 15, 8, 11, 7, 13, 35, 23, 34, 39, 43, 24, 40, 41, 36, 37], [19>27, 19>48, 19>33, 19>23, 19>40, 19>41, 26>48, 26>35, 12>14, 12>43, 10>49, 10>33, 10>38, 10>11, 5>10, 5>27, 5>47, 5>7, 27>28, 27>41, 30>39, 30>43, 18>19, 18>22, 25>28, 25>50, 25>34, 25>40, 1>48, 1>20, 1>29, 1>38, 1>50, 3>27, 3>47, 3>33, 3>6, 3>16, 3>15, 3>39, 3>36, 20>44, 20>32, 20>43, 21>27, 33>48, 33>45, 33>40, 6>10, 6>25, 6>20, 6>32, 6>13, 6>35, 6>40, 28>49, 28>30, 28>40, 17>30, 17>44, 29>48, 29>46, 29>34, 2>12, 2>47, 2>20, 2>4, 2>32, 2>45, 2>9, 4>10, 4>45, 38>45, 38>39, 38>41, 14>26, 14>20, 14>28, 14>45, 14>24, 14>41, 9>26, 9>45, 9>34, 9>37, 22>49, 22>38, 22>45, 22>34, 22>36, 16>18, 16>33, 16>50, 16>35, 15>19, 15>48, 15>32, 15>45, 15>34, 15>40, 8>21, 11>31, 11>17, 11>50, 7>18, 7>44, 13>19, 13>26, 13>48, 13>35, 35>45, 35>43, 23>47, 23>38, 23>50, 23>37, 34>49, 34>35, 39>40, 24>26, 24>28, 24>45, 24>35, 24>36, 40>41, 36>45, 36>39, 36>43, 37>41], [6<46, 42>25, 19>48, 29>37, 19>36, 30<44, 30>28, 26>11, 20>16, 18>1, 49>28, 2>13, 29>9, 31>27, 26>2, 17>8, 18>6, 21<15, 5>36, 30>8, 22<50, 44>13, 8>39, 46>40, 20<23, 13<24, 16<23, 12>1, 30<17, 31>2, 26<15, 18>40, 29<41, 19<3, 31>11, 14>22, 31>28, 5>35, 32>40, 21<28, 11>43, 18<4, 7<24, 49<37, 1>17, 47<34, 9<39, 46<2, 6>44, 28<13], [ (19, 1), (26, 1), (49, 1), (31, 1), (12, 1), (10, 1), (5, 1), (27, 1), (42, 1), (48, 1), (30, 1), (47, 1), (18, 1), (25, 1), (1, 1), (3, 1), (20, 1), (21, 1), (33, 1), (6, 1), (46, 1), (28, 1), (17, 1), (44, 1), (29, 1), (2, 1), (4, 1), (32, 1), (38, 1), (45, 1), (14, 1), (9, 1), (22, 1), (50, 1), (16, 1), (15, 1), (8, 1), (11, 1), (7, 1), (13, 1), (35, 1), (23, 1), (34, 1), (39, 1), (43, 1), (24, 1), (40, 1), (41, 1), (36, 1), (37, 1)], [ (6<46, 1), (42>25, 1), (19>48, 1), (29>37, 1), (19>36, 1), (30<44, 1), (30>28, 1), (26>11, 1), (20>16, 1), (18>1, 1), (49>28, 1), (2>13, 1), (29>9, 1), (31>27, 1), (26>2, 1), (17>8, 1), (18>6, 1), (21<15, 1), (5>36, 1), (30>8, 1), (22<50, 1), (44>13, 1), (8>39, 1), (46>40, 1), (20<23, 1), (13<24, 1), (16<23, 1), (12>1, 1), (30<17, 1), (31>2, 1), (26<15, 1), (18>40, 1), (29<41, 1), (19<3, 1), (31>11, 1), (14>22, 1), (31>28, 1), (5>35, 1), (32>40, 1), (21<28, 1), (11>43, 1), (18<4, 1), (7<24, 1), (49<37, 1), (1>17, 1), (47<34, 1), (9<39, 1), (46<2, 1), (6>44, 1), (28<13, 1)])).

test(4, (50, 250, [<, >]), (50, 50, 1), ([19, 26, 41, 2, 17, 24, 37, 18, 12, 13, 39, 9, 22, 44, 23, 43, 45, 15, 36, 28, 21, 42, 49, 16, 34, 47, 3, 30, 31, 50, 46, 48, 4, 6, 1, 40, 10, 38, 33, 20, 7, 35, 29, 14, 11, 5, 27, 25, 8, 32], [19>44, 19>33, 26>44, 26>50, 41>43, 2>34, 2>10, 17>39, 17>36, 17>21, 17>29, 17>32, 24>39, 24>36, 24>28, 24>31, 24>38, 37>49, 18>20, 12>26, 12>46, 13>19, 13>36, 13>35, 39>45, 9>39, 9>16, 9>20, 22>45, 22>50, 22>46, 44>50, 23>26, 23>41, 23>24, 23>44, 23>36, 23>42, 23>48, 23>25, 43>46, 15>37, 15>39, 15>36, 15>42, 15>40, 36>46, 28>50, 21>26, 21>22, 21>36, 21>34, 21>32, 16>36, 34>44, 34>50, 34>38, 3>18, 3>34, 3>31, 3>25, 30>38, 4>19, 4>26, 4>12, 4>44, 4>21, 4>20, 4>7, 4>14, 4>8, 6>44, 6>14, 1>19, 1>26, 1>22, 1>44, 1>34, 1>3, 1>40, 1>35, 40>44, 10>26, 10>39, 10>46, 38>44, 38>47, 38>46, 20>44, 7>9, 7>43, 7>15, 7>50, 7>10, 7>29, 35>44, 35>36, 35>38, 29>32, 14>26, 14>37, 14>23, 14>31, 14>25, 11>24, 11>22, 11>28, 11>46, 11>38, 5>43, 5>49, 5>16, 5>40, 5>33, 27>46, 27>40, 27>32, 25>50, 8>26, 8>17, 8>16, 8>46, 8>11, 8>32, 32>40], [36>30, 12<7, 2>14, 45>16, 49<35, 39>33, 12>14, 15>6, 42>47, 2<17, 43>14, 23>35, 22<15, 38<5, 43>40, 29<14, 43<33, 41>24, 9>6, 48>20, 17<21, 12>25, 15<7, 23>43, 47<20, 37<8, 33>20, 41>30, 17>6, 41<16, 33<7, 5<27, 24>22, 30<6, 39>32, 50>25, 34>35, 12<34, 17<4, 41>7, 13<25, 41>8, 34<48, 41>37, 12>11, 24>33, 10>14, 38<7, 45>21, 3>31], [ (19, 1), (26, 1), (41, 1), (2, 1), (17, 1), (24, 1), (37, 1), (18, 1), (12, 1), (13, 1), (39, 1), (9, 1), (22, 1), (44, 1), (23, 1), (43, 1), (45, 1), (15, 1), (36, 1), (28, 1), (21, 1), (42, 1), (49, 1), (16, 1), (34, 1), (47, 1), (3, 1), (30, 1), (31, 1), (50, 1), (46, 1), (48, 1), (4, 1), (6, 1), (1, 1), (40, 1), (10, 1), (38, 1), (33, 1), (20, 1), (7, 1), (35, 1), (29, 1), (14, 1), (11, 1), (5, 1), (27, 1), (25, 1), (8, 1), (32, 1)], [ (36>30, 1), (12<7, 1), (2>14, 1), (45>16, 1), (49<35, 1), (39>33, 1), (12>14, 1), (15>6, 1), (42>47, 1), (2<17, 1), (43>14, 1), (23>35, 1), (22<15, 1), (38<5, 1), (43>40, 1), (29<14, 1), (43<33, 1), (41>24, 1), (9>6, 1), (48>20, 1), (17<21, 1), (12>25, 1), (15<7, 1), (23>43, 1), (47<20, 1), (37<8, 1), (33>20, 1), (41>30, 1), (17>6, 1), (41<16, 1), (33<7, 1), (5<27, 1), (24>22, 1), (30<6, 1), (39>32, 1), (50>25, 1), (34>35, 1), (12<34, 1), (17<4, 1), (41>7, 1), (13<25, 1), (41>8, 1), (34<48, 1), (41>37, 1), (12>11, 1), (24>33, 1), (10>14, 1), (38<7, 1), (45>21, 1), (3>31, 1)])).

test(5, (50, 250, [<, >]), (50, 50, 1), ([30, 45, 37, 14, 8, 3, 12, 6, 47, 25, 39, 1, 31, 40, 41, 48, 28, 29, 34, 26, 43, 49, 18, 23, 7, 2, 11, 15, 44, 27, 19, 42, 46, 33, 10, 22, 13, 4, 17, 5, 35, 50, 32, 36, 9, 16, 20, 24, 38, 21], [30>49, 30>36, 37>44, 37>46, 14>37, 14>26, 14>18, 14>20, 8>12, 8>40, 8>19, 8>22, 8>16, 8>21, 3>45, 3>31, 3>27, 3>21, 12>29, 12>43, 12>49, 12>33, 12>21, 6>48, 6>16, 47>48, 25>42, 1>25, 1>43, 1>7, 1>10, 1>5, 31>37, 31>44, 31>33, 48>49, 28>49, 28>35, 34>45, 34>48, 34>36, 34>38, 26>30, 26>35, 43>48, 43>50, 18>47, 18>48, 18>44, 18>38, 23>45, 23>43, 23>49, 23>42, 7>30, 7>12, 7>29, 7>26, 7>49, 7>18, 7>42, 7>33, 7>24, 2>11, 2>27, 2>10, 2>50, 11>27, 11>22, 11>13, 11>21, 15>45, 15>39, 15>41, 15>34, 15>43, 15>49, 15>22, 44>50, 27>45, 27>47, 27>31, 27>34, 19>28, 19>26, 42>49, 33>41, 33>42, 10>48, 10>19, 10>50, 22>39, 22>41, 22>28, 13>15, 13>44, 13>38, 4>29, 4>15, 17>45, 17>31, 17>40, 17>29, 17>42, 17>22, 5>6, 5>41, 5>33, 35>45, 35>37, 35>38, 32>40, 32>34, 32>44, 36>39, 36>38, 9>45, 9>31, 9>11, 9>27, 9>13, 16>31, 16>49, 16>21, 20>47, 20>39, 20>40, 20>46, 24>30, 24>45, 24>26, 24>49, 24>46, 38>40, 21>33], [11>32, 25<27, 2<19, 30<35, 44<22, 30>10, 1<31, 34<36, 47>1, 30<39, 8<15, 46>17, 40>33, 37>32, 39>20, 37>17, 15>9, 40<43, 39>11, 40<35, 11<24, 27>5, 11>16, 8>22, 43>50, 20<38, 1>10, 29<33, 46>33, 14>13, 37<12, 27<46, 17<9, 28<38, 41<29, 45>47, 15>21, 4<38, 37<21, 18>11, 2<15, 11<21, 45>5, 34>5, 43<9, 26<42, 28>7, 28>11, 41<49, 47<35], [ (30, 1), (45, 1), (37, 1), (14, 1), (8, 1), (3, 1), (12, 1), (6, 1), (47, 1), (25, 1), (39, 1), (1, 1), (31, 1), (40, 1), (41, 1), (48, 1), (28, 1), (29, 1), (34, 1), (26, 1), (43, 1), (49, 1), (18, 1), (23, 1), (7, 1), (2, 1), (11, 1), (15, 1), (44, 1), (27, 1), (19, 1), (42, 1), (46, 1), (33, 1), (10, 1), (22, 1), (13, 1), (4, 1), (17, 1), (5, 1), (35, 1), (50, 1), (32, 1), (36, 1), (9, 1), (16, 1), (20, 1), (24, 1), (38, 1), (21, 1)], [ (11>32, 1), (25<27, 1), (2<19, 1), (30<35, 1), (44<22, 1), (30>10, 1), (1<31, 1), (34<36, 1), (47>1, 1), (30<39, 1), (8<15, 1), (46>17, 1), (40>33, 1), (37>32, 1), (39>20, 1), (37>17, 1), (15>9, 1), (40<43, 1), (39>11, 1), (40<35, 1), (11<24, 1), (27>5, 1), (11>16, 1), (8>22, 1), (43>50, 1), (20<38, 1), (1>10, 1), (29<33, 1), (46>33, 1), (14>13, 1), (37<12, 1), (27<46, 1), (17<9, 1), (28<38, 1), (41<29, 1), (45>47, 1), (15>21, 1), (4<38, 1), (37<21, 1), (18>11, 1), (2<15, 1), (11<21, 1), (45>5, 1), (34>5, 1), (43<9, 1), (26<42, 1), (28>7, 1), (28>11, 1), (41<49, 1), (47<35, 1)])).

test(6, (50, 250, [<, >]), (50, 50, 1), ([23, 38, 24, 27, 3, 28, 7, 43, 15, 20, 4, 14, 49, 47, 2, 34, 29, 39, 37, 8, 36, 44, 6, 32, 25, 12, 22, 21, 9, 42, 11, 46, 17, 50, 10, 1, 18, 26, 19, 5, 40, 31, 33, 45, 35, 13, 48, 16, 30, 41], [23>49, 38>49, 38>42, 24>47, 24>36, 24>45, 24>48, 24>41, 27>28, 27>34, 27>40, 3>47, 3>29, 3>17, 28>34, 28>45, 7>8, 7>22, 7>11, 7>10, 15>24, 15>28, 20>23, 20>38, 20>36, 20>45, 4>23, 4>38, 4>28, 4>34, 4>26, 4>5, 14>26, 14>41, 2>23, 2>3, 2>44, 2>42, 2>35, 2>41, 34>49, 34>48, 29>47, 29>31, 29>35, 29>48, 39>45, 37>41, 8>27, 8>14, 8>36, 8>22, 6>46, 6>26, 32>44, 32>35, 32>48, 25>38, 25>49, 25>48, 12>15, 12>37, 12>25, 12>50, 22>23, 22>38, 22>46, 22>31, 22>45, 21>38, 21>24, 21>47, 21>29, 21>25, 21>46, 21>40, 9>43, 9>29, 9>36, 9>11, 9>31, 42>43, 11>20, 11>34, 11>36, 11>12, 11>45, 17>49, 17>32, 10>26, 10>19, 1>24, 1>4, 1>34, 1>25, 1>11, 1>5, 18>49, 18>44, 18>45, 26>49, 26>44, 26>42, 26>35, 19>43, 5>7, 5>39, 5>6, 5>12, 5>13, 33>44, 35>37, 35>36, 13>24, 13>49, 13>32, 13>50, 13>18, 13>48, 16>43, 16>37, 16>31, 30>49, 30>37], [50>16, 8>9, 3>39, 22<50, 24>27, 49<34, 7>1, 6<46, 24>3, 9>1, 9<13, 37<8, 27>20, 24<22, 22<35, 4>18, 22<5, 47<26, 6<11, 20<13, 9>19, 47<29, 43<49, 47>33, 47<41, 38<18, 37>18, 23>9, 6>31, 28<29, 24<35, 24<44, 17>19, 36>11, 49>48, 42>17, 10>33, 11<46, 19>41, 42>41, 44>11, 50>35, 29<11, 24<15, 27<47, 24<32, 12<18, 15>25, 7>48, 4>44], [ (23, 1), (38, 1), (24, 1), (27, 1), (3, 1), (28, 1), (7, 1), (43, 1), (15, 1), (20, 1), (4, 1), (14, 1), (49, 1), (47, 1), (2, 1), (34, 1), (29, 1), (39, 1), (37, 1), (8, 1), (36, 1), (44, 1), (6, 1), (32, 1), (25, 1), (12, 1), (22, 1), (21, 1), (9, 1), (42, 1), (11, 1), (46, 1), (17, 1), (50, 1), (10, 1), (1, 1), (18, 1), (26, 1), (19, 1), (5, 1), (40, 1), (31, 1), (33, 1), (45, 1), (35, 1), (13, 1), (48, 1), (16, 1), (30, 1), (41, 1)], [ (50>16, 1), (8>9, 1), (3>39, 1), (22<50, 1), (24>27, 1), (49<34, 1), (7>1, 1), (6<46, 1), (24>3, 1), (9>1, 1), (9<13, 1), (37<8, 1), (27>20, 1), (24<22, 1), (22<35, 1), (4>18, 1), (22<5, 1), (47<26, 1), (6<11, 1), (20<13, 1), (9>19, 1), (47<29, 1), (43<49, 1), (47>33, 1), (47<41, 1), (38<18, 1), (37>18, 1), (23>9, 1), (6>31, 1), (28<29, 1), (24<35, 1), (24<44, 1), (17>19, 1), (36>11, 1), (49>48, 1), (42>17, 1), (10>33, 1), (11<46, 1), (19>41, 1), (42>41, 1), (44>11, 1), (50>35, 1), (29<11, 1), (24<15, 1), (27<47, 1), (24<32, 1), (12<18, 1), (15>25, 1), (7>48, 1), (4>44, 1)])).

test(7, (50, 250, [<, >]), (50, 50, 1), ([10, 34, 41, 46, 28, 3, 5, 40, 18, 32, 35, 17, 6, 4, 29, 50, 39, 8, 25, 44, 9, 48, 36, 27, 24, 21, 49, 22, 1, 43, 19, 15, 45, 14, 47, 37, 33, 16, 30, 2, 26, 23, 7, 11, 20, 13, 31, 42, 12, 38], [10>39, 10>36, 10>13, 28>30, 3>41, 3>17, 3>4, 3>47, 3>23, 5>34, 5>29, 5>21, 5>42, 5>38, 40>46, 40>50, 40>48, 18>28, 18>39, 18>26, 18>38, 32>34, 32>45, 32>47, 35>50, 35>48, 35>36, 35>49, 17>18, 17>29, 17>25, 17>44, 17>47, 17>26, 17>31, 6>48, 6>22, 6>11, 6>20, 6>13, 4>46, 4>5, 4>27, 4>22, 4>15, 4>26, 4>13, 4>42, 29>32, 29>35, 29>44, 39>46, 8>17, 8>29, 8>36, 8>42, 25>41, 25>50, 25>43, 25>26, 44>45, 9>44, 9>27, 9>12, 36>41, 36>44, 36>38, 27>50, 27>49, 27>37, 27>38, 24>46, 24>35, 21>50, 21>33, 21>26, 22>41, 22>46, 22>47, 22>33, 22>31, 1>43, 1>14, 1>26, 1>31, 1>38, 19>24, 15>28, 15>22, 15>20, 45>46, 14>46, 14>50, 14>49, 14>31, 37>41, 37>39, 33>34, 33>44, 16>46, 16>49, 30>39, 30>48, 30>45, 2>22, 2>33, 26>32, 26>35, 7>30, 7>26, 11>32, 11>19, 11>45, 11>14, 20>37, 20>23, 20>38, 13>41, 13>18, 13>30, 31>46, 42>45, 12>41, 12>40, 12>35, 12>29, 12>24, 12>43, 12>16, 12>30, 38>44], [11<13, 29>37, 50<15, 27>19, 10<4, 15>2, 36<15, 19<42, 32>44, 36<26, 37<42, 18>22, 43<47, 2>12, 46<37, 30<42, 3<44, 10>25, 50<36, 41>16, 20>31, 50>49, 19>23, 32<27, 28>48, 24>37, 9<36, 46>47, 25>49, 44<38, 27>2, 5>27, 43>45, 41>36, 29>33, 6>42, 10>42, 41>4, 49<14, 3>47, 22>30, 8<45, 36<38, 24>47, 29<30, 18>50, 41>12, 41>39, 39>20, 40>8], [ (10, 1), (34, 1), (41, 1), (46, 1), (28, 1), (3, 1), (5, 1), (40, 1), (18, 1), (32, 1), (35, 1), (17, 1), (6, 1), (4, 1), (29, 1), (50, 1), (39, 1), (8, 1), (25, 1), (44, 1), (9, 1), (48, 1), (36, 1), (27, 1), (24, 1), (21, 1), (49, 1), (22, 1), (1, 1), (43, 1), (19, 1), (15, 1), (45, 1), (14, 1), (47, 1), (37, 1), (33, 1), (16, 1), (30, 1), (2, 1), (26, 1), (23, 1), (7, 1), (11, 1), (20, 1), (13, 1), (31, 1), (42, 1), (12, 1), (38, 1)], [ (11<13, 1), (29>37, 1), (50<15, 1), (27>19, 1), (10<4, 1), (15>2, 1), (36<15, 1), (19<42, 1), (32>44, 1), (36<26, 1), (37<42, 1), (18>22, 1), (43<47, 1), (2>12, 1), (46<37, 1), (30<42, 1), (3<44, 1), (10>25, 1), (50<36, 1), (41>16, 1), (20>31, 1), (50>49, 1), (19>23, 1), (32<27, 1), (28>48, 1), (24>37, 1), (9<36, 1), (46>47, 1), (25>49, 1), (44<38, 1), (27>2, 1), (5>27, 1), (43>45, 1), (41>36, 1), (29>33, 1), (6>42, 1), (10>42, 1), (41>4, 1), (49<14, 1), (3>47, 1), (22>30, 1), (8<45, 1), (36<38, 1), (24>47, 1), (29<30, 1), (18>50, 1), (41>12, 1), (41>39, 1), (39>20, 1), (40>8, 1)])).

test(8, (50, 250, [<, >]), (50, 50, 1), ([27, 36, 30, 17, 41, 3, 37, 19, 9, 39, 33, 2, 10, 21, 20, 28, 23, 14, 35, 7, 25, 31, 47, 11, 8, 38, 34, 50, 49, 16, 45, 42, 26, 18, 44, 13, 32, 5, 22, 15, 1, 43, 12, 6, 24, 40, 48, 4, 46, 29], [27>47, 36>43, 30>47, 30>42, 17>37, 17>47, 41>48, 3>21, 3>28, 3>7, 3>5, 3>48, 19>39, 19>32, 19>29, 9>36, 9>49, 9>26, 9>18, 9>24, 9>46, 33>42, 33>48, 2>3, 2>19, 2>34, 2>45, 2>5, 2>22, 2>6, 10>30, 10>33, 10>14, 10>31, 10>48, 21>36, 20>37, 20>21, 20>34, 20>42, 20>24, 20>40, 28>33, 23>36, 23>47, 23>38, 23>44, 14>38, 35>39, 35>46, 7>27, 7>31, 7>45, 25>27, 25>37, 31>34, 31>48, 11>41, 8>27, 8>30, 8>25, 8>44, 8>13, 8>46, 38>45, 38>42, 34>36, 34>35, 34>43, 16>27, 16>41, 16>37, 16>39, 16>31, 16>50, 42>46, 26>36, 26>41, 26>43, 26>46, 18>27, 18>39, 18>42, 18>44, 13>36, 13>17, 13>38, 32>45, 32>48, 5>17, 5>31, 5>50, 22>30, 22>50, 15>17, 15>39, 15>34, 15>43, 1>36, 1>37, 1>35, 1>18, 12>41, 6>41, 6>28, 6>23, 6>35, 6>25, 6>47, 24>28, 24>38, 24>50, 24>45, 24>42, 40>47, 48>50, 4>37, 4>10, 4>35, 4>42, 4>44, 29>34], [8<15, 36<47, 31<24, 21>16, 16>6, 14<6, 20<6, 44<1, 42<13, 39>49, 39<40, 31<29, 39>20, 6<40, 50>6, 36>12, 14>40, 23<12, 28>14, 9<25, 27>36, 39<35, 19>4, 39<28, 31<34, 17<47, 33<6, 3<35, 49>22, 41<25, 37>6, 17>8, 19<28, 30>47, 32>5, 42<24, 36>6, 39<50, 27>19, 47>24, 31>45, 10>23, 42>12, 49>18, 9>47, 3<48, 41<29, 33<45, 33>42, 31>48], [ (27, 1), (36, 1), (30, 1), (17, 1), (41, 1), (3, 1), (37, 1), (19, 1), (9, 1), (39, 1), (33, 1), (2, 1), (10, 1), (21, 1), (20, 1), (28, 1), (23, 1), (14, 1), (35, 1), (7, 1), (25, 1), (31, 1), (47, 1), (11, 1), (8, 1), (38, 1), (34, 1), (50, 1), (49, 1), (16, 1), (45, 1), (42, 1), (26, 1), (18, 1), (44, 1), (13, 1), (32, 1), (5, 1), (22, 1), (15, 1), (1, 1), (43, 1), (12, 1), (6, 1), (24, 1), (40, 1), (48, 1), (4, 1), (46, 1), (29, 1)], [ (8<15, 1), (36<47, 1), (31<24, 1), (21>16, 1), (16>6, 1), (14<6, 1), (20<6, 1), (44<1, 1), (42<13, 1), (39>49, 1), (39<40, 1), (31<29, 1), (39>20, 1), (6<40, 1), (50>6, 1), (36>12, 1), (14>40, 1), (23<12, 1), (28>14, 1), (9<25, 1), (27>36, 1), (39<35, 1), (19>4, 1), (39<28, 1), (31<34, 1), (17<47, 1), (33<6, 1), (3<35, 1), (49>22, 1), (41<25, 1), (37>6, 1), (17>8, 1), (19<28, 1), (30>47, 1), (32>5, 1), (42<24, 1), (36>6, 1), (39<50, 1), (27>19, 1), (47>24, 1), (31>45, 1), (10>23, 1), (42>12, 1), (49>18, 1), (9>47, 1), (3<48, 1), (41<29, 1), (33<45, 1), (33>42, 1), (31>48, 1)])).

test(9, (50, 250, [<, >]), (50, 50, 1), ([14, 46, 19, 42, 28, 11, 12, 10, 32, 21, 22, 31, 3, 50, 5, 23, 48, 40, 30, 17, 36, 29, 8, 20, 18, 47, 15, 9, 34, 33, 38, 7, 1, 24, 35, 45, 16, 25, 6, 39, 37, 44, 27, 4, 41, 26, 49, 2, 43, 13], [14>42, 14>17, 14>36, 14>29, 14>20, 14>18, 14>39, 19>42, 11>22, 11>47, 11>37, 12>48, 12>20, 10>36, 10>47, 10>25, 32>34, 32>37, 32>43, 21>24, 21>45, 22>26, 22>43, 31>42, 31>44, 3>42, 3>10, 3>23, 5>19, 5>12, 5>21, 5>8, 5>38, 5>45, 5>44, 5>49, 23>42, 23>36, 23>45, 48>49, 30>46, 17>46, 17>22, 36>37, 8>15, 8>39, 8>37, 20>37, 18>28, 18>21, 18>34, 15>22, 15>34, 15>49, 9>48, 9>30, 9>25, 9>37, 9>44, 34>48, 34>36, 34>38, 34>37, 33>47, 38>49, 7>33, 7>38, 1>32, 1>36, 1>15, 1>39, 24>32, 24>27, 24>26, 35>39, 45>48, 45>47, 45>49, 16>21, 16>34, 16>43, 25>31, 25>49, 6>40, 6>16, 6>49, 37>47, 37>43, 44>47, 27>41, 4>28, 4>32, 4>22, 4>50, 4>5, 4>24, 4>45, 4>16, 4>39, 26>42, 26>44, 2>14, 2>10, 2>3, 2>38, 2>44, 2>13, 43>48, 43>44, 13>32, 13>17, 13>25, 13>27, 13>41, 13>26], [10<50, 17<26, 5>38, 3<48, 21>36, 47>26, 3<45, 23<27, 7>2, 30<43, 29<49, 3>43, 42>6, 46>2, 40>29, 1>35, 40<27, 24>2, 34>35, 5>49, 33<4, 23<47, 8>33, 31>15, 17<38, 12<40, 22>23, 42>30, 36<35, 19<48, 40>38, 33<49, 48<18, 10<2, 19>11, 36>7, 34<16, 42<41, 45>26, 50<15, 17>27, 6>49, 50<18, 34<49, 19>12, 19>25, 29>41, 21<31, 46<23, 9<7], [ (14, 1), (46, 1), (19, 1), (42, 1), (28, 1), (11, 1), (12, 1), (10, 1), (32, 1), (21, 1), (22, 1), (31, 1), (3, 1), (50, 1), (5, 1), (23, 1), (48, 1), (40, 1), (30, 1), (17, 1), (36, 1), (29, 1), (8, 1), (20, 1), (18, 1), (47, 1), (15, 1), (9, 1), (34, 1), (33, 1), (38, 1), (7, 1), (1, 1), (24, 1), (35, 1), (45, 1), (16, 1), (25, 1), (6, 1), (39, 1), (37, 1), (44, 1), (27, 1), (4, 1), (41, 1), (26, 1), (49, 1), (2, 1), (43, 1), (13, 1)], [ (10<50, 1), (17<26, 1), (5>38, 1), (3<48, 1), (21>36, 1), (47>26, 1), (3<45, 1), (23<27, 1), (7>2, 1), (30<43, 1), (29<49, 1), (3>43, 1), (42>6, 1), (46>2, 1), (40>29, 1), (1>35, 1), (40<27, 1), (24>2, 1), (34>35, 1), (5>49, 1), (33<4, 1), (23<47, 1), (8>33, 1), (31>15, 1), (17<38, 1), (12<40, 1), (22>23, 1), (42>30, 1), (36<35, 1), (19<48, 1), (40>38, 1), (33<49, 1), (48<18, 1), (10<2, 1), (19>11, 1), (36>7, 1), (34<16, 1), (42<41, 1), (45>26, 1), (50<15, 1), (17>27, 1), (6>49, 1), (50<18, 1), (34<49, 1), (19>12, 1), (19>25, 1), (29>41, 1), (21<31, 1), (46<23, 1), (9<7, 1)])).

test(10, (50, 250, [<, >]), (50, 50, 1), ([28, 24, 39, 40, 1, 32, 30, 21, 14, 18, 46, 48, 27, 47, 20, 31, 19, 11, 16, 10, 4, 26, 36, 49, 6, 29, 13, 33, 5, 41, 38, 35, 17, 45, 7, 25, 44, 43, 34, 23, 15, 22, 50, 3, 37, 8, 12, 9, 42, 2], [28>29, 24>44, 24>37, 1>24, 1>25, 1>15, 1>42, 32>46, 32>44, 30>39, 30>40, 30>35, 30>44, 21>24, 21>26, 21>49, 21>29, 21>45, 14>28, 14>48, 14>29, 18>32, 18>44, 18>43, 27>36, 27>35, 27>50, 20>46, 20>44, 20>42, 31>47, 31>44, 31>37, 19>47, 19>33, 19>23, 11>39, 11>18, 11>27, 11>38, 11>43, 11>15, 16>18, 16>46, 16>47, 10>32, 10>26, 10>41, 10>35, 4>28, 4>21, 4>47, 4>6, 4>13, 4>7, 4>37, 26>30, 26>35, 26>45, 26>44, 26>43, 36>39, 6>7, 6>44, 6>12, 6>9, 6>42, 29>40, 29>32, 29>44, 13>39, 13>47, 13>31, 13>16, 13>22, 33>38, 5>24, 5>48, 5>6, 5>25, 5>44, 5>50, 38>40, 35>46, 17>39, 17>40, 17>30, 17>19, 17>41, 7>24, 7>30, 7>47, 7>19, 7>11, 7>26, 7>43, 7>42, 25>50, 43>45, 23>34, 23>50, 15>24, 15>31, 15>19, 22>29, 3>40, 3>21, 3>14, 3>48, 3>23, 3>8, 37>39, 37>46, 37>38, 37>43, 8>14, 8>19, 8>25, 8>44, 8>43, 8>37, 12>28, 12>31, 12>13, 12>34, 9>16, 9>45, 9>25, 9>34, 9>12, 2>46, 2>6, 2>45, 2>15, 2>8], [28>35, 45<8, 35<2, 11>8, 34<42, 39>26, 28<24, 21<6, 1>42, 39>41, 29<44, 13>38, 15<3, 16<26, 23>3, 18<19, 46>8, 4<5, 33>35, 27<5, 1>30, 4>37, 23<9, 11>6, 46>31, 47>25, 28<15, 20>34, 17<12, 8>12, 13<9, 32>42, 10>34, 18>20, 8<2, 24>26, 16>2, 24>48, 39<6, 30>9, 25>50, 48<17, 32>49, 30>15, 30<16, 29>8, 4>44, 29>42, 5>45, 28<44], [ (28, 1), (24, 1), (39, 1), (40, 1), (1, 1), (32, 1), (30, 1), (21, 1), (14, 1), (18, 1), (46, 1), (48, 1), (27, 1), (47, 1), (20, 1), (31, 1), (19, 1), (11, 1), (16, 1), (10, 1), (4, 1), (26, 1), (36, 1), (49, 1), (6, 1), (29, 1), (13, 1), (33, 1), (5, 1), (41, 1), (38, 1), (35, 1), (17, 1), (45, 1), (7, 1), (25, 1), (44, 1), (43, 1), (34, 1), (23, 1), (15, 1), (22, 1), (50, 1), (3, 1), (37, 1), (8, 1), (12, 1), (9, 1), (42, 1), (2, 1)], [ (28>35, 1), (45<8, 1), (35<2, 1), (11>8, 1), (34<42, 1), (39>26, 1), (28<24, 1), (21<6, 1), (1>42, 1), (39>41, 1), (29<44, 1), (13>38, 1), (15<3, 1), (16<26, 1), (23>3, 1), (18<19, 1), (46>8, 1), (4<5, 1), (33>35, 1), (27<5, 1), (1>30, 1), (4>37, 1), (23<9, 1), (11>6, 1), (46>31, 1), (47>25, 1), (28<15, 1), (20>34, 1), (17<12, 1), (8>12, 1), (13<9, 1), (32>42, 1), (10>34, 1), (18>20, 1), (8<2, 1), (24>26, 1), (16>2, 1), (24>48, 1), (39<6, 1), (30>9, 1), (25>50, 1), (48<17, 1), (32>49, 1), (30>15, 1), (30<16, 1), (29>8, 1), (4>44, 1), (29>42, 1), (5>45, 1), (28<44, 1)])).

