0 Prolog
↳1 PrologToPrologProblemTransformerProof (⇐)
↳2 Prolog
↳3 PrologToPiTRSProof (⇐)
↳4 PiTRS
↳5 DependencyPairsProof (⇔)
↳6 PiDP
↳7 DependencyGraphProof (⇔)
↳8 AND
↳9 PiDP
↳10 UsableRulesProof (⇔)
↳11 PiDP
↳12 PiDPToQDPProof (⇐)
↳13 QDP
↳14 QDPSizeChangeProof (⇔)
↳15 YES
↳16 PiDP
↳17 UsableRulesProof (⇔)
↳18 PiDP
↳19 PiDPToQDPProof (⇐)
↳20 QDP
↳21 QDPSizeChangeProof (⇔)
↳22 YES
↳23 PiDP
↳24 UsableRulesProof (⇔)
↳25 PiDP
↳26 PiDPToQDPProof (⇐)
↳27 QDP
↳28 QDPSizeChangeProof (⇔)
↳29 YES
↳30 PiDP
↳31 UsableRulesProof (⇔)
↳32 PiDP
↳33 PiDPToQDPProof (⇐)
↳34 QDP
↳35 QDPSizeChangeProof (⇔)
↳36 YES
↳37 PiDP
↳38 UsableRulesProof (⇔)
↳39 PiDP
↳40 PiDPToQDPProof (⇐)
↳41 QDP
↳42 NonTerminationProof (⇔)
↳43 NO
↳44 PiDP
↳45 UsableRulesProof (⇔)
↳46 PiDP
↳47 PiDPToQDPProof (⇐)
↳48 QDP
↳49 QDPSizeChangeProof (⇔)
↳50 YES
↳51 PiDP
↳52 UsableRulesProof (⇔)
↳53 PiDP
↳54 PiDPToQDPProof (⇐)
↳55 QDP
↳56 Narrowing (⇐)
↳57 QDP
↳58 Instantiation (⇔)
↳59 QDP
↳60 NonTerminationProof (⇔)
↳61 NO
↳62 PiDP
↳63 UsableRulesProof (⇔)
↳64 PiDP
↳65 PiDPToQDPProof (⇐)
↳66 QDP
↳67 NonTerminationProof (⇔)
↳68 NO
↳69 PiDP
↳70 UsableRulesProof (⇔)
↳71 PiDP
↳72 PiDPToQDPProof (⇐)
↳73 QDP
↳74 NonTerminationProof (⇔)
↳75 NO
↳76 PiDP
↳77 UsableRulesProof (⇔)
↳78 PiDP
↳79 PiDPToQDPProof (⇐)
↳80 QDP
↳81 NonTerminationProof (⇔)
↳82 NO
↳83 PiDP
↳84 UsableRulesProof (⇔)
↳85 PiDP
↳86 PiDPToQDPProof (⇐)
↳87 QDP
↳88 Narrowing (⇐)
↳89 QDP
↳90 Narrowing (⇐)
↳91 QDP
↳92 Narrowing (⇐)
↳93 QDP
↳94 Narrowing (⇐)
↳95 QDP
↳96 Narrowing (⇐)
↳97 QDP
↳98 NonTerminationProof (⇔)
↳99 NO
↳100 PrologToPiTRSProof (⇐)
↳101 PiTRS
↳102 DependencyPairsProof (⇔)
↳103 PiDP
↳104 DependencyGraphProof (⇔)
↳105 AND
↳106 PiDP
↳107 UsableRulesProof (⇔)
↳108 PiDP
↳109 PiDPToQDPProof (⇐)
↳110 QDP
↳111 QDPSizeChangeProof (⇔)
↳112 YES
↳113 PiDP
↳114 UsableRulesProof (⇔)
↳115 PiDP
↳116 PiDPToQDPProof (⇐)
↳117 QDP
↳118 QDPSizeChangeProof (⇔)
↳119 YES
↳120 PiDP
↳121 UsableRulesProof (⇔)
↳122 PiDP
↳123 PiDPToQDPProof (⇐)
↳124 QDP
↳125 QDPSizeChangeProof (⇔)
↳126 YES
↳127 PiDP
↳128 UsableRulesProof (⇔)
↳129 PiDP
↳130 PiDPToQDPProof (⇐)
↳131 QDP
↳132 QDPSizeChangeProof (⇔)
↳133 YES
↳134 PiDP
↳135 UsableRulesProof (⇔)
↳136 PiDP
↳137 PiDPToQDPProof (⇐)
↳138 QDP
↳139 NonTerminationProof (⇔)
↳140 NO
↳141 PiDP
↳142 UsableRulesProof (⇔)
↳143 PiDP
↳144 PiDPToQDPProof (⇐)
↳145 QDP
↳146 QDPSizeChangeProof (⇔)
↳147 YES
↳148 PiDP
↳149 UsableRulesProof (⇔)
↳150 PiDP
↳151 PiDPToQDPProof (⇐)
↳152 QDP
↳153 Narrowing (⇐)
↳154 QDP
↳155 Instantiation (⇔)
↳156 QDP
↳157 NonTerminationProof (⇔)
↳158 NO
↳159 PiDP
↳160 UsableRulesProof (⇔)
↳161 PiDP
↳162 PiDPToQDPProof (⇐)
↳163 QDP
↳164 NonTerminationProof (⇔)
↳165 NO
↳166 PiDP
↳167 UsableRulesProof (⇔)
↳168 PiDP
↳169 PiDPToQDPProof (⇐)
↳170 QDP
↳171 NonTerminationProof (⇔)
↳172 NO
↳173 PiDP
↳174 UsableRulesProof (⇔)
↳175 PiDP
↳176 PiDPToQDPProof (⇐)
↳177 QDP
↳178 NonTerminationProof (⇔)
↳179 NO
↳180 PiDP
↳181 UsableRulesProof (⇔)
↳182 PiDP
↳183 PiDPToQDPProof (⇐)
↳184 QDP
↳185 Narrowing (⇐)
↳186 QDP
↳187 Narrowing (⇐)
↳188 QDP
↳189 Narrowing (⇐)
↳190 QDP
↳191 Narrowing (⇐)
↳192 QDP
↳193 Narrowing (⇐)
↳194 QDP
↳195 NonTerminationProof (⇔)
↳196 NO
qs1_in_ag([], []) → qs1_out_ag([], [])
qs1_in_ag(.(T24, .(T25, T26)), []) → U25_ag(T24, T25, T26, less13_in_aa(T24, T25))
less13_in_aa(0, s(T38)) → less13_out_aa(0, s(T38))
less13_in_aa(s(T45), s(T46)) → U1_aa(T45, T46, less13_in_aa(T45, T46))
U1_aa(T45, T46, less13_out_aa(T45, T46)) → less13_out_aa(s(T45), s(T46))
U25_ag(T24, T25, T26, less13_out_aa(T24, T25)) → qs1_out_ag(.(T24, .(T25, T26)), [])
qs1_in_ag(.(T29, .(T31, T30)), []) → U26_ag(T29, T31, T30, less13_in_aa(T29, T31))
U26_ag(T29, T31, T30, less13_out_aa(T29, T31)) → U27_ag(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
part23_in_gaaa(T70, .(T73, T74), .(T73, X123), X124) → U2_gaaa(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
U2_gaaa(T70, T73, T74, X123, X124, less13_out_ga(T70, T73)) → part23_out_gaaa(T70, .(T73, T74), .(T73, X123), X124)
part23_in_gaaa(T70, .(T73, T77), .(T73, X123), X124) → U3_gaaa(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
part23_in_gaaa(T95, .(T96, T98), X174, .(T96, X175)) → U5_gaaa(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
part23_in_gaaa(T104, [], [], []) → part23_out_gaaa(T104, [], [], [])
U5_gaaa(T95, T96, T98, X174, X175, part23_out_gaaa(T95, T98, X174, X175)) → part23_out_gaaa(T95, .(T96, T98), X174, .(T96, X175))
U4_gaaa(T70, T73, T77, X123, X124, part23_out_gaaa(T70, T77, X123, X124)) → part23_out_gaaa(T70, .(T73, T77), .(T73, X123), X124)
U27_ag(T29, T31, T30, part23_out_gaaa(T29, T30, X49, X50)) → qs1_out_ag(.(T29, .(T31, T30)), [])
qs1_in_ag(.(T29, .(T54, T30)), []) → U28_ag(T29, T54, T30, less13_in_aa(T29, T54))
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U29_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U29_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_ag(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
qs39_in_aaa(T122, T123, X234) → U22_aaa(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
part44_in_aaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_aaaa(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
U6_aaaa(T148, T149, T150, X282, X283, less13_out_aa(T148, T149)) → part44_out_aaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_aaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_aaaa(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_aaaa(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_aaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_aaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_aaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_aaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_aaaa(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
part44_in_aaaa(T182, [], [], []) → part44_out_aaaa(T182, [], [], [])
U9_aaaa(T175, T173, T176, X333, X334, part44_out_aaaa(T175, T176, X333, X334)) → part44_out_aaaa(T175, .(T173, T176), X333, .(T173, X334))
U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaaa(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
qs60_in_aa([], []) → qs60_out_aa([], [])
qs60_in_aa(.(T192, T193), X370) → U20_aa(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
p43_in_aaaaaaa(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaaa(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaaa(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
app71_in_aaaa([], T212, T213, .(T212, T213)) → app71_out_aaaa([], T212, T213, .(T212, T213))
app71_in_aaaa(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaaa(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
U21_aaaa(T222, T226, T227, T228, X403, app71_out_aaaa(T226, T227, T228, X403)) → app71_out_aaaa(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_out_aaaa(T198, T199, T197, X234)) → p43_out_aaaaaaa(T199, T123, T127, T184, T198, T197, X234)
U20_aa(T192, T193, X370, p43_out_aaaaaaa(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_aa(.(T192, T193), X370)
U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaaa(T129, T123, T127, T128, X232, X233, X234)
U22_aaa(T122, T123, X234, p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aaa(T122, T123, X234)
U30_ag(T29, T54, T30, qs39_out_aaa(T54, T52, X11)) → qs1_out_ag(.(T29, .(T54, T30)), [])
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U31_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_ag(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U32_ag(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_ag(T29, T54, T30, qs60_in_aa(T108, X12))
U33_ag(T29, T54, T30, qs60_out_aa(T108, X12)) → qs1_out_ag(.(T29, .(T54, T30)), [])
qs1_in_ag(.(T264, .(T266, T265)), []) → U34_ag(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
U34_ag(T264, T266, T265, part44_out_aaaa(T264, T265, X454, X455)) → qs1_out_ag(.(T264, .(T266, T265)), [])
qs1_in_ag(.(T273, .(T272, T265)), []) → U35_ag(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_ag(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_ag(T273, T272, T265, qs60_in_aa(T270, X11))
U36_ag(T273, T272, T265, qs60_out_aa(T270, X11)) → qs1_out_ag(.(T273, .(T272, T265)), [])
qs1_in_ag(.(T280, .(T278, T265)), []) → U37_ag(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_ag(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_ag(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U38_ag(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_ag(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U39_ag(T280, T278, T265, qs39_out_aaa(T278, T279, X12)) → qs1_out_ag(.(T280, .(T278, T265)), [])
qs1_in_ag(.(T305, []), []) → U40_ag(T305, qs100_in_a(X11))
qs100_in_a([]) → qs100_out_a([])
U40_ag(T305, qs100_out_a(X11)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T305, []), []) → U41_ag(T305, qs100_in_a(T309))
U41_ag(T305, qs100_out_a(T309)) → U42_ag(T305, qs100_in_a(X12))
U42_ag(T305, qs100_out_a(X12)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T347, .(T348, T349)), T329) → U43_ag(T347, T348, T349, T329, less13_in_aa(T347, T348))
U43_ag(T347, T348, T349, T329, less13_out_aa(T347, T348)) → qs1_out_ag(.(T347, .(T348, T349)), T329)
qs1_in_ag(.(T352, .(T354, T353)), T329) → U44_ag(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_ag(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_ag(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U45_ag(T352, T354, T353, T329, part23_out_gaaa(T352, T353, X581, X582)) → qs1_out_ag(.(T352, .(T354, T353)), T329)
qs1_in_ag(.(T352, .(T363, T353)), T329) → U46_ag(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U47_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_ag(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U48_ag(T352, T363, T353, T329, qs39_out_aaa(T363, T361, X543)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_ag(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U50_ag(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_ag(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U51_ag(T352, T363, T353, T329, qs60_out_aa(T371, X544)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
qs1_in_ag(.(T390, .(T363, T353)), .(T390, T391)) → U52_ag(T390, T363, T353, T391, less13_in_ga(T390, T363))
U52_ag(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_ag(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U53_ag(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_ag(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
qs39_in_aag(T122, T123, X234) → U22_aag(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaag(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaag(T129, T123, T127, T128, X232, X233, X234)
p43_in_aaaaaag(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaag(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaag(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
app71_in_aaag([], T212, T213, .(T212, T213)) → app71_out_aaag([], T212, T213, .(T212, T213))
app71_in_aaag(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaag(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
U21_aaag(T222, T226, T227, T228, X403, app71_out_aaag(T226, T227, T228, X403)) → app71_out_aaag(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_out_aaag(T198, T199, T197, X234)) → p43_out_aaaaaag(T199, T123, T127, T184, T198, T197, X234)
U22_aag(T122, T123, X234, p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aag(T122, T123, X234)
U54_ag(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_ag(T390, T363, T353, T391, qs60_in_ag(T371, T391))
qs60_in_ag([], []) → qs60_out_ag([], [])
qs60_in_ag(.(T192, T193), X370) → U20_ag(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
U20_ag(T192, T193, X370, p43_out_aaaaaag(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_ag(.(T192, T193), X370)
U55_ag(T390, T363, T353, T391, qs60_out_ag(T371, T391)) → qs1_out_ag(.(T390, .(T363, T353)), .(T390, T391))
qs1_in_ag(.(T404, .(T363, T353)), .(T402, T406)) → U56_ag(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
U56_ag(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_ag(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U57_ag(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_ag(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U58_ag(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_ag(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U59_ag(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_ag(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
app131_in_agag([], T421, T422, .(T421, T422)) → app131_out_agag([], T421, T422, .(T421, T422))
app131_in_agag(.(T433, T438), T435, T439, .(T433, T437)) → U23_agag(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
U23_agag(T433, T438, T435, T439, T437, app131_out_agag(T438, T435, T439, T437)) → app131_out_agag(.(T433, T438), T435, T439, .(T433, T437))
U60_ag(T404, T363, T353, T402, T406, app131_out_agag(T407, T404, T408, T406)) → qs1_out_ag(.(T404, .(T363, T353)), .(T402, T406))
qs1_in_ag(.(T459, .(T461, T460)), T329) → U61_ag(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
U61_ag(T459, T461, T460, T329, part44_out_aaaa(T459, T460, X705, X706)) → qs1_out_ag(.(T459, .(T461, T460)), T329)
qs1_in_ag(.(T468, .(T467, T460)), T329) → U62_ag(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_ag(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_ag(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U63_ag(T468, T467, T460, T329, qs60_out_aa(T465, X543)) → qs1_out_ag(.(T468, .(T467, T460)), T329)
qs1_in_ag(.(T476, .(T474, T460)), T329) → U64_ag(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_ag(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_ag(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U65_ag(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_ag(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U66_ag(T476, T474, T460, T329, qs39_out_aaa(T474, T475, X544)) → qs1_out_ag(.(T476, .(T474, T460)), T329)
qs1_in_ag(.(T498, .(T474, T460)), .(T498, T499)) → U67_ag(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
part44_in_gaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_gaaa(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
U6_gaaa(T148, T149, T150, X282, X283, less13_out_ga(T148, T149)) → part44_out_gaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_gaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_gaaa(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_gaaa(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_gaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_gaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_gaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_gaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_gaaa(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
part44_in_gaaa(T182, [], [], []) → part44_out_gaaa(T182, [], [], [])
U9_gaaa(T175, T173, T176, X333, X334, part44_out_gaaa(T175, T176, X333, X334)) → part44_out_gaaa(T175, .(T173, T176), X333, .(T173, X334))
U67_ag(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_ag(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U68_ag(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_ag(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U69_ag(T498, T474, T460, T499, qs39_out_aag(T474, T475, T499)) → qs1_out_ag(.(T498, .(T474, T460)), .(T498, T499))
qs1_in_ag(.(T516, .(T474, T460)), .(T510, T514)) → U70_ag(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
U70_ag(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_ag(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U71_ag(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_ag(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U72_ag(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_ag(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
app157_in_aaag([], T530, T531, .(T530, T531)) → app157_out_aaag([], T530, T531, .(T530, T531))
app157_in_aaag(.(T542, T547), T548, T549, .(T542, T546)) → U24_aaag(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
U24_aaag(T542, T547, T548, T549, T546, app157_out_aaag(T547, T548, T549, T546)) → app157_out_aaag(.(T542, T547), T548, T549, .(T542, T546))
U73_ag(T516, T474, T460, T510, T514, app157_out_aaag(T515, T516, T517, T514)) → qs1_out_ag(.(T516, .(T474, T460)), .(T510, T514))
qs1_in_ag(.(T557, []), T329) → U74_ag(T557, T329, qs100_in_a(X543))
U74_ag(T557, T329, qs100_out_a(X543)) → qs1_out_ag(.(T557, []), T329)
qs1_in_ag(.(T557, []), T329) → U75_ag(T557, T329, qs100_in_a(T560))
U75_ag(T557, T329, qs100_out_a(T560)) → U76_ag(T557, T329, qs100_in_a(X544))
U76_ag(T557, T329, qs100_out_a(X544)) → qs1_out_ag(.(T557, []), T329)
U75_ag(T557, T329, qs100_out_a(T560)) → U77_ag(T557, T329, T560, qs100_in_a(T563))
U77_ag(T557, T329, T560, qs100_out_a(T563)) → U78_ag(T557, T329, app157_in_gagg(T560, T557, T563, T329))
app157_in_gagg([], T530, T531, .(T530, T531)) → app157_out_gagg([], T530, T531, .(T530, T531))
app157_in_gagg(.(T542, T547), T548, T549, .(T542, T546)) → U24_gagg(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
U24_gagg(T542, T547, T548, T549, T546, app157_out_gagg(T547, T548, T549, T546)) → app157_out_gagg(.(T542, T547), T548, T549, .(T542, T546))
U78_ag(T557, T329, app157_out_gagg(T560, T557, T563, T329)) → qs1_out_ag(.(T557, []), T329)
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
qs1_in_ag([], []) → qs1_out_ag([], [])
qs1_in_ag(.(T24, .(T25, T26)), []) → U25_ag(T24, T25, T26, less13_in_aa(T24, T25))
less13_in_aa(0, s(T38)) → less13_out_aa(0, s(T38))
less13_in_aa(s(T45), s(T46)) → U1_aa(T45, T46, less13_in_aa(T45, T46))
U1_aa(T45, T46, less13_out_aa(T45, T46)) → less13_out_aa(s(T45), s(T46))
U25_ag(T24, T25, T26, less13_out_aa(T24, T25)) → qs1_out_ag(.(T24, .(T25, T26)), [])
qs1_in_ag(.(T29, .(T31, T30)), []) → U26_ag(T29, T31, T30, less13_in_aa(T29, T31))
U26_ag(T29, T31, T30, less13_out_aa(T29, T31)) → U27_ag(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
part23_in_gaaa(T70, .(T73, T74), .(T73, X123), X124) → U2_gaaa(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
U2_gaaa(T70, T73, T74, X123, X124, less13_out_ga(T70, T73)) → part23_out_gaaa(T70, .(T73, T74), .(T73, X123), X124)
part23_in_gaaa(T70, .(T73, T77), .(T73, X123), X124) → U3_gaaa(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
part23_in_gaaa(T95, .(T96, T98), X174, .(T96, X175)) → U5_gaaa(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
part23_in_gaaa(T104, [], [], []) → part23_out_gaaa(T104, [], [], [])
U5_gaaa(T95, T96, T98, X174, X175, part23_out_gaaa(T95, T98, X174, X175)) → part23_out_gaaa(T95, .(T96, T98), X174, .(T96, X175))
U4_gaaa(T70, T73, T77, X123, X124, part23_out_gaaa(T70, T77, X123, X124)) → part23_out_gaaa(T70, .(T73, T77), .(T73, X123), X124)
U27_ag(T29, T31, T30, part23_out_gaaa(T29, T30, X49, X50)) → qs1_out_ag(.(T29, .(T31, T30)), [])
qs1_in_ag(.(T29, .(T54, T30)), []) → U28_ag(T29, T54, T30, less13_in_aa(T29, T54))
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U29_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U29_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_ag(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
qs39_in_aaa(T122, T123, X234) → U22_aaa(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
part44_in_aaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_aaaa(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
U6_aaaa(T148, T149, T150, X282, X283, less13_out_aa(T148, T149)) → part44_out_aaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_aaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_aaaa(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_aaaa(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_aaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_aaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_aaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_aaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_aaaa(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
part44_in_aaaa(T182, [], [], []) → part44_out_aaaa(T182, [], [], [])
U9_aaaa(T175, T173, T176, X333, X334, part44_out_aaaa(T175, T176, X333, X334)) → part44_out_aaaa(T175, .(T173, T176), X333, .(T173, X334))
U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaaa(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
qs60_in_aa([], []) → qs60_out_aa([], [])
qs60_in_aa(.(T192, T193), X370) → U20_aa(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
p43_in_aaaaaaa(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaaa(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaaa(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
app71_in_aaaa([], T212, T213, .(T212, T213)) → app71_out_aaaa([], T212, T213, .(T212, T213))
app71_in_aaaa(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaaa(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
U21_aaaa(T222, T226, T227, T228, X403, app71_out_aaaa(T226, T227, T228, X403)) → app71_out_aaaa(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_out_aaaa(T198, T199, T197, X234)) → p43_out_aaaaaaa(T199, T123, T127, T184, T198, T197, X234)
U20_aa(T192, T193, X370, p43_out_aaaaaaa(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_aa(.(T192, T193), X370)
U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaaa(T129, T123, T127, T128, X232, X233, X234)
U22_aaa(T122, T123, X234, p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aaa(T122, T123, X234)
U30_ag(T29, T54, T30, qs39_out_aaa(T54, T52, X11)) → qs1_out_ag(.(T29, .(T54, T30)), [])
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U31_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_ag(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U32_ag(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_ag(T29, T54, T30, qs60_in_aa(T108, X12))
U33_ag(T29, T54, T30, qs60_out_aa(T108, X12)) → qs1_out_ag(.(T29, .(T54, T30)), [])
qs1_in_ag(.(T264, .(T266, T265)), []) → U34_ag(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
U34_ag(T264, T266, T265, part44_out_aaaa(T264, T265, X454, X455)) → qs1_out_ag(.(T264, .(T266, T265)), [])
qs1_in_ag(.(T273, .(T272, T265)), []) → U35_ag(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_ag(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_ag(T273, T272, T265, qs60_in_aa(T270, X11))
U36_ag(T273, T272, T265, qs60_out_aa(T270, X11)) → qs1_out_ag(.(T273, .(T272, T265)), [])
qs1_in_ag(.(T280, .(T278, T265)), []) → U37_ag(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_ag(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_ag(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U38_ag(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_ag(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U39_ag(T280, T278, T265, qs39_out_aaa(T278, T279, X12)) → qs1_out_ag(.(T280, .(T278, T265)), [])
qs1_in_ag(.(T305, []), []) → U40_ag(T305, qs100_in_a(X11))
qs100_in_a([]) → qs100_out_a([])
U40_ag(T305, qs100_out_a(X11)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T305, []), []) → U41_ag(T305, qs100_in_a(T309))
U41_ag(T305, qs100_out_a(T309)) → U42_ag(T305, qs100_in_a(X12))
U42_ag(T305, qs100_out_a(X12)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T347, .(T348, T349)), T329) → U43_ag(T347, T348, T349, T329, less13_in_aa(T347, T348))
U43_ag(T347, T348, T349, T329, less13_out_aa(T347, T348)) → qs1_out_ag(.(T347, .(T348, T349)), T329)
qs1_in_ag(.(T352, .(T354, T353)), T329) → U44_ag(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_ag(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_ag(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U45_ag(T352, T354, T353, T329, part23_out_gaaa(T352, T353, X581, X582)) → qs1_out_ag(.(T352, .(T354, T353)), T329)
qs1_in_ag(.(T352, .(T363, T353)), T329) → U46_ag(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U47_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_ag(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U48_ag(T352, T363, T353, T329, qs39_out_aaa(T363, T361, X543)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_ag(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U50_ag(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_ag(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U51_ag(T352, T363, T353, T329, qs60_out_aa(T371, X544)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
qs1_in_ag(.(T390, .(T363, T353)), .(T390, T391)) → U52_ag(T390, T363, T353, T391, less13_in_ga(T390, T363))
U52_ag(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_ag(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U53_ag(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_ag(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
qs39_in_aag(T122, T123, X234) → U22_aag(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaag(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaag(T129, T123, T127, T128, X232, X233, X234)
p43_in_aaaaaag(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaag(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaag(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
app71_in_aaag([], T212, T213, .(T212, T213)) → app71_out_aaag([], T212, T213, .(T212, T213))
app71_in_aaag(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaag(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
U21_aaag(T222, T226, T227, T228, X403, app71_out_aaag(T226, T227, T228, X403)) → app71_out_aaag(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_out_aaag(T198, T199, T197, X234)) → p43_out_aaaaaag(T199, T123, T127, T184, T198, T197, X234)
U22_aag(T122, T123, X234, p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aag(T122, T123, X234)
U54_ag(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_ag(T390, T363, T353, T391, qs60_in_ag(T371, T391))
qs60_in_ag([], []) → qs60_out_ag([], [])
qs60_in_ag(.(T192, T193), X370) → U20_ag(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
U20_ag(T192, T193, X370, p43_out_aaaaaag(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_ag(.(T192, T193), X370)
U55_ag(T390, T363, T353, T391, qs60_out_ag(T371, T391)) → qs1_out_ag(.(T390, .(T363, T353)), .(T390, T391))
qs1_in_ag(.(T404, .(T363, T353)), .(T402, T406)) → U56_ag(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
U56_ag(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_ag(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U57_ag(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_ag(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U58_ag(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_ag(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U59_ag(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_ag(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
app131_in_agag([], T421, T422, .(T421, T422)) → app131_out_agag([], T421, T422, .(T421, T422))
app131_in_agag(.(T433, T438), T435, T439, .(T433, T437)) → U23_agag(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
U23_agag(T433, T438, T435, T439, T437, app131_out_agag(T438, T435, T439, T437)) → app131_out_agag(.(T433, T438), T435, T439, .(T433, T437))
U60_ag(T404, T363, T353, T402, T406, app131_out_agag(T407, T404, T408, T406)) → qs1_out_ag(.(T404, .(T363, T353)), .(T402, T406))
qs1_in_ag(.(T459, .(T461, T460)), T329) → U61_ag(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
U61_ag(T459, T461, T460, T329, part44_out_aaaa(T459, T460, X705, X706)) → qs1_out_ag(.(T459, .(T461, T460)), T329)
qs1_in_ag(.(T468, .(T467, T460)), T329) → U62_ag(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_ag(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_ag(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U63_ag(T468, T467, T460, T329, qs60_out_aa(T465, X543)) → qs1_out_ag(.(T468, .(T467, T460)), T329)
qs1_in_ag(.(T476, .(T474, T460)), T329) → U64_ag(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_ag(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_ag(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U65_ag(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_ag(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U66_ag(T476, T474, T460, T329, qs39_out_aaa(T474, T475, X544)) → qs1_out_ag(.(T476, .(T474, T460)), T329)
qs1_in_ag(.(T498, .(T474, T460)), .(T498, T499)) → U67_ag(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
part44_in_gaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_gaaa(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
U6_gaaa(T148, T149, T150, X282, X283, less13_out_ga(T148, T149)) → part44_out_gaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_gaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_gaaa(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_gaaa(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_gaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_gaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_gaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_gaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_gaaa(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
part44_in_gaaa(T182, [], [], []) → part44_out_gaaa(T182, [], [], [])
U9_gaaa(T175, T173, T176, X333, X334, part44_out_gaaa(T175, T176, X333, X334)) → part44_out_gaaa(T175, .(T173, T176), X333, .(T173, X334))
U67_ag(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_ag(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U68_ag(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_ag(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U69_ag(T498, T474, T460, T499, qs39_out_aag(T474, T475, T499)) → qs1_out_ag(.(T498, .(T474, T460)), .(T498, T499))
qs1_in_ag(.(T516, .(T474, T460)), .(T510, T514)) → U70_ag(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
U70_ag(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_ag(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U71_ag(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_ag(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U72_ag(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_ag(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
app157_in_aaag([], T530, T531, .(T530, T531)) → app157_out_aaag([], T530, T531, .(T530, T531))
app157_in_aaag(.(T542, T547), T548, T549, .(T542, T546)) → U24_aaag(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
U24_aaag(T542, T547, T548, T549, T546, app157_out_aaag(T547, T548, T549, T546)) → app157_out_aaag(.(T542, T547), T548, T549, .(T542, T546))
U73_ag(T516, T474, T460, T510, T514, app157_out_aaag(T515, T516, T517, T514)) → qs1_out_ag(.(T516, .(T474, T460)), .(T510, T514))
qs1_in_ag(.(T557, []), T329) → U74_ag(T557, T329, qs100_in_a(X543))
U74_ag(T557, T329, qs100_out_a(X543)) → qs1_out_ag(.(T557, []), T329)
qs1_in_ag(.(T557, []), T329) → U75_ag(T557, T329, qs100_in_a(T560))
U75_ag(T557, T329, qs100_out_a(T560)) → U76_ag(T557, T329, qs100_in_a(X544))
U76_ag(T557, T329, qs100_out_a(X544)) → qs1_out_ag(.(T557, []), T329)
U75_ag(T557, T329, qs100_out_a(T560)) → U77_ag(T557, T329, T560, qs100_in_a(T563))
U77_ag(T557, T329, T560, qs100_out_a(T563)) → U78_ag(T557, T329, app157_in_gagg(T560, T557, T563, T329))
app157_in_gagg([], T530, T531, .(T530, T531)) → app157_out_gagg([], T530, T531, .(T530, T531))
app157_in_gagg(.(T542, T547), T548, T549, .(T542, T546)) → U24_gagg(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
U24_gagg(T542, T547, T548, T549, T546, app157_out_gagg(T547, T548, T549, T546)) → app157_out_gagg(.(T542, T547), T548, T549, .(T542, T546))
U78_ag(T557, T329, app157_out_gagg(T560, T557, T563, T329)) → qs1_out_ag(.(T557, []), T329)
QS1_IN_AG(.(T24, .(T25, T26)), []) → U25_AG(T24, T25, T26, less13_in_aa(T24, T25))
QS1_IN_AG(.(T24, .(T25, T26)), []) → LESS13_IN_AA(T24, T25)
LESS13_IN_AA(s(T45), s(T46)) → U1_AA(T45, T46, less13_in_aa(T45, T46))
LESS13_IN_AA(s(T45), s(T46)) → LESS13_IN_AA(T45, T46)
QS1_IN_AG(.(T29, .(T31, T30)), []) → U26_AG(T29, T31, T30, less13_in_aa(T29, T31))
U26_AG(T29, T31, T30, less13_out_aa(T29, T31)) → U27_AG(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
U26_AG(T29, T31, T30, less13_out_aa(T29, T31)) → PART23_IN_GAAA(T29, T30, X49, X50)
PART23_IN_GAAA(T70, .(T73, T74), .(T73, X123), X124) → U2_GAAA(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
PART23_IN_GAAA(T70, .(T73, T74), .(T73, X123), X124) → LESS13_IN_GA(T70, T73)
LESS13_IN_GA(s(T45), s(T46)) → U1_GA(T45, T46, less13_in_ga(T45, T46))
LESS13_IN_GA(s(T45), s(T46)) → LESS13_IN_GA(T45, T46)
PART23_IN_GAAA(T70, .(T73, T77), .(T73, X123), X124) → U3_GAAA(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_GAAA(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_GAAA(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
U3_GAAA(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → PART23_IN_GAAA(T70, T77, X123, X124)
PART23_IN_GAAA(T95, .(T96, T98), X174, .(T96, X175)) → U5_GAAA(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
PART23_IN_GAAA(T95, .(T96, T98), X174, .(T96, X175)) → PART23_IN_GAAA(T95, T98, X174, X175)
QS1_IN_AG(.(T29, .(T54, T30)), []) → U28_AG(T29, T54, T30, less13_in_aa(T29, T54))
U28_AG(T29, T54, T30, less13_out_aa(T29, T54)) → U29_AG(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U28_AG(T29, T54, T30, less13_out_aa(T29, T54)) → PART23_IN_GAAA(T29, T30, T52, T53)
U29_AG(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_AG(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
U29_AG(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → QS39_IN_AAA(T54, T52, X11)
QS39_IN_AAA(T122, T123, X234) → U22_AAA(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
QS39_IN_AAA(T122, T123, X234) → P43_IN_AAAAAAA(T122, T123, X230, X231, X232, X233, X234)
P43_IN_AAAAAAA(T122, T123, X230, X231, X232, X233, X234) → U10_AAAAAAA(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
P43_IN_AAAAAAA(T122, T123, X230, X231, X232, X233, X234) → PART44_IN_AAAA(T122, T123, X230, X231)
PART44_IN_AAAA(T148, .(T149, T150), .(T149, X282), X283) → U6_AAAA(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
PART44_IN_AAAA(T148, .(T149, T150), .(T149, X282), X283) → LESS13_IN_AA(T148, T149)
PART44_IN_AAAA(T153, .(T149, T154), .(T149, X282), X283) → U7_AAAA(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_AAAA(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_AAAA(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U7_AAAA(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → PART23_IN_GAAA(T153, T154, X282, X283)
PART44_IN_AAAA(T175, .(T173, T176), X333, .(T173, X334)) → U9_AAAA(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
PART44_IN_AAAA(T175, .(T173, T176), X333, .(T173, X334)) → PART44_IN_AAAA(T175, T176, X333, X334)
P43_IN_AAAAAAA(T129, T123, T127, T128, X232, X233, X234) → U11_AAAAAAA(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_AAAAAAA(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_AAAAAAA(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U11_AAAAAAA(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → QS60_IN_AA(T127, X232)
QS60_IN_AA(.(T192, T193), X370) → U20_AA(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
QS60_IN_AA(.(T192, T193), X370) → P43_IN_AAAAAAA(T192, T193, X366, X367, X368, X369, X370)
P43_IN_AAAAAAA(T185, T123, T127, T184, T183, X233, X234) → U13_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U13_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → QS60_IN_AA(T127, T183)
U14_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U14_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → QS60_IN_AA(T184, X233)
P43_IN_AAAAAAA(T199, T123, T127, T184, T198, T197, X234) → U16_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U16_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → QS60_IN_AA(T127, T198)
U17_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U17_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → QS60_IN_AA(T184, T197)
U18_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
U18_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → APP71_IN_AAAA(T198, T199, T197, X234)
APP71_IN_AAAA(.(T222, T226), T227, T228, .(T222, X403)) → U21_AAAA(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
APP71_IN_AAAA(.(T222, T226), T227, T228, .(T222, X403)) → APP71_IN_AAAA(T226, T227, T228, X403)
U28_AG(T29, T54, T30, less13_out_aa(T29, T54)) → U31_AG(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_AG(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_AG(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U31_AG(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → QS39_IN_AAA(T54, T52, T107)
U32_AG(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_AG(T29, T54, T30, qs60_in_aa(T108, X12))
U32_AG(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → QS60_IN_AA(T108, X12)
QS1_IN_AG(.(T264, .(T266, T265)), []) → U34_AG(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
QS1_IN_AG(.(T264, .(T266, T265)), []) → PART44_IN_AAAA(T264, T265, X454, X455)
QS1_IN_AG(.(T273, .(T272, T265)), []) → U35_AG(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_AG(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_AG(T273, T272, T265, qs60_in_aa(T270, X11))
U35_AG(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → QS60_IN_AA(T270, X11)
QS1_IN_AG(.(T280, .(T278, T265)), []) → U37_AG(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_AG(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_AG(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U37_AG(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → QS60_IN_AA(T270, T277)
U38_AG(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_AG(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U38_AG(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → QS39_IN_AAA(T278, T279, X12)
QS1_IN_AG(.(T305, []), []) → U40_AG(T305, qs100_in_a(X11))
QS1_IN_AG(.(T305, []), []) → QS100_IN_A(X11)
QS1_IN_AG(.(T305, []), []) → U41_AG(T305, qs100_in_a(T309))
U41_AG(T305, qs100_out_a(T309)) → U42_AG(T305, qs100_in_a(X12))
U41_AG(T305, qs100_out_a(T309)) → QS100_IN_A(X12)
QS1_IN_AG(.(T347, .(T348, T349)), T329) → U43_AG(T347, T348, T349, T329, less13_in_aa(T347, T348))
QS1_IN_AG(.(T347, .(T348, T349)), T329) → LESS13_IN_AA(T347, T348)
QS1_IN_AG(.(T352, .(T354, T353)), T329) → U44_AG(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_AG(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_AG(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U44_AG(T352, T354, T353, T329, less13_out_aa(T352, T354)) → PART23_IN_GAAA(T352, T353, X581, X582)
QS1_IN_AG(.(T352, .(T363, T353)), T329) → U46_AG(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_AG(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_AG(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U46_AG(T352, T363, T353, T329, less13_out_aa(T352, T363)) → PART23_IN_GAAA(T352, T353, T361, T362)
U47_AG(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_AG(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U47_AG(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → QS39_IN_AAA(T363, T361, X543)
U46_AG(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_AG(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_AG(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_AG(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U49_AG(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → QS39_IN_AAA(T363, T361, T370)
U50_AG(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_AG(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U50_AG(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → QS60_IN_AA(T371, X544)
QS1_IN_AG(.(T390, .(T363, T353)), .(T390, T391)) → U52_AG(T390, T363, T353, T391, less13_in_ga(T390, T363))
QS1_IN_AG(.(T390, .(T363, T353)), .(T390, T391)) → LESS13_IN_GA(T390, T363)
U52_AG(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_AG(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U52_AG(T390, T363, T353, T391, less13_out_ga(T390, T363)) → PART23_IN_GAAA(T390, T353, T361, T371)
U53_AG(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_AG(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
U53_AG(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → QS39_IN_AAG(T363, T361, [])
QS39_IN_AAG(T122, T123, X234) → U22_AAG(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
QS39_IN_AAG(T122, T123, X234) → P43_IN_AAAAAAG(T122, T123, X230, X231, X232, X233, X234)
P43_IN_AAAAAAG(T122, T123, X230, X231, X232, X233, X234) → U10_AAAAAAG(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
P43_IN_AAAAAAG(T122, T123, X230, X231, X232, X233, X234) → PART44_IN_AAAA(T122, T123, X230, X231)
P43_IN_AAAAAAG(T129, T123, T127, T128, X232, X233, X234) → U11_AAAAAAG(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_AAAAAAG(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_AAAAAAG(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U11_AAAAAAG(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → QS60_IN_AA(T127, X232)
P43_IN_AAAAAAG(T185, T123, T127, T184, T183, X233, X234) → U13_AAAAAAG(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_AAAAAAG(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_AAAAAAG(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U13_AAAAAAG(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → QS60_IN_AA(T127, T183)
U14_AAAAAAG(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_AAAAAAG(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U14_AAAAAAG(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → QS60_IN_AA(T184, X233)
P43_IN_AAAAAAG(T199, T123, T127, T184, T198, T197, X234) → U16_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U16_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → QS60_IN_AA(T127, T198)
U17_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U17_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → QS60_IN_AA(T184, T197)
U18_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
U18_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → APP71_IN_AAAG(T198, T199, T197, X234)
APP71_IN_AAAG(.(T222, T226), T227, T228, .(T222, X403)) → U21_AAAG(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
APP71_IN_AAAG(.(T222, T226), T227, T228, .(T222, X403)) → APP71_IN_AAAG(T226, T227, T228, X403)
U54_AG(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_AG(T390, T363, T353, T391, qs60_in_ag(T371, T391))
U54_AG(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → QS60_IN_AG(T371, T391)
QS60_IN_AG(.(T192, T193), X370) → U20_AG(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
QS60_IN_AG(.(T192, T193), X370) → P43_IN_AAAAAAG(T192, T193, X366, X367, X368, X369, X370)
QS1_IN_AG(.(T404, .(T363, T353)), .(T402, T406)) → U56_AG(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
QS1_IN_AG(.(T404, .(T363, T353)), .(T402, T406)) → LESS13_IN_AA(T404, T363)
U56_AG(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_AG(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U56_AG(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → PART23_IN_GAAA(T404, T353, T361, T371)
U57_AG(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_AG(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U57_AG(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → QS39_IN_AAA(T363, T361, .(T402, T407))
U58_AG(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_AG(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U58_AG(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → QS60_IN_AA(T371, T408)
U59_AG(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_AG(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
U59_AG(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → APP131_IN_AGAG(T407, T404, T408, T406)
APP131_IN_AGAG(.(T433, T438), T435, T439, .(T433, T437)) → U23_AGAG(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
APP131_IN_AGAG(.(T433, T438), T435, T439, .(T433, T437)) → APP131_IN_AGAG(T438, T435, T439, T437)
QS1_IN_AG(.(T459, .(T461, T460)), T329) → U61_AG(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
QS1_IN_AG(.(T459, .(T461, T460)), T329) → PART44_IN_AAAA(T459, T460, X705, X706)
QS1_IN_AG(.(T468, .(T467, T460)), T329) → U62_AG(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_AG(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_AG(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U62_AG(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → QS60_IN_AA(T465, X543)
QS1_IN_AG(.(T476, .(T474, T460)), T329) → U64_AG(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_AG(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_AG(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U64_AG(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → QS60_IN_AA(T465, T473)
U65_AG(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_AG(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U65_AG(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → QS39_IN_AAA(T474, T475, X544)
QS1_IN_AG(.(T498, .(T474, T460)), .(T498, T499)) → U67_AG(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
QS1_IN_AG(.(T498, .(T474, T460)), .(T498, T499)) → PART44_IN_GAAA(T498, T460, T465, T475)
PART44_IN_GAAA(T148, .(T149, T150), .(T149, X282), X283) → U6_GAAA(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
PART44_IN_GAAA(T148, .(T149, T150), .(T149, X282), X283) → LESS13_IN_GA(T148, T149)
PART44_IN_GAAA(T153, .(T149, T154), .(T149, X282), X283) → U7_GAAA(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_GAAA(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_GAAA(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U7_GAAA(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → PART23_IN_GAAA(T153, T154, X282, X283)
PART44_IN_GAAA(T175, .(T173, T176), X333, .(T173, X334)) → U9_GAAA(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
PART44_IN_GAAA(T175, .(T173, T176), X333, .(T173, X334)) → PART44_IN_GAAA(T175, T176, X333, X334)
U67_AG(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_AG(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U67_AG(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → QS60_IN_AG(T465, [])
U68_AG(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_AG(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U68_AG(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → QS39_IN_AAG(T474, T475, T499)
QS1_IN_AG(.(T516, .(T474, T460)), .(T510, T514)) → U70_AG(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
QS1_IN_AG(.(T516, .(T474, T460)), .(T510, T514)) → PART44_IN_AAAA(T516, T460, T465, T475)
U70_AG(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_AG(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U70_AG(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → QS60_IN_AA(T465, .(T510, T515))
U71_AG(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_AG(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U71_AG(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → QS39_IN_AAA(T474, T475, T517)
U72_AG(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_AG(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
U72_AG(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → APP157_IN_AAAG(T515, T516, T517, T514)
APP157_IN_AAAG(.(T542, T547), T548, T549, .(T542, T546)) → U24_AAAG(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
APP157_IN_AAAG(.(T542, T547), T548, T549, .(T542, T546)) → APP157_IN_AAAG(T547, T548, T549, T546)
QS1_IN_AG(.(T557, []), T329) → U74_AG(T557, T329, qs100_in_a(X543))
QS1_IN_AG(.(T557, []), T329) → QS100_IN_A(X543)
QS1_IN_AG(.(T557, []), T329) → U75_AG(T557, T329, qs100_in_a(T560))
U75_AG(T557, T329, qs100_out_a(T560)) → U76_AG(T557, T329, qs100_in_a(X544))
U75_AG(T557, T329, qs100_out_a(T560)) → QS100_IN_A(X544)
U75_AG(T557, T329, qs100_out_a(T560)) → U77_AG(T557, T329, T560, qs100_in_a(T563))
U77_AG(T557, T329, T560, qs100_out_a(T563)) → U78_AG(T557, T329, app157_in_gagg(T560, T557, T563, T329))
U77_AG(T557, T329, T560, qs100_out_a(T563)) → APP157_IN_GAGG(T560, T557, T563, T329)
APP157_IN_GAGG(.(T542, T547), T548, T549, .(T542, T546)) → U24_GAGG(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
APP157_IN_GAGG(.(T542, T547), T548, T549, .(T542, T546)) → APP157_IN_GAGG(T547, T548, T549, T546)
qs1_in_ag([], []) → qs1_out_ag([], [])
qs1_in_ag(.(T24, .(T25, T26)), []) → U25_ag(T24, T25, T26, less13_in_aa(T24, T25))
less13_in_aa(0, s(T38)) → less13_out_aa(0, s(T38))
less13_in_aa(s(T45), s(T46)) → U1_aa(T45, T46, less13_in_aa(T45, T46))
U1_aa(T45, T46, less13_out_aa(T45, T46)) → less13_out_aa(s(T45), s(T46))
U25_ag(T24, T25, T26, less13_out_aa(T24, T25)) → qs1_out_ag(.(T24, .(T25, T26)), [])
qs1_in_ag(.(T29, .(T31, T30)), []) → U26_ag(T29, T31, T30, less13_in_aa(T29, T31))
U26_ag(T29, T31, T30, less13_out_aa(T29, T31)) → U27_ag(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
part23_in_gaaa(T70, .(T73, T74), .(T73, X123), X124) → U2_gaaa(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
U2_gaaa(T70, T73, T74, X123, X124, less13_out_ga(T70, T73)) → part23_out_gaaa(T70, .(T73, T74), .(T73, X123), X124)
part23_in_gaaa(T70, .(T73, T77), .(T73, X123), X124) → U3_gaaa(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
part23_in_gaaa(T95, .(T96, T98), X174, .(T96, X175)) → U5_gaaa(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
part23_in_gaaa(T104, [], [], []) → part23_out_gaaa(T104, [], [], [])
U5_gaaa(T95, T96, T98, X174, X175, part23_out_gaaa(T95, T98, X174, X175)) → part23_out_gaaa(T95, .(T96, T98), X174, .(T96, X175))
U4_gaaa(T70, T73, T77, X123, X124, part23_out_gaaa(T70, T77, X123, X124)) → part23_out_gaaa(T70, .(T73, T77), .(T73, X123), X124)
U27_ag(T29, T31, T30, part23_out_gaaa(T29, T30, X49, X50)) → qs1_out_ag(.(T29, .(T31, T30)), [])
qs1_in_ag(.(T29, .(T54, T30)), []) → U28_ag(T29, T54, T30, less13_in_aa(T29, T54))
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U29_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U29_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_ag(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
qs39_in_aaa(T122, T123, X234) → U22_aaa(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
part44_in_aaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_aaaa(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
U6_aaaa(T148, T149, T150, X282, X283, less13_out_aa(T148, T149)) → part44_out_aaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_aaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_aaaa(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_aaaa(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_aaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_aaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_aaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_aaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_aaaa(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
part44_in_aaaa(T182, [], [], []) → part44_out_aaaa(T182, [], [], [])
U9_aaaa(T175, T173, T176, X333, X334, part44_out_aaaa(T175, T176, X333, X334)) → part44_out_aaaa(T175, .(T173, T176), X333, .(T173, X334))
U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaaa(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
qs60_in_aa([], []) → qs60_out_aa([], [])
qs60_in_aa(.(T192, T193), X370) → U20_aa(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
p43_in_aaaaaaa(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaaa(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaaa(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
app71_in_aaaa([], T212, T213, .(T212, T213)) → app71_out_aaaa([], T212, T213, .(T212, T213))
app71_in_aaaa(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaaa(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
U21_aaaa(T222, T226, T227, T228, X403, app71_out_aaaa(T226, T227, T228, X403)) → app71_out_aaaa(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_out_aaaa(T198, T199, T197, X234)) → p43_out_aaaaaaa(T199, T123, T127, T184, T198, T197, X234)
U20_aa(T192, T193, X370, p43_out_aaaaaaa(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_aa(.(T192, T193), X370)
U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaaa(T129, T123, T127, T128, X232, X233, X234)
U22_aaa(T122, T123, X234, p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aaa(T122, T123, X234)
U30_ag(T29, T54, T30, qs39_out_aaa(T54, T52, X11)) → qs1_out_ag(.(T29, .(T54, T30)), [])
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U31_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_ag(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U32_ag(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_ag(T29, T54, T30, qs60_in_aa(T108, X12))
U33_ag(T29, T54, T30, qs60_out_aa(T108, X12)) → qs1_out_ag(.(T29, .(T54, T30)), [])
qs1_in_ag(.(T264, .(T266, T265)), []) → U34_ag(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
U34_ag(T264, T266, T265, part44_out_aaaa(T264, T265, X454, X455)) → qs1_out_ag(.(T264, .(T266, T265)), [])
qs1_in_ag(.(T273, .(T272, T265)), []) → U35_ag(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_ag(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_ag(T273, T272, T265, qs60_in_aa(T270, X11))
U36_ag(T273, T272, T265, qs60_out_aa(T270, X11)) → qs1_out_ag(.(T273, .(T272, T265)), [])
qs1_in_ag(.(T280, .(T278, T265)), []) → U37_ag(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_ag(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_ag(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U38_ag(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_ag(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U39_ag(T280, T278, T265, qs39_out_aaa(T278, T279, X12)) → qs1_out_ag(.(T280, .(T278, T265)), [])
qs1_in_ag(.(T305, []), []) → U40_ag(T305, qs100_in_a(X11))
qs100_in_a([]) → qs100_out_a([])
U40_ag(T305, qs100_out_a(X11)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T305, []), []) → U41_ag(T305, qs100_in_a(T309))
U41_ag(T305, qs100_out_a(T309)) → U42_ag(T305, qs100_in_a(X12))
U42_ag(T305, qs100_out_a(X12)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T347, .(T348, T349)), T329) → U43_ag(T347, T348, T349, T329, less13_in_aa(T347, T348))
U43_ag(T347, T348, T349, T329, less13_out_aa(T347, T348)) → qs1_out_ag(.(T347, .(T348, T349)), T329)
qs1_in_ag(.(T352, .(T354, T353)), T329) → U44_ag(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_ag(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_ag(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U45_ag(T352, T354, T353, T329, part23_out_gaaa(T352, T353, X581, X582)) → qs1_out_ag(.(T352, .(T354, T353)), T329)
qs1_in_ag(.(T352, .(T363, T353)), T329) → U46_ag(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U47_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_ag(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U48_ag(T352, T363, T353, T329, qs39_out_aaa(T363, T361, X543)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_ag(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U50_ag(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_ag(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U51_ag(T352, T363, T353, T329, qs60_out_aa(T371, X544)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
qs1_in_ag(.(T390, .(T363, T353)), .(T390, T391)) → U52_ag(T390, T363, T353, T391, less13_in_ga(T390, T363))
U52_ag(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_ag(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U53_ag(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_ag(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
qs39_in_aag(T122, T123, X234) → U22_aag(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaag(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaag(T129, T123, T127, T128, X232, X233, X234)
p43_in_aaaaaag(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaag(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaag(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
app71_in_aaag([], T212, T213, .(T212, T213)) → app71_out_aaag([], T212, T213, .(T212, T213))
app71_in_aaag(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaag(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
U21_aaag(T222, T226, T227, T228, X403, app71_out_aaag(T226, T227, T228, X403)) → app71_out_aaag(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_out_aaag(T198, T199, T197, X234)) → p43_out_aaaaaag(T199, T123, T127, T184, T198, T197, X234)
U22_aag(T122, T123, X234, p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aag(T122, T123, X234)
U54_ag(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_ag(T390, T363, T353, T391, qs60_in_ag(T371, T391))
qs60_in_ag([], []) → qs60_out_ag([], [])
qs60_in_ag(.(T192, T193), X370) → U20_ag(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
U20_ag(T192, T193, X370, p43_out_aaaaaag(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_ag(.(T192, T193), X370)
U55_ag(T390, T363, T353, T391, qs60_out_ag(T371, T391)) → qs1_out_ag(.(T390, .(T363, T353)), .(T390, T391))
qs1_in_ag(.(T404, .(T363, T353)), .(T402, T406)) → U56_ag(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
U56_ag(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_ag(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U57_ag(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_ag(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U58_ag(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_ag(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U59_ag(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_ag(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
app131_in_agag([], T421, T422, .(T421, T422)) → app131_out_agag([], T421, T422, .(T421, T422))
app131_in_agag(.(T433, T438), T435, T439, .(T433, T437)) → U23_agag(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
U23_agag(T433, T438, T435, T439, T437, app131_out_agag(T438, T435, T439, T437)) → app131_out_agag(.(T433, T438), T435, T439, .(T433, T437))
U60_ag(T404, T363, T353, T402, T406, app131_out_agag(T407, T404, T408, T406)) → qs1_out_ag(.(T404, .(T363, T353)), .(T402, T406))
qs1_in_ag(.(T459, .(T461, T460)), T329) → U61_ag(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
U61_ag(T459, T461, T460, T329, part44_out_aaaa(T459, T460, X705, X706)) → qs1_out_ag(.(T459, .(T461, T460)), T329)
qs1_in_ag(.(T468, .(T467, T460)), T329) → U62_ag(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_ag(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_ag(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U63_ag(T468, T467, T460, T329, qs60_out_aa(T465, X543)) → qs1_out_ag(.(T468, .(T467, T460)), T329)
qs1_in_ag(.(T476, .(T474, T460)), T329) → U64_ag(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_ag(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_ag(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U65_ag(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_ag(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U66_ag(T476, T474, T460, T329, qs39_out_aaa(T474, T475, X544)) → qs1_out_ag(.(T476, .(T474, T460)), T329)
qs1_in_ag(.(T498, .(T474, T460)), .(T498, T499)) → U67_ag(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
part44_in_gaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_gaaa(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
U6_gaaa(T148, T149, T150, X282, X283, less13_out_ga(T148, T149)) → part44_out_gaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_gaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_gaaa(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_gaaa(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_gaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_gaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_gaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_gaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_gaaa(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
part44_in_gaaa(T182, [], [], []) → part44_out_gaaa(T182, [], [], [])
U9_gaaa(T175, T173, T176, X333, X334, part44_out_gaaa(T175, T176, X333, X334)) → part44_out_gaaa(T175, .(T173, T176), X333, .(T173, X334))
U67_ag(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_ag(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U68_ag(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_ag(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U69_ag(T498, T474, T460, T499, qs39_out_aag(T474, T475, T499)) → qs1_out_ag(.(T498, .(T474, T460)), .(T498, T499))
qs1_in_ag(.(T516, .(T474, T460)), .(T510, T514)) → U70_ag(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
U70_ag(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_ag(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U71_ag(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_ag(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U72_ag(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_ag(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
app157_in_aaag([], T530, T531, .(T530, T531)) → app157_out_aaag([], T530, T531, .(T530, T531))
app157_in_aaag(.(T542, T547), T548, T549, .(T542, T546)) → U24_aaag(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
U24_aaag(T542, T547, T548, T549, T546, app157_out_aaag(T547, T548, T549, T546)) → app157_out_aaag(.(T542, T547), T548, T549, .(T542, T546))
U73_ag(T516, T474, T460, T510, T514, app157_out_aaag(T515, T516, T517, T514)) → qs1_out_ag(.(T516, .(T474, T460)), .(T510, T514))
qs1_in_ag(.(T557, []), T329) → U74_ag(T557, T329, qs100_in_a(X543))
U74_ag(T557, T329, qs100_out_a(X543)) → qs1_out_ag(.(T557, []), T329)
qs1_in_ag(.(T557, []), T329) → U75_ag(T557, T329, qs100_in_a(T560))
U75_ag(T557, T329, qs100_out_a(T560)) → U76_ag(T557, T329, qs100_in_a(X544))
U76_ag(T557, T329, qs100_out_a(X544)) → qs1_out_ag(.(T557, []), T329)
U75_ag(T557, T329, qs100_out_a(T560)) → U77_ag(T557, T329, T560, qs100_in_a(T563))
U77_ag(T557, T329, T560, qs100_out_a(T563)) → U78_ag(T557, T329, app157_in_gagg(T560, T557, T563, T329))
app157_in_gagg([], T530, T531, .(T530, T531)) → app157_out_gagg([], T530, T531, .(T530, T531))
app157_in_gagg(.(T542, T547), T548, T549, .(T542, T546)) → U24_gagg(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
U24_gagg(T542, T547, T548, T549, T546, app157_out_gagg(T547, T548, T549, T546)) → app157_out_gagg(.(T542, T547), T548, T549, .(T542, T546))
U78_ag(T557, T329, app157_out_gagg(T560, T557, T563, T329)) → qs1_out_ag(.(T557, []), T329)
QS1_IN_AG(.(T24, .(T25, T26)), []) → U25_AG(T24, T25, T26, less13_in_aa(T24, T25))
QS1_IN_AG(.(T24, .(T25, T26)), []) → LESS13_IN_AA(T24, T25)
LESS13_IN_AA(s(T45), s(T46)) → U1_AA(T45, T46, less13_in_aa(T45, T46))
LESS13_IN_AA(s(T45), s(T46)) → LESS13_IN_AA(T45, T46)
QS1_IN_AG(.(T29, .(T31, T30)), []) → U26_AG(T29, T31, T30, less13_in_aa(T29, T31))
U26_AG(T29, T31, T30, less13_out_aa(T29, T31)) → U27_AG(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
U26_AG(T29, T31, T30, less13_out_aa(T29, T31)) → PART23_IN_GAAA(T29, T30, X49, X50)
PART23_IN_GAAA(T70, .(T73, T74), .(T73, X123), X124) → U2_GAAA(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
PART23_IN_GAAA(T70, .(T73, T74), .(T73, X123), X124) → LESS13_IN_GA(T70, T73)
LESS13_IN_GA(s(T45), s(T46)) → U1_GA(T45, T46, less13_in_ga(T45, T46))
LESS13_IN_GA(s(T45), s(T46)) → LESS13_IN_GA(T45, T46)
PART23_IN_GAAA(T70, .(T73, T77), .(T73, X123), X124) → U3_GAAA(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_GAAA(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_GAAA(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
U3_GAAA(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → PART23_IN_GAAA(T70, T77, X123, X124)
PART23_IN_GAAA(T95, .(T96, T98), X174, .(T96, X175)) → U5_GAAA(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
PART23_IN_GAAA(T95, .(T96, T98), X174, .(T96, X175)) → PART23_IN_GAAA(T95, T98, X174, X175)
QS1_IN_AG(.(T29, .(T54, T30)), []) → U28_AG(T29, T54, T30, less13_in_aa(T29, T54))
U28_AG(T29, T54, T30, less13_out_aa(T29, T54)) → U29_AG(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U28_AG(T29, T54, T30, less13_out_aa(T29, T54)) → PART23_IN_GAAA(T29, T30, T52, T53)
U29_AG(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_AG(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
U29_AG(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → QS39_IN_AAA(T54, T52, X11)
QS39_IN_AAA(T122, T123, X234) → U22_AAA(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
QS39_IN_AAA(T122, T123, X234) → P43_IN_AAAAAAA(T122, T123, X230, X231, X232, X233, X234)
P43_IN_AAAAAAA(T122, T123, X230, X231, X232, X233, X234) → U10_AAAAAAA(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
P43_IN_AAAAAAA(T122, T123, X230, X231, X232, X233, X234) → PART44_IN_AAAA(T122, T123, X230, X231)
PART44_IN_AAAA(T148, .(T149, T150), .(T149, X282), X283) → U6_AAAA(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
PART44_IN_AAAA(T148, .(T149, T150), .(T149, X282), X283) → LESS13_IN_AA(T148, T149)
PART44_IN_AAAA(T153, .(T149, T154), .(T149, X282), X283) → U7_AAAA(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_AAAA(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_AAAA(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U7_AAAA(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → PART23_IN_GAAA(T153, T154, X282, X283)
PART44_IN_AAAA(T175, .(T173, T176), X333, .(T173, X334)) → U9_AAAA(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
PART44_IN_AAAA(T175, .(T173, T176), X333, .(T173, X334)) → PART44_IN_AAAA(T175, T176, X333, X334)
P43_IN_AAAAAAA(T129, T123, T127, T128, X232, X233, X234) → U11_AAAAAAA(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_AAAAAAA(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_AAAAAAA(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U11_AAAAAAA(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → QS60_IN_AA(T127, X232)
QS60_IN_AA(.(T192, T193), X370) → U20_AA(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
QS60_IN_AA(.(T192, T193), X370) → P43_IN_AAAAAAA(T192, T193, X366, X367, X368, X369, X370)
P43_IN_AAAAAAA(T185, T123, T127, T184, T183, X233, X234) → U13_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U13_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → QS60_IN_AA(T127, T183)
U14_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U14_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → QS60_IN_AA(T184, X233)
P43_IN_AAAAAAA(T199, T123, T127, T184, T198, T197, X234) → U16_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U16_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → QS60_IN_AA(T127, T198)
U17_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U17_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → QS60_IN_AA(T184, T197)
U18_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
U18_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → APP71_IN_AAAA(T198, T199, T197, X234)
APP71_IN_AAAA(.(T222, T226), T227, T228, .(T222, X403)) → U21_AAAA(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
APP71_IN_AAAA(.(T222, T226), T227, T228, .(T222, X403)) → APP71_IN_AAAA(T226, T227, T228, X403)
U28_AG(T29, T54, T30, less13_out_aa(T29, T54)) → U31_AG(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_AG(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_AG(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U31_AG(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → QS39_IN_AAA(T54, T52, T107)
U32_AG(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_AG(T29, T54, T30, qs60_in_aa(T108, X12))
U32_AG(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → QS60_IN_AA(T108, X12)
QS1_IN_AG(.(T264, .(T266, T265)), []) → U34_AG(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
QS1_IN_AG(.(T264, .(T266, T265)), []) → PART44_IN_AAAA(T264, T265, X454, X455)
QS1_IN_AG(.(T273, .(T272, T265)), []) → U35_AG(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_AG(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_AG(T273, T272, T265, qs60_in_aa(T270, X11))
U35_AG(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → QS60_IN_AA(T270, X11)
QS1_IN_AG(.(T280, .(T278, T265)), []) → U37_AG(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_AG(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_AG(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U37_AG(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → QS60_IN_AA(T270, T277)
U38_AG(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_AG(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U38_AG(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → QS39_IN_AAA(T278, T279, X12)
QS1_IN_AG(.(T305, []), []) → U40_AG(T305, qs100_in_a(X11))
QS1_IN_AG(.(T305, []), []) → QS100_IN_A(X11)
QS1_IN_AG(.(T305, []), []) → U41_AG(T305, qs100_in_a(T309))
U41_AG(T305, qs100_out_a(T309)) → U42_AG(T305, qs100_in_a(X12))
U41_AG(T305, qs100_out_a(T309)) → QS100_IN_A(X12)
QS1_IN_AG(.(T347, .(T348, T349)), T329) → U43_AG(T347, T348, T349, T329, less13_in_aa(T347, T348))
QS1_IN_AG(.(T347, .(T348, T349)), T329) → LESS13_IN_AA(T347, T348)
QS1_IN_AG(.(T352, .(T354, T353)), T329) → U44_AG(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_AG(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_AG(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U44_AG(T352, T354, T353, T329, less13_out_aa(T352, T354)) → PART23_IN_GAAA(T352, T353, X581, X582)
QS1_IN_AG(.(T352, .(T363, T353)), T329) → U46_AG(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_AG(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_AG(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U46_AG(T352, T363, T353, T329, less13_out_aa(T352, T363)) → PART23_IN_GAAA(T352, T353, T361, T362)
U47_AG(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_AG(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U47_AG(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → QS39_IN_AAA(T363, T361, X543)
U46_AG(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_AG(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_AG(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_AG(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U49_AG(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → QS39_IN_AAA(T363, T361, T370)
U50_AG(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_AG(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U50_AG(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → QS60_IN_AA(T371, X544)
QS1_IN_AG(.(T390, .(T363, T353)), .(T390, T391)) → U52_AG(T390, T363, T353, T391, less13_in_ga(T390, T363))
QS1_IN_AG(.(T390, .(T363, T353)), .(T390, T391)) → LESS13_IN_GA(T390, T363)
U52_AG(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_AG(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U52_AG(T390, T363, T353, T391, less13_out_ga(T390, T363)) → PART23_IN_GAAA(T390, T353, T361, T371)
U53_AG(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_AG(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
U53_AG(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → QS39_IN_AAG(T363, T361, [])
QS39_IN_AAG(T122, T123, X234) → U22_AAG(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
QS39_IN_AAG(T122, T123, X234) → P43_IN_AAAAAAG(T122, T123, X230, X231, X232, X233, X234)
P43_IN_AAAAAAG(T122, T123, X230, X231, X232, X233, X234) → U10_AAAAAAG(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
P43_IN_AAAAAAG(T122, T123, X230, X231, X232, X233, X234) → PART44_IN_AAAA(T122, T123, X230, X231)
P43_IN_AAAAAAG(T129, T123, T127, T128, X232, X233, X234) → U11_AAAAAAG(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_AAAAAAG(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_AAAAAAG(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U11_AAAAAAG(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → QS60_IN_AA(T127, X232)
P43_IN_AAAAAAG(T185, T123, T127, T184, T183, X233, X234) → U13_AAAAAAG(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_AAAAAAG(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_AAAAAAG(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U13_AAAAAAG(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → QS60_IN_AA(T127, T183)
U14_AAAAAAG(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_AAAAAAG(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U14_AAAAAAG(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → QS60_IN_AA(T184, X233)
P43_IN_AAAAAAG(T199, T123, T127, T184, T198, T197, X234) → U16_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U16_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → QS60_IN_AA(T127, T198)
U17_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U17_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → QS60_IN_AA(T184, T197)
U18_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
U18_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → APP71_IN_AAAG(T198, T199, T197, X234)
APP71_IN_AAAG(.(T222, T226), T227, T228, .(T222, X403)) → U21_AAAG(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
APP71_IN_AAAG(.(T222, T226), T227, T228, .(T222, X403)) → APP71_IN_AAAG(T226, T227, T228, X403)
U54_AG(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_AG(T390, T363, T353, T391, qs60_in_ag(T371, T391))
U54_AG(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → QS60_IN_AG(T371, T391)
QS60_IN_AG(.(T192, T193), X370) → U20_AG(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
QS60_IN_AG(.(T192, T193), X370) → P43_IN_AAAAAAG(T192, T193, X366, X367, X368, X369, X370)
QS1_IN_AG(.(T404, .(T363, T353)), .(T402, T406)) → U56_AG(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
QS1_IN_AG(.(T404, .(T363, T353)), .(T402, T406)) → LESS13_IN_AA(T404, T363)
U56_AG(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_AG(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U56_AG(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → PART23_IN_GAAA(T404, T353, T361, T371)
U57_AG(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_AG(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U57_AG(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → QS39_IN_AAA(T363, T361, .(T402, T407))
U58_AG(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_AG(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U58_AG(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → QS60_IN_AA(T371, T408)
U59_AG(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_AG(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
U59_AG(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → APP131_IN_AGAG(T407, T404, T408, T406)
APP131_IN_AGAG(.(T433, T438), T435, T439, .(T433, T437)) → U23_AGAG(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
APP131_IN_AGAG(.(T433, T438), T435, T439, .(T433, T437)) → APP131_IN_AGAG(T438, T435, T439, T437)
QS1_IN_AG(.(T459, .(T461, T460)), T329) → U61_AG(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
QS1_IN_AG(.(T459, .(T461, T460)), T329) → PART44_IN_AAAA(T459, T460, X705, X706)
QS1_IN_AG(.(T468, .(T467, T460)), T329) → U62_AG(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_AG(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_AG(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U62_AG(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → QS60_IN_AA(T465, X543)
QS1_IN_AG(.(T476, .(T474, T460)), T329) → U64_AG(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_AG(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_AG(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U64_AG(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → QS60_IN_AA(T465, T473)
U65_AG(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_AG(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U65_AG(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → QS39_IN_AAA(T474, T475, X544)
QS1_IN_AG(.(T498, .(T474, T460)), .(T498, T499)) → U67_AG(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
QS1_IN_AG(.(T498, .(T474, T460)), .(T498, T499)) → PART44_IN_GAAA(T498, T460, T465, T475)
PART44_IN_GAAA(T148, .(T149, T150), .(T149, X282), X283) → U6_GAAA(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
PART44_IN_GAAA(T148, .(T149, T150), .(T149, X282), X283) → LESS13_IN_GA(T148, T149)
PART44_IN_GAAA(T153, .(T149, T154), .(T149, X282), X283) → U7_GAAA(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_GAAA(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_GAAA(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U7_GAAA(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → PART23_IN_GAAA(T153, T154, X282, X283)
PART44_IN_GAAA(T175, .(T173, T176), X333, .(T173, X334)) → U9_GAAA(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
PART44_IN_GAAA(T175, .(T173, T176), X333, .(T173, X334)) → PART44_IN_GAAA(T175, T176, X333, X334)
U67_AG(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_AG(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U67_AG(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → QS60_IN_AG(T465, [])
U68_AG(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_AG(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U68_AG(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → QS39_IN_AAG(T474, T475, T499)
QS1_IN_AG(.(T516, .(T474, T460)), .(T510, T514)) → U70_AG(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
QS1_IN_AG(.(T516, .(T474, T460)), .(T510, T514)) → PART44_IN_AAAA(T516, T460, T465, T475)
U70_AG(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_AG(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U70_AG(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → QS60_IN_AA(T465, .(T510, T515))
U71_AG(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_AG(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U71_AG(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → QS39_IN_AAA(T474, T475, T517)
U72_AG(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_AG(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
U72_AG(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → APP157_IN_AAAG(T515, T516, T517, T514)
APP157_IN_AAAG(.(T542, T547), T548, T549, .(T542, T546)) → U24_AAAG(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
APP157_IN_AAAG(.(T542, T547), T548, T549, .(T542, T546)) → APP157_IN_AAAG(T547, T548, T549, T546)
QS1_IN_AG(.(T557, []), T329) → U74_AG(T557, T329, qs100_in_a(X543))
QS1_IN_AG(.(T557, []), T329) → QS100_IN_A(X543)
QS1_IN_AG(.(T557, []), T329) → U75_AG(T557, T329, qs100_in_a(T560))
U75_AG(T557, T329, qs100_out_a(T560)) → U76_AG(T557, T329, qs100_in_a(X544))
U75_AG(T557, T329, qs100_out_a(T560)) → QS100_IN_A(X544)
U75_AG(T557, T329, qs100_out_a(T560)) → U77_AG(T557, T329, T560, qs100_in_a(T563))
U77_AG(T557, T329, T560, qs100_out_a(T563)) → U78_AG(T557, T329, app157_in_gagg(T560, T557, T563, T329))
U77_AG(T557, T329, T560, qs100_out_a(T563)) → APP157_IN_GAGG(T560, T557, T563, T329)
APP157_IN_GAGG(.(T542, T547), T548, T549, .(T542, T546)) → U24_GAGG(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
APP157_IN_GAGG(.(T542, T547), T548, T549, .(T542, T546)) → APP157_IN_GAGG(T547, T548, T549, T546)
qs1_in_ag([], []) → qs1_out_ag([], [])
qs1_in_ag(.(T24, .(T25, T26)), []) → U25_ag(T24, T25, T26, less13_in_aa(T24, T25))
less13_in_aa(0, s(T38)) → less13_out_aa(0, s(T38))
less13_in_aa(s(T45), s(T46)) → U1_aa(T45, T46, less13_in_aa(T45, T46))
U1_aa(T45, T46, less13_out_aa(T45, T46)) → less13_out_aa(s(T45), s(T46))
U25_ag(T24, T25, T26, less13_out_aa(T24, T25)) → qs1_out_ag(.(T24, .(T25, T26)), [])
qs1_in_ag(.(T29, .(T31, T30)), []) → U26_ag(T29, T31, T30, less13_in_aa(T29, T31))
U26_ag(T29, T31, T30, less13_out_aa(T29, T31)) → U27_ag(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
part23_in_gaaa(T70, .(T73, T74), .(T73, X123), X124) → U2_gaaa(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
U2_gaaa(T70, T73, T74, X123, X124, less13_out_ga(T70, T73)) → part23_out_gaaa(T70, .(T73, T74), .(T73, X123), X124)
part23_in_gaaa(T70, .(T73, T77), .(T73, X123), X124) → U3_gaaa(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
part23_in_gaaa(T95, .(T96, T98), X174, .(T96, X175)) → U5_gaaa(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
part23_in_gaaa(T104, [], [], []) → part23_out_gaaa(T104, [], [], [])
U5_gaaa(T95, T96, T98, X174, X175, part23_out_gaaa(T95, T98, X174, X175)) → part23_out_gaaa(T95, .(T96, T98), X174, .(T96, X175))
U4_gaaa(T70, T73, T77, X123, X124, part23_out_gaaa(T70, T77, X123, X124)) → part23_out_gaaa(T70, .(T73, T77), .(T73, X123), X124)
U27_ag(T29, T31, T30, part23_out_gaaa(T29, T30, X49, X50)) → qs1_out_ag(.(T29, .(T31, T30)), [])
qs1_in_ag(.(T29, .(T54, T30)), []) → U28_ag(T29, T54, T30, less13_in_aa(T29, T54))
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U29_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U29_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_ag(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
qs39_in_aaa(T122, T123, X234) → U22_aaa(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
part44_in_aaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_aaaa(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
U6_aaaa(T148, T149, T150, X282, X283, less13_out_aa(T148, T149)) → part44_out_aaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_aaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_aaaa(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_aaaa(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_aaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_aaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_aaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_aaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_aaaa(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
part44_in_aaaa(T182, [], [], []) → part44_out_aaaa(T182, [], [], [])
U9_aaaa(T175, T173, T176, X333, X334, part44_out_aaaa(T175, T176, X333, X334)) → part44_out_aaaa(T175, .(T173, T176), X333, .(T173, X334))
U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaaa(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
qs60_in_aa([], []) → qs60_out_aa([], [])
qs60_in_aa(.(T192, T193), X370) → U20_aa(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
p43_in_aaaaaaa(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaaa(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaaa(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
app71_in_aaaa([], T212, T213, .(T212, T213)) → app71_out_aaaa([], T212, T213, .(T212, T213))
app71_in_aaaa(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaaa(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
U21_aaaa(T222, T226, T227, T228, X403, app71_out_aaaa(T226, T227, T228, X403)) → app71_out_aaaa(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_out_aaaa(T198, T199, T197, X234)) → p43_out_aaaaaaa(T199, T123, T127, T184, T198, T197, X234)
U20_aa(T192, T193, X370, p43_out_aaaaaaa(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_aa(.(T192, T193), X370)
U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaaa(T129, T123, T127, T128, X232, X233, X234)
U22_aaa(T122, T123, X234, p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aaa(T122, T123, X234)
U30_ag(T29, T54, T30, qs39_out_aaa(T54, T52, X11)) → qs1_out_ag(.(T29, .(T54, T30)), [])
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U31_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_ag(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U32_ag(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_ag(T29, T54, T30, qs60_in_aa(T108, X12))
U33_ag(T29, T54, T30, qs60_out_aa(T108, X12)) → qs1_out_ag(.(T29, .(T54, T30)), [])
qs1_in_ag(.(T264, .(T266, T265)), []) → U34_ag(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
U34_ag(T264, T266, T265, part44_out_aaaa(T264, T265, X454, X455)) → qs1_out_ag(.(T264, .(T266, T265)), [])
qs1_in_ag(.(T273, .(T272, T265)), []) → U35_ag(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_ag(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_ag(T273, T272, T265, qs60_in_aa(T270, X11))
U36_ag(T273, T272, T265, qs60_out_aa(T270, X11)) → qs1_out_ag(.(T273, .(T272, T265)), [])
qs1_in_ag(.(T280, .(T278, T265)), []) → U37_ag(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_ag(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_ag(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U38_ag(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_ag(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U39_ag(T280, T278, T265, qs39_out_aaa(T278, T279, X12)) → qs1_out_ag(.(T280, .(T278, T265)), [])
qs1_in_ag(.(T305, []), []) → U40_ag(T305, qs100_in_a(X11))
qs100_in_a([]) → qs100_out_a([])
U40_ag(T305, qs100_out_a(X11)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T305, []), []) → U41_ag(T305, qs100_in_a(T309))
U41_ag(T305, qs100_out_a(T309)) → U42_ag(T305, qs100_in_a(X12))
U42_ag(T305, qs100_out_a(X12)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T347, .(T348, T349)), T329) → U43_ag(T347, T348, T349, T329, less13_in_aa(T347, T348))
U43_ag(T347, T348, T349, T329, less13_out_aa(T347, T348)) → qs1_out_ag(.(T347, .(T348, T349)), T329)
qs1_in_ag(.(T352, .(T354, T353)), T329) → U44_ag(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_ag(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_ag(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U45_ag(T352, T354, T353, T329, part23_out_gaaa(T352, T353, X581, X582)) → qs1_out_ag(.(T352, .(T354, T353)), T329)
qs1_in_ag(.(T352, .(T363, T353)), T329) → U46_ag(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U47_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_ag(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U48_ag(T352, T363, T353, T329, qs39_out_aaa(T363, T361, X543)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_ag(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U50_ag(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_ag(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U51_ag(T352, T363, T353, T329, qs60_out_aa(T371, X544)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
qs1_in_ag(.(T390, .(T363, T353)), .(T390, T391)) → U52_ag(T390, T363, T353, T391, less13_in_ga(T390, T363))
U52_ag(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_ag(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U53_ag(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_ag(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
qs39_in_aag(T122, T123, X234) → U22_aag(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaag(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaag(T129, T123, T127, T128, X232, X233, X234)
p43_in_aaaaaag(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaag(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaag(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
app71_in_aaag([], T212, T213, .(T212, T213)) → app71_out_aaag([], T212, T213, .(T212, T213))
app71_in_aaag(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaag(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
U21_aaag(T222, T226, T227, T228, X403, app71_out_aaag(T226, T227, T228, X403)) → app71_out_aaag(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_out_aaag(T198, T199, T197, X234)) → p43_out_aaaaaag(T199, T123, T127, T184, T198, T197, X234)
U22_aag(T122, T123, X234, p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aag(T122, T123, X234)
U54_ag(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_ag(T390, T363, T353, T391, qs60_in_ag(T371, T391))
qs60_in_ag([], []) → qs60_out_ag([], [])
qs60_in_ag(.(T192, T193), X370) → U20_ag(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
U20_ag(T192, T193, X370, p43_out_aaaaaag(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_ag(.(T192, T193), X370)
U55_ag(T390, T363, T353, T391, qs60_out_ag(T371, T391)) → qs1_out_ag(.(T390, .(T363, T353)), .(T390, T391))
qs1_in_ag(.(T404, .(T363, T353)), .(T402, T406)) → U56_ag(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
U56_ag(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_ag(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U57_ag(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_ag(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U58_ag(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_ag(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U59_ag(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_ag(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
app131_in_agag([], T421, T422, .(T421, T422)) → app131_out_agag([], T421, T422, .(T421, T422))
app131_in_agag(.(T433, T438), T435, T439, .(T433, T437)) → U23_agag(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
U23_agag(T433, T438, T435, T439, T437, app131_out_agag(T438, T435, T439, T437)) → app131_out_agag(.(T433, T438), T435, T439, .(T433, T437))
U60_ag(T404, T363, T353, T402, T406, app131_out_agag(T407, T404, T408, T406)) → qs1_out_ag(.(T404, .(T363, T353)), .(T402, T406))
qs1_in_ag(.(T459, .(T461, T460)), T329) → U61_ag(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
U61_ag(T459, T461, T460, T329, part44_out_aaaa(T459, T460, X705, X706)) → qs1_out_ag(.(T459, .(T461, T460)), T329)
qs1_in_ag(.(T468, .(T467, T460)), T329) → U62_ag(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_ag(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_ag(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U63_ag(T468, T467, T460, T329, qs60_out_aa(T465, X543)) → qs1_out_ag(.(T468, .(T467, T460)), T329)
qs1_in_ag(.(T476, .(T474, T460)), T329) → U64_ag(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_ag(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_ag(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U65_ag(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_ag(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U66_ag(T476, T474, T460, T329, qs39_out_aaa(T474, T475, X544)) → qs1_out_ag(.(T476, .(T474, T460)), T329)
qs1_in_ag(.(T498, .(T474, T460)), .(T498, T499)) → U67_ag(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
part44_in_gaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_gaaa(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
U6_gaaa(T148, T149, T150, X282, X283, less13_out_ga(T148, T149)) → part44_out_gaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_gaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_gaaa(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_gaaa(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_gaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_gaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_gaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_gaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_gaaa(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
part44_in_gaaa(T182, [], [], []) → part44_out_gaaa(T182, [], [], [])
U9_gaaa(T175, T173, T176, X333, X334, part44_out_gaaa(T175, T176, X333, X334)) → part44_out_gaaa(T175, .(T173, T176), X333, .(T173, X334))
U67_ag(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_ag(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U68_ag(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_ag(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U69_ag(T498, T474, T460, T499, qs39_out_aag(T474, T475, T499)) → qs1_out_ag(.(T498, .(T474, T460)), .(T498, T499))
qs1_in_ag(.(T516, .(T474, T460)), .(T510, T514)) → U70_ag(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
U70_ag(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_ag(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U71_ag(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_ag(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U72_ag(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_ag(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
app157_in_aaag([], T530, T531, .(T530, T531)) → app157_out_aaag([], T530, T531, .(T530, T531))
app157_in_aaag(.(T542, T547), T548, T549, .(T542, T546)) → U24_aaag(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
U24_aaag(T542, T547, T548, T549, T546, app157_out_aaag(T547, T548, T549, T546)) → app157_out_aaag(.(T542, T547), T548, T549, .(T542, T546))
U73_ag(T516, T474, T460, T510, T514, app157_out_aaag(T515, T516, T517, T514)) → qs1_out_ag(.(T516, .(T474, T460)), .(T510, T514))
qs1_in_ag(.(T557, []), T329) → U74_ag(T557, T329, qs100_in_a(X543))
U74_ag(T557, T329, qs100_out_a(X543)) → qs1_out_ag(.(T557, []), T329)
qs1_in_ag(.(T557, []), T329) → U75_ag(T557, T329, qs100_in_a(T560))
U75_ag(T557, T329, qs100_out_a(T560)) → U76_ag(T557, T329, qs100_in_a(X544))
U76_ag(T557, T329, qs100_out_a(X544)) → qs1_out_ag(.(T557, []), T329)
U75_ag(T557, T329, qs100_out_a(T560)) → U77_ag(T557, T329, T560, qs100_in_a(T563))
U77_ag(T557, T329, T560, qs100_out_a(T563)) → U78_ag(T557, T329, app157_in_gagg(T560, T557, T563, T329))
app157_in_gagg([], T530, T531, .(T530, T531)) → app157_out_gagg([], T530, T531, .(T530, T531))
app157_in_gagg(.(T542, T547), T548, T549, .(T542, T546)) → U24_gagg(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
U24_gagg(T542, T547, T548, T549, T546, app157_out_gagg(T547, T548, T549, T546)) → app157_out_gagg(.(T542, T547), T548, T549, .(T542, T546))
U78_ag(T557, T329, app157_out_gagg(T560, T557, T563, T329)) → qs1_out_ag(.(T557, []), T329)
APP157_IN_GAGG(.(T542, T547), T548, T549, .(T542, T546)) → APP157_IN_GAGG(T547, T548, T549, T546)
qs1_in_ag([], []) → qs1_out_ag([], [])
qs1_in_ag(.(T24, .(T25, T26)), []) → U25_ag(T24, T25, T26, less13_in_aa(T24, T25))
less13_in_aa(0, s(T38)) → less13_out_aa(0, s(T38))
less13_in_aa(s(T45), s(T46)) → U1_aa(T45, T46, less13_in_aa(T45, T46))
U1_aa(T45, T46, less13_out_aa(T45, T46)) → less13_out_aa(s(T45), s(T46))
U25_ag(T24, T25, T26, less13_out_aa(T24, T25)) → qs1_out_ag(.(T24, .(T25, T26)), [])
qs1_in_ag(.(T29, .(T31, T30)), []) → U26_ag(T29, T31, T30, less13_in_aa(T29, T31))
U26_ag(T29, T31, T30, less13_out_aa(T29, T31)) → U27_ag(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
part23_in_gaaa(T70, .(T73, T74), .(T73, X123), X124) → U2_gaaa(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
U2_gaaa(T70, T73, T74, X123, X124, less13_out_ga(T70, T73)) → part23_out_gaaa(T70, .(T73, T74), .(T73, X123), X124)
part23_in_gaaa(T70, .(T73, T77), .(T73, X123), X124) → U3_gaaa(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
part23_in_gaaa(T95, .(T96, T98), X174, .(T96, X175)) → U5_gaaa(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
part23_in_gaaa(T104, [], [], []) → part23_out_gaaa(T104, [], [], [])
U5_gaaa(T95, T96, T98, X174, X175, part23_out_gaaa(T95, T98, X174, X175)) → part23_out_gaaa(T95, .(T96, T98), X174, .(T96, X175))
U4_gaaa(T70, T73, T77, X123, X124, part23_out_gaaa(T70, T77, X123, X124)) → part23_out_gaaa(T70, .(T73, T77), .(T73, X123), X124)
U27_ag(T29, T31, T30, part23_out_gaaa(T29, T30, X49, X50)) → qs1_out_ag(.(T29, .(T31, T30)), [])
qs1_in_ag(.(T29, .(T54, T30)), []) → U28_ag(T29, T54, T30, less13_in_aa(T29, T54))
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U29_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U29_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_ag(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
qs39_in_aaa(T122, T123, X234) → U22_aaa(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
part44_in_aaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_aaaa(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
U6_aaaa(T148, T149, T150, X282, X283, less13_out_aa(T148, T149)) → part44_out_aaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_aaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_aaaa(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_aaaa(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_aaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_aaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_aaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_aaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_aaaa(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
part44_in_aaaa(T182, [], [], []) → part44_out_aaaa(T182, [], [], [])
U9_aaaa(T175, T173, T176, X333, X334, part44_out_aaaa(T175, T176, X333, X334)) → part44_out_aaaa(T175, .(T173, T176), X333, .(T173, X334))
U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaaa(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
qs60_in_aa([], []) → qs60_out_aa([], [])
qs60_in_aa(.(T192, T193), X370) → U20_aa(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
p43_in_aaaaaaa(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaaa(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaaa(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
app71_in_aaaa([], T212, T213, .(T212, T213)) → app71_out_aaaa([], T212, T213, .(T212, T213))
app71_in_aaaa(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaaa(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
U21_aaaa(T222, T226, T227, T228, X403, app71_out_aaaa(T226, T227, T228, X403)) → app71_out_aaaa(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_out_aaaa(T198, T199, T197, X234)) → p43_out_aaaaaaa(T199, T123, T127, T184, T198, T197, X234)
U20_aa(T192, T193, X370, p43_out_aaaaaaa(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_aa(.(T192, T193), X370)
U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaaa(T129, T123, T127, T128, X232, X233, X234)
U22_aaa(T122, T123, X234, p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aaa(T122, T123, X234)
U30_ag(T29, T54, T30, qs39_out_aaa(T54, T52, X11)) → qs1_out_ag(.(T29, .(T54, T30)), [])
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U31_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_ag(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U32_ag(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_ag(T29, T54, T30, qs60_in_aa(T108, X12))
U33_ag(T29, T54, T30, qs60_out_aa(T108, X12)) → qs1_out_ag(.(T29, .(T54, T30)), [])
qs1_in_ag(.(T264, .(T266, T265)), []) → U34_ag(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
U34_ag(T264, T266, T265, part44_out_aaaa(T264, T265, X454, X455)) → qs1_out_ag(.(T264, .(T266, T265)), [])
qs1_in_ag(.(T273, .(T272, T265)), []) → U35_ag(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_ag(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_ag(T273, T272, T265, qs60_in_aa(T270, X11))
U36_ag(T273, T272, T265, qs60_out_aa(T270, X11)) → qs1_out_ag(.(T273, .(T272, T265)), [])
qs1_in_ag(.(T280, .(T278, T265)), []) → U37_ag(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_ag(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_ag(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U38_ag(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_ag(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U39_ag(T280, T278, T265, qs39_out_aaa(T278, T279, X12)) → qs1_out_ag(.(T280, .(T278, T265)), [])
qs1_in_ag(.(T305, []), []) → U40_ag(T305, qs100_in_a(X11))
qs100_in_a([]) → qs100_out_a([])
U40_ag(T305, qs100_out_a(X11)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T305, []), []) → U41_ag(T305, qs100_in_a(T309))
U41_ag(T305, qs100_out_a(T309)) → U42_ag(T305, qs100_in_a(X12))
U42_ag(T305, qs100_out_a(X12)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T347, .(T348, T349)), T329) → U43_ag(T347, T348, T349, T329, less13_in_aa(T347, T348))
U43_ag(T347, T348, T349, T329, less13_out_aa(T347, T348)) → qs1_out_ag(.(T347, .(T348, T349)), T329)
qs1_in_ag(.(T352, .(T354, T353)), T329) → U44_ag(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_ag(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_ag(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U45_ag(T352, T354, T353, T329, part23_out_gaaa(T352, T353, X581, X582)) → qs1_out_ag(.(T352, .(T354, T353)), T329)
qs1_in_ag(.(T352, .(T363, T353)), T329) → U46_ag(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U47_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_ag(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U48_ag(T352, T363, T353, T329, qs39_out_aaa(T363, T361, X543)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_ag(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U50_ag(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_ag(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U51_ag(T352, T363, T353, T329, qs60_out_aa(T371, X544)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
qs1_in_ag(.(T390, .(T363, T353)), .(T390, T391)) → U52_ag(T390, T363, T353, T391, less13_in_ga(T390, T363))
U52_ag(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_ag(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U53_ag(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_ag(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
qs39_in_aag(T122, T123, X234) → U22_aag(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaag(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaag(T129, T123, T127, T128, X232, X233, X234)
p43_in_aaaaaag(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaag(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaag(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
app71_in_aaag([], T212, T213, .(T212, T213)) → app71_out_aaag([], T212, T213, .(T212, T213))
app71_in_aaag(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaag(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
U21_aaag(T222, T226, T227, T228, X403, app71_out_aaag(T226, T227, T228, X403)) → app71_out_aaag(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_out_aaag(T198, T199, T197, X234)) → p43_out_aaaaaag(T199, T123, T127, T184, T198, T197, X234)
U22_aag(T122, T123, X234, p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aag(T122, T123, X234)
U54_ag(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_ag(T390, T363, T353, T391, qs60_in_ag(T371, T391))
qs60_in_ag([], []) → qs60_out_ag([], [])
qs60_in_ag(.(T192, T193), X370) → U20_ag(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
U20_ag(T192, T193, X370, p43_out_aaaaaag(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_ag(.(T192, T193), X370)
U55_ag(T390, T363, T353, T391, qs60_out_ag(T371, T391)) → qs1_out_ag(.(T390, .(T363, T353)), .(T390, T391))
qs1_in_ag(.(T404, .(T363, T353)), .(T402, T406)) → U56_ag(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
U56_ag(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_ag(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U57_ag(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_ag(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U58_ag(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_ag(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U59_ag(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_ag(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
app131_in_agag([], T421, T422, .(T421, T422)) → app131_out_agag([], T421, T422, .(T421, T422))
app131_in_agag(.(T433, T438), T435, T439, .(T433, T437)) → U23_agag(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
U23_agag(T433, T438, T435, T439, T437, app131_out_agag(T438, T435, T439, T437)) → app131_out_agag(.(T433, T438), T435, T439, .(T433, T437))
U60_ag(T404, T363, T353, T402, T406, app131_out_agag(T407, T404, T408, T406)) → qs1_out_ag(.(T404, .(T363, T353)), .(T402, T406))
qs1_in_ag(.(T459, .(T461, T460)), T329) → U61_ag(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
U61_ag(T459, T461, T460, T329, part44_out_aaaa(T459, T460, X705, X706)) → qs1_out_ag(.(T459, .(T461, T460)), T329)
qs1_in_ag(.(T468, .(T467, T460)), T329) → U62_ag(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_ag(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_ag(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U63_ag(T468, T467, T460, T329, qs60_out_aa(T465, X543)) → qs1_out_ag(.(T468, .(T467, T460)), T329)
qs1_in_ag(.(T476, .(T474, T460)), T329) → U64_ag(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_ag(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_ag(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U65_ag(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_ag(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U66_ag(T476, T474, T460, T329, qs39_out_aaa(T474, T475, X544)) → qs1_out_ag(.(T476, .(T474, T460)), T329)
qs1_in_ag(.(T498, .(T474, T460)), .(T498, T499)) → U67_ag(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
part44_in_gaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_gaaa(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
U6_gaaa(T148, T149, T150, X282, X283, less13_out_ga(T148, T149)) → part44_out_gaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_gaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_gaaa(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_gaaa(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_gaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_gaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_gaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_gaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_gaaa(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
part44_in_gaaa(T182, [], [], []) → part44_out_gaaa(T182, [], [], [])
U9_gaaa(T175, T173, T176, X333, X334, part44_out_gaaa(T175, T176, X333, X334)) → part44_out_gaaa(T175, .(T173, T176), X333, .(T173, X334))
U67_ag(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_ag(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U68_ag(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_ag(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U69_ag(T498, T474, T460, T499, qs39_out_aag(T474, T475, T499)) → qs1_out_ag(.(T498, .(T474, T460)), .(T498, T499))
qs1_in_ag(.(T516, .(T474, T460)), .(T510, T514)) → U70_ag(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
U70_ag(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_ag(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U71_ag(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_ag(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U72_ag(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_ag(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
app157_in_aaag([], T530, T531, .(T530, T531)) → app157_out_aaag([], T530, T531, .(T530, T531))
app157_in_aaag(.(T542, T547), T548, T549, .(T542, T546)) → U24_aaag(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
U24_aaag(T542, T547, T548, T549, T546, app157_out_aaag(T547, T548, T549, T546)) → app157_out_aaag(.(T542, T547), T548, T549, .(T542, T546))
U73_ag(T516, T474, T460, T510, T514, app157_out_aaag(T515, T516, T517, T514)) → qs1_out_ag(.(T516, .(T474, T460)), .(T510, T514))
qs1_in_ag(.(T557, []), T329) → U74_ag(T557, T329, qs100_in_a(X543))
U74_ag(T557, T329, qs100_out_a(X543)) → qs1_out_ag(.(T557, []), T329)
qs1_in_ag(.(T557, []), T329) → U75_ag(T557, T329, qs100_in_a(T560))
U75_ag(T557, T329, qs100_out_a(T560)) → U76_ag(T557, T329, qs100_in_a(X544))
U76_ag(T557, T329, qs100_out_a(X544)) → qs1_out_ag(.(T557, []), T329)
U75_ag(T557, T329, qs100_out_a(T560)) → U77_ag(T557, T329, T560, qs100_in_a(T563))
U77_ag(T557, T329, T560, qs100_out_a(T563)) → U78_ag(T557, T329, app157_in_gagg(T560, T557, T563, T329))
app157_in_gagg([], T530, T531, .(T530, T531)) → app157_out_gagg([], T530, T531, .(T530, T531))
app157_in_gagg(.(T542, T547), T548, T549, .(T542, T546)) → U24_gagg(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
U24_gagg(T542, T547, T548, T549, T546, app157_out_gagg(T547, T548, T549, T546)) → app157_out_gagg(.(T542, T547), T548, T549, .(T542, T546))
U78_ag(T557, T329, app157_out_gagg(T560, T557, T563, T329)) → qs1_out_ag(.(T557, []), T329)
APP157_IN_GAGG(.(T542, T547), T548, T549, .(T542, T546)) → APP157_IN_GAGG(T547, T548, T549, T546)
APP157_IN_GAGG(.(T542, T547), T549, .(T542, T546)) → APP157_IN_GAGG(T547, T549, T546)
From the DPs we obtained the following set of size-change graphs:
APP157_IN_AAAG(.(T542, T547), T548, T549, .(T542, T546)) → APP157_IN_AAAG(T547, T548, T549, T546)
qs1_in_ag([], []) → qs1_out_ag([], [])
qs1_in_ag(.(T24, .(T25, T26)), []) → U25_ag(T24, T25, T26, less13_in_aa(T24, T25))
less13_in_aa(0, s(T38)) → less13_out_aa(0, s(T38))
less13_in_aa(s(T45), s(T46)) → U1_aa(T45, T46, less13_in_aa(T45, T46))
U1_aa(T45, T46, less13_out_aa(T45, T46)) → less13_out_aa(s(T45), s(T46))
U25_ag(T24, T25, T26, less13_out_aa(T24, T25)) → qs1_out_ag(.(T24, .(T25, T26)), [])
qs1_in_ag(.(T29, .(T31, T30)), []) → U26_ag(T29, T31, T30, less13_in_aa(T29, T31))
U26_ag(T29, T31, T30, less13_out_aa(T29, T31)) → U27_ag(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
part23_in_gaaa(T70, .(T73, T74), .(T73, X123), X124) → U2_gaaa(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
U2_gaaa(T70, T73, T74, X123, X124, less13_out_ga(T70, T73)) → part23_out_gaaa(T70, .(T73, T74), .(T73, X123), X124)
part23_in_gaaa(T70, .(T73, T77), .(T73, X123), X124) → U3_gaaa(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
part23_in_gaaa(T95, .(T96, T98), X174, .(T96, X175)) → U5_gaaa(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
part23_in_gaaa(T104, [], [], []) → part23_out_gaaa(T104, [], [], [])
U5_gaaa(T95, T96, T98, X174, X175, part23_out_gaaa(T95, T98, X174, X175)) → part23_out_gaaa(T95, .(T96, T98), X174, .(T96, X175))
U4_gaaa(T70, T73, T77, X123, X124, part23_out_gaaa(T70, T77, X123, X124)) → part23_out_gaaa(T70, .(T73, T77), .(T73, X123), X124)
U27_ag(T29, T31, T30, part23_out_gaaa(T29, T30, X49, X50)) → qs1_out_ag(.(T29, .(T31, T30)), [])
qs1_in_ag(.(T29, .(T54, T30)), []) → U28_ag(T29, T54, T30, less13_in_aa(T29, T54))
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U29_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U29_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_ag(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
qs39_in_aaa(T122, T123, X234) → U22_aaa(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
part44_in_aaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_aaaa(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
U6_aaaa(T148, T149, T150, X282, X283, less13_out_aa(T148, T149)) → part44_out_aaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_aaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_aaaa(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_aaaa(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_aaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_aaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_aaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_aaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_aaaa(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
part44_in_aaaa(T182, [], [], []) → part44_out_aaaa(T182, [], [], [])
U9_aaaa(T175, T173, T176, X333, X334, part44_out_aaaa(T175, T176, X333, X334)) → part44_out_aaaa(T175, .(T173, T176), X333, .(T173, X334))
U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaaa(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
qs60_in_aa([], []) → qs60_out_aa([], [])
qs60_in_aa(.(T192, T193), X370) → U20_aa(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
p43_in_aaaaaaa(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaaa(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaaa(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
app71_in_aaaa([], T212, T213, .(T212, T213)) → app71_out_aaaa([], T212, T213, .(T212, T213))
app71_in_aaaa(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaaa(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
U21_aaaa(T222, T226, T227, T228, X403, app71_out_aaaa(T226, T227, T228, X403)) → app71_out_aaaa(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_out_aaaa(T198, T199, T197, X234)) → p43_out_aaaaaaa(T199, T123, T127, T184, T198, T197, X234)
U20_aa(T192, T193, X370, p43_out_aaaaaaa(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_aa(.(T192, T193), X370)
U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaaa(T129, T123, T127, T128, X232, X233, X234)
U22_aaa(T122, T123, X234, p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aaa(T122, T123, X234)
U30_ag(T29, T54, T30, qs39_out_aaa(T54, T52, X11)) → qs1_out_ag(.(T29, .(T54, T30)), [])
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U31_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_ag(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U32_ag(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_ag(T29, T54, T30, qs60_in_aa(T108, X12))
U33_ag(T29, T54, T30, qs60_out_aa(T108, X12)) → qs1_out_ag(.(T29, .(T54, T30)), [])
qs1_in_ag(.(T264, .(T266, T265)), []) → U34_ag(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
U34_ag(T264, T266, T265, part44_out_aaaa(T264, T265, X454, X455)) → qs1_out_ag(.(T264, .(T266, T265)), [])
qs1_in_ag(.(T273, .(T272, T265)), []) → U35_ag(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_ag(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_ag(T273, T272, T265, qs60_in_aa(T270, X11))
U36_ag(T273, T272, T265, qs60_out_aa(T270, X11)) → qs1_out_ag(.(T273, .(T272, T265)), [])
qs1_in_ag(.(T280, .(T278, T265)), []) → U37_ag(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_ag(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_ag(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U38_ag(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_ag(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U39_ag(T280, T278, T265, qs39_out_aaa(T278, T279, X12)) → qs1_out_ag(.(T280, .(T278, T265)), [])
qs1_in_ag(.(T305, []), []) → U40_ag(T305, qs100_in_a(X11))
qs100_in_a([]) → qs100_out_a([])
U40_ag(T305, qs100_out_a(X11)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T305, []), []) → U41_ag(T305, qs100_in_a(T309))
U41_ag(T305, qs100_out_a(T309)) → U42_ag(T305, qs100_in_a(X12))
U42_ag(T305, qs100_out_a(X12)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T347, .(T348, T349)), T329) → U43_ag(T347, T348, T349, T329, less13_in_aa(T347, T348))
U43_ag(T347, T348, T349, T329, less13_out_aa(T347, T348)) → qs1_out_ag(.(T347, .(T348, T349)), T329)
qs1_in_ag(.(T352, .(T354, T353)), T329) → U44_ag(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_ag(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_ag(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U45_ag(T352, T354, T353, T329, part23_out_gaaa(T352, T353, X581, X582)) → qs1_out_ag(.(T352, .(T354, T353)), T329)
qs1_in_ag(.(T352, .(T363, T353)), T329) → U46_ag(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U47_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_ag(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U48_ag(T352, T363, T353, T329, qs39_out_aaa(T363, T361, X543)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_ag(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U50_ag(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_ag(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U51_ag(T352, T363, T353, T329, qs60_out_aa(T371, X544)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
qs1_in_ag(.(T390, .(T363, T353)), .(T390, T391)) → U52_ag(T390, T363, T353, T391, less13_in_ga(T390, T363))
U52_ag(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_ag(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U53_ag(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_ag(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
qs39_in_aag(T122, T123, X234) → U22_aag(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaag(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaag(T129, T123, T127, T128, X232, X233, X234)
p43_in_aaaaaag(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaag(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaag(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
app71_in_aaag([], T212, T213, .(T212, T213)) → app71_out_aaag([], T212, T213, .(T212, T213))
app71_in_aaag(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaag(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
U21_aaag(T222, T226, T227, T228, X403, app71_out_aaag(T226, T227, T228, X403)) → app71_out_aaag(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_out_aaag(T198, T199, T197, X234)) → p43_out_aaaaaag(T199, T123, T127, T184, T198, T197, X234)
U22_aag(T122, T123, X234, p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aag(T122, T123, X234)
U54_ag(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_ag(T390, T363, T353, T391, qs60_in_ag(T371, T391))
qs60_in_ag([], []) → qs60_out_ag([], [])
qs60_in_ag(.(T192, T193), X370) → U20_ag(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
U20_ag(T192, T193, X370, p43_out_aaaaaag(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_ag(.(T192, T193), X370)
U55_ag(T390, T363, T353, T391, qs60_out_ag(T371, T391)) → qs1_out_ag(.(T390, .(T363, T353)), .(T390, T391))
qs1_in_ag(.(T404, .(T363, T353)), .(T402, T406)) → U56_ag(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
U56_ag(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_ag(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U57_ag(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_ag(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U58_ag(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_ag(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U59_ag(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_ag(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
app131_in_agag([], T421, T422, .(T421, T422)) → app131_out_agag([], T421, T422, .(T421, T422))
app131_in_agag(.(T433, T438), T435, T439, .(T433, T437)) → U23_agag(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
U23_agag(T433, T438, T435, T439, T437, app131_out_agag(T438, T435, T439, T437)) → app131_out_agag(.(T433, T438), T435, T439, .(T433, T437))
U60_ag(T404, T363, T353, T402, T406, app131_out_agag(T407, T404, T408, T406)) → qs1_out_ag(.(T404, .(T363, T353)), .(T402, T406))
qs1_in_ag(.(T459, .(T461, T460)), T329) → U61_ag(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
U61_ag(T459, T461, T460, T329, part44_out_aaaa(T459, T460, X705, X706)) → qs1_out_ag(.(T459, .(T461, T460)), T329)
qs1_in_ag(.(T468, .(T467, T460)), T329) → U62_ag(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_ag(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_ag(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U63_ag(T468, T467, T460, T329, qs60_out_aa(T465, X543)) → qs1_out_ag(.(T468, .(T467, T460)), T329)
qs1_in_ag(.(T476, .(T474, T460)), T329) → U64_ag(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_ag(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_ag(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U65_ag(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_ag(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U66_ag(T476, T474, T460, T329, qs39_out_aaa(T474, T475, X544)) → qs1_out_ag(.(T476, .(T474, T460)), T329)
qs1_in_ag(.(T498, .(T474, T460)), .(T498, T499)) → U67_ag(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
part44_in_gaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_gaaa(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
U6_gaaa(T148, T149, T150, X282, X283, less13_out_ga(T148, T149)) → part44_out_gaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_gaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_gaaa(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_gaaa(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_gaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_gaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_gaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_gaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_gaaa(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
part44_in_gaaa(T182, [], [], []) → part44_out_gaaa(T182, [], [], [])
U9_gaaa(T175, T173, T176, X333, X334, part44_out_gaaa(T175, T176, X333, X334)) → part44_out_gaaa(T175, .(T173, T176), X333, .(T173, X334))
U67_ag(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_ag(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U68_ag(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_ag(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U69_ag(T498, T474, T460, T499, qs39_out_aag(T474, T475, T499)) → qs1_out_ag(.(T498, .(T474, T460)), .(T498, T499))
qs1_in_ag(.(T516, .(T474, T460)), .(T510, T514)) → U70_ag(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
U70_ag(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_ag(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U71_ag(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_ag(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U72_ag(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_ag(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
app157_in_aaag([], T530, T531, .(T530, T531)) → app157_out_aaag([], T530, T531, .(T530, T531))
app157_in_aaag(.(T542, T547), T548, T549, .(T542, T546)) → U24_aaag(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
U24_aaag(T542, T547, T548, T549, T546, app157_out_aaag(T547, T548, T549, T546)) → app157_out_aaag(.(T542, T547), T548, T549, .(T542, T546))
U73_ag(T516, T474, T460, T510, T514, app157_out_aaag(T515, T516, T517, T514)) → qs1_out_ag(.(T516, .(T474, T460)), .(T510, T514))
qs1_in_ag(.(T557, []), T329) → U74_ag(T557, T329, qs100_in_a(X543))
U74_ag(T557, T329, qs100_out_a(X543)) → qs1_out_ag(.(T557, []), T329)
qs1_in_ag(.(T557, []), T329) → U75_ag(T557, T329, qs100_in_a(T560))
U75_ag(T557, T329, qs100_out_a(T560)) → U76_ag(T557, T329, qs100_in_a(X544))
U76_ag(T557, T329, qs100_out_a(X544)) → qs1_out_ag(.(T557, []), T329)
U75_ag(T557, T329, qs100_out_a(T560)) → U77_ag(T557, T329, T560, qs100_in_a(T563))
U77_ag(T557, T329, T560, qs100_out_a(T563)) → U78_ag(T557, T329, app157_in_gagg(T560, T557, T563, T329))
app157_in_gagg([], T530, T531, .(T530, T531)) → app157_out_gagg([], T530, T531, .(T530, T531))
app157_in_gagg(.(T542, T547), T548, T549, .(T542, T546)) → U24_gagg(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
U24_gagg(T542, T547, T548, T549, T546, app157_out_gagg(T547, T548, T549, T546)) → app157_out_gagg(.(T542, T547), T548, T549, .(T542, T546))
U78_ag(T557, T329, app157_out_gagg(T560, T557, T563, T329)) → qs1_out_ag(.(T557, []), T329)
APP157_IN_AAAG(.(T542, T547), T548, T549, .(T542, T546)) → APP157_IN_AAAG(T547, T548, T549, T546)
APP157_IN_AAAG(.(T542, T546)) → APP157_IN_AAAG(T546)
From the DPs we obtained the following set of size-change graphs:
APP131_IN_AGAG(.(T433, T438), T435, T439, .(T433, T437)) → APP131_IN_AGAG(T438, T435, T439, T437)
qs1_in_ag([], []) → qs1_out_ag([], [])
qs1_in_ag(.(T24, .(T25, T26)), []) → U25_ag(T24, T25, T26, less13_in_aa(T24, T25))
less13_in_aa(0, s(T38)) → less13_out_aa(0, s(T38))
less13_in_aa(s(T45), s(T46)) → U1_aa(T45, T46, less13_in_aa(T45, T46))
U1_aa(T45, T46, less13_out_aa(T45, T46)) → less13_out_aa(s(T45), s(T46))
U25_ag(T24, T25, T26, less13_out_aa(T24, T25)) → qs1_out_ag(.(T24, .(T25, T26)), [])
qs1_in_ag(.(T29, .(T31, T30)), []) → U26_ag(T29, T31, T30, less13_in_aa(T29, T31))
U26_ag(T29, T31, T30, less13_out_aa(T29, T31)) → U27_ag(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
part23_in_gaaa(T70, .(T73, T74), .(T73, X123), X124) → U2_gaaa(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
U2_gaaa(T70, T73, T74, X123, X124, less13_out_ga(T70, T73)) → part23_out_gaaa(T70, .(T73, T74), .(T73, X123), X124)
part23_in_gaaa(T70, .(T73, T77), .(T73, X123), X124) → U3_gaaa(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
part23_in_gaaa(T95, .(T96, T98), X174, .(T96, X175)) → U5_gaaa(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
part23_in_gaaa(T104, [], [], []) → part23_out_gaaa(T104, [], [], [])
U5_gaaa(T95, T96, T98, X174, X175, part23_out_gaaa(T95, T98, X174, X175)) → part23_out_gaaa(T95, .(T96, T98), X174, .(T96, X175))
U4_gaaa(T70, T73, T77, X123, X124, part23_out_gaaa(T70, T77, X123, X124)) → part23_out_gaaa(T70, .(T73, T77), .(T73, X123), X124)
U27_ag(T29, T31, T30, part23_out_gaaa(T29, T30, X49, X50)) → qs1_out_ag(.(T29, .(T31, T30)), [])
qs1_in_ag(.(T29, .(T54, T30)), []) → U28_ag(T29, T54, T30, less13_in_aa(T29, T54))
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U29_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U29_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_ag(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
qs39_in_aaa(T122, T123, X234) → U22_aaa(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
part44_in_aaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_aaaa(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
U6_aaaa(T148, T149, T150, X282, X283, less13_out_aa(T148, T149)) → part44_out_aaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_aaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_aaaa(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_aaaa(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_aaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_aaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_aaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_aaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_aaaa(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
part44_in_aaaa(T182, [], [], []) → part44_out_aaaa(T182, [], [], [])
U9_aaaa(T175, T173, T176, X333, X334, part44_out_aaaa(T175, T176, X333, X334)) → part44_out_aaaa(T175, .(T173, T176), X333, .(T173, X334))
U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaaa(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
qs60_in_aa([], []) → qs60_out_aa([], [])
qs60_in_aa(.(T192, T193), X370) → U20_aa(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
p43_in_aaaaaaa(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaaa(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaaa(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
app71_in_aaaa([], T212, T213, .(T212, T213)) → app71_out_aaaa([], T212, T213, .(T212, T213))
app71_in_aaaa(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaaa(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
U21_aaaa(T222, T226, T227, T228, X403, app71_out_aaaa(T226, T227, T228, X403)) → app71_out_aaaa(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_out_aaaa(T198, T199, T197, X234)) → p43_out_aaaaaaa(T199, T123, T127, T184, T198, T197, X234)
U20_aa(T192, T193, X370, p43_out_aaaaaaa(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_aa(.(T192, T193), X370)
U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaaa(T129, T123, T127, T128, X232, X233, X234)
U22_aaa(T122, T123, X234, p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aaa(T122, T123, X234)
U30_ag(T29, T54, T30, qs39_out_aaa(T54, T52, X11)) → qs1_out_ag(.(T29, .(T54, T30)), [])
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U31_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_ag(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U32_ag(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_ag(T29, T54, T30, qs60_in_aa(T108, X12))
U33_ag(T29, T54, T30, qs60_out_aa(T108, X12)) → qs1_out_ag(.(T29, .(T54, T30)), [])
qs1_in_ag(.(T264, .(T266, T265)), []) → U34_ag(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
U34_ag(T264, T266, T265, part44_out_aaaa(T264, T265, X454, X455)) → qs1_out_ag(.(T264, .(T266, T265)), [])
qs1_in_ag(.(T273, .(T272, T265)), []) → U35_ag(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_ag(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_ag(T273, T272, T265, qs60_in_aa(T270, X11))
U36_ag(T273, T272, T265, qs60_out_aa(T270, X11)) → qs1_out_ag(.(T273, .(T272, T265)), [])
qs1_in_ag(.(T280, .(T278, T265)), []) → U37_ag(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_ag(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_ag(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U38_ag(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_ag(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U39_ag(T280, T278, T265, qs39_out_aaa(T278, T279, X12)) → qs1_out_ag(.(T280, .(T278, T265)), [])
qs1_in_ag(.(T305, []), []) → U40_ag(T305, qs100_in_a(X11))
qs100_in_a([]) → qs100_out_a([])
U40_ag(T305, qs100_out_a(X11)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T305, []), []) → U41_ag(T305, qs100_in_a(T309))
U41_ag(T305, qs100_out_a(T309)) → U42_ag(T305, qs100_in_a(X12))
U42_ag(T305, qs100_out_a(X12)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T347, .(T348, T349)), T329) → U43_ag(T347, T348, T349, T329, less13_in_aa(T347, T348))
U43_ag(T347, T348, T349, T329, less13_out_aa(T347, T348)) → qs1_out_ag(.(T347, .(T348, T349)), T329)
qs1_in_ag(.(T352, .(T354, T353)), T329) → U44_ag(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_ag(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_ag(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U45_ag(T352, T354, T353, T329, part23_out_gaaa(T352, T353, X581, X582)) → qs1_out_ag(.(T352, .(T354, T353)), T329)
qs1_in_ag(.(T352, .(T363, T353)), T329) → U46_ag(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U47_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_ag(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U48_ag(T352, T363, T353, T329, qs39_out_aaa(T363, T361, X543)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_ag(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U50_ag(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_ag(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U51_ag(T352, T363, T353, T329, qs60_out_aa(T371, X544)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
qs1_in_ag(.(T390, .(T363, T353)), .(T390, T391)) → U52_ag(T390, T363, T353, T391, less13_in_ga(T390, T363))
U52_ag(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_ag(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U53_ag(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_ag(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
qs39_in_aag(T122, T123, X234) → U22_aag(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaag(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaag(T129, T123, T127, T128, X232, X233, X234)
p43_in_aaaaaag(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaag(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaag(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
app71_in_aaag([], T212, T213, .(T212, T213)) → app71_out_aaag([], T212, T213, .(T212, T213))
app71_in_aaag(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaag(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
U21_aaag(T222, T226, T227, T228, X403, app71_out_aaag(T226, T227, T228, X403)) → app71_out_aaag(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_out_aaag(T198, T199, T197, X234)) → p43_out_aaaaaag(T199, T123, T127, T184, T198, T197, X234)
U22_aag(T122, T123, X234, p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aag(T122, T123, X234)
U54_ag(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_ag(T390, T363, T353, T391, qs60_in_ag(T371, T391))
qs60_in_ag([], []) → qs60_out_ag([], [])
qs60_in_ag(.(T192, T193), X370) → U20_ag(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
U20_ag(T192, T193, X370, p43_out_aaaaaag(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_ag(.(T192, T193), X370)
U55_ag(T390, T363, T353, T391, qs60_out_ag(T371, T391)) → qs1_out_ag(.(T390, .(T363, T353)), .(T390, T391))
qs1_in_ag(.(T404, .(T363, T353)), .(T402, T406)) → U56_ag(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
U56_ag(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_ag(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U57_ag(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_ag(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U58_ag(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_ag(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U59_ag(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_ag(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
app131_in_agag([], T421, T422, .(T421, T422)) → app131_out_agag([], T421, T422, .(T421, T422))
app131_in_agag(.(T433, T438), T435, T439, .(T433, T437)) → U23_agag(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
U23_agag(T433, T438, T435, T439, T437, app131_out_agag(T438, T435, T439, T437)) → app131_out_agag(.(T433, T438), T435, T439, .(T433, T437))
U60_ag(T404, T363, T353, T402, T406, app131_out_agag(T407, T404, T408, T406)) → qs1_out_ag(.(T404, .(T363, T353)), .(T402, T406))
qs1_in_ag(.(T459, .(T461, T460)), T329) → U61_ag(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
U61_ag(T459, T461, T460, T329, part44_out_aaaa(T459, T460, X705, X706)) → qs1_out_ag(.(T459, .(T461, T460)), T329)
qs1_in_ag(.(T468, .(T467, T460)), T329) → U62_ag(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_ag(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_ag(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U63_ag(T468, T467, T460, T329, qs60_out_aa(T465, X543)) → qs1_out_ag(.(T468, .(T467, T460)), T329)
qs1_in_ag(.(T476, .(T474, T460)), T329) → U64_ag(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_ag(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_ag(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U65_ag(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_ag(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U66_ag(T476, T474, T460, T329, qs39_out_aaa(T474, T475, X544)) → qs1_out_ag(.(T476, .(T474, T460)), T329)
qs1_in_ag(.(T498, .(T474, T460)), .(T498, T499)) → U67_ag(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
part44_in_gaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_gaaa(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
U6_gaaa(T148, T149, T150, X282, X283, less13_out_ga(T148, T149)) → part44_out_gaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_gaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_gaaa(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_gaaa(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_gaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_gaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_gaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_gaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_gaaa(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
part44_in_gaaa(T182, [], [], []) → part44_out_gaaa(T182, [], [], [])
U9_gaaa(T175, T173, T176, X333, X334, part44_out_gaaa(T175, T176, X333, X334)) → part44_out_gaaa(T175, .(T173, T176), X333, .(T173, X334))
U67_ag(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_ag(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U68_ag(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_ag(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U69_ag(T498, T474, T460, T499, qs39_out_aag(T474, T475, T499)) → qs1_out_ag(.(T498, .(T474, T460)), .(T498, T499))
qs1_in_ag(.(T516, .(T474, T460)), .(T510, T514)) → U70_ag(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
U70_ag(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_ag(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U71_ag(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_ag(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U72_ag(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_ag(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
app157_in_aaag([], T530, T531, .(T530, T531)) → app157_out_aaag([], T530, T531, .(T530, T531))
app157_in_aaag(.(T542, T547), T548, T549, .(T542, T546)) → U24_aaag(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
U24_aaag(T542, T547, T548, T549, T546, app157_out_aaag(T547, T548, T549, T546)) → app157_out_aaag(.(T542, T547), T548, T549, .(T542, T546))
U73_ag(T516, T474, T460, T510, T514, app157_out_aaag(T515, T516, T517, T514)) → qs1_out_ag(.(T516, .(T474, T460)), .(T510, T514))
qs1_in_ag(.(T557, []), T329) → U74_ag(T557, T329, qs100_in_a(X543))
U74_ag(T557, T329, qs100_out_a(X543)) → qs1_out_ag(.(T557, []), T329)
qs1_in_ag(.(T557, []), T329) → U75_ag(T557, T329, qs100_in_a(T560))
U75_ag(T557, T329, qs100_out_a(T560)) → U76_ag(T557, T329, qs100_in_a(X544))
U76_ag(T557, T329, qs100_out_a(X544)) → qs1_out_ag(.(T557, []), T329)
U75_ag(T557, T329, qs100_out_a(T560)) → U77_ag(T557, T329, T560, qs100_in_a(T563))
U77_ag(T557, T329, T560, qs100_out_a(T563)) → U78_ag(T557, T329, app157_in_gagg(T560, T557, T563, T329))
app157_in_gagg([], T530, T531, .(T530, T531)) → app157_out_gagg([], T530, T531, .(T530, T531))
app157_in_gagg(.(T542, T547), T548, T549, .(T542, T546)) → U24_gagg(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
U24_gagg(T542, T547, T548, T549, T546, app157_out_gagg(T547, T548, T549, T546)) → app157_out_gagg(.(T542, T547), T548, T549, .(T542, T546))
U78_ag(T557, T329, app157_out_gagg(T560, T557, T563, T329)) → qs1_out_ag(.(T557, []), T329)
APP131_IN_AGAG(.(T433, T438), T435, T439, .(T433, T437)) → APP131_IN_AGAG(T438, T435, T439, T437)
APP131_IN_AGAG(T435, .(T433, T437)) → APP131_IN_AGAG(T435, T437)
From the DPs we obtained the following set of size-change graphs:
APP71_IN_AAAG(.(T222, T226), T227, T228, .(T222, X403)) → APP71_IN_AAAG(T226, T227, T228, X403)
qs1_in_ag([], []) → qs1_out_ag([], [])
qs1_in_ag(.(T24, .(T25, T26)), []) → U25_ag(T24, T25, T26, less13_in_aa(T24, T25))
less13_in_aa(0, s(T38)) → less13_out_aa(0, s(T38))
less13_in_aa(s(T45), s(T46)) → U1_aa(T45, T46, less13_in_aa(T45, T46))
U1_aa(T45, T46, less13_out_aa(T45, T46)) → less13_out_aa(s(T45), s(T46))
U25_ag(T24, T25, T26, less13_out_aa(T24, T25)) → qs1_out_ag(.(T24, .(T25, T26)), [])
qs1_in_ag(.(T29, .(T31, T30)), []) → U26_ag(T29, T31, T30, less13_in_aa(T29, T31))
U26_ag(T29, T31, T30, less13_out_aa(T29, T31)) → U27_ag(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
part23_in_gaaa(T70, .(T73, T74), .(T73, X123), X124) → U2_gaaa(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
U2_gaaa(T70, T73, T74, X123, X124, less13_out_ga(T70, T73)) → part23_out_gaaa(T70, .(T73, T74), .(T73, X123), X124)
part23_in_gaaa(T70, .(T73, T77), .(T73, X123), X124) → U3_gaaa(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
part23_in_gaaa(T95, .(T96, T98), X174, .(T96, X175)) → U5_gaaa(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
part23_in_gaaa(T104, [], [], []) → part23_out_gaaa(T104, [], [], [])
U5_gaaa(T95, T96, T98, X174, X175, part23_out_gaaa(T95, T98, X174, X175)) → part23_out_gaaa(T95, .(T96, T98), X174, .(T96, X175))
U4_gaaa(T70, T73, T77, X123, X124, part23_out_gaaa(T70, T77, X123, X124)) → part23_out_gaaa(T70, .(T73, T77), .(T73, X123), X124)
U27_ag(T29, T31, T30, part23_out_gaaa(T29, T30, X49, X50)) → qs1_out_ag(.(T29, .(T31, T30)), [])
qs1_in_ag(.(T29, .(T54, T30)), []) → U28_ag(T29, T54, T30, less13_in_aa(T29, T54))
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U29_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U29_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_ag(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
qs39_in_aaa(T122, T123, X234) → U22_aaa(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
part44_in_aaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_aaaa(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
U6_aaaa(T148, T149, T150, X282, X283, less13_out_aa(T148, T149)) → part44_out_aaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_aaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_aaaa(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_aaaa(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_aaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_aaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_aaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_aaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_aaaa(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
part44_in_aaaa(T182, [], [], []) → part44_out_aaaa(T182, [], [], [])
U9_aaaa(T175, T173, T176, X333, X334, part44_out_aaaa(T175, T176, X333, X334)) → part44_out_aaaa(T175, .(T173, T176), X333, .(T173, X334))
U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaaa(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
qs60_in_aa([], []) → qs60_out_aa([], [])
qs60_in_aa(.(T192, T193), X370) → U20_aa(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
p43_in_aaaaaaa(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaaa(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaaa(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
app71_in_aaaa([], T212, T213, .(T212, T213)) → app71_out_aaaa([], T212, T213, .(T212, T213))
app71_in_aaaa(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaaa(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
U21_aaaa(T222, T226, T227, T228, X403, app71_out_aaaa(T226, T227, T228, X403)) → app71_out_aaaa(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_out_aaaa(T198, T199, T197, X234)) → p43_out_aaaaaaa(T199, T123, T127, T184, T198, T197, X234)
U20_aa(T192, T193, X370, p43_out_aaaaaaa(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_aa(.(T192, T193), X370)
U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaaa(T129, T123, T127, T128, X232, X233, X234)
U22_aaa(T122, T123, X234, p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aaa(T122, T123, X234)
U30_ag(T29, T54, T30, qs39_out_aaa(T54, T52, X11)) → qs1_out_ag(.(T29, .(T54, T30)), [])
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U31_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_ag(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U32_ag(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_ag(T29, T54, T30, qs60_in_aa(T108, X12))
U33_ag(T29, T54, T30, qs60_out_aa(T108, X12)) → qs1_out_ag(.(T29, .(T54, T30)), [])
qs1_in_ag(.(T264, .(T266, T265)), []) → U34_ag(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
U34_ag(T264, T266, T265, part44_out_aaaa(T264, T265, X454, X455)) → qs1_out_ag(.(T264, .(T266, T265)), [])
qs1_in_ag(.(T273, .(T272, T265)), []) → U35_ag(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_ag(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_ag(T273, T272, T265, qs60_in_aa(T270, X11))
U36_ag(T273, T272, T265, qs60_out_aa(T270, X11)) → qs1_out_ag(.(T273, .(T272, T265)), [])
qs1_in_ag(.(T280, .(T278, T265)), []) → U37_ag(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_ag(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_ag(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U38_ag(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_ag(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U39_ag(T280, T278, T265, qs39_out_aaa(T278, T279, X12)) → qs1_out_ag(.(T280, .(T278, T265)), [])
qs1_in_ag(.(T305, []), []) → U40_ag(T305, qs100_in_a(X11))
qs100_in_a([]) → qs100_out_a([])
U40_ag(T305, qs100_out_a(X11)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T305, []), []) → U41_ag(T305, qs100_in_a(T309))
U41_ag(T305, qs100_out_a(T309)) → U42_ag(T305, qs100_in_a(X12))
U42_ag(T305, qs100_out_a(X12)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T347, .(T348, T349)), T329) → U43_ag(T347, T348, T349, T329, less13_in_aa(T347, T348))
U43_ag(T347, T348, T349, T329, less13_out_aa(T347, T348)) → qs1_out_ag(.(T347, .(T348, T349)), T329)
qs1_in_ag(.(T352, .(T354, T353)), T329) → U44_ag(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_ag(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_ag(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U45_ag(T352, T354, T353, T329, part23_out_gaaa(T352, T353, X581, X582)) → qs1_out_ag(.(T352, .(T354, T353)), T329)
qs1_in_ag(.(T352, .(T363, T353)), T329) → U46_ag(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U47_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_ag(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U48_ag(T352, T363, T353, T329, qs39_out_aaa(T363, T361, X543)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_ag(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U50_ag(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_ag(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U51_ag(T352, T363, T353, T329, qs60_out_aa(T371, X544)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
qs1_in_ag(.(T390, .(T363, T353)), .(T390, T391)) → U52_ag(T390, T363, T353, T391, less13_in_ga(T390, T363))
U52_ag(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_ag(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U53_ag(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_ag(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
qs39_in_aag(T122, T123, X234) → U22_aag(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaag(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaag(T129, T123, T127, T128, X232, X233, X234)
p43_in_aaaaaag(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaag(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaag(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
app71_in_aaag([], T212, T213, .(T212, T213)) → app71_out_aaag([], T212, T213, .(T212, T213))
app71_in_aaag(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaag(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
U21_aaag(T222, T226, T227, T228, X403, app71_out_aaag(T226, T227, T228, X403)) → app71_out_aaag(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_out_aaag(T198, T199, T197, X234)) → p43_out_aaaaaag(T199, T123, T127, T184, T198, T197, X234)
U22_aag(T122, T123, X234, p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aag(T122, T123, X234)
U54_ag(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_ag(T390, T363, T353, T391, qs60_in_ag(T371, T391))
qs60_in_ag([], []) → qs60_out_ag([], [])
qs60_in_ag(.(T192, T193), X370) → U20_ag(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
U20_ag(T192, T193, X370, p43_out_aaaaaag(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_ag(.(T192, T193), X370)
U55_ag(T390, T363, T353, T391, qs60_out_ag(T371, T391)) → qs1_out_ag(.(T390, .(T363, T353)), .(T390, T391))
qs1_in_ag(.(T404, .(T363, T353)), .(T402, T406)) → U56_ag(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
U56_ag(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_ag(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U57_ag(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_ag(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U58_ag(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_ag(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U59_ag(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_ag(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
app131_in_agag([], T421, T422, .(T421, T422)) → app131_out_agag([], T421, T422, .(T421, T422))
app131_in_agag(.(T433, T438), T435, T439, .(T433, T437)) → U23_agag(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
U23_agag(T433, T438, T435, T439, T437, app131_out_agag(T438, T435, T439, T437)) → app131_out_agag(.(T433, T438), T435, T439, .(T433, T437))
U60_ag(T404, T363, T353, T402, T406, app131_out_agag(T407, T404, T408, T406)) → qs1_out_ag(.(T404, .(T363, T353)), .(T402, T406))
qs1_in_ag(.(T459, .(T461, T460)), T329) → U61_ag(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
U61_ag(T459, T461, T460, T329, part44_out_aaaa(T459, T460, X705, X706)) → qs1_out_ag(.(T459, .(T461, T460)), T329)
qs1_in_ag(.(T468, .(T467, T460)), T329) → U62_ag(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_ag(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_ag(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U63_ag(T468, T467, T460, T329, qs60_out_aa(T465, X543)) → qs1_out_ag(.(T468, .(T467, T460)), T329)
qs1_in_ag(.(T476, .(T474, T460)), T329) → U64_ag(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_ag(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_ag(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U65_ag(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_ag(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U66_ag(T476, T474, T460, T329, qs39_out_aaa(T474, T475, X544)) → qs1_out_ag(.(T476, .(T474, T460)), T329)
qs1_in_ag(.(T498, .(T474, T460)), .(T498, T499)) → U67_ag(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
part44_in_gaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_gaaa(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
U6_gaaa(T148, T149, T150, X282, X283, less13_out_ga(T148, T149)) → part44_out_gaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_gaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_gaaa(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_gaaa(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_gaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_gaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_gaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_gaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_gaaa(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
part44_in_gaaa(T182, [], [], []) → part44_out_gaaa(T182, [], [], [])
U9_gaaa(T175, T173, T176, X333, X334, part44_out_gaaa(T175, T176, X333, X334)) → part44_out_gaaa(T175, .(T173, T176), X333, .(T173, X334))
U67_ag(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_ag(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U68_ag(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_ag(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U69_ag(T498, T474, T460, T499, qs39_out_aag(T474, T475, T499)) → qs1_out_ag(.(T498, .(T474, T460)), .(T498, T499))
qs1_in_ag(.(T516, .(T474, T460)), .(T510, T514)) → U70_ag(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
U70_ag(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_ag(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U71_ag(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_ag(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U72_ag(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_ag(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
app157_in_aaag([], T530, T531, .(T530, T531)) → app157_out_aaag([], T530, T531, .(T530, T531))
app157_in_aaag(.(T542, T547), T548, T549, .(T542, T546)) → U24_aaag(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
U24_aaag(T542, T547, T548, T549, T546, app157_out_aaag(T547, T548, T549, T546)) → app157_out_aaag(.(T542, T547), T548, T549, .(T542, T546))
U73_ag(T516, T474, T460, T510, T514, app157_out_aaag(T515, T516, T517, T514)) → qs1_out_ag(.(T516, .(T474, T460)), .(T510, T514))
qs1_in_ag(.(T557, []), T329) → U74_ag(T557, T329, qs100_in_a(X543))
U74_ag(T557, T329, qs100_out_a(X543)) → qs1_out_ag(.(T557, []), T329)
qs1_in_ag(.(T557, []), T329) → U75_ag(T557, T329, qs100_in_a(T560))
U75_ag(T557, T329, qs100_out_a(T560)) → U76_ag(T557, T329, qs100_in_a(X544))
U76_ag(T557, T329, qs100_out_a(X544)) → qs1_out_ag(.(T557, []), T329)
U75_ag(T557, T329, qs100_out_a(T560)) → U77_ag(T557, T329, T560, qs100_in_a(T563))
U77_ag(T557, T329, T560, qs100_out_a(T563)) → U78_ag(T557, T329, app157_in_gagg(T560, T557, T563, T329))
app157_in_gagg([], T530, T531, .(T530, T531)) → app157_out_gagg([], T530, T531, .(T530, T531))
app157_in_gagg(.(T542, T547), T548, T549, .(T542, T546)) → U24_gagg(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
U24_gagg(T542, T547, T548, T549, T546, app157_out_gagg(T547, T548, T549, T546)) → app157_out_gagg(.(T542, T547), T548, T549, .(T542, T546))
U78_ag(T557, T329, app157_out_gagg(T560, T557, T563, T329)) → qs1_out_ag(.(T557, []), T329)
APP71_IN_AAAG(.(T222, T226), T227, T228, .(T222, X403)) → APP71_IN_AAAG(T226, T227, T228, X403)
APP71_IN_AAAG(.(T222, X403)) → APP71_IN_AAAG(X403)
From the DPs we obtained the following set of size-change graphs:
APP71_IN_AAAA(.(T222, T226), T227, T228, .(T222, X403)) → APP71_IN_AAAA(T226, T227, T228, X403)
qs1_in_ag([], []) → qs1_out_ag([], [])
qs1_in_ag(.(T24, .(T25, T26)), []) → U25_ag(T24, T25, T26, less13_in_aa(T24, T25))
less13_in_aa(0, s(T38)) → less13_out_aa(0, s(T38))
less13_in_aa(s(T45), s(T46)) → U1_aa(T45, T46, less13_in_aa(T45, T46))
U1_aa(T45, T46, less13_out_aa(T45, T46)) → less13_out_aa(s(T45), s(T46))
U25_ag(T24, T25, T26, less13_out_aa(T24, T25)) → qs1_out_ag(.(T24, .(T25, T26)), [])
qs1_in_ag(.(T29, .(T31, T30)), []) → U26_ag(T29, T31, T30, less13_in_aa(T29, T31))
U26_ag(T29, T31, T30, less13_out_aa(T29, T31)) → U27_ag(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
part23_in_gaaa(T70, .(T73, T74), .(T73, X123), X124) → U2_gaaa(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
U2_gaaa(T70, T73, T74, X123, X124, less13_out_ga(T70, T73)) → part23_out_gaaa(T70, .(T73, T74), .(T73, X123), X124)
part23_in_gaaa(T70, .(T73, T77), .(T73, X123), X124) → U3_gaaa(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
part23_in_gaaa(T95, .(T96, T98), X174, .(T96, X175)) → U5_gaaa(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
part23_in_gaaa(T104, [], [], []) → part23_out_gaaa(T104, [], [], [])
U5_gaaa(T95, T96, T98, X174, X175, part23_out_gaaa(T95, T98, X174, X175)) → part23_out_gaaa(T95, .(T96, T98), X174, .(T96, X175))
U4_gaaa(T70, T73, T77, X123, X124, part23_out_gaaa(T70, T77, X123, X124)) → part23_out_gaaa(T70, .(T73, T77), .(T73, X123), X124)
U27_ag(T29, T31, T30, part23_out_gaaa(T29, T30, X49, X50)) → qs1_out_ag(.(T29, .(T31, T30)), [])
qs1_in_ag(.(T29, .(T54, T30)), []) → U28_ag(T29, T54, T30, less13_in_aa(T29, T54))
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U29_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U29_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_ag(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
qs39_in_aaa(T122, T123, X234) → U22_aaa(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
part44_in_aaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_aaaa(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
U6_aaaa(T148, T149, T150, X282, X283, less13_out_aa(T148, T149)) → part44_out_aaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_aaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_aaaa(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_aaaa(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_aaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_aaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_aaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_aaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_aaaa(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
part44_in_aaaa(T182, [], [], []) → part44_out_aaaa(T182, [], [], [])
U9_aaaa(T175, T173, T176, X333, X334, part44_out_aaaa(T175, T176, X333, X334)) → part44_out_aaaa(T175, .(T173, T176), X333, .(T173, X334))
U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaaa(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
qs60_in_aa([], []) → qs60_out_aa([], [])
qs60_in_aa(.(T192, T193), X370) → U20_aa(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
p43_in_aaaaaaa(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaaa(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaaa(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
app71_in_aaaa([], T212, T213, .(T212, T213)) → app71_out_aaaa([], T212, T213, .(T212, T213))
app71_in_aaaa(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaaa(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
U21_aaaa(T222, T226, T227, T228, X403, app71_out_aaaa(T226, T227, T228, X403)) → app71_out_aaaa(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_out_aaaa(T198, T199, T197, X234)) → p43_out_aaaaaaa(T199, T123, T127, T184, T198, T197, X234)
U20_aa(T192, T193, X370, p43_out_aaaaaaa(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_aa(.(T192, T193), X370)
U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaaa(T129, T123, T127, T128, X232, X233, X234)
U22_aaa(T122, T123, X234, p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aaa(T122, T123, X234)
U30_ag(T29, T54, T30, qs39_out_aaa(T54, T52, X11)) → qs1_out_ag(.(T29, .(T54, T30)), [])
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U31_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_ag(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U32_ag(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_ag(T29, T54, T30, qs60_in_aa(T108, X12))
U33_ag(T29, T54, T30, qs60_out_aa(T108, X12)) → qs1_out_ag(.(T29, .(T54, T30)), [])
qs1_in_ag(.(T264, .(T266, T265)), []) → U34_ag(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
U34_ag(T264, T266, T265, part44_out_aaaa(T264, T265, X454, X455)) → qs1_out_ag(.(T264, .(T266, T265)), [])
qs1_in_ag(.(T273, .(T272, T265)), []) → U35_ag(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_ag(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_ag(T273, T272, T265, qs60_in_aa(T270, X11))
U36_ag(T273, T272, T265, qs60_out_aa(T270, X11)) → qs1_out_ag(.(T273, .(T272, T265)), [])
qs1_in_ag(.(T280, .(T278, T265)), []) → U37_ag(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_ag(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_ag(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U38_ag(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_ag(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U39_ag(T280, T278, T265, qs39_out_aaa(T278, T279, X12)) → qs1_out_ag(.(T280, .(T278, T265)), [])
qs1_in_ag(.(T305, []), []) → U40_ag(T305, qs100_in_a(X11))
qs100_in_a([]) → qs100_out_a([])
U40_ag(T305, qs100_out_a(X11)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T305, []), []) → U41_ag(T305, qs100_in_a(T309))
U41_ag(T305, qs100_out_a(T309)) → U42_ag(T305, qs100_in_a(X12))
U42_ag(T305, qs100_out_a(X12)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T347, .(T348, T349)), T329) → U43_ag(T347, T348, T349, T329, less13_in_aa(T347, T348))
U43_ag(T347, T348, T349, T329, less13_out_aa(T347, T348)) → qs1_out_ag(.(T347, .(T348, T349)), T329)
qs1_in_ag(.(T352, .(T354, T353)), T329) → U44_ag(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_ag(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_ag(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U45_ag(T352, T354, T353, T329, part23_out_gaaa(T352, T353, X581, X582)) → qs1_out_ag(.(T352, .(T354, T353)), T329)
qs1_in_ag(.(T352, .(T363, T353)), T329) → U46_ag(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U47_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_ag(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U48_ag(T352, T363, T353, T329, qs39_out_aaa(T363, T361, X543)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_ag(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U50_ag(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_ag(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U51_ag(T352, T363, T353, T329, qs60_out_aa(T371, X544)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
qs1_in_ag(.(T390, .(T363, T353)), .(T390, T391)) → U52_ag(T390, T363, T353, T391, less13_in_ga(T390, T363))
U52_ag(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_ag(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U53_ag(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_ag(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
qs39_in_aag(T122, T123, X234) → U22_aag(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaag(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaag(T129, T123, T127, T128, X232, X233, X234)
p43_in_aaaaaag(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaag(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaag(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
app71_in_aaag([], T212, T213, .(T212, T213)) → app71_out_aaag([], T212, T213, .(T212, T213))
app71_in_aaag(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaag(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
U21_aaag(T222, T226, T227, T228, X403, app71_out_aaag(T226, T227, T228, X403)) → app71_out_aaag(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_out_aaag(T198, T199, T197, X234)) → p43_out_aaaaaag(T199, T123, T127, T184, T198, T197, X234)
U22_aag(T122, T123, X234, p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aag(T122, T123, X234)
U54_ag(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_ag(T390, T363, T353, T391, qs60_in_ag(T371, T391))
qs60_in_ag([], []) → qs60_out_ag([], [])
qs60_in_ag(.(T192, T193), X370) → U20_ag(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
U20_ag(T192, T193, X370, p43_out_aaaaaag(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_ag(.(T192, T193), X370)
U55_ag(T390, T363, T353, T391, qs60_out_ag(T371, T391)) → qs1_out_ag(.(T390, .(T363, T353)), .(T390, T391))
qs1_in_ag(.(T404, .(T363, T353)), .(T402, T406)) → U56_ag(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
U56_ag(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_ag(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U57_ag(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_ag(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U58_ag(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_ag(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U59_ag(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_ag(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
app131_in_agag([], T421, T422, .(T421, T422)) → app131_out_agag([], T421, T422, .(T421, T422))
app131_in_agag(.(T433, T438), T435, T439, .(T433, T437)) → U23_agag(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
U23_agag(T433, T438, T435, T439, T437, app131_out_agag(T438, T435, T439, T437)) → app131_out_agag(.(T433, T438), T435, T439, .(T433, T437))
U60_ag(T404, T363, T353, T402, T406, app131_out_agag(T407, T404, T408, T406)) → qs1_out_ag(.(T404, .(T363, T353)), .(T402, T406))
qs1_in_ag(.(T459, .(T461, T460)), T329) → U61_ag(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
U61_ag(T459, T461, T460, T329, part44_out_aaaa(T459, T460, X705, X706)) → qs1_out_ag(.(T459, .(T461, T460)), T329)
qs1_in_ag(.(T468, .(T467, T460)), T329) → U62_ag(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_ag(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_ag(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U63_ag(T468, T467, T460, T329, qs60_out_aa(T465, X543)) → qs1_out_ag(.(T468, .(T467, T460)), T329)
qs1_in_ag(.(T476, .(T474, T460)), T329) → U64_ag(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_ag(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_ag(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U65_ag(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_ag(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U66_ag(T476, T474, T460, T329, qs39_out_aaa(T474, T475, X544)) → qs1_out_ag(.(T476, .(T474, T460)), T329)
qs1_in_ag(.(T498, .(T474, T460)), .(T498, T499)) → U67_ag(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
part44_in_gaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_gaaa(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
U6_gaaa(T148, T149, T150, X282, X283, less13_out_ga(T148, T149)) → part44_out_gaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_gaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_gaaa(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_gaaa(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_gaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_gaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_gaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_gaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_gaaa(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
part44_in_gaaa(T182, [], [], []) → part44_out_gaaa(T182, [], [], [])
U9_gaaa(T175, T173, T176, X333, X334, part44_out_gaaa(T175, T176, X333, X334)) → part44_out_gaaa(T175, .(T173, T176), X333, .(T173, X334))
U67_ag(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_ag(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U68_ag(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_ag(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U69_ag(T498, T474, T460, T499, qs39_out_aag(T474, T475, T499)) → qs1_out_ag(.(T498, .(T474, T460)), .(T498, T499))
qs1_in_ag(.(T516, .(T474, T460)), .(T510, T514)) → U70_ag(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
U70_ag(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_ag(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U71_ag(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_ag(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U72_ag(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_ag(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
app157_in_aaag([], T530, T531, .(T530, T531)) → app157_out_aaag([], T530, T531, .(T530, T531))
app157_in_aaag(.(T542, T547), T548, T549, .(T542, T546)) → U24_aaag(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
U24_aaag(T542, T547, T548, T549, T546, app157_out_aaag(T547, T548, T549, T546)) → app157_out_aaag(.(T542, T547), T548, T549, .(T542, T546))
U73_ag(T516, T474, T460, T510, T514, app157_out_aaag(T515, T516, T517, T514)) → qs1_out_ag(.(T516, .(T474, T460)), .(T510, T514))
qs1_in_ag(.(T557, []), T329) → U74_ag(T557, T329, qs100_in_a(X543))
U74_ag(T557, T329, qs100_out_a(X543)) → qs1_out_ag(.(T557, []), T329)
qs1_in_ag(.(T557, []), T329) → U75_ag(T557, T329, qs100_in_a(T560))
U75_ag(T557, T329, qs100_out_a(T560)) → U76_ag(T557, T329, qs100_in_a(X544))
U76_ag(T557, T329, qs100_out_a(X544)) → qs1_out_ag(.(T557, []), T329)
U75_ag(T557, T329, qs100_out_a(T560)) → U77_ag(T557, T329, T560, qs100_in_a(T563))
U77_ag(T557, T329, T560, qs100_out_a(T563)) → U78_ag(T557, T329, app157_in_gagg(T560, T557, T563, T329))
app157_in_gagg([], T530, T531, .(T530, T531)) → app157_out_gagg([], T530, T531, .(T530, T531))
app157_in_gagg(.(T542, T547), T548, T549, .(T542, T546)) → U24_gagg(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
U24_gagg(T542, T547, T548, T549, T546, app157_out_gagg(T547, T548, T549, T546)) → app157_out_gagg(.(T542, T547), T548, T549, .(T542, T546))
U78_ag(T557, T329, app157_out_gagg(T560, T557, T563, T329)) → qs1_out_ag(.(T557, []), T329)
APP71_IN_AAAA(.(T222, T226), T227, T228, .(T222, X403)) → APP71_IN_AAAA(T226, T227, T228, X403)
APP71_IN_AAAA → APP71_IN_AAAA
LESS13_IN_GA(s(T45), s(T46)) → LESS13_IN_GA(T45, T46)
qs1_in_ag([], []) → qs1_out_ag([], [])
qs1_in_ag(.(T24, .(T25, T26)), []) → U25_ag(T24, T25, T26, less13_in_aa(T24, T25))
less13_in_aa(0, s(T38)) → less13_out_aa(0, s(T38))
less13_in_aa(s(T45), s(T46)) → U1_aa(T45, T46, less13_in_aa(T45, T46))
U1_aa(T45, T46, less13_out_aa(T45, T46)) → less13_out_aa(s(T45), s(T46))
U25_ag(T24, T25, T26, less13_out_aa(T24, T25)) → qs1_out_ag(.(T24, .(T25, T26)), [])
qs1_in_ag(.(T29, .(T31, T30)), []) → U26_ag(T29, T31, T30, less13_in_aa(T29, T31))
U26_ag(T29, T31, T30, less13_out_aa(T29, T31)) → U27_ag(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
part23_in_gaaa(T70, .(T73, T74), .(T73, X123), X124) → U2_gaaa(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
U2_gaaa(T70, T73, T74, X123, X124, less13_out_ga(T70, T73)) → part23_out_gaaa(T70, .(T73, T74), .(T73, X123), X124)
part23_in_gaaa(T70, .(T73, T77), .(T73, X123), X124) → U3_gaaa(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
part23_in_gaaa(T95, .(T96, T98), X174, .(T96, X175)) → U5_gaaa(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
part23_in_gaaa(T104, [], [], []) → part23_out_gaaa(T104, [], [], [])
U5_gaaa(T95, T96, T98, X174, X175, part23_out_gaaa(T95, T98, X174, X175)) → part23_out_gaaa(T95, .(T96, T98), X174, .(T96, X175))
U4_gaaa(T70, T73, T77, X123, X124, part23_out_gaaa(T70, T77, X123, X124)) → part23_out_gaaa(T70, .(T73, T77), .(T73, X123), X124)
U27_ag(T29, T31, T30, part23_out_gaaa(T29, T30, X49, X50)) → qs1_out_ag(.(T29, .(T31, T30)), [])
qs1_in_ag(.(T29, .(T54, T30)), []) → U28_ag(T29, T54, T30, less13_in_aa(T29, T54))
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U29_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U29_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_ag(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
qs39_in_aaa(T122, T123, X234) → U22_aaa(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
part44_in_aaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_aaaa(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
U6_aaaa(T148, T149, T150, X282, X283, less13_out_aa(T148, T149)) → part44_out_aaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_aaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_aaaa(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_aaaa(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_aaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_aaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_aaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_aaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_aaaa(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
part44_in_aaaa(T182, [], [], []) → part44_out_aaaa(T182, [], [], [])
U9_aaaa(T175, T173, T176, X333, X334, part44_out_aaaa(T175, T176, X333, X334)) → part44_out_aaaa(T175, .(T173, T176), X333, .(T173, X334))
U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaaa(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
qs60_in_aa([], []) → qs60_out_aa([], [])
qs60_in_aa(.(T192, T193), X370) → U20_aa(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
p43_in_aaaaaaa(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaaa(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaaa(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
app71_in_aaaa([], T212, T213, .(T212, T213)) → app71_out_aaaa([], T212, T213, .(T212, T213))
app71_in_aaaa(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaaa(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
U21_aaaa(T222, T226, T227, T228, X403, app71_out_aaaa(T226, T227, T228, X403)) → app71_out_aaaa(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_out_aaaa(T198, T199, T197, X234)) → p43_out_aaaaaaa(T199, T123, T127, T184, T198, T197, X234)
U20_aa(T192, T193, X370, p43_out_aaaaaaa(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_aa(.(T192, T193), X370)
U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaaa(T129, T123, T127, T128, X232, X233, X234)
U22_aaa(T122, T123, X234, p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aaa(T122, T123, X234)
U30_ag(T29, T54, T30, qs39_out_aaa(T54, T52, X11)) → qs1_out_ag(.(T29, .(T54, T30)), [])
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U31_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_ag(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U32_ag(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_ag(T29, T54, T30, qs60_in_aa(T108, X12))
U33_ag(T29, T54, T30, qs60_out_aa(T108, X12)) → qs1_out_ag(.(T29, .(T54, T30)), [])
qs1_in_ag(.(T264, .(T266, T265)), []) → U34_ag(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
U34_ag(T264, T266, T265, part44_out_aaaa(T264, T265, X454, X455)) → qs1_out_ag(.(T264, .(T266, T265)), [])
qs1_in_ag(.(T273, .(T272, T265)), []) → U35_ag(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_ag(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_ag(T273, T272, T265, qs60_in_aa(T270, X11))
U36_ag(T273, T272, T265, qs60_out_aa(T270, X11)) → qs1_out_ag(.(T273, .(T272, T265)), [])
qs1_in_ag(.(T280, .(T278, T265)), []) → U37_ag(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_ag(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_ag(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U38_ag(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_ag(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U39_ag(T280, T278, T265, qs39_out_aaa(T278, T279, X12)) → qs1_out_ag(.(T280, .(T278, T265)), [])
qs1_in_ag(.(T305, []), []) → U40_ag(T305, qs100_in_a(X11))
qs100_in_a([]) → qs100_out_a([])
U40_ag(T305, qs100_out_a(X11)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T305, []), []) → U41_ag(T305, qs100_in_a(T309))
U41_ag(T305, qs100_out_a(T309)) → U42_ag(T305, qs100_in_a(X12))
U42_ag(T305, qs100_out_a(X12)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T347, .(T348, T349)), T329) → U43_ag(T347, T348, T349, T329, less13_in_aa(T347, T348))
U43_ag(T347, T348, T349, T329, less13_out_aa(T347, T348)) → qs1_out_ag(.(T347, .(T348, T349)), T329)
qs1_in_ag(.(T352, .(T354, T353)), T329) → U44_ag(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_ag(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_ag(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U45_ag(T352, T354, T353, T329, part23_out_gaaa(T352, T353, X581, X582)) → qs1_out_ag(.(T352, .(T354, T353)), T329)
qs1_in_ag(.(T352, .(T363, T353)), T329) → U46_ag(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U47_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_ag(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U48_ag(T352, T363, T353, T329, qs39_out_aaa(T363, T361, X543)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_ag(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U50_ag(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_ag(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U51_ag(T352, T363, T353, T329, qs60_out_aa(T371, X544)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
qs1_in_ag(.(T390, .(T363, T353)), .(T390, T391)) → U52_ag(T390, T363, T353, T391, less13_in_ga(T390, T363))
U52_ag(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_ag(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U53_ag(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_ag(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
qs39_in_aag(T122, T123, X234) → U22_aag(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaag(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaag(T129, T123, T127, T128, X232, X233, X234)
p43_in_aaaaaag(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaag(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaag(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
app71_in_aaag([], T212, T213, .(T212, T213)) → app71_out_aaag([], T212, T213, .(T212, T213))
app71_in_aaag(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaag(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
U21_aaag(T222, T226, T227, T228, X403, app71_out_aaag(T226, T227, T228, X403)) → app71_out_aaag(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_out_aaag(T198, T199, T197, X234)) → p43_out_aaaaaag(T199, T123, T127, T184, T198, T197, X234)
U22_aag(T122, T123, X234, p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aag(T122, T123, X234)
U54_ag(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_ag(T390, T363, T353, T391, qs60_in_ag(T371, T391))
qs60_in_ag([], []) → qs60_out_ag([], [])
qs60_in_ag(.(T192, T193), X370) → U20_ag(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
U20_ag(T192, T193, X370, p43_out_aaaaaag(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_ag(.(T192, T193), X370)
U55_ag(T390, T363, T353, T391, qs60_out_ag(T371, T391)) → qs1_out_ag(.(T390, .(T363, T353)), .(T390, T391))
qs1_in_ag(.(T404, .(T363, T353)), .(T402, T406)) → U56_ag(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
U56_ag(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_ag(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U57_ag(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_ag(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U58_ag(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_ag(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U59_ag(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_ag(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
app131_in_agag([], T421, T422, .(T421, T422)) → app131_out_agag([], T421, T422, .(T421, T422))
app131_in_agag(.(T433, T438), T435, T439, .(T433, T437)) → U23_agag(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
U23_agag(T433, T438, T435, T439, T437, app131_out_agag(T438, T435, T439, T437)) → app131_out_agag(.(T433, T438), T435, T439, .(T433, T437))
U60_ag(T404, T363, T353, T402, T406, app131_out_agag(T407, T404, T408, T406)) → qs1_out_ag(.(T404, .(T363, T353)), .(T402, T406))
qs1_in_ag(.(T459, .(T461, T460)), T329) → U61_ag(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
U61_ag(T459, T461, T460, T329, part44_out_aaaa(T459, T460, X705, X706)) → qs1_out_ag(.(T459, .(T461, T460)), T329)
qs1_in_ag(.(T468, .(T467, T460)), T329) → U62_ag(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_ag(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_ag(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U63_ag(T468, T467, T460, T329, qs60_out_aa(T465, X543)) → qs1_out_ag(.(T468, .(T467, T460)), T329)
qs1_in_ag(.(T476, .(T474, T460)), T329) → U64_ag(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_ag(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_ag(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U65_ag(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_ag(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U66_ag(T476, T474, T460, T329, qs39_out_aaa(T474, T475, X544)) → qs1_out_ag(.(T476, .(T474, T460)), T329)
qs1_in_ag(.(T498, .(T474, T460)), .(T498, T499)) → U67_ag(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
part44_in_gaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_gaaa(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
U6_gaaa(T148, T149, T150, X282, X283, less13_out_ga(T148, T149)) → part44_out_gaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_gaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_gaaa(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_gaaa(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_gaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_gaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_gaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_gaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_gaaa(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
part44_in_gaaa(T182, [], [], []) → part44_out_gaaa(T182, [], [], [])
U9_gaaa(T175, T173, T176, X333, X334, part44_out_gaaa(T175, T176, X333, X334)) → part44_out_gaaa(T175, .(T173, T176), X333, .(T173, X334))
U67_ag(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_ag(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U68_ag(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_ag(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U69_ag(T498, T474, T460, T499, qs39_out_aag(T474, T475, T499)) → qs1_out_ag(.(T498, .(T474, T460)), .(T498, T499))
qs1_in_ag(.(T516, .(T474, T460)), .(T510, T514)) → U70_ag(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
U70_ag(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_ag(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U71_ag(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_ag(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U72_ag(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_ag(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
app157_in_aaag([], T530, T531, .(T530, T531)) → app157_out_aaag([], T530, T531, .(T530, T531))
app157_in_aaag(.(T542, T547), T548, T549, .(T542, T546)) → U24_aaag(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
U24_aaag(T542, T547, T548, T549, T546, app157_out_aaag(T547, T548, T549, T546)) → app157_out_aaag(.(T542, T547), T548, T549, .(T542, T546))
U73_ag(T516, T474, T460, T510, T514, app157_out_aaag(T515, T516, T517, T514)) → qs1_out_ag(.(T516, .(T474, T460)), .(T510, T514))
qs1_in_ag(.(T557, []), T329) → U74_ag(T557, T329, qs100_in_a(X543))
U74_ag(T557, T329, qs100_out_a(X543)) → qs1_out_ag(.(T557, []), T329)
qs1_in_ag(.(T557, []), T329) → U75_ag(T557, T329, qs100_in_a(T560))
U75_ag(T557, T329, qs100_out_a(T560)) → U76_ag(T557, T329, qs100_in_a(X544))
U76_ag(T557, T329, qs100_out_a(X544)) → qs1_out_ag(.(T557, []), T329)
U75_ag(T557, T329, qs100_out_a(T560)) → U77_ag(T557, T329, T560, qs100_in_a(T563))
U77_ag(T557, T329, T560, qs100_out_a(T563)) → U78_ag(T557, T329, app157_in_gagg(T560, T557, T563, T329))
app157_in_gagg([], T530, T531, .(T530, T531)) → app157_out_gagg([], T530, T531, .(T530, T531))
app157_in_gagg(.(T542, T547), T548, T549, .(T542, T546)) → U24_gagg(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
U24_gagg(T542, T547, T548, T549, T546, app157_out_gagg(T547, T548, T549, T546)) → app157_out_gagg(.(T542, T547), T548, T549, .(T542, T546))
U78_ag(T557, T329, app157_out_gagg(T560, T557, T563, T329)) → qs1_out_ag(.(T557, []), T329)
LESS13_IN_GA(s(T45), s(T46)) → LESS13_IN_GA(T45, T46)
LESS13_IN_GA(s(T45)) → LESS13_IN_GA(T45)
From the DPs we obtained the following set of size-change graphs:
PART23_IN_GAAA(T70, .(T73, T77), .(T73, X123), X124) → U3_GAAA(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_GAAA(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → PART23_IN_GAAA(T70, T77, X123, X124)
PART23_IN_GAAA(T95, .(T96, T98), X174, .(T96, X175)) → PART23_IN_GAAA(T95, T98, X174, X175)
qs1_in_ag([], []) → qs1_out_ag([], [])
qs1_in_ag(.(T24, .(T25, T26)), []) → U25_ag(T24, T25, T26, less13_in_aa(T24, T25))
less13_in_aa(0, s(T38)) → less13_out_aa(0, s(T38))
less13_in_aa(s(T45), s(T46)) → U1_aa(T45, T46, less13_in_aa(T45, T46))
U1_aa(T45, T46, less13_out_aa(T45, T46)) → less13_out_aa(s(T45), s(T46))
U25_ag(T24, T25, T26, less13_out_aa(T24, T25)) → qs1_out_ag(.(T24, .(T25, T26)), [])
qs1_in_ag(.(T29, .(T31, T30)), []) → U26_ag(T29, T31, T30, less13_in_aa(T29, T31))
U26_ag(T29, T31, T30, less13_out_aa(T29, T31)) → U27_ag(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
part23_in_gaaa(T70, .(T73, T74), .(T73, X123), X124) → U2_gaaa(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
U2_gaaa(T70, T73, T74, X123, X124, less13_out_ga(T70, T73)) → part23_out_gaaa(T70, .(T73, T74), .(T73, X123), X124)
part23_in_gaaa(T70, .(T73, T77), .(T73, X123), X124) → U3_gaaa(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
part23_in_gaaa(T95, .(T96, T98), X174, .(T96, X175)) → U5_gaaa(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
part23_in_gaaa(T104, [], [], []) → part23_out_gaaa(T104, [], [], [])
U5_gaaa(T95, T96, T98, X174, X175, part23_out_gaaa(T95, T98, X174, X175)) → part23_out_gaaa(T95, .(T96, T98), X174, .(T96, X175))
U4_gaaa(T70, T73, T77, X123, X124, part23_out_gaaa(T70, T77, X123, X124)) → part23_out_gaaa(T70, .(T73, T77), .(T73, X123), X124)
U27_ag(T29, T31, T30, part23_out_gaaa(T29, T30, X49, X50)) → qs1_out_ag(.(T29, .(T31, T30)), [])
qs1_in_ag(.(T29, .(T54, T30)), []) → U28_ag(T29, T54, T30, less13_in_aa(T29, T54))
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U29_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U29_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_ag(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
qs39_in_aaa(T122, T123, X234) → U22_aaa(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
part44_in_aaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_aaaa(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
U6_aaaa(T148, T149, T150, X282, X283, less13_out_aa(T148, T149)) → part44_out_aaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_aaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_aaaa(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_aaaa(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_aaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_aaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_aaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_aaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_aaaa(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
part44_in_aaaa(T182, [], [], []) → part44_out_aaaa(T182, [], [], [])
U9_aaaa(T175, T173, T176, X333, X334, part44_out_aaaa(T175, T176, X333, X334)) → part44_out_aaaa(T175, .(T173, T176), X333, .(T173, X334))
U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaaa(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
qs60_in_aa([], []) → qs60_out_aa([], [])
qs60_in_aa(.(T192, T193), X370) → U20_aa(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
p43_in_aaaaaaa(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaaa(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaaa(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
app71_in_aaaa([], T212, T213, .(T212, T213)) → app71_out_aaaa([], T212, T213, .(T212, T213))
app71_in_aaaa(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaaa(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
U21_aaaa(T222, T226, T227, T228, X403, app71_out_aaaa(T226, T227, T228, X403)) → app71_out_aaaa(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_out_aaaa(T198, T199, T197, X234)) → p43_out_aaaaaaa(T199, T123, T127, T184, T198, T197, X234)
U20_aa(T192, T193, X370, p43_out_aaaaaaa(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_aa(.(T192, T193), X370)
U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaaa(T129, T123, T127, T128, X232, X233, X234)
U22_aaa(T122, T123, X234, p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aaa(T122, T123, X234)
U30_ag(T29, T54, T30, qs39_out_aaa(T54, T52, X11)) → qs1_out_ag(.(T29, .(T54, T30)), [])
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U31_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_ag(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U32_ag(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_ag(T29, T54, T30, qs60_in_aa(T108, X12))
U33_ag(T29, T54, T30, qs60_out_aa(T108, X12)) → qs1_out_ag(.(T29, .(T54, T30)), [])
qs1_in_ag(.(T264, .(T266, T265)), []) → U34_ag(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
U34_ag(T264, T266, T265, part44_out_aaaa(T264, T265, X454, X455)) → qs1_out_ag(.(T264, .(T266, T265)), [])
qs1_in_ag(.(T273, .(T272, T265)), []) → U35_ag(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_ag(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_ag(T273, T272, T265, qs60_in_aa(T270, X11))
U36_ag(T273, T272, T265, qs60_out_aa(T270, X11)) → qs1_out_ag(.(T273, .(T272, T265)), [])
qs1_in_ag(.(T280, .(T278, T265)), []) → U37_ag(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_ag(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_ag(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U38_ag(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_ag(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U39_ag(T280, T278, T265, qs39_out_aaa(T278, T279, X12)) → qs1_out_ag(.(T280, .(T278, T265)), [])
qs1_in_ag(.(T305, []), []) → U40_ag(T305, qs100_in_a(X11))
qs100_in_a([]) → qs100_out_a([])
U40_ag(T305, qs100_out_a(X11)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T305, []), []) → U41_ag(T305, qs100_in_a(T309))
U41_ag(T305, qs100_out_a(T309)) → U42_ag(T305, qs100_in_a(X12))
U42_ag(T305, qs100_out_a(X12)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T347, .(T348, T349)), T329) → U43_ag(T347, T348, T349, T329, less13_in_aa(T347, T348))
U43_ag(T347, T348, T349, T329, less13_out_aa(T347, T348)) → qs1_out_ag(.(T347, .(T348, T349)), T329)
qs1_in_ag(.(T352, .(T354, T353)), T329) → U44_ag(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_ag(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_ag(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U45_ag(T352, T354, T353, T329, part23_out_gaaa(T352, T353, X581, X582)) → qs1_out_ag(.(T352, .(T354, T353)), T329)
qs1_in_ag(.(T352, .(T363, T353)), T329) → U46_ag(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U47_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_ag(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U48_ag(T352, T363, T353, T329, qs39_out_aaa(T363, T361, X543)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_ag(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U50_ag(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_ag(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U51_ag(T352, T363, T353, T329, qs60_out_aa(T371, X544)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
qs1_in_ag(.(T390, .(T363, T353)), .(T390, T391)) → U52_ag(T390, T363, T353, T391, less13_in_ga(T390, T363))
U52_ag(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_ag(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U53_ag(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_ag(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
qs39_in_aag(T122, T123, X234) → U22_aag(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaag(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaag(T129, T123, T127, T128, X232, X233, X234)
p43_in_aaaaaag(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaag(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaag(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
app71_in_aaag([], T212, T213, .(T212, T213)) → app71_out_aaag([], T212, T213, .(T212, T213))
app71_in_aaag(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaag(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
U21_aaag(T222, T226, T227, T228, X403, app71_out_aaag(T226, T227, T228, X403)) → app71_out_aaag(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_out_aaag(T198, T199, T197, X234)) → p43_out_aaaaaag(T199, T123, T127, T184, T198, T197, X234)
U22_aag(T122, T123, X234, p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aag(T122, T123, X234)
U54_ag(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_ag(T390, T363, T353, T391, qs60_in_ag(T371, T391))
qs60_in_ag([], []) → qs60_out_ag([], [])
qs60_in_ag(.(T192, T193), X370) → U20_ag(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
U20_ag(T192, T193, X370, p43_out_aaaaaag(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_ag(.(T192, T193), X370)
U55_ag(T390, T363, T353, T391, qs60_out_ag(T371, T391)) → qs1_out_ag(.(T390, .(T363, T353)), .(T390, T391))
qs1_in_ag(.(T404, .(T363, T353)), .(T402, T406)) → U56_ag(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
U56_ag(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_ag(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U57_ag(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_ag(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U58_ag(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_ag(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U59_ag(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_ag(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
app131_in_agag([], T421, T422, .(T421, T422)) → app131_out_agag([], T421, T422, .(T421, T422))
app131_in_agag(.(T433, T438), T435, T439, .(T433, T437)) → U23_agag(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
U23_agag(T433, T438, T435, T439, T437, app131_out_agag(T438, T435, T439, T437)) → app131_out_agag(.(T433, T438), T435, T439, .(T433, T437))
U60_ag(T404, T363, T353, T402, T406, app131_out_agag(T407, T404, T408, T406)) → qs1_out_ag(.(T404, .(T363, T353)), .(T402, T406))
qs1_in_ag(.(T459, .(T461, T460)), T329) → U61_ag(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
U61_ag(T459, T461, T460, T329, part44_out_aaaa(T459, T460, X705, X706)) → qs1_out_ag(.(T459, .(T461, T460)), T329)
qs1_in_ag(.(T468, .(T467, T460)), T329) → U62_ag(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_ag(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_ag(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U63_ag(T468, T467, T460, T329, qs60_out_aa(T465, X543)) → qs1_out_ag(.(T468, .(T467, T460)), T329)
qs1_in_ag(.(T476, .(T474, T460)), T329) → U64_ag(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_ag(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_ag(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U65_ag(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_ag(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U66_ag(T476, T474, T460, T329, qs39_out_aaa(T474, T475, X544)) → qs1_out_ag(.(T476, .(T474, T460)), T329)
qs1_in_ag(.(T498, .(T474, T460)), .(T498, T499)) → U67_ag(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
part44_in_gaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_gaaa(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
U6_gaaa(T148, T149, T150, X282, X283, less13_out_ga(T148, T149)) → part44_out_gaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_gaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_gaaa(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_gaaa(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_gaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_gaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_gaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_gaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_gaaa(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
part44_in_gaaa(T182, [], [], []) → part44_out_gaaa(T182, [], [], [])
U9_gaaa(T175, T173, T176, X333, X334, part44_out_gaaa(T175, T176, X333, X334)) → part44_out_gaaa(T175, .(T173, T176), X333, .(T173, X334))
U67_ag(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_ag(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U68_ag(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_ag(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U69_ag(T498, T474, T460, T499, qs39_out_aag(T474, T475, T499)) → qs1_out_ag(.(T498, .(T474, T460)), .(T498, T499))
qs1_in_ag(.(T516, .(T474, T460)), .(T510, T514)) → U70_ag(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
U70_ag(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_ag(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U71_ag(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_ag(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U72_ag(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_ag(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
app157_in_aaag([], T530, T531, .(T530, T531)) → app157_out_aaag([], T530, T531, .(T530, T531))
app157_in_aaag(.(T542, T547), T548, T549, .(T542, T546)) → U24_aaag(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
U24_aaag(T542, T547, T548, T549, T546, app157_out_aaag(T547, T548, T549, T546)) → app157_out_aaag(.(T542, T547), T548, T549, .(T542, T546))
U73_ag(T516, T474, T460, T510, T514, app157_out_aaag(T515, T516, T517, T514)) → qs1_out_ag(.(T516, .(T474, T460)), .(T510, T514))
qs1_in_ag(.(T557, []), T329) → U74_ag(T557, T329, qs100_in_a(X543))
U74_ag(T557, T329, qs100_out_a(X543)) → qs1_out_ag(.(T557, []), T329)
qs1_in_ag(.(T557, []), T329) → U75_ag(T557, T329, qs100_in_a(T560))
U75_ag(T557, T329, qs100_out_a(T560)) → U76_ag(T557, T329, qs100_in_a(X544))
U76_ag(T557, T329, qs100_out_a(X544)) → qs1_out_ag(.(T557, []), T329)
U75_ag(T557, T329, qs100_out_a(T560)) → U77_ag(T557, T329, T560, qs100_in_a(T563))
U77_ag(T557, T329, T560, qs100_out_a(T563)) → U78_ag(T557, T329, app157_in_gagg(T560, T557, T563, T329))
app157_in_gagg([], T530, T531, .(T530, T531)) → app157_out_gagg([], T530, T531, .(T530, T531))
app157_in_gagg(.(T542, T547), T548, T549, .(T542, T546)) → U24_gagg(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
U24_gagg(T542, T547, T548, T549, T546, app157_out_gagg(T547, T548, T549, T546)) → app157_out_gagg(.(T542, T547), T548, T549, .(T542, T546))
U78_ag(T557, T329, app157_out_gagg(T560, T557, T563, T329)) → qs1_out_ag(.(T557, []), T329)
PART23_IN_GAAA(T70, .(T73, T77), .(T73, X123), X124) → U3_GAAA(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_GAAA(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → PART23_IN_GAAA(T70, T77, X123, X124)
PART23_IN_GAAA(T95, .(T96, T98), X174, .(T96, X175)) → PART23_IN_GAAA(T95, T98, X174, X175)
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
PART23_IN_GAAA(T70) → U3_GAAA(T70, less13_in_ga(T70))
U3_GAAA(T70, less13_out_ga(T70)) → PART23_IN_GAAA(T70)
PART23_IN_GAAA(T95) → PART23_IN_GAAA(T95)
less13_in_ga(0) → less13_out_ga(0)
less13_in_ga(s(T45)) → U1_ga(T45, less13_in_ga(T45))
U1_ga(T45, less13_out_ga(T45)) → less13_out_ga(s(T45))
less13_in_ga(x0)
U1_ga(x0, x1)
PART23_IN_GAAA(0) → U3_GAAA(0, less13_out_ga(0))
PART23_IN_GAAA(s(x0)) → U3_GAAA(s(x0), U1_ga(x0, less13_in_ga(x0)))
U3_GAAA(T70, less13_out_ga(T70)) → PART23_IN_GAAA(T70)
PART23_IN_GAAA(T95) → PART23_IN_GAAA(T95)
PART23_IN_GAAA(0) → U3_GAAA(0, less13_out_ga(0))
PART23_IN_GAAA(s(x0)) → U3_GAAA(s(x0), U1_ga(x0, less13_in_ga(x0)))
less13_in_ga(0) → less13_out_ga(0)
less13_in_ga(s(T45)) → U1_ga(T45, less13_in_ga(T45))
U1_ga(T45, less13_out_ga(T45)) → less13_out_ga(s(T45))
less13_in_ga(x0)
U1_ga(x0, x1)
U3_GAAA(0, less13_out_ga(0)) → PART23_IN_GAAA(0)
U3_GAAA(s(z0), less13_out_ga(s(z0))) → PART23_IN_GAAA(s(z0))
PART23_IN_GAAA(T95) → PART23_IN_GAAA(T95)
PART23_IN_GAAA(0) → U3_GAAA(0, less13_out_ga(0))
PART23_IN_GAAA(s(x0)) → U3_GAAA(s(x0), U1_ga(x0, less13_in_ga(x0)))
U3_GAAA(0, less13_out_ga(0)) → PART23_IN_GAAA(0)
U3_GAAA(s(z0), less13_out_ga(s(z0))) → PART23_IN_GAAA(s(z0))
less13_in_ga(0) → less13_out_ga(0)
less13_in_ga(s(T45)) → U1_ga(T45, less13_in_ga(T45))
U1_ga(T45, less13_out_ga(T45)) → less13_out_ga(s(T45))
less13_in_ga(x0)
U1_ga(x0, x1)
PART44_IN_GAAA(T175, .(T173, T176), X333, .(T173, X334)) → PART44_IN_GAAA(T175, T176, X333, X334)
qs1_in_ag([], []) → qs1_out_ag([], [])
qs1_in_ag(.(T24, .(T25, T26)), []) → U25_ag(T24, T25, T26, less13_in_aa(T24, T25))
less13_in_aa(0, s(T38)) → less13_out_aa(0, s(T38))
less13_in_aa(s(T45), s(T46)) → U1_aa(T45, T46, less13_in_aa(T45, T46))
U1_aa(T45, T46, less13_out_aa(T45, T46)) → less13_out_aa(s(T45), s(T46))
U25_ag(T24, T25, T26, less13_out_aa(T24, T25)) → qs1_out_ag(.(T24, .(T25, T26)), [])
qs1_in_ag(.(T29, .(T31, T30)), []) → U26_ag(T29, T31, T30, less13_in_aa(T29, T31))
U26_ag(T29, T31, T30, less13_out_aa(T29, T31)) → U27_ag(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
part23_in_gaaa(T70, .(T73, T74), .(T73, X123), X124) → U2_gaaa(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
U2_gaaa(T70, T73, T74, X123, X124, less13_out_ga(T70, T73)) → part23_out_gaaa(T70, .(T73, T74), .(T73, X123), X124)
part23_in_gaaa(T70, .(T73, T77), .(T73, X123), X124) → U3_gaaa(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
part23_in_gaaa(T95, .(T96, T98), X174, .(T96, X175)) → U5_gaaa(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
part23_in_gaaa(T104, [], [], []) → part23_out_gaaa(T104, [], [], [])
U5_gaaa(T95, T96, T98, X174, X175, part23_out_gaaa(T95, T98, X174, X175)) → part23_out_gaaa(T95, .(T96, T98), X174, .(T96, X175))
U4_gaaa(T70, T73, T77, X123, X124, part23_out_gaaa(T70, T77, X123, X124)) → part23_out_gaaa(T70, .(T73, T77), .(T73, X123), X124)
U27_ag(T29, T31, T30, part23_out_gaaa(T29, T30, X49, X50)) → qs1_out_ag(.(T29, .(T31, T30)), [])
qs1_in_ag(.(T29, .(T54, T30)), []) → U28_ag(T29, T54, T30, less13_in_aa(T29, T54))
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U29_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U29_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_ag(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
qs39_in_aaa(T122, T123, X234) → U22_aaa(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
part44_in_aaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_aaaa(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
U6_aaaa(T148, T149, T150, X282, X283, less13_out_aa(T148, T149)) → part44_out_aaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_aaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_aaaa(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_aaaa(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_aaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_aaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_aaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_aaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_aaaa(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
part44_in_aaaa(T182, [], [], []) → part44_out_aaaa(T182, [], [], [])
U9_aaaa(T175, T173, T176, X333, X334, part44_out_aaaa(T175, T176, X333, X334)) → part44_out_aaaa(T175, .(T173, T176), X333, .(T173, X334))
U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaaa(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
qs60_in_aa([], []) → qs60_out_aa([], [])
qs60_in_aa(.(T192, T193), X370) → U20_aa(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
p43_in_aaaaaaa(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaaa(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaaa(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
app71_in_aaaa([], T212, T213, .(T212, T213)) → app71_out_aaaa([], T212, T213, .(T212, T213))
app71_in_aaaa(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaaa(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
U21_aaaa(T222, T226, T227, T228, X403, app71_out_aaaa(T226, T227, T228, X403)) → app71_out_aaaa(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_out_aaaa(T198, T199, T197, X234)) → p43_out_aaaaaaa(T199, T123, T127, T184, T198, T197, X234)
U20_aa(T192, T193, X370, p43_out_aaaaaaa(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_aa(.(T192, T193), X370)
U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaaa(T129, T123, T127, T128, X232, X233, X234)
U22_aaa(T122, T123, X234, p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aaa(T122, T123, X234)
U30_ag(T29, T54, T30, qs39_out_aaa(T54, T52, X11)) → qs1_out_ag(.(T29, .(T54, T30)), [])
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U31_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_ag(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U32_ag(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_ag(T29, T54, T30, qs60_in_aa(T108, X12))
U33_ag(T29, T54, T30, qs60_out_aa(T108, X12)) → qs1_out_ag(.(T29, .(T54, T30)), [])
qs1_in_ag(.(T264, .(T266, T265)), []) → U34_ag(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
U34_ag(T264, T266, T265, part44_out_aaaa(T264, T265, X454, X455)) → qs1_out_ag(.(T264, .(T266, T265)), [])
qs1_in_ag(.(T273, .(T272, T265)), []) → U35_ag(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_ag(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_ag(T273, T272, T265, qs60_in_aa(T270, X11))
U36_ag(T273, T272, T265, qs60_out_aa(T270, X11)) → qs1_out_ag(.(T273, .(T272, T265)), [])
qs1_in_ag(.(T280, .(T278, T265)), []) → U37_ag(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_ag(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_ag(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U38_ag(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_ag(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U39_ag(T280, T278, T265, qs39_out_aaa(T278, T279, X12)) → qs1_out_ag(.(T280, .(T278, T265)), [])
qs1_in_ag(.(T305, []), []) → U40_ag(T305, qs100_in_a(X11))
qs100_in_a([]) → qs100_out_a([])
U40_ag(T305, qs100_out_a(X11)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T305, []), []) → U41_ag(T305, qs100_in_a(T309))
U41_ag(T305, qs100_out_a(T309)) → U42_ag(T305, qs100_in_a(X12))
U42_ag(T305, qs100_out_a(X12)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T347, .(T348, T349)), T329) → U43_ag(T347, T348, T349, T329, less13_in_aa(T347, T348))
U43_ag(T347, T348, T349, T329, less13_out_aa(T347, T348)) → qs1_out_ag(.(T347, .(T348, T349)), T329)
qs1_in_ag(.(T352, .(T354, T353)), T329) → U44_ag(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_ag(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_ag(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U45_ag(T352, T354, T353, T329, part23_out_gaaa(T352, T353, X581, X582)) → qs1_out_ag(.(T352, .(T354, T353)), T329)
qs1_in_ag(.(T352, .(T363, T353)), T329) → U46_ag(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U47_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_ag(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U48_ag(T352, T363, T353, T329, qs39_out_aaa(T363, T361, X543)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_ag(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U50_ag(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_ag(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U51_ag(T352, T363, T353, T329, qs60_out_aa(T371, X544)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
qs1_in_ag(.(T390, .(T363, T353)), .(T390, T391)) → U52_ag(T390, T363, T353, T391, less13_in_ga(T390, T363))
U52_ag(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_ag(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U53_ag(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_ag(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
qs39_in_aag(T122, T123, X234) → U22_aag(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaag(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaag(T129, T123, T127, T128, X232, X233, X234)
p43_in_aaaaaag(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaag(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaag(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
app71_in_aaag([], T212, T213, .(T212, T213)) → app71_out_aaag([], T212, T213, .(T212, T213))
app71_in_aaag(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaag(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
U21_aaag(T222, T226, T227, T228, X403, app71_out_aaag(T226, T227, T228, X403)) → app71_out_aaag(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_out_aaag(T198, T199, T197, X234)) → p43_out_aaaaaag(T199, T123, T127, T184, T198, T197, X234)
U22_aag(T122, T123, X234, p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aag(T122, T123, X234)
U54_ag(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_ag(T390, T363, T353, T391, qs60_in_ag(T371, T391))
qs60_in_ag([], []) → qs60_out_ag([], [])
qs60_in_ag(.(T192, T193), X370) → U20_ag(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
U20_ag(T192, T193, X370, p43_out_aaaaaag(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_ag(.(T192, T193), X370)
U55_ag(T390, T363, T353, T391, qs60_out_ag(T371, T391)) → qs1_out_ag(.(T390, .(T363, T353)), .(T390, T391))
qs1_in_ag(.(T404, .(T363, T353)), .(T402, T406)) → U56_ag(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
U56_ag(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_ag(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U57_ag(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_ag(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U58_ag(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_ag(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U59_ag(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_ag(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
app131_in_agag([], T421, T422, .(T421, T422)) → app131_out_agag([], T421, T422, .(T421, T422))
app131_in_agag(.(T433, T438), T435, T439, .(T433, T437)) → U23_agag(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
U23_agag(T433, T438, T435, T439, T437, app131_out_agag(T438, T435, T439, T437)) → app131_out_agag(.(T433, T438), T435, T439, .(T433, T437))
U60_ag(T404, T363, T353, T402, T406, app131_out_agag(T407, T404, T408, T406)) → qs1_out_ag(.(T404, .(T363, T353)), .(T402, T406))
qs1_in_ag(.(T459, .(T461, T460)), T329) → U61_ag(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
U61_ag(T459, T461, T460, T329, part44_out_aaaa(T459, T460, X705, X706)) → qs1_out_ag(.(T459, .(T461, T460)), T329)
qs1_in_ag(.(T468, .(T467, T460)), T329) → U62_ag(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_ag(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_ag(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U63_ag(T468, T467, T460, T329, qs60_out_aa(T465, X543)) → qs1_out_ag(.(T468, .(T467, T460)), T329)
qs1_in_ag(.(T476, .(T474, T460)), T329) → U64_ag(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_ag(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_ag(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U65_ag(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_ag(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U66_ag(T476, T474, T460, T329, qs39_out_aaa(T474, T475, X544)) → qs1_out_ag(.(T476, .(T474, T460)), T329)
qs1_in_ag(.(T498, .(T474, T460)), .(T498, T499)) → U67_ag(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
part44_in_gaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_gaaa(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
U6_gaaa(T148, T149, T150, X282, X283, less13_out_ga(T148, T149)) → part44_out_gaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_gaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_gaaa(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_gaaa(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_gaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_gaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_gaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_gaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_gaaa(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
part44_in_gaaa(T182, [], [], []) → part44_out_gaaa(T182, [], [], [])
U9_gaaa(T175, T173, T176, X333, X334, part44_out_gaaa(T175, T176, X333, X334)) → part44_out_gaaa(T175, .(T173, T176), X333, .(T173, X334))
U67_ag(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_ag(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U68_ag(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_ag(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U69_ag(T498, T474, T460, T499, qs39_out_aag(T474, T475, T499)) → qs1_out_ag(.(T498, .(T474, T460)), .(T498, T499))
qs1_in_ag(.(T516, .(T474, T460)), .(T510, T514)) → U70_ag(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
U70_ag(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_ag(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U71_ag(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_ag(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U72_ag(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_ag(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
app157_in_aaag([], T530, T531, .(T530, T531)) → app157_out_aaag([], T530, T531, .(T530, T531))
app157_in_aaag(.(T542, T547), T548, T549, .(T542, T546)) → U24_aaag(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
U24_aaag(T542, T547, T548, T549, T546, app157_out_aaag(T547, T548, T549, T546)) → app157_out_aaag(.(T542, T547), T548, T549, .(T542, T546))
U73_ag(T516, T474, T460, T510, T514, app157_out_aaag(T515, T516, T517, T514)) → qs1_out_ag(.(T516, .(T474, T460)), .(T510, T514))
qs1_in_ag(.(T557, []), T329) → U74_ag(T557, T329, qs100_in_a(X543))
U74_ag(T557, T329, qs100_out_a(X543)) → qs1_out_ag(.(T557, []), T329)
qs1_in_ag(.(T557, []), T329) → U75_ag(T557, T329, qs100_in_a(T560))
U75_ag(T557, T329, qs100_out_a(T560)) → U76_ag(T557, T329, qs100_in_a(X544))
U76_ag(T557, T329, qs100_out_a(X544)) → qs1_out_ag(.(T557, []), T329)
U75_ag(T557, T329, qs100_out_a(T560)) → U77_ag(T557, T329, T560, qs100_in_a(T563))
U77_ag(T557, T329, T560, qs100_out_a(T563)) → U78_ag(T557, T329, app157_in_gagg(T560, T557, T563, T329))
app157_in_gagg([], T530, T531, .(T530, T531)) → app157_out_gagg([], T530, T531, .(T530, T531))
app157_in_gagg(.(T542, T547), T548, T549, .(T542, T546)) → U24_gagg(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
U24_gagg(T542, T547, T548, T549, T546, app157_out_gagg(T547, T548, T549, T546)) → app157_out_gagg(.(T542, T547), T548, T549, .(T542, T546))
U78_ag(T557, T329, app157_out_gagg(T560, T557, T563, T329)) → qs1_out_ag(.(T557, []), T329)
PART44_IN_GAAA(T175, .(T173, T176), X333, .(T173, X334)) → PART44_IN_GAAA(T175, T176, X333, X334)
PART44_IN_GAAA(T175) → PART44_IN_GAAA(T175)
LESS13_IN_AA(s(T45), s(T46)) → LESS13_IN_AA(T45, T46)
qs1_in_ag([], []) → qs1_out_ag([], [])
qs1_in_ag(.(T24, .(T25, T26)), []) → U25_ag(T24, T25, T26, less13_in_aa(T24, T25))
less13_in_aa(0, s(T38)) → less13_out_aa(0, s(T38))
less13_in_aa(s(T45), s(T46)) → U1_aa(T45, T46, less13_in_aa(T45, T46))
U1_aa(T45, T46, less13_out_aa(T45, T46)) → less13_out_aa(s(T45), s(T46))
U25_ag(T24, T25, T26, less13_out_aa(T24, T25)) → qs1_out_ag(.(T24, .(T25, T26)), [])
qs1_in_ag(.(T29, .(T31, T30)), []) → U26_ag(T29, T31, T30, less13_in_aa(T29, T31))
U26_ag(T29, T31, T30, less13_out_aa(T29, T31)) → U27_ag(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
part23_in_gaaa(T70, .(T73, T74), .(T73, X123), X124) → U2_gaaa(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
U2_gaaa(T70, T73, T74, X123, X124, less13_out_ga(T70, T73)) → part23_out_gaaa(T70, .(T73, T74), .(T73, X123), X124)
part23_in_gaaa(T70, .(T73, T77), .(T73, X123), X124) → U3_gaaa(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
part23_in_gaaa(T95, .(T96, T98), X174, .(T96, X175)) → U5_gaaa(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
part23_in_gaaa(T104, [], [], []) → part23_out_gaaa(T104, [], [], [])
U5_gaaa(T95, T96, T98, X174, X175, part23_out_gaaa(T95, T98, X174, X175)) → part23_out_gaaa(T95, .(T96, T98), X174, .(T96, X175))
U4_gaaa(T70, T73, T77, X123, X124, part23_out_gaaa(T70, T77, X123, X124)) → part23_out_gaaa(T70, .(T73, T77), .(T73, X123), X124)
U27_ag(T29, T31, T30, part23_out_gaaa(T29, T30, X49, X50)) → qs1_out_ag(.(T29, .(T31, T30)), [])
qs1_in_ag(.(T29, .(T54, T30)), []) → U28_ag(T29, T54, T30, less13_in_aa(T29, T54))
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U29_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U29_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_ag(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
qs39_in_aaa(T122, T123, X234) → U22_aaa(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
part44_in_aaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_aaaa(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
U6_aaaa(T148, T149, T150, X282, X283, less13_out_aa(T148, T149)) → part44_out_aaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_aaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_aaaa(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_aaaa(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_aaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_aaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_aaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_aaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_aaaa(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
part44_in_aaaa(T182, [], [], []) → part44_out_aaaa(T182, [], [], [])
U9_aaaa(T175, T173, T176, X333, X334, part44_out_aaaa(T175, T176, X333, X334)) → part44_out_aaaa(T175, .(T173, T176), X333, .(T173, X334))
U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaaa(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
qs60_in_aa([], []) → qs60_out_aa([], [])
qs60_in_aa(.(T192, T193), X370) → U20_aa(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
p43_in_aaaaaaa(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaaa(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaaa(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
app71_in_aaaa([], T212, T213, .(T212, T213)) → app71_out_aaaa([], T212, T213, .(T212, T213))
app71_in_aaaa(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaaa(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
U21_aaaa(T222, T226, T227, T228, X403, app71_out_aaaa(T226, T227, T228, X403)) → app71_out_aaaa(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_out_aaaa(T198, T199, T197, X234)) → p43_out_aaaaaaa(T199, T123, T127, T184, T198, T197, X234)
U20_aa(T192, T193, X370, p43_out_aaaaaaa(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_aa(.(T192, T193), X370)
U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaaa(T129, T123, T127, T128, X232, X233, X234)
U22_aaa(T122, T123, X234, p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aaa(T122, T123, X234)
U30_ag(T29, T54, T30, qs39_out_aaa(T54, T52, X11)) → qs1_out_ag(.(T29, .(T54, T30)), [])
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U31_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_ag(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U32_ag(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_ag(T29, T54, T30, qs60_in_aa(T108, X12))
U33_ag(T29, T54, T30, qs60_out_aa(T108, X12)) → qs1_out_ag(.(T29, .(T54, T30)), [])
qs1_in_ag(.(T264, .(T266, T265)), []) → U34_ag(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
U34_ag(T264, T266, T265, part44_out_aaaa(T264, T265, X454, X455)) → qs1_out_ag(.(T264, .(T266, T265)), [])
qs1_in_ag(.(T273, .(T272, T265)), []) → U35_ag(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_ag(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_ag(T273, T272, T265, qs60_in_aa(T270, X11))
U36_ag(T273, T272, T265, qs60_out_aa(T270, X11)) → qs1_out_ag(.(T273, .(T272, T265)), [])
qs1_in_ag(.(T280, .(T278, T265)), []) → U37_ag(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_ag(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_ag(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U38_ag(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_ag(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U39_ag(T280, T278, T265, qs39_out_aaa(T278, T279, X12)) → qs1_out_ag(.(T280, .(T278, T265)), [])
qs1_in_ag(.(T305, []), []) → U40_ag(T305, qs100_in_a(X11))
qs100_in_a([]) → qs100_out_a([])
U40_ag(T305, qs100_out_a(X11)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T305, []), []) → U41_ag(T305, qs100_in_a(T309))
U41_ag(T305, qs100_out_a(T309)) → U42_ag(T305, qs100_in_a(X12))
U42_ag(T305, qs100_out_a(X12)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T347, .(T348, T349)), T329) → U43_ag(T347, T348, T349, T329, less13_in_aa(T347, T348))
U43_ag(T347, T348, T349, T329, less13_out_aa(T347, T348)) → qs1_out_ag(.(T347, .(T348, T349)), T329)
qs1_in_ag(.(T352, .(T354, T353)), T329) → U44_ag(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_ag(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_ag(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U45_ag(T352, T354, T353, T329, part23_out_gaaa(T352, T353, X581, X582)) → qs1_out_ag(.(T352, .(T354, T353)), T329)
qs1_in_ag(.(T352, .(T363, T353)), T329) → U46_ag(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U47_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_ag(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U48_ag(T352, T363, T353, T329, qs39_out_aaa(T363, T361, X543)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_ag(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U50_ag(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_ag(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U51_ag(T352, T363, T353, T329, qs60_out_aa(T371, X544)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
qs1_in_ag(.(T390, .(T363, T353)), .(T390, T391)) → U52_ag(T390, T363, T353, T391, less13_in_ga(T390, T363))
U52_ag(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_ag(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U53_ag(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_ag(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
qs39_in_aag(T122, T123, X234) → U22_aag(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaag(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaag(T129, T123, T127, T128, X232, X233, X234)
p43_in_aaaaaag(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaag(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaag(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
app71_in_aaag([], T212, T213, .(T212, T213)) → app71_out_aaag([], T212, T213, .(T212, T213))
app71_in_aaag(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaag(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
U21_aaag(T222, T226, T227, T228, X403, app71_out_aaag(T226, T227, T228, X403)) → app71_out_aaag(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_out_aaag(T198, T199, T197, X234)) → p43_out_aaaaaag(T199, T123, T127, T184, T198, T197, X234)
U22_aag(T122, T123, X234, p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aag(T122, T123, X234)
U54_ag(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_ag(T390, T363, T353, T391, qs60_in_ag(T371, T391))
qs60_in_ag([], []) → qs60_out_ag([], [])
qs60_in_ag(.(T192, T193), X370) → U20_ag(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
U20_ag(T192, T193, X370, p43_out_aaaaaag(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_ag(.(T192, T193), X370)
U55_ag(T390, T363, T353, T391, qs60_out_ag(T371, T391)) → qs1_out_ag(.(T390, .(T363, T353)), .(T390, T391))
qs1_in_ag(.(T404, .(T363, T353)), .(T402, T406)) → U56_ag(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
U56_ag(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_ag(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U57_ag(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_ag(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U58_ag(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_ag(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U59_ag(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_ag(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
app131_in_agag([], T421, T422, .(T421, T422)) → app131_out_agag([], T421, T422, .(T421, T422))
app131_in_agag(.(T433, T438), T435, T439, .(T433, T437)) → U23_agag(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
U23_agag(T433, T438, T435, T439, T437, app131_out_agag(T438, T435, T439, T437)) → app131_out_agag(.(T433, T438), T435, T439, .(T433, T437))
U60_ag(T404, T363, T353, T402, T406, app131_out_agag(T407, T404, T408, T406)) → qs1_out_ag(.(T404, .(T363, T353)), .(T402, T406))
qs1_in_ag(.(T459, .(T461, T460)), T329) → U61_ag(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
U61_ag(T459, T461, T460, T329, part44_out_aaaa(T459, T460, X705, X706)) → qs1_out_ag(.(T459, .(T461, T460)), T329)
qs1_in_ag(.(T468, .(T467, T460)), T329) → U62_ag(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_ag(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_ag(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U63_ag(T468, T467, T460, T329, qs60_out_aa(T465, X543)) → qs1_out_ag(.(T468, .(T467, T460)), T329)
qs1_in_ag(.(T476, .(T474, T460)), T329) → U64_ag(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_ag(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_ag(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U65_ag(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_ag(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U66_ag(T476, T474, T460, T329, qs39_out_aaa(T474, T475, X544)) → qs1_out_ag(.(T476, .(T474, T460)), T329)
qs1_in_ag(.(T498, .(T474, T460)), .(T498, T499)) → U67_ag(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
part44_in_gaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_gaaa(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
U6_gaaa(T148, T149, T150, X282, X283, less13_out_ga(T148, T149)) → part44_out_gaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_gaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_gaaa(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_gaaa(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_gaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_gaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_gaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_gaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_gaaa(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
part44_in_gaaa(T182, [], [], []) → part44_out_gaaa(T182, [], [], [])
U9_gaaa(T175, T173, T176, X333, X334, part44_out_gaaa(T175, T176, X333, X334)) → part44_out_gaaa(T175, .(T173, T176), X333, .(T173, X334))
U67_ag(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_ag(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U68_ag(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_ag(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U69_ag(T498, T474, T460, T499, qs39_out_aag(T474, T475, T499)) → qs1_out_ag(.(T498, .(T474, T460)), .(T498, T499))
qs1_in_ag(.(T516, .(T474, T460)), .(T510, T514)) → U70_ag(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
U70_ag(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_ag(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U71_ag(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_ag(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U72_ag(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_ag(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
app157_in_aaag([], T530, T531, .(T530, T531)) → app157_out_aaag([], T530, T531, .(T530, T531))
app157_in_aaag(.(T542, T547), T548, T549, .(T542, T546)) → U24_aaag(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
U24_aaag(T542, T547, T548, T549, T546, app157_out_aaag(T547, T548, T549, T546)) → app157_out_aaag(.(T542, T547), T548, T549, .(T542, T546))
U73_ag(T516, T474, T460, T510, T514, app157_out_aaag(T515, T516, T517, T514)) → qs1_out_ag(.(T516, .(T474, T460)), .(T510, T514))
qs1_in_ag(.(T557, []), T329) → U74_ag(T557, T329, qs100_in_a(X543))
U74_ag(T557, T329, qs100_out_a(X543)) → qs1_out_ag(.(T557, []), T329)
qs1_in_ag(.(T557, []), T329) → U75_ag(T557, T329, qs100_in_a(T560))
U75_ag(T557, T329, qs100_out_a(T560)) → U76_ag(T557, T329, qs100_in_a(X544))
U76_ag(T557, T329, qs100_out_a(X544)) → qs1_out_ag(.(T557, []), T329)
U75_ag(T557, T329, qs100_out_a(T560)) → U77_ag(T557, T329, T560, qs100_in_a(T563))
U77_ag(T557, T329, T560, qs100_out_a(T563)) → U78_ag(T557, T329, app157_in_gagg(T560, T557, T563, T329))
app157_in_gagg([], T530, T531, .(T530, T531)) → app157_out_gagg([], T530, T531, .(T530, T531))
app157_in_gagg(.(T542, T547), T548, T549, .(T542, T546)) → U24_gagg(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
U24_gagg(T542, T547, T548, T549, T546, app157_out_gagg(T547, T548, T549, T546)) → app157_out_gagg(.(T542, T547), T548, T549, .(T542, T546))
U78_ag(T557, T329, app157_out_gagg(T560, T557, T563, T329)) → qs1_out_ag(.(T557, []), T329)
LESS13_IN_AA(s(T45), s(T46)) → LESS13_IN_AA(T45, T46)
LESS13_IN_AA → LESS13_IN_AA
PART44_IN_AAAA(T175, .(T173, T176), X333, .(T173, X334)) → PART44_IN_AAAA(T175, T176, X333, X334)
qs1_in_ag([], []) → qs1_out_ag([], [])
qs1_in_ag(.(T24, .(T25, T26)), []) → U25_ag(T24, T25, T26, less13_in_aa(T24, T25))
less13_in_aa(0, s(T38)) → less13_out_aa(0, s(T38))
less13_in_aa(s(T45), s(T46)) → U1_aa(T45, T46, less13_in_aa(T45, T46))
U1_aa(T45, T46, less13_out_aa(T45, T46)) → less13_out_aa(s(T45), s(T46))
U25_ag(T24, T25, T26, less13_out_aa(T24, T25)) → qs1_out_ag(.(T24, .(T25, T26)), [])
qs1_in_ag(.(T29, .(T31, T30)), []) → U26_ag(T29, T31, T30, less13_in_aa(T29, T31))
U26_ag(T29, T31, T30, less13_out_aa(T29, T31)) → U27_ag(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
part23_in_gaaa(T70, .(T73, T74), .(T73, X123), X124) → U2_gaaa(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
U2_gaaa(T70, T73, T74, X123, X124, less13_out_ga(T70, T73)) → part23_out_gaaa(T70, .(T73, T74), .(T73, X123), X124)
part23_in_gaaa(T70, .(T73, T77), .(T73, X123), X124) → U3_gaaa(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
part23_in_gaaa(T95, .(T96, T98), X174, .(T96, X175)) → U5_gaaa(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
part23_in_gaaa(T104, [], [], []) → part23_out_gaaa(T104, [], [], [])
U5_gaaa(T95, T96, T98, X174, X175, part23_out_gaaa(T95, T98, X174, X175)) → part23_out_gaaa(T95, .(T96, T98), X174, .(T96, X175))
U4_gaaa(T70, T73, T77, X123, X124, part23_out_gaaa(T70, T77, X123, X124)) → part23_out_gaaa(T70, .(T73, T77), .(T73, X123), X124)
U27_ag(T29, T31, T30, part23_out_gaaa(T29, T30, X49, X50)) → qs1_out_ag(.(T29, .(T31, T30)), [])
qs1_in_ag(.(T29, .(T54, T30)), []) → U28_ag(T29, T54, T30, less13_in_aa(T29, T54))
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U29_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U29_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_ag(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
qs39_in_aaa(T122, T123, X234) → U22_aaa(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
part44_in_aaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_aaaa(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
U6_aaaa(T148, T149, T150, X282, X283, less13_out_aa(T148, T149)) → part44_out_aaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_aaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_aaaa(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_aaaa(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_aaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_aaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_aaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_aaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_aaaa(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
part44_in_aaaa(T182, [], [], []) → part44_out_aaaa(T182, [], [], [])
U9_aaaa(T175, T173, T176, X333, X334, part44_out_aaaa(T175, T176, X333, X334)) → part44_out_aaaa(T175, .(T173, T176), X333, .(T173, X334))
U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaaa(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
qs60_in_aa([], []) → qs60_out_aa([], [])
qs60_in_aa(.(T192, T193), X370) → U20_aa(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
p43_in_aaaaaaa(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaaa(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaaa(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
app71_in_aaaa([], T212, T213, .(T212, T213)) → app71_out_aaaa([], T212, T213, .(T212, T213))
app71_in_aaaa(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaaa(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
U21_aaaa(T222, T226, T227, T228, X403, app71_out_aaaa(T226, T227, T228, X403)) → app71_out_aaaa(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_out_aaaa(T198, T199, T197, X234)) → p43_out_aaaaaaa(T199, T123, T127, T184, T198, T197, X234)
U20_aa(T192, T193, X370, p43_out_aaaaaaa(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_aa(.(T192, T193), X370)
U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaaa(T129, T123, T127, T128, X232, X233, X234)
U22_aaa(T122, T123, X234, p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aaa(T122, T123, X234)
U30_ag(T29, T54, T30, qs39_out_aaa(T54, T52, X11)) → qs1_out_ag(.(T29, .(T54, T30)), [])
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U31_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_ag(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U32_ag(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_ag(T29, T54, T30, qs60_in_aa(T108, X12))
U33_ag(T29, T54, T30, qs60_out_aa(T108, X12)) → qs1_out_ag(.(T29, .(T54, T30)), [])
qs1_in_ag(.(T264, .(T266, T265)), []) → U34_ag(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
U34_ag(T264, T266, T265, part44_out_aaaa(T264, T265, X454, X455)) → qs1_out_ag(.(T264, .(T266, T265)), [])
qs1_in_ag(.(T273, .(T272, T265)), []) → U35_ag(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_ag(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_ag(T273, T272, T265, qs60_in_aa(T270, X11))
U36_ag(T273, T272, T265, qs60_out_aa(T270, X11)) → qs1_out_ag(.(T273, .(T272, T265)), [])
qs1_in_ag(.(T280, .(T278, T265)), []) → U37_ag(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_ag(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_ag(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U38_ag(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_ag(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U39_ag(T280, T278, T265, qs39_out_aaa(T278, T279, X12)) → qs1_out_ag(.(T280, .(T278, T265)), [])
qs1_in_ag(.(T305, []), []) → U40_ag(T305, qs100_in_a(X11))
qs100_in_a([]) → qs100_out_a([])
U40_ag(T305, qs100_out_a(X11)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T305, []), []) → U41_ag(T305, qs100_in_a(T309))
U41_ag(T305, qs100_out_a(T309)) → U42_ag(T305, qs100_in_a(X12))
U42_ag(T305, qs100_out_a(X12)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T347, .(T348, T349)), T329) → U43_ag(T347, T348, T349, T329, less13_in_aa(T347, T348))
U43_ag(T347, T348, T349, T329, less13_out_aa(T347, T348)) → qs1_out_ag(.(T347, .(T348, T349)), T329)
qs1_in_ag(.(T352, .(T354, T353)), T329) → U44_ag(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_ag(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_ag(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U45_ag(T352, T354, T353, T329, part23_out_gaaa(T352, T353, X581, X582)) → qs1_out_ag(.(T352, .(T354, T353)), T329)
qs1_in_ag(.(T352, .(T363, T353)), T329) → U46_ag(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U47_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_ag(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U48_ag(T352, T363, T353, T329, qs39_out_aaa(T363, T361, X543)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_ag(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U50_ag(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_ag(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U51_ag(T352, T363, T353, T329, qs60_out_aa(T371, X544)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
qs1_in_ag(.(T390, .(T363, T353)), .(T390, T391)) → U52_ag(T390, T363, T353, T391, less13_in_ga(T390, T363))
U52_ag(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_ag(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U53_ag(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_ag(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
qs39_in_aag(T122, T123, X234) → U22_aag(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaag(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaag(T129, T123, T127, T128, X232, X233, X234)
p43_in_aaaaaag(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaag(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaag(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
app71_in_aaag([], T212, T213, .(T212, T213)) → app71_out_aaag([], T212, T213, .(T212, T213))
app71_in_aaag(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaag(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
U21_aaag(T222, T226, T227, T228, X403, app71_out_aaag(T226, T227, T228, X403)) → app71_out_aaag(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_out_aaag(T198, T199, T197, X234)) → p43_out_aaaaaag(T199, T123, T127, T184, T198, T197, X234)
U22_aag(T122, T123, X234, p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aag(T122, T123, X234)
U54_ag(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_ag(T390, T363, T353, T391, qs60_in_ag(T371, T391))
qs60_in_ag([], []) → qs60_out_ag([], [])
qs60_in_ag(.(T192, T193), X370) → U20_ag(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
U20_ag(T192, T193, X370, p43_out_aaaaaag(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_ag(.(T192, T193), X370)
U55_ag(T390, T363, T353, T391, qs60_out_ag(T371, T391)) → qs1_out_ag(.(T390, .(T363, T353)), .(T390, T391))
qs1_in_ag(.(T404, .(T363, T353)), .(T402, T406)) → U56_ag(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
U56_ag(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_ag(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U57_ag(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_ag(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U58_ag(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_ag(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U59_ag(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_ag(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
app131_in_agag([], T421, T422, .(T421, T422)) → app131_out_agag([], T421, T422, .(T421, T422))
app131_in_agag(.(T433, T438), T435, T439, .(T433, T437)) → U23_agag(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
U23_agag(T433, T438, T435, T439, T437, app131_out_agag(T438, T435, T439, T437)) → app131_out_agag(.(T433, T438), T435, T439, .(T433, T437))
U60_ag(T404, T363, T353, T402, T406, app131_out_agag(T407, T404, T408, T406)) → qs1_out_ag(.(T404, .(T363, T353)), .(T402, T406))
qs1_in_ag(.(T459, .(T461, T460)), T329) → U61_ag(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
U61_ag(T459, T461, T460, T329, part44_out_aaaa(T459, T460, X705, X706)) → qs1_out_ag(.(T459, .(T461, T460)), T329)
qs1_in_ag(.(T468, .(T467, T460)), T329) → U62_ag(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_ag(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_ag(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U63_ag(T468, T467, T460, T329, qs60_out_aa(T465, X543)) → qs1_out_ag(.(T468, .(T467, T460)), T329)
qs1_in_ag(.(T476, .(T474, T460)), T329) → U64_ag(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_ag(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_ag(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U65_ag(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_ag(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U66_ag(T476, T474, T460, T329, qs39_out_aaa(T474, T475, X544)) → qs1_out_ag(.(T476, .(T474, T460)), T329)
qs1_in_ag(.(T498, .(T474, T460)), .(T498, T499)) → U67_ag(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
part44_in_gaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_gaaa(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
U6_gaaa(T148, T149, T150, X282, X283, less13_out_ga(T148, T149)) → part44_out_gaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_gaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_gaaa(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_gaaa(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_gaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_gaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_gaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_gaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_gaaa(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
part44_in_gaaa(T182, [], [], []) → part44_out_gaaa(T182, [], [], [])
U9_gaaa(T175, T173, T176, X333, X334, part44_out_gaaa(T175, T176, X333, X334)) → part44_out_gaaa(T175, .(T173, T176), X333, .(T173, X334))
U67_ag(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_ag(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U68_ag(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_ag(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U69_ag(T498, T474, T460, T499, qs39_out_aag(T474, T475, T499)) → qs1_out_ag(.(T498, .(T474, T460)), .(T498, T499))
qs1_in_ag(.(T516, .(T474, T460)), .(T510, T514)) → U70_ag(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
U70_ag(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_ag(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U71_ag(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_ag(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U72_ag(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_ag(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
app157_in_aaag([], T530, T531, .(T530, T531)) → app157_out_aaag([], T530, T531, .(T530, T531))
app157_in_aaag(.(T542, T547), T548, T549, .(T542, T546)) → U24_aaag(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
U24_aaag(T542, T547, T548, T549, T546, app157_out_aaag(T547, T548, T549, T546)) → app157_out_aaag(.(T542, T547), T548, T549, .(T542, T546))
U73_ag(T516, T474, T460, T510, T514, app157_out_aaag(T515, T516, T517, T514)) → qs1_out_ag(.(T516, .(T474, T460)), .(T510, T514))
qs1_in_ag(.(T557, []), T329) → U74_ag(T557, T329, qs100_in_a(X543))
U74_ag(T557, T329, qs100_out_a(X543)) → qs1_out_ag(.(T557, []), T329)
qs1_in_ag(.(T557, []), T329) → U75_ag(T557, T329, qs100_in_a(T560))
U75_ag(T557, T329, qs100_out_a(T560)) → U76_ag(T557, T329, qs100_in_a(X544))
U76_ag(T557, T329, qs100_out_a(X544)) → qs1_out_ag(.(T557, []), T329)
U75_ag(T557, T329, qs100_out_a(T560)) → U77_ag(T557, T329, T560, qs100_in_a(T563))
U77_ag(T557, T329, T560, qs100_out_a(T563)) → U78_ag(T557, T329, app157_in_gagg(T560, T557, T563, T329))
app157_in_gagg([], T530, T531, .(T530, T531)) → app157_out_gagg([], T530, T531, .(T530, T531))
app157_in_gagg(.(T542, T547), T548, T549, .(T542, T546)) → U24_gagg(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
U24_gagg(T542, T547, T548, T549, T546, app157_out_gagg(T547, T548, T549, T546)) → app157_out_gagg(.(T542, T547), T548, T549, .(T542, T546))
U78_ag(T557, T329, app157_out_gagg(T560, T557, T563, T329)) → qs1_out_ag(.(T557, []), T329)
PART44_IN_AAAA(T175, .(T173, T176), X333, .(T173, X334)) → PART44_IN_AAAA(T175, T176, X333, X334)
PART44_IN_AAAA → PART44_IN_AAAA
P43_IN_AAAAAAA(T129, T123, T127, T128, X232, X233, X234) → U11_AAAAAAA(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_AAAAAAA(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → QS60_IN_AA(T127, X232)
QS60_IN_AA(.(T192, T193), X370) → P43_IN_AAAAAAA(T192, T193, X366, X367, X368, X369, X370)
P43_IN_AAAAAAA(T185, T123, T127, T184, T183, X233, X234) → U13_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → QS60_IN_AA(T184, X233)
U13_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → QS60_IN_AA(T127, T183)
P43_IN_AAAAAAA(T199, T123, T127, T184, T198, T197, X234) → U16_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → QS60_IN_AA(T184, T197)
U16_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → QS60_IN_AA(T127, T198)
qs1_in_ag([], []) → qs1_out_ag([], [])
qs1_in_ag(.(T24, .(T25, T26)), []) → U25_ag(T24, T25, T26, less13_in_aa(T24, T25))
less13_in_aa(0, s(T38)) → less13_out_aa(0, s(T38))
less13_in_aa(s(T45), s(T46)) → U1_aa(T45, T46, less13_in_aa(T45, T46))
U1_aa(T45, T46, less13_out_aa(T45, T46)) → less13_out_aa(s(T45), s(T46))
U25_ag(T24, T25, T26, less13_out_aa(T24, T25)) → qs1_out_ag(.(T24, .(T25, T26)), [])
qs1_in_ag(.(T29, .(T31, T30)), []) → U26_ag(T29, T31, T30, less13_in_aa(T29, T31))
U26_ag(T29, T31, T30, less13_out_aa(T29, T31)) → U27_ag(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
part23_in_gaaa(T70, .(T73, T74), .(T73, X123), X124) → U2_gaaa(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
U2_gaaa(T70, T73, T74, X123, X124, less13_out_ga(T70, T73)) → part23_out_gaaa(T70, .(T73, T74), .(T73, X123), X124)
part23_in_gaaa(T70, .(T73, T77), .(T73, X123), X124) → U3_gaaa(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
part23_in_gaaa(T95, .(T96, T98), X174, .(T96, X175)) → U5_gaaa(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
part23_in_gaaa(T104, [], [], []) → part23_out_gaaa(T104, [], [], [])
U5_gaaa(T95, T96, T98, X174, X175, part23_out_gaaa(T95, T98, X174, X175)) → part23_out_gaaa(T95, .(T96, T98), X174, .(T96, X175))
U4_gaaa(T70, T73, T77, X123, X124, part23_out_gaaa(T70, T77, X123, X124)) → part23_out_gaaa(T70, .(T73, T77), .(T73, X123), X124)
U27_ag(T29, T31, T30, part23_out_gaaa(T29, T30, X49, X50)) → qs1_out_ag(.(T29, .(T31, T30)), [])
qs1_in_ag(.(T29, .(T54, T30)), []) → U28_ag(T29, T54, T30, less13_in_aa(T29, T54))
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U29_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U29_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_ag(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
qs39_in_aaa(T122, T123, X234) → U22_aaa(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
part44_in_aaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_aaaa(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
U6_aaaa(T148, T149, T150, X282, X283, less13_out_aa(T148, T149)) → part44_out_aaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_aaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_aaaa(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_aaaa(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_aaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_aaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_aaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_aaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_aaaa(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
part44_in_aaaa(T182, [], [], []) → part44_out_aaaa(T182, [], [], [])
U9_aaaa(T175, T173, T176, X333, X334, part44_out_aaaa(T175, T176, X333, X334)) → part44_out_aaaa(T175, .(T173, T176), X333, .(T173, X334))
U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaaa(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
qs60_in_aa([], []) → qs60_out_aa([], [])
qs60_in_aa(.(T192, T193), X370) → U20_aa(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
p43_in_aaaaaaa(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaaa(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaaa(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
app71_in_aaaa([], T212, T213, .(T212, T213)) → app71_out_aaaa([], T212, T213, .(T212, T213))
app71_in_aaaa(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaaa(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
U21_aaaa(T222, T226, T227, T228, X403, app71_out_aaaa(T226, T227, T228, X403)) → app71_out_aaaa(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_out_aaaa(T198, T199, T197, X234)) → p43_out_aaaaaaa(T199, T123, T127, T184, T198, T197, X234)
U20_aa(T192, T193, X370, p43_out_aaaaaaa(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_aa(.(T192, T193), X370)
U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaaa(T129, T123, T127, T128, X232, X233, X234)
U22_aaa(T122, T123, X234, p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aaa(T122, T123, X234)
U30_ag(T29, T54, T30, qs39_out_aaa(T54, T52, X11)) → qs1_out_ag(.(T29, .(T54, T30)), [])
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U31_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_ag(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U32_ag(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_ag(T29, T54, T30, qs60_in_aa(T108, X12))
U33_ag(T29, T54, T30, qs60_out_aa(T108, X12)) → qs1_out_ag(.(T29, .(T54, T30)), [])
qs1_in_ag(.(T264, .(T266, T265)), []) → U34_ag(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
U34_ag(T264, T266, T265, part44_out_aaaa(T264, T265, X454, X455)) → qs1_out_ag(.(T264, .(T266, T265)), [])
qs1_in_ag(.(T273, .(T272, T265)), []) → U35_ag(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_ag(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_ag(T273, T272, T265, qs60_in_aa(T270, X11))
U36_ag(T273, T272, T265, qs60_out_aa(T270, X11)) → qs1_out_ag(.(T273, .(T272, T265)), [])
qs1_in_ag(.(T280, .(T278, T265)), []) → U37_ag(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_ag(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_ag(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U38_ag(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_ag(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U39_ag(T280, T278, T265, qs39_out_aaa(T278, T279, X12)) → qs1_out_ag(.(T280, .(T278, T265)), [])
qs1_in_ag(.(T305, []), []) → U40_ag(T305, qs100_in_a(X11))
qs100_in_a([]) → qs100_out_a([])
U40_ag(T305, qs100_out_a(X11)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T305, []), []) → U41_ag(T305, qs100_in_a(T309))
U41_ag(T305, qs100_out_a(T309)) → U42_ag(T305, qs100_in_a(X12))
U42_ag(T305, qs100_out_a(X12)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T347, .(T348, T349)), T329) → U43_ag(T347, T348, T349, T329, less13_in_aa(T347, T348))
U43_ag(T347, T348, T349, T329, less13_out_aa(T347, T348)) → qs1_out_ag(.(T347, .(T348, T349)), T329)
qs1_in_ag(.(T352, .(T354, T353)), T329) → U44_ag(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_ag(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_ag(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U45_ag(T352, T354, T353, T329, part23_out_gaaa(T352, T353, X581, X582)) → qs1_out_ag(.(T352, .(T354, T353)), T329)
qs1_in_ag(.(T352, .(T363, T353)), T329) → U46_ag(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U47_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_ag(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U48_ag(T352, T363, T353, T329, qs39_out_aaa(T363, T361, X543)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_ag(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U50_ag(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_ag(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U51_ag(T352, T363, T353, T329, qs60_out_aa(T371, X544)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
qs1_in_ag(.(T390, .(T363, T353)), .(T390, T391)) → U52_ag(T390, T363, T353, T391, less13_in_ga(T390, T363))
U52_ag(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_ag(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U53_ag(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_ag(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
qs39_in_aag(T122, T123, X234) → U22_aag(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaag(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaag(T129, T123, T127, T128, X232, X233, X234)
p43_in_aaaaaag(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaag(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaag(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
app71_in_aaag([], T212, T213, .(T212, T213)) → app71_out_aaag([], T212, T213, .(T212, T213))
app71_in_aaag(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaag(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
U21_aaag(T222, T226, T227, T228, X403, app71_out_aaag(T226, T227, T228, X403)) → app71_out_aaag(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_out_aaag(T198, T199, T197, X234)) → p43_out_aaaaaag(T199, T123, T127, T184, T198, T197, X234)
U22_aag(T122, T123, X234, p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aag(T122, T123, X234)
U54_ag(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_ag(T390, T363, T353, T391, qs60_in_ag(T371, T391))
qs60_in_ag([], []) → qs60_out_ag([], [])
qs60_in_ag(.(T192, T193), X370) → U20_ag(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
U20_ag(T192, T193, X370, p43_out_aaaaaag(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_ag(.(T192, T193), X370)
U55_ag(T390, T363, T353, T391, qs60_out_ag(T371, T391)) → qs1_out_ag(.(T390, .(T363, T353)), .(T390, T391))
qs1_in_ag(.(T404, .(T363, T353)), .(T402, T406)) → U56_ag(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
U56_ag(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_ag(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U57_ag(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_ag(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U58_ag(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_ag(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U59_ag(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_ag(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
app131_in_agag([], T421, T422, .(T421, T422)) → app131_out_agag([], T421, T422, .(T421, T422))
app131_in_agag(.(T433, T438), T435, T439, .(T433, T437)) → U23_agag(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
U23_agag(T433, T438, T435, T439, T437, app131_out_agag(T438, T435, T439, T437)) → app131_out_agag(.(T433, T438), T435, T439, .(T433, T437))
U60_ag(T404, T363, T353, T402, T406, app131_out_agag(T407, T404, T408, T406)) → qs1_out_ag(.(T404, .(T363, T353)), .(T402, T406))
qs1_in_ag(.(T459, .(T461, T460)), T329) → U61_ag(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
U61_ag(T459, T461, T460, T329, part44_out_aaaa(T459, T460, X705, X706)) → qs1_out_ag(.(T459, .(T461, T460)), T329)
qs1_in_ag(.(T468, .(T467, T460)), T329) → U62_ag(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_ag(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_ag(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U63_ag(T468, T467, T460, T329, qs60_out_aa(T465, X543)) → qs1_out_ag(.(T468, .(T467, T460)), T329)
qs1_in_ag(.(T476, .(T474, T460)), T329) → U64_ag(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_ag(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_ag(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U65_ag(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_ag(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U66_ag(T476, T474, T460, T329, qs39_out_aaa(T474, T475, X544)) → qs1_out_ag(.(T476, .(T474, T460)), T329)
qs1_in_ag(.(T498, .(T474, T460)), .(T498, T499)) → U67_ag(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
part44_in_gaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_gaaa(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
U6_gaaa(T148, T149, T150, X282, X283, less13_out_ga(T148, T149)) → part44_out_gaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_gaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_gaaa(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_gaaa(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_gaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_gaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_gaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_gaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_gaaa(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
part44_in_gaaa(T182, [], [], []) → part44_out_gaaa(T182, [], [], [])
U9_gaaa(T175, T173, T176, X333, X334, part44_out_gaaa(T175, T176, X333, X334)) → part44_out_gaaa(T175, .(T173, T176), X333, .(T173, X334))
U67_ag(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_ag(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U68_ag(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_ag(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U69_ag(T498, T474, T460, T499, qs39_out_aag(T474, T475, T499)) → qs1_out_ag(.(T498, .(T474, T460)), .(T498, T499))
qs1_in_ag(.(T516, .(T474, T460)), .(T510, T514)) → U70_ag(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
U70_ag(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_ag(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U71_ag(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_ag(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U72_ag(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_ag(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
app157_in_aaag([], T530, T531, .(T530, T531)) → app157_out_aaag([], T530, T531, .(T530, T531))
app157_in_aaag(.(T542, T547), T548, T549, .(T542, T546)) → U24_aaag(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
U24_aaag(T542, T547, T548, T549, T546, app157_out_aaag(T547, T548, T549, T546)) → app157_out_aaag(.(T542, T547), T548, T549, .(T542, T546))
U73_ag(T516, T474, T460, T510, T514, app157_out_aaag(T515, T516, T517, T514)) → qs1_out_ag(.(T516, .(T474, T460)), .(T510, T514))
qs1_in_ag(.(T557, []), T329) → U74_ag(T557, T329, qs100_in_a(X543))
U74_ag(T557, T329, qs100_out_a(X543)) → qs1_out_ag(.(T557, []), T329)
qs1_in_ag(.(T557, []), T329) → U75_ag(T557, T329, qs100_in_a(T560))
U75_ag(T557, T329, qs100_out_a(T560)) → U76_ag(T557, T329, qs100_in_a(X544))
U76_ag(T557, T329, qs100_out_a(X544)) → qs1_out_ag(.(T557, []), T329)
U75_ag(T557, T329, qs100_out_a(T560)) → U77_ag(T557, T329, T560, qs100_in_a(T563))
U77_ag(T557, T329, T560, qs100_out_a(T563)) → U78_ag(T557, T329, app157_in_gagg(T560, T557, T563, T329))
app157_in_gagg([], T530, T531, .(T530, T531)) → app157_out_gagg([], T530, T531, .(T530, T531))
app157_in_gagg(.(T542, T547), T548, T549, .(T542, T546)) → U24_gagg(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
U24_gagg(T542, T547, T548, T549, T546, app157_out_gagg(T547, T548, T549, T546)) → app157_out_gagg(.(T542, T547), T548, T549, .(T542, T546))
U78_ag(T557, T329, app157_out_gagg(T560, T557, T563, T329)) → qs1_out_ag(.(T557, []), T329)
P43_IN_AAAAAAA(T129, T123, T127, T128, X232, X233, X234) → U11_AAAAAAA(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_AAAAAAA(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → QS60_IN_AA(T127, X232)
QS60_IN_AA(.(T192, T193), X370) → P43_IN_AAAAAAA(T192, T193, X366, X367, X368, X369, X370)
P43_IN_AAAAAAA(T185, T123, T127, T184, T183, X233, X234) → U13_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → QS60_IN_AA(T184, X233)
U13_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → QS60_IN_AA(T127, T183)
P43_IN_AAAAAAA(T199, T123, T127, T184, T198, T197, X234) → U16_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → QS60_IN_AA(T184, T197)
U16_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → QS60_IN_AA(T127, T198)
part44_in_aaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_aaaa(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
part44_in_aaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_aaaa(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
part44_in_aaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_aaaa(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
part44_in_aaaa(T182, [], [], []) → part44_out_aaaa(T182, [], [], [])
qs60_in_aa([], []) → qs60_out_aa([], [])
qs60_in_aa(.(T192, T193), X370) → U20_aa(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
U6_aaaa(T148, T149, T150, X282, X283, less13_out_aa(T148, T149)) → part44_out_aaaa(T148, .(T149, T150), .(T149, X282), X283)
U7_aaaa(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_aaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U9_aaaa(T175, T173, T176, X333, X334, part44_out_aaaa(T175, T176, X333, X334)) → part44_out_aaaa(T175, .(T173, T176), X333, .(T173, X334))
U20_aa(T192, T193, X370, p43_out_aaaaaaa(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_aa(.(T192, T193), X370)
less13_in_aa(0, s(T38)) → less13_out_aa(0, s(T38))
less13_in_aa(s(T45), s(T46)) → U1_aa(T45, T46, less13_in_aa(T45, T46))
U8_aaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_aaaa(T153, .(T149, T154), .(T149, X282), X283)
p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
p43_in_aaaaaaa(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
p43_in_aaaaaaa(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
p43_in_aaaaaaa(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U1_aa(T45, T46, less13_out_aa(T45, T46)) → less13_out_aa(s(T45), s(T46))
part23_in_gaaa(T70, .(T73, T74), .(T73, X123), X124) → U2_gaaa(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
part23_in_gaaa(T70, .(T73, T77), .(T73, X123), X124) → U3_gaaa(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
part23_in_gaaa(T95, .(T96, T98), X174, .(T96, X175)) → U5_gaaa(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
part23_in_gaaa(T104, [], [], []) → part23_out_gaaa(T104, [], [], [])
U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)
U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U2_gaaa(T70, T73, T74, X123, X124, less13_out_ga(T70, T73)) → part23_out_gaaa(T70, .(T73, T74), .(T73, X123), X124)
U3_gaaa(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
U5_gaaa(T95, T96, T98, X174, X175, part23_out_gaaa(T95, T98, X174, X175)) → part23_out_gaaa(T95, .(T96, T98), X174, .(T96, X175))
U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaaa(T129, T123, T127, T128, X232, X233, X234)
U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U4_gaaa(T70, T73, T77, X123, X124, part23_out_gaaa(T70, T77, X123, X124)) → part23_out_gaaa(T70, .(T73, T77), .(T73, X123), X124)
U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaaa(T185, T123, T127, T184, T183, X233, X234)
U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_out_aaaa(T198, T199, T197, X234)) → p43_out_aaaaaaa(T199, T123, T127, T184, T198, T197, X234)
app71_in_aaaa([], T212, T213, .(T212, T213)) → app71_out_aaaa([], T212, T213, .(T212, T213))
app71_in_aaaa(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaaa(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
U21_aaaa(T222, T226, T227, T228, X403, app71_out_aaaa(T226, T227, T228, X403)) → app71_out_aaaa(.(T222, T226), T227, T228, .(T222, X403))
P43_IN_AAAAAAA → U11_AAAAAAA(part44_in_aaaa)
U11_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
QS60_IN_AA → P43_IN_AAAAAAA
P43_IN_AAAAAAA → U13_AAAAAAA(part44_in_aaaa)
U13_AAAAAAA(part44_out_aaaa) → U14_AAAAAAA(qs60_in_aa)
U14_AAAAAAA(qs60_out_aa) → QS60_IN_AA
U13_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
P43_IN_AAAAAAA → U16_AAAAAAA(part44_in_aaaa)
U16_AAAAAAA(part44_out_aaaa) → U17_AAAAAAA(qs60_in_aa)
U17_AAAAAAA(qs60_out_aa) → QS60_IN_AA
U16_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
part44_in_aaaa → U6_aaaa(less13_in_aa)
part44_in_aaaa → U7_aaaa(less13_in_aa)
part44_in_aaaa → U9_aaaa(part44_in_aaaa)
part44_in_aaaa → part44_out_aaaa
qs60_in_aa → qs60_out_aa
qs60_in_aa → U20_aa(p43_in_aaaaaaa)
U6_aaaa(less13_out_aa(T148)) → part44_out_aaaa
U7_aaaa(less13_out_aa(T153)) → U8_aaaa(part23_in_gaaa(T153))
U9_aaaa(part44_out_aaaa) → part44_out_aaaa
U20_aa(p43_out_aaaaaaa) → qs60_out_aa
less13_in_aa → less13_out_aa(0)
less13_in_aa → U1_aa(less13_in_aa)
U8_aaaa(part23_out_gaaa(T153)) → part44_out_aaaa
p43_in_aaaaaaa → U10_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaa → U11_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaa → U13_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaa → U16_aaaaaaa(part44_in_aaaa)
U1_aa(less13_out_aa(T45)) → less13_out_aa(s(T45))
part23_in_gaaa(T70) → U2_gaaa(T70, less13_in_ga(T70))
part23_in_gaaa(T70) → U3_gaaa(T70, less13_in_ga(T70))
part23_in_gaaa(T95) → U5_gaaa(T95, part23_in_gaaa(T95))
part23_in_gaaa(T104) → part23_out_gaaa(T104)
U10_aaaaaaa(part44_out_aaaa) → p43_out_aaaaaaa
U11_aaaaaaa(part44_out_aaaa) → U12_aaaaaaa(qs60_in_aa)
U13_aaaaaaa(part44_out_aaaa) → U14_aaaaaaa(qs60_in_aa)
U16_aaaaaaa(part44_out_aaaa) → U17_aaaaaaa(qs60_in_aa)
U2_gaaa(T70, less13_out_ga(T70)) → part23_out_gaaa(T70)
U3_gaaa(T70, less13_out_ga(T70)) → U4_gaaa(T70, part23_in_gaaa(T70))
U5_gaaa(T95, part23_out_gaaa(T95)) → part23_out_gaaa(T95)
U12_aaaaaaa(qs60_out_aa) → p43_out_aaaaaaa
U14_aaaaaaa(qs60_out_aa) → U15_aaaaaaa(qs60_in_aa)
U17_aaaaaaa(qs60_out_aa) → U18_aaaaaaa(qs60_in_aa)
less13_in_ga(0) → less13_out_ga(0)
less13_in_ga(s(T45)) → U1_ga(T45, less13_in_ga(T45))
U4_gaaa(T70, part23_out_gaaa(T70)) → part23_out_gaaa(T70)
U15_aaaaaaa(qs60_out_aa) → p43_out_aaaaaaa
U18_aaaaaaa(qs60_out_aa) → U19_aaaaaaa(app71_in_aaaa)
U1_ga(T45, less13_out_ga(T45)) → less13_out_ga(s(T45))
U19_aaaaaaa(app71_out_aaaa) → p43_out_aaaaaaa
app71_in_aaaa → app71_out_aaaa
app71_in_aaaa → U21_aaaa(app71_in_aaaa)
U21_aaaa(app71_out_aaaa) → app71_out_aaaa
part44_in_aaaa
qs60_in_aa
U6_aaaa(x0)
U7_aaaa(x0)
U9_aaaa(x0)
U20_aa(x0)
less13_in_aa
U8_aaaa(x0)
p43_in_aaaaaaa
U1_aa(x0)
part23_in_gaaa(x0)
U10_aaaaaaa(x0)
U11_aaaaaaa(x0)
U13_aaaaaaa(x0)
U16_aaaaaaa(x0)
U2_gaaa(x0, x1)
U3_gaaa(x0, x1)
U5_gaaa(x0, x1)
U12_aaaaaaa(x0)
U14_aaaaaaa(x0)
U17_aaaaaaa(x0)
less13_in_ga(x0)
U4_gaaa(x0, x1)
U15_aaaaaaa(x0)
U18_aaaaaaa(x0)
U1_ga(x0, x1)
U19_aaaaaaa(x0)
app71_in_aaaa
U21_aaaa(x0)
P43_IN_AAAAAAA → U11_AAAAAAA(U6_aaaa(less13_in_aa))
P43_IN_AAAAAAA → U11_AAAAAAA(U7_aaaa(less13_in_aa))
P43_IN_AAAAAAA → U11_AAAAAAA(U9_aaaa(part44_in_aaaa))
P43_IN_AAAAAAA → U11_AAAAAAA(part44_out_aaaa)
U11_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
QS60_IN_AA → P43_IN_AAAAAAA
P43_IN_AAAAAAA → U13_AAAAAAA(part44_in_aaaa)
U13_AAAAAAA(part44_out_aaaa) → U14_AAAAAAA(qs60_in_aa)
U14_AAAAAAA(qs60_out_aa) → QS60_IN_AA
U13_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
P43_IN_AAAAAAA → U16_AAAAAAA(part44_in_aaaa)
U16_AAAAAAA(part44_out_aaaa) → U17_AAAAAAA(qs60_in_aa)
U17_AAAAAAA(qs60_out_aa) → QS60_IN_AA
U16_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
P43_IN_AAAAAAA → U11_AAAAAAA(U6_aaaa(less13_in_aa))
P43_IN_AAAAAAA → U11_AAAAAAA(U7_aaaa(less13_in_aa))
P43_IN_AAAAAAA → U11_AAAAAAA(U9_aaaa(part44_in_aaaa))
P43_IN_AAAAAAA → U11_AAAAAAA(part44_out_aaaa)
part44_in_aaaa → U6_aaaa(less13_in_aa)
part44_in_aaaa → U7_aaaa(less13_in_aa)
part44_in_aaaa → U9_aaaa(part44_in_aaaa)
part44_in_aaaa → part44_out_aaaa
qs60_in_aa → qs60_out_aa
qs60_in_aa → U20_aa(p43_in_aaaaaaa)
U6_aaaa(less13_out_aa(T148)) → part44_out_aaaa
U7_aaaa(less13_out_aa(T153)) → U8_aaaa(part23_in_gaaa(T153))
U9_aaaa(part44_out_aaaa) → part44_out_aaaa
U20_aa(p43_out_aaaaaaa) → qs60_out_aa
less13_in_aa → less13_out_aa(0)
less13_in_aa → U1_aa(less13_in_aa)
U8_aaaa(part23_out_gaaa(T153)) → part44_out_aaaa
p43_in_aaaaaaa → U10_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaa → U11_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaa → U13_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaa → U16_aaaaaaa(part44_in_aaaa)
U1_aa(less13_out_aa(T45)) → less13_out_aa(s(T45))
part23_in_gaaa(T70) → U2_gaaa(T70, less13_in_ga(T70))
part23_in_gaaa(T70) → U3_gaaa(T70, less13_in_ga(T70))
part23_in_gaaa(T95) → U5_gaaa(T95, part23_in_gaaa(T95))
part23_in_gaaa(T104) → part23_out_gaaa(T104)
U10_aaaaaaa(part44_out_aaaa) → p43_out_aaaaaaa
U11_aaaaaaa(part44_out_aaaa) → U12_aaaaaaa(qs60_in_aa)
U13_aaaaaaa(part44_out_aaaa) → U14_aaaaaaa(qs60_in_aa)
U16_aaaaaaa(part44_out_aaaa) → U17_aaaaaaa(qs60_in_aa)
U2_gaaa(T70, less13_out_ga(T70)) → part23_out_gaaa(T70)
U3_gaaa(T70, less13_out_ga(T70)) → U4_gaaa(T70, part23_in_gaaa(T70))
U5_gaaa(T95, part23_out_gaaa(T95)) → part23_out_gaaa(T95)
U12_aaaaaaa(qs60_out_aa) → p43_out_aaaaaaa
U14_aaaaaaa(qs60_out_aa) → U15_aaaaaaa(qs60_in_aa)
U17_aaaaaaa(qs60_out_aa) → U18_aaaaaaa(qs60_in_aa)
less13_in_ga(0) → less13_out_ga(0)
less13_in_ga(s(T45)) → U1_ga(T45, less13_in_ga(T45))
U4_gaaa(T70, part23_out_gaaa(T70)) → part23_out_gaaa(T70)
U15_aaaaaaa(qs60_out_aa) → p43_out_aaaaaaa
U18_aaaaaaa(qs60_out_aa) → U19_aaaaaaa(app71_in_aaaa)
U1_ga(T45, less13_out_ga(T45)) → less13_out_ga(s(T45))
U19_aaaaaaa(app71_out_aaaa) → p43_out_aaaaaaa
app71_in_aaaa → app71_out_aaaa
app71_in_aaaa → U21_aaaa(app71_in_aaaa)
U21_aaaa(app71_out_aaaa) → app71_out_aaaa
part44_in_aaaa
qs60_in_aa
U6_aaaa(x0)
U7_aaaa(x0)
U9_aaaa(x0)
U20_aa(x0)
less13_in_aa
U8_aaaa(x0)
p43_in_aaaaaaa
U1_aa(x0)
part23_in_gaaa(x0)
U10_aaaaaaa(x0)
U11_aaaaaaa(x0)
U13_aaaaaaa(x0)
U16_aaaaaaa(x0)
U2_gaaa(x0, x1)
U3_gaaa(x0, x1)
U5_gaaa(x0, x1)
U12_aaaaaaa(x0)
U14_aaaaaaa(x0)
U17_aaaaaaa(x0)
less13_in_ga(x0)
U4_gaaa(x0, x1)
U15_aaaaaaa(x0)
U18_aaaaaaa(x0)
U1_ga(x0, x1)
U19_aaaaaaa(x0)
app71_in_aaaa
U21_aaaa(x0)
P43_IN_AAAAAAA → U13_AAAAAAA(U6_aaaa(less13_in_aa))
P43_IN_AAAAAAA → U13_AAAAAAA(U7_aaaa(less13_in_aa))
P43_IN_AAAAAAA → U13_AAAAAAA(U9_aaaa(part44_in_aaaa))
P43_IN_AAAAAAA → U13_AAAAAAA(part44_out_aaaa)
U11_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
QS60_IN_AA → P43_IN_AAAAAAA
U13_AAAAAAA(part44_out_aaaa) → U14_AAAAAAA(qs60_in_aa)
U14_AAAAAAA(qs60_out_aa) → QS60_IN_AA
U13_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
P43_IN_AAAAAAA → U16_AAAAAAA(part44_in_aaaa)
U16_AAAAAAA(part44_out_aaaa) → U17_AAAAAAA(qs60_in_aa)
U17_AAAAAAA(qs60_out_aa) → QS60_IN_AA
U16_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
P43_IN_AAAAAAA → U11_AAAAAAA(U6_aaaa(less13_in_aa))
P43_IN_AAAAAAA → U11_AAAAAAA(U7_aaaa(less13_in_aa))
P43_IN_AAAAAAA → U11_AAAAAAA(U9_aaaa(part44_in_aaaa))
P43_IN_AAAAAAA → U11_AAAAAAA(part44_out_aaaa)
P43_IN_AAAAAAA → U13_AAAAAAA(U6_aaaa(less13_in_aa))
P43_IN_AAAAAAA → U13_AAAAAAA(U7_aaaa(less13_in_aa))
P43_IN_AAAAAAA → U13_AAAAAAA(U9_aaaa(part44_in_aaaa))
P43_IN_AAAAAAA → U13_AAAAAAA(part44_out_aaaa)
part44_in_aaaa → U6_aaaa(less13_in_aa)
part44_in_aaaa → U7_aaaa(less13_in_aa)
part44_in_aaaa → U9_aaaa(part44_in_aaaa)
part44_in_aaaa → part44_out_aaaa
qs60_in_aa → qs60_out_aa
qs60_in_aa → U20_aa(p43_in_aaaaaaa)
U6_aaaa(less13_out_aa(T148)) → part44_out_aaaa
U7_aaaa(less13_out_aa(T153)) → U8_aaaa(part23_in_gaaa(T153))
U9_aaaa(part44_out_aaaa) → part44_out_aaaa
U20_aa(p43_out_aaaaaaa) → qs60_out_aa
less13_in_aa → less13_out_aa(0)
less13_in_aa → U1_aa(less13_in_aa)
U8_aaaa(part23_out_gaaa(T153)) → part44_out_aaaa
p43_in_aaaaaaa → U10_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaa → U11_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaa → U13_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaa → U16_aaaaaaa(part44_in_aaaa)
U1_aa(less13_out_aa(T45)) → less13_out_aa(s(T45))
part23_in_gaaa(T70) → U2_gaaa(T70, less13_in_ga(T70))
part23_in_gaaa(T70) → U3_gaaa(T70, less13_in_ga(T70))
part23_in_gaaa(T95) → U5_gaaa(T95, part23_in_gaaa(T95))
part23_in_gaaa(T104) → part23_out_gaaa(T104)
U10_aaaaaaa(part44_out_aaaa) → p43_out_aaaaaaa
U11_aaaaaaa(part44_out_aaaa) → U12_aaaaaaa(qs60_in_aa)
U13_aaaaaaa(part44_out_aaaa) → U14_aaaaaaa(qs60_in_aa)
U16_aaaaaaa(part44_out_aaaa) → U17_aaaaaaa(qs60_in_aa)
U2_gaaa(T70, less13_out_ga(T70)) → part23_out_gaaa(T70)
U3_gaaa(T70, less13_out_ga(T70)) → U4_gaaa(T70, part23_in_gaaa(T70))
U5_gaaa(T95, part23_out_gaaa(T95)) → part23_out_gaaa(T95)
U12_aaaaaaa(qs60_out_aa) → p43_out_aaaaaaa
U14_aaaaaaa(qs60_out_aa) → U15_aaaaaaa(qs60_in_aa)
U17_aaaaaaa(qs60_out_aa) → U18_aaaaaaa(qs60_in_aa)
less13_in_ga(0) → less13_out_ga(0)
less13_in_ga(s(T45)) → U1_ga(T45, less13_in_ga(T45))
U4_gaaa(T70, part23_out_gaaa(T70)) → part23_out_gaaa(T70)
U15_aaaaaaa(qs60_out_aa) → p43_out_aaaaaaa
U18_aaaaaaa(qs60_out_aa) → U19_aaaaaaa(app71_in_aaaa)
U1_ga(T45, less13_out_ga(T45)) → less13_out_ga(s(T45))
U19_aaaaaaa(app71_out_aaaa) → p43_out_aaaaaaa
app71_in_aaaa → app71_out_aaaa
app71_in_aaaa → U21_aaaa(app71_in_aaaa)
U21_aaaa(app71_out_aaaa) → app71_out_aaaa
part44_in_aaaa
qs60_in_aa
U6_aaaa(x0)
U7_aaaa(x0)
U9_aaaa(x0)
U20_aa(x0)
less13_in_aa
U8_aaaa(x0)
p43_in_aaaaaaa
U1_aa(x0)
part23_in_gaaa(x0)
U10_aaaaaaa(x0)
U11_aaaaaaa(x0)
U13_aaaaaaa(x0)
U16_aaaaaaa(x0)
U2_gaaa(x0, x1)
U3_gaaa(x0, x1)
U5_gaaa(x0, x1)
U12_aaaaaaa(x0)
U14_aaaaaaa(x0)
U17_aaaaaaa(x0)
less13_in_ga(x0)
U4_gaaa(x0, x1)
U15_aaaaaaa(x0)
U18_aaaaaaa(x0)
U1_ga(x0, x1)
U19_aaaaaaa(x0)
app71_in_aaaa
U21_aaaa(x0)
U13_AAAAAAA(part44_out_aaaa) → U14_AAAAAAA(qs60_out_aa)
U13_AAAAAAA(part44_out_aaaa) → U14_AAAAAAA(U20_aa(p43_in_aaaaaaa))
U11_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
QS60_IN_AA → P43_IN_AAAAAAA
U14_AAAAAAA(qs60_out_aa) → QS60_IN_AA
U13_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
P43_IN_AAAAAAA → U16_AAAAAAA(part44_in_aaaa)
U16_AAAAAAA(part44_out_aaaa) → U17_AAAAAAA(qs60_in_aa)
U17_AAAAAAA(qs60_out_aa) → QS60_IN_AA
U16_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
P43_IN_AAAAAAA → U11_AAAAAAA(U6_aaaa(less13_in_aa))
P43_IN_AAAAAAA → U11_AAAAAAA(U7_aaaa(less13_in_aa))
P43_IN_AAAAAAA → U11_AAAAAAA(U9_aaaa(part44_in_aaaa))
P43_IN_AAAAAAA → U11_AAAAAAA(part44_out_aaaa)
P43_IN_AAAAAAA → U13_AAAAAAA(U6_aaaa(less13_in_aa))
P43_IN_AAAAAAA → U13_AAAAAAA(U7_aaaa(less13_in_aa))
P43_IN_AAAAAAA → U13_AAAAAAA(U9_aaaa(part44_in_aaaa))
P43_IN_AAAAAAA → U13_AAAAAAA(part44_out_aaaa)
U13_AAAAAAA(part44_out_aaaa) → U14_AAAAAAA(qs60_out_aa)
U13_AAAAAAA(part44_out_aaaa) → U14_AAAAAAA(U20_aa(p43_in_aaaaaaa))
part44_in_aaaa → U6_aaaa(less13_in_aa)
part44_in_aaaa → U7_aaaa(less13_in_aa)
part44_in_aaaa → U9_aaaa(part44_in_aaaa)
part44_in_aaaa → part44_out_aaaa
qs60_in_aa → qs60_out_aa
qs60_in_aa → U20_aa(p43_in_aaaaaaa)
U6_aaaa(less13_out_aa(T148)) → part44_out_aaaa
U7_aaaa(less13_out_aa(T153)) → U8_aaaa(part23_in_gaaa(T153))
U9_aaaa(part44_out_aaaa) → part44_out_aaaa
U20_aa(p43_out_aaaaaaa) → qs60_out_aa
less13_in_aa → less13_out_aa(0)
less13_in_aa → U1_aa(less13_in_aa)
U8_aaaa(part23_out_gaaa(T153)) → part44_out_aaaa
p43_in_aaaaaaa → U10_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaa → U11_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaa → U13_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaa → U16_aaaaaaa(part44_in_aaaa)
U1_aa(less13_out_aa(T45)) → less13_out_aa(s(T45))
part23_in_gaaa(T70) → U2_gaaa(T70, less13_in_ga(T70))
part23_in_gaaa(T70) → U3_gaaa(T70, less13_in_ga(T70))
part23_in_gaaa(T95) → U5_gaaa(T95, part23_in_gaaa(T95))
part23_in_gaaa(T104) → part23_out_gaaa(T104)
U10_aaaaaaa(part44_out_aaaa) → p43_out_aaaaaaa
U11_aaaaaaa(part44_out_aaaa) → U12_aaaaaaa(qs60_in_aa)
U13_aaaaaaa(part44_out_aaaa) → U14_aaaaaaa(qs60_in_aa)
U16_aaaaaaa(part44_out_aaaa) → U17_aaaaaaa(qs60_in_aa)
U2_gaaa(T70, less13_out_ga(T70)) → part23_out_gaaa(T70)
U3_gaaa(T70, less13_out_ga(T70)) → U4_gaaa(T70, part23_in_gaaa(T70))
U5_gaaa(T95, part23_out_gaaa(T95)) → part23_out_gaaa(T95)
U12_aaaaaaa(qs60_out_aa) → p43_out_aaaaaaa
U14_aaaaaaa(qs60_out_aa) → U15_aaaaaaa(qs60_in_aa)
U17_aaaaaaa(qs60_out_aa) → U18_aaaaaaa(qs60_in_aa)
less13_in_ga(0) → less13_out_ga(0)
less13_in_ga(s(T45)) → U1_ga(T45, less13_in_ga(T45))
U4_gaaa(T70, part23_out_gaaa(T70)) → part23_out_gaaa(T70)
U15_aaaaaaa(qs60_out_aa) → p43_out_aaaaaaa
U18_aaaaaaa(qs60_out_aa) → U19_aaaaaaa(app71_in_aaaa)
U1_ga(T45, less13_out_ga(T45)) → less13_out_ga(s(T45))
U19_aaaaaaa(app71_out_aaaa) → p43_out_aaaaaaa
app71_in_aaaa → app71_out_aaaa
app71_in_aaaa → U21_aaaa(app71_in_aaaa)
U21_aaaa(app71_out_aaaa) → app71_out_aaaa
part44_in_aaaa
qs60_in_aa
U6_aaaa(x0)
U7_aaaa(x0)
U9_aaaa(x0)
U20_aa(x0)
less13_in_aa
U8_aaaa(x0)
p43_in_aaaaaaa
U1_aa(x0)
part23_in_gaaa(x0)
U10_aaaaaaa(x0)
U11_aaaaaaa(x0)
U13_aaaaaaa(x0)
U16_aaaaaaa(x0)
U2_gaaa(x0, x1)
U3_gaaa(x0, x1)
U5_gaaa(x0, x1)
U12_aaaaaaa(x0)
U14_aaaaaaa(x0)
U17_aaaaaaa(x0)
less13_in_ga(x0)
U4_gaaa(x0, x1)
U15_aaaaaaa(x0)
U18_aaaaaaa(x0)
U1_ga(x0, x1)
U19_aaaaaaa(x0)
app71_in_aaaa
U21_aaaa(x0)
P43_IN_AAAAAAA → U16_AAAAAAA(U6_aaaa(less13_in_aa))
P43_IN_AAAAAAA → U16_AAAAAAA(U7_aaaa(less13_in_aa))
P43_IN_AAAAAAA → U16_AAAAAAA(U9_aaaa(part44_in_aaaa))
P43_IN_AAAAAAA → U16_AAAAAAA(part44_out_aaaa)
U11_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
QS60_IN_AA → P43_IN_AAAAAAA
U14_AAAAAAA(qs60_out_aa) → QS60_IN_AA
U13_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
U16_AAAAAAA(part44_out_aaaa) → U17_AAAAAAA(qs60_in_aa)
U17_AAAAAAA(qs60_out_aa) → QS60_IN_AA
U16_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
P43_IN_AAAAAAA → U11_AAAAAAA(U6_aaaa(less13_in_aa))
P43_IN_AAAAAAA → U11_AAAAAAA(U7_aaaa(less13_in_aa))
P43_IN_AAAAAAA → U11_AAAAAAA(U9_aaaa(part44_in_aaaa))
P43_IN_AAAAAAA → U11_AAAAAAA(part44_out_aaaa)
P43_IN_AAAAAAA → U13_AAAAAAA(U6_aaaa(less13_in_aa))
P43_IN_AAAAAAA → U13_AAAAAAA(U7_aaaa(less13_in_aa))
P43_IN_AAAAAAA → U13_AAAAAAA(U9_aaaa(part44_in_aaaa))
P43_IN_AAAAAAA → U13_AAAAAAA(part44_out_aaaa)
U13_AAAAAAA(part44_out_aaaa) → U14_AAAAAAA(qs60_out_aa)
U13_AAAAAAA(part44_out_aaaa) → U14_AAAAAAA(U20_aa(p43_in_aaaaaaa))
P43_IN_AAAAAAA → U16_AAAAAAA(U6_aaaa(less13_in_aa))
P43_IN_AAAAAAA → U16_AAAAAAA(U7_aaaa(less13_in_aa))
P43_IN_AAAAAAA → U16_AAAAAAA(U9_aaaa(part44_in_aaaa))
P43_IN_AAAAAAA → U16_AAAAAAA(part44_out_aaaa)
part44_in_aaaa → U6_aaaa(less13_in_aa)
part44_in_aaaa → U7_aaaa(less13_in_aa)
part44_in_aaaa → U9_aaaa(part44_in_aaaa)
part44_in_aaaa → part44_out_aaaa
qs60_in_aa → qs60_out_aa
qs60_in_aa → U20_aa(p43_in_aaaaaaa)
U6_aaaa(less13_out_aa(T148)) → part44_out_aaaa
U7_aaaa(less13_out_aa(T153)) → U8_aaaa(part23_in_gaaa(T153))
U9_aaaa(part44_out_aaaa) → part44_out_aaaa
U20_aa(p43_out_aaaaaaa) → qs60_out_aa
less13_in_aa → less13_out_aa(0)
less13_in_aa → U1_aa(less13_in_aa)
U8_aaaa(part23_out_gaaa(T153)) → part44_out_aaaa
p43_in_aaaaaaa → U10_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaa → U11_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaa → U13_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaa → U16_aaaaaaa(part44_in_aaaa)
U1_aa(less13_out_aa(T45)) → less13_out_aa(s(T45))
part23_in_gaaa(T70) → U2_gaaa(T70, less13_in_ga(T70))
part23_in_gaaa(T70) → U3_gaaa(T70, less13_in_ga(T70))
part23_in_gaaa(T95) → U5_gaaa(T95, part23_in_gaaa(T95))
part23_in_gaaa(T104) → part23_out_gaaa(T104)
U10_aaaaaaa(part44_out_aaaa) → p43_out_aaaaaaa
U11_aaaaaaa(part44_out_aaaa) → U12_aaaaaaa(qs60_in_aa)
U13_aaaaaaa(part44_out_aaaa) → U14_aaaaaaa(qs60_in_aa)
U16_aaaaaaa(part44_out_aaaa) → U17_aaaaaaa(qs60_in_aa)
U2_gaaa(T70, less13_out_ga(T70)) → part23_out_gaaa(T70)
U3_gaaa(T70, less13_out_ga(T70)) → U4_gaaa(T70, part23_in_gaaa(T70))
U5_gaaa(T95, part23_out_gaaa(T95)) → part23_out_gaaa(T95)
U12_aaaaaaa(qs60_out_aa) → p43_out_aaaaaaa
U14_aaaaaaa(qs60_out_aa) → U15_aaaaaaa(qs60_in_aa)
U17_aaaaaaa(qs60_out_aa) → U18_aaaaaaa(qs60_in_aa)
less13_in_ga(0) → less13_out_ga(0)
less13_in_ga(s(T45)) → U1_ga(T45, less13_in_ga(T45))
U4_gaaa(T70, part23_out_gaaa(T70)) → part23_out_gaaa(T70)
U15_aaaaaaa(qs60_out_aa) → p43_out_aaaaaaa
U18_aaaaaaa(qs60_out_aa) → U19_aaaaaaa(app71_in_aaaa)
U1_ga(T45, less13_out_ga(T45)) → less13_out_ga(s(T45))
U19_aaaaaaa(app71_out_aaaa) → p43_out_aaaaaaa
app71_in_aaaa → app71_out_aaaa
app71_in_aaaa → U21_aaaa(app71_in_aaaa)
U21_aaaa(app71_out_aaaa) → app71_out_aaaa
part44_in_aaaa
qs60_in_aa
U6_aaaa(x0)
U7_aaaa(x0)
U9_aaaa(x0)
U20_aa(x0)
less13_in_aa
U8_aaaa(x0)
p43_in_aaaaaaa
U1_aa(x0)
part23_in_gaaa(x0)
U10_aaaaaaa(x0)
U11_aaaaaaa(x0)
U13_aaaaaaa(x0)
U16_aaaaaaa(x0)
U2_gaaa(x0, x1)
U3_gaaa(x0, x1)
U5_gaaa(x0, x1)
U12_aaaaaaa(x0)
U14_aaaaaaa(x0)
U17_aaaaaaa(x0)
less13_in_ga(x0)
U4_gaaa(x0, x1)
U15_aaaaaaa(x0)
U18_aaaaaaa(x0)
U1_ga(x0, x1)
U19_aaaaaaa(x0)
app71_in_aaaa
U21_aaaa(x0)
U16_AAAAAAA(part44_out_aaaa) → U17_AAAAAAA(qs60_out_aa)
U16_AAAAAAA(part44_out_aaaa) → U17_AAAAAAA(U20_aa(p43_in_aaaaaaa))
U11_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
QS60_IN_AA → P43_IN_AAAAAAA
U14_AAAAAAA(qs60_out_aa) → QS60_IN_AA
U13_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
U17_AAAAAAA(qs60_out_aa) → QS60_IN_AA
U16_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
P43_IN_AAAAAAA → U11_AAAAAAA(U6_aaaa(less13_in_aa))
P43_IN_AAAAAAA → U11_AAAAAAA(U7_aaaa(less13_in_aa))
P43_IN_AAAAAAA → U11_AAAAAAA(U9_aaaa(part44_in_aaaa))
P43_IN_AAAAAAA → U11_AAAAAAA(part44_out_aaaa)
P43_IN_AAAAAAA → U13_AAAAAAA(U6_aaaa(less13_in_aa))
P43_IN_AAAAAAA → U13_AAAAAAA(U7_aaaa(less13_in_aa))
P43_IN_AAAAAAA → U13_AAAAAAA(U9_aaaa(part44_in_aaaa))
P43_IN_AAAAAAA → U13_AAAAAAA(part44_out_aaaa)
U13_AAAAAAA(part44_out_aaaa) → U14_AAAAAAA(qs60_out_aa)
U13_AAAAAAA(part44_out_aaaa) → U14_AAAAAAA(U20_aa(p43_in_aaaaaaa))
P43_IN_AAAAAAA → U16_AAAAAAA(U6_aaaa(less13_in_aa))
P43_IN_AAAAAAA → U16_AAAAAAA(U7_aaaa(less13_in_aa))
P43_IN_AAAAAAA → U16_AAAAAAA(U9_aaaa(part44_in_aaaa))
P43_IN_AAAAAAA → U16_AAAAAAA(part44_out_aaaa)
U16_AAAAAAA(part44_out_aaaa) → U17_AAAAAAA(qs60_out_aa)
U16_AAAAAAA(part44_out_aaaa) → U17_AAAAAAA(U20_aa(p43_in_aaaaaaa))
part44_in_aaaa → U6_aaaa(less13_in_aa)
part44_in_aaaa → U7_aaaa(less13_in_aa)
part44_in_aaaa → U9_aaaa(part44_in_aaaa)
part44_in_aaaa → part44_out_aaaa
qs60_in_aa → qs60_out_aa
qs60_in_aa → U20_aa(p43_in_aaaaaaa)
U6_aaaa(less13_out_aa(T148)) → part44_out_aaaa
U7_aaaa(less13_out_aa(T153)) → U8_aaaa(part23_in_gaaa(T153))
U9_aaaa(part44_out_aaaa) → part44_out_aaaa
U20_aa(p43_out_aaaaaaa) → qs60_out_aa
less13_in_aa → less13_out_aa(0)
less13_in_aa → U1_aa(less13_in_aa)
U8_aaaa(part23_out_gaaa(T153)) → part44_out_aaaa
p43_in_aaaaaaa → U10_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaa → U11_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaa → U13_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaa → U16_aaaaaaa(part44_in_aaaa)
U1_aa(less13_out_aa(T45)) → less13_out_aa(s(T45))
part23_in_gaaa(T70) → U2_gaaa(T70, less13_in_ga(T70))
part23_in_gaaa(T70) → U3_gaaa(T70, less13_in_ga(T70))
part23_in_gaaa(T95) → U5_gaaa(T95, part23_in_gaaa(T95))
part23_in_gaaa(T104) → part23_out_gaaa(T104)
U10_aaaaaaa(part44_out_aaaa) → p43_out_aaaaaaa
U11_aaaaaaa(part44_out_aaaa) → U12_aaaaaaa(qs60_in_aa)
U13_aaaaaaa(part44_out_aaaa) → U14_aaaaaaa(qs60_in_aa)
U16_aaaaaaa(part44_out_aaaa) → U17_aaaaaaa(qs60_in_aa)
U2_gaaa(T70, less13_out_ga(T70)) → part23_out_gaaa(T70)
U3_gaaa(T70, less13_out_ga(T70)) → U4_gaaa(T70, part23_in_gaaa(T70))
U5_gaaa(T95, part23_out_gaaa(T95)) → part23_out_gaaa(T95)
U12_aaaaaaa(qs60_out_aa) → p43_out_aaaaaaa
U14_aaaaaaa(qs60_out_aa) → U15_aaaaaaa(qs60_in_aa)
U17_aaaaaaa(qs60_out_aa) → U18_aaaaaaa(qs60_in_aa)
less13_in_ga(0) → less13_out_ga(0)
less13_in_ga(s(T45)) → U1_ga(T45, less13_in_ga(T45))
U4_gaaa(T70, part23_out_gaaa(T70)) → part23_out_gaaa(T70)
U15_aaaaaaa(qs60_out_aa) → p43_out_aaaaaaa
U18_aaaaaaa(qs60_out_aa) → U19_aaaaaaa(app71_in_aaaa)
U1_ga(T45, less13_out_ga(T45)) → less13_out_ga(s(T45))
U19_aaaaaaa(app71_out_aaaa) → p43_out_aaaaaaa
app71_in_aaaa → app71_out_aaaa
app71_in_aaaa → U21_aaaa(app71_in_aaaa)
U21_aaaa(app71_out_aaaa) → app71_out_aaaa
part44_in_aaaa
qs60_in_aa
U6_aaaa(x0)
U7_aaaa(x0)
U9_aaaa(x0)
U20_aa(x0)
less13_in_aa
U8_aaaa(x0)
p43_in_aaaaaaa
U1_aa(x0)
part23_in_gaaa(x0)
U10_aaaaaaa(x0)
U11_aaaaaaa(x0)
U13_aaaaaaa(x0)
U16_aaaaaaa(x0)
U2_gaaa(x0, x1)
U3_gaaa(x0, x1)
U5_gaaa(x0, x1)
U12_aaaaaaa(x0)
U14_aaaaaaa(x0)
U17_aaaaaaa(x0)
less13_in_ga(x0)
U4_gaaa(x0, x1)
U15_aaaaaaa(x0)
U18_aaaaaaa(x0)
U1_ga(x0, x1)
U19_aaaaaaa(x0)
app71_in_aaaa
U21_aaaa(x0)
qs1_in_ag([], []) → qs1_out_ag([], [])
qs1_in_ag(.(T24, .(T25, T26)), []) → U25_ag(T24, T25, T26, less13_in_aa(T24, T25))
less13_in_aa(0, s(T38)) → less13_out_aa(0, s(T38))
less13_in_aa(s(T45), s(T46)) → U1_aa(T45, T46, less13_in_aa(T45, T46))
U1_aa(T45, T46, less13_out_aa(T45, T46)) → less13_out_aa(s(T45), s(T46))
U25_ag(T24, T25, T26, less13_out_aa(T24, T25)) → qs1_out_ag(.(T24, .(T25, T26)), [])
qs1_in_ag(.(T29, .(T31, T30)), []) → U26_ag(T29, T31, T30, less13_in_aa(T29, T31))
U26_ag(T29, T31, T30, less13_out_aa(T29, T31)) → U27_ag(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
part23_in_gaaa(T70, .(T73, T74), .(T73, X123), X124) → U2_gaaa(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
U2_gaaa(T70, T73, T74, X123, X124, less13_out_ga(T70, T73)) → part23_out_gaaa(T70, .(T73, T74), .(T73, X123), X124)
part23_in_gaaa(T70, .(T73, T77), .(T73, X123), X124) → U3_gaaa(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
part23_in_gaaa(T95, .(T96, T98), X174, .(T96, X175)) → U5_gaaa(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
part23_in_gaaa(T104, [], [], []) → part23_out_gaaa(T104, [], [], [])
U5_gaaa(T95, T96, T98, X174, X175, part23_out_gaaa(T95, T98, X174, X175)) → part23_out_gaaa(T95, .(T96, T98), X174, .(T96, X175))
U4_gaaa(T70, T73, T77, X123, X124, part23_out_gaaa(T70, T77, X123, X124)) → part23_out_gaaa(T70, .(T73, T77), .(T73, X123), X124)
U27_ag(T29, T31, T30, part23_out_gaaa(T29, T30, X49, X50)) → qs1_out_ag(.(T29, .(T31, T30)), [])
qs1_in_ag(.(T29, .(T54, T30)), []) → U28_ag(T29, T54, T30, less13_in_aa(T29, T54))
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U29_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U29_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_ag(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
qs39_in_aaa(T122, T123, X234) → U22_aaa(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
part44_in_aaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_aaaa(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
U6_aaaa(T148, T149, T150, X282, X283, less13_out_aa(T148, T149)) → part44_out_aaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_aaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_aaaa(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_aaaa(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_aaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_aaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_aaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_aaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_aaaa(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
part44_in_aaaa(T182, [], [], []) → part44_out_aaaa(T182, [], [], [])
U9_aaaa(T175, T173, T176, X333, X334, part44_out_aaaa(T175, T176, X333, X334)) → part44_out_aaaa(T175, .(T173, T176), X333, .(T173, X334))
U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaaa(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
qs60_in_aa([], []) → qs60_out_aa([], [])
qs60_in_aa(.(T192, T193), X370) → U20_aa(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
p43_in_aaaaaaa(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaaa(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaaa(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
app71_in_aaaa([], T212, T213, .(T212, T213)) → app71_out_aaaa([], T212, T213, .(T212, T213))
app71_in_aaaa(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaaa(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
U21_aaaa(T222, T226, T227, T228, X403, app71_out_aaaa(T226, T227, T228, X403)) → app71_out_aaaa(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_out_aaaa(T198, T199, T197, X234)) → p43_out_aaaaaaa(T199, T123, T127, T184, T198, T197, X234)
U20_aa(T192, T193, X370, p43_out_aaaaaaa(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_aa(.(T192, T193), X370)
U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaaa(T129, T123, T127, T128, X232, X233, X234)
U22_aaa(T122, T123, X234, p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aaa(T122, T123, X234)
U30_ag(T29, T54, T30, qs39_out_aaa(T54, T52, X11)) → qs1_out_ag(.(T29, .(T54, T30)), [])
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U31_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_ag(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U32_ag(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_ag(T29, T54, T30, qs60_in_aa(T108, X12))
U33_ag(T29, T54, T30, qs60_out_aa(T108, X12)) → qs1_out_ag(.(T29, .(T54, T30)), [])
qs1_in_ag(.(T264, .(T266, T265)), []) → U34_ag(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
U34_ag(T264, T266, T265, part44_out_aaaa(T264, T265, X454, X455)) → qs1_out_ag(.(T264, .(T266, T265)), [])
qs1_in_ag(.(T273, .(T272, T265)), []) → U35_ag(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_ag(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_ag(T273, T272, T265, qs60_in_aa(T270, X11))
U36_ag(T273, T272, T265, qs60_out_aa(T270, X11)) → qs1_out_ag(.(T273, .(T272, T265)), [])
qs1_in_ag(.(T280, .(T278, T265)), []) → U37_ag(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_ag(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_ag(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U38_ag(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_ag(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U39_ag(T280, T278, T265, qs39_out_aaa(T278, T279, X12)) → qs1_out_ag(.(T280, .(T278, T265)), [])
qs1_in_ag(.(T305, []), []) → U40_ag(T305, qs100_in_a(X11))
qs100_in_a([]) → qs100_out_a([])
U40_ag(T305, qs100_out_a(X11)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T305, []), []) → U41_ag(T305, qs100_in_a(T309))
U41_ag(T305, qs100_out_a(T309)) → U42_ag(T305, qs100_in_a(X12))
U42_ag(T305, qs100_out_a(X12)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T347, .(T348, T349)), T329) → U43_ag(T347, T348, T349, T329, less13_in_aa(T347, T348))
U43_ag(T347, T348, T349, T329, less13_out_aa(T347, T348)) → qs1_out_ag(.(T347, .(T348, T349)), T329)
qs1_in_ag(.(T352, .(T354, T353)), T329) → U44_ag(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_ag(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_ag(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U45_ag(T352, T354, T353, T329, part23_out_gaaa(T352, T353, X581, X582)) → qs1_out_ag(.(T352, .(T354, T353)), T329)
qs1_in_ag(.(T352, .(T363, T353)), T329) → U46_ag(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U47_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_ag(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U48_ag(T352, T363, T353, T329, qs39_out_aaa(T363, T361, X543)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_ag(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U50_ag(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_ag(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U51_ag(T352, T363, T353, T329, qs60_out_aa(T371, X544)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
qs1_in_ag(.(T390, .(T363, T353)), .(T390, T391)) → U52_ag(T390, T363, T353, T391, less13_in_ga(T390, T363))
U52_ag(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_ag(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U53_ag(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_ag(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
qs39_in_aag(T122, T123, X234) → U22_aag(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaag(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaag(T129, T123, T127, T128, X232, X233, X234)
p43_in_aaaaaag(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaag(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaag(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
app71_in_aaag([], T212, T213, .(T212, T213)) → app71_out_aaag([], T212, T213, .(T212, T213))
app71_in_aaag(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaag(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
U21_aaag(T222, T226, T227, T228, X403, app71_out_aaag(T226, T227, T228, X403)) → app71_out_aaag(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_out_aaag(T198, T199, T197, X234)) → p43_out_aaaaaag(T199, T123, T127, T184, T198, T197, X234)
U22_aag(T122, T123, X234, p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aag(T122, T123, X234)
U54_ag(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_ag(T390, T363, T353, T391, qs60_in_ag(T371, T391))
qs60_in_ag([], []) → qs60_out_ag([], [])
qs60_in_ag(.(T192, T193), X370) → U20_ag(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
U20_ag(T192, T193, X370, p43_out_aaaaaag(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_ag(.(T192, T193), X370)
U55_ag(T390, T363, T353, T391, qs60_out_ag(T371, T391)) → qs1_out_ag(.(T390, .(T363, T353)), .(T390, T391))
qs1_in_ag(.(T404, .(T363, T353)), .(T402, T406)) → U56_ag(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
U56_ag(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_ag(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U57_ag(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_ag(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U58_ag(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_ag(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U59_ag(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_ag(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
app131_in_agag([], T421, T422, .(T421, T422)) → app131_out_agag([], T421, T422, .(T421, T422))
app131_in_agag(.(T433, T438), T435, T439, .(T433, T437)) → U23_agag(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
U23_agag(T433, T438, T435, T439, T437, app131_out_agag(T438, T435, T439, T437)) → app131_out_agag(.(T433, T438), T435, T439, .(T433, T437))
U60_ag(T404, T363, T353, T402, T406, app131_out_agag(T407, T404, T408, T406)) → qs1_out_ag(.(T404, .(T363, T353)), .(T402, T406))
qs1_in_ag(.(T459, .(T461, T460)), T329) → U61_ag(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
U61_ag(T459, T461, T460, T329, part44_out_aaaa(T459, T460, X705, X706)) → qs1_out_ag(.(T459, .(T461, T460)), T329)
qs1_in_ag(.(T468, .(T467, T460)), T329) → U62_ag(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_ag(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_ag(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U63_ag(T468, T467, T460, T329, qs60_out_aa(T465, X543)) → qs1_out_ag(.(T468, .(T467, T460)), T329)
qs1_in_ag(.(T476, .(T474, T460)), T329) → U64_ag(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_ag(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_ag(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U65_ag(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_ag(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U66_ag(T476, T474, T460, T329, qs39_out_aaa(T474, T475, X544)) → qs1_out_ag(.(T476, .(T474, T460)), T329)
qs1_in_ag(.(T498, .(T474, T460)), .(T498, T499)) → U67_ag(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
part44_in_gaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_gaaa(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
U6_gaaa(T148, T149, T150, X282, X283, less13_out_ga(T148, T149)) → part44_out_gaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_gaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_gaaa(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_gaaa(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_gaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_gaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_gaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_gaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_gaaa(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
part44_in_gaaa(T182, [], [], []) → part44_out_gaaa(T182, [], [], [])
U9_gaaa(T175, T173, T176, X333, X334, part44_out_gaaa(T175, T176, X333, X334)) → part44_out_gaaa(T175, .(T173, T176), X333, .(T173, X334))
U67_ag(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_ag(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U68_ag(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_ag(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U69_ag(T498, T474, T460, T499, qs39_out_aag(T474, T475, T499)) → qs1_out_ag(.(T498, .(T474, T460)), .(T498, T499))
qs1_in_ag(.(T516, .(T474, T460)), .(T510, T514)) → U70_ag(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
U70_ag(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_ag(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U71_ag(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_ag(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U72_ag(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_ag(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
app157_in_aaag([], T530, T531, .(T530, T531)) → app157_out_aaag([], T530, T531, .(T530, T531))
app157_in_aaag(.(T542, T547), T548, T549, .(T542, T546)) → U24_aaag(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
U24_aaag(T542, T547, T548, T549, T546, app157_out_aaag(T547, T548, T549, T546)) → app157_out_aaag(.(T542, T547), T548, T549, .(T542, T546))
U73_ag(T516, T474, T460, T510, T514, app157_out_aaag(T515, T516, T517, T514)) → qs1_out_ag(.(T516, .(T474, T460)), .(T510, T514))
qs1_in_ag(.(T557, []), T329) → U74_ag(T557, T329, qs100_in_a(X543))
U74_ag(T557, T329, qs100_out_a(X543)) → qs1_out_ag(.(T557, []), T329)
qs1_in_ag(.(T557, []), T329) → U75_ag(T557, T329, qs100_in_a(T560))
U75_ag(T557, T329, qs100_out_a(T560)) → U76_ag(T557, T329, qs100_in_a(X544))
U76_ag(T557, T329, qs100_out_a(X544)) → qs1_out_ag(.(T557, []), T329)
U75_ag(T557, T329, qs100_out_a(T560)) → U77_ag(T557, T329, T560, qs100_in_a(T563))
U77_ag(T557, T329, T560, qs100_out_a(T563)) → U78_ag(T557, T329, app157_in_gagg(T560, T557, T563, T329))
app157_in_gagg([], T530, T531, .(T530, T531)) → app157_out_gagg([], T530, T531, .(T530, T531))
app157_in_gagg(.(T542, T547), T548, T549, .(T542, T546)) → U24_gagg(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
U24_gagg(T542, T547, T548, T549, T546, app157_out_gagg(T547, T548, T549, T546)) → app157_out_gagg(.(T542, T547), T548, T549, .(T542, T546))
U78_ag(T557, T329, app157_out_gagg(T560, T557, T563, T329)) → qs1_out_ag(.(T557, []), T329)
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
qs1_in_ag([], []) → qs1_out_ag([], [])
qs1_in_ag(.(T24, .(T25, T26)), []) → U25_ag(T24, T25, T26, less13_in_aa(T24, T25))
less13_in_aa(0, s(T38)) → less13_out_aa(0, s(T38))
less13_in_aa(s(T45), s(T46)) → U1_aa(T45, T46, less13_in_aa(T45, T46))
U1_aa(T45, T46, less13_out_aa(T45, T46)) → less13_out_aa(s(T45), s(T46))
U25_ag(T24, T25, T26, less13_out_aa(T24, T25)) → qs1_out_ag(.(T24, .(T25, T26)), [])
qs1_in_ag(.(T29, .(T31, T30)), []) → U26_ag(T29, T31, T30, less13_in_aa(T29, T31))
U26_ag(T29, T31, T30, less13_out_aa(T29, T31)) → U27_ag(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
part23_in_gaaa(T70, .(T73, T74), .(T73, X123), X124) → U2_gaaa(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
U2_gaaa(T70, T73, T74, X123, X124, less13_out_ga(T70, T73)) → part23_out_gaaa(T70, .(T73, T74), .(T73, X123), X124)
part23_in_gaaa(T70, .(T73, T77), .(T73, X123), X124) → U3_gaaa(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
part23_in_gaaa(T95, .(T96, T98), X174, .(T96, X175)) → U5_gaaa(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
part23_in_gaaa(T104, [], [], []) → part23_out_gaaa(T104, [], [], [])
U5_gaaa(T95, T96, T98, X174, X175, part23_out_gaaa(T95, T98, X174, X175)) → part23_out_gaaa(T95, .(T96, T98), X174, .(T96, X175))
U4_gaaa(T70, T73, T77, X123, X124, part23_out_gaaa(T70, T77, X123, X124)) → part23_out_gaaa(T70, .(T73, T77), .(T73, X123), X124)
U27_ag(T29, T31, T30, part23_out_gaaa(T29, T30, X49, X50)) → qs1_out_ag(.(T29, .(T31, T30)), [])
qs1_in_ag(.(T29, .(T54, T30)), []) → U28_ag(T29, T54, T30, less13_in_aa(T29, T54))
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U29_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U29_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_ag(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
qs39_in_aaa(T122, T123, X234) → U22_aaa(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
part44_in_aaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_aaaa(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
U6_aaaa(T148, T149, T150, X282, X283, less13_out_aa(T148, T149)) → part44_out_aaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_aaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_aaaa(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_aaaa(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_aaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_aaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_aaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_aaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_aaaa(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
part44_in_aaaa(T182, [], [], []) → part44_out_aaaa(T182, [], [], [])
U9_aaaa(T175, T173, T176, X333, X334, part44_out_aaaa(T175, T176, X333, X334)) → part44_out_aaaa(T175, .(T173, T176), X333, .(T173, X334))
U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaaa(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
qs60_in_aa([], []) → qs60_out_aa([], [])
qs60_in_aa(.(T192, T193), X370) → U20_aa(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
p43_in_aaaaaaa(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaaa(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaaa(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
app71_in_aaaa([], T212, T213, .(T212, T213)) → app71_out_aaaa([], T212, T213, .(T212, T213))
app71_in_aaaa(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaaa(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
U21_aaaa(T222, T226, T227, T228, X403, app71_out_aaaa(T226, T227, T228, X403)) → app71_out_aaaa(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_out_aaaa(T198, T199, T197, X234)) → p43_out_aaaaaaa(T199, T123, T127, T184, T198, T197, X234)
U20_aa(T192, T193, X370, p43_out_aaaaaaa(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_aa(.(T192, T193), X370)
U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaaa(T129, T123, T127, T128, X232, X233, X234)
U22_aaa(T122, T123, X234, p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aaa(T122, T123, X234)
U30_ag(T29, T54, T30, qs39_out_aaa(T54, T52, X11)) → qs1_out_ag(.(T29, .(T54, T30)), [])
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U31_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_ag(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U32_ag(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_ag(T29, T54, T30, qs60_in_aa(T108, X12))
U33_ag(T29, T54, T30, qs60_out_aa(T108, X12)) → qs1_out_ag(.(T29, .(T54, T30)), [])
qs1_in_ag(.(T264, .(T266, T265)), []) → U34_ag(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
U34_ag(T264, T266, T265, part44_out_aaaa(T264, T265, X454, X455)) → qs1_out_ag(.(T264, .(T266, T265)), [])
qs1_in_ag(.(T273, .(T272, T265)), []) → U35_ag(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_ag(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_ag(T273, T272, T265, qs60_in_aa(T270, X11))
U36_ag(T273, T272, T265, qs60_out_aa(T270, X11)) → qs1_out_ag(.(T273, .(T272, T265)), [])
qs1_in_ag(.(T280, .(T278, T265)), []) → U37_ag(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_ag(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_ag(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U38_ag(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_ag(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U39_ag(T280, T278, T265, qs39_out_aaa(T278, T279, X12)) → qs1_out_ag(.(T280, .(T278, T265)), [])
qs1_in_ag(.(T305, []), []) → U40_ag(T305, qs100_in_a(X11))
qs100_in_a([]) → qs100_out_a([])
U40_ag(T305, qs100_out_a(X11)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T305, []), []) → U41_ag(T305, qs100_in_a(T309))
U41_ag(T305, qs100_out_a(T309)) → U42_ag(T305, qs100_in_a(X12))
U42_ag(T305, qs100_out_a(X12)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T347, .(T348, T349)), T329) → U43_ag(T347, T348, T349, T329, less13_in_aa(T347, T348))
U43_ag(T347, T348, T349, T329, less13_out_aa(T347, T348)) → qs1_out_ag(.(T347, .(T348, T349)), T329)
qs1_in_ag(.(T352, .(T354, T353)), T329) → U44_ag(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_ag(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_ag(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U45_ag(T352, T354, T353, T329, part23_out_gaaa(T352, T353, X581, X582)) → qs1_out_ag(.(T352, .(T354, T353)), T329)
qs1_in_ag(.(T352, .(T363, T353)), T329) → U46_ag(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U47_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_ag(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U48_ag(T352, T363, T353, T329, qs39_out_aaa(T363, T361, X543)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_ag(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U50_ag(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_ag(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U51_ag(T352, T363, T353, T329, qs60_out_aa(T371, X544)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
qs1_in_ag(.(T390, .(T363, T353)), .(T390, T391)) → U52_ag(T390, T363, T353, T391, less13_in_ga(T390, T363))
U52_ag(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_ag(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U53_ag(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_ag(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
qs39_in_aag(T122, T123, X234) → U22_aag(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaag(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaag(T129, T123, T127, T128, X232, X233, X234)
p43_in_aaaaaag(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaag(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaag(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
app71_in_aaag([], T212, T213, .(T212, T213)) → app71_out_aaag([], T212, T213, .(T212, T213))
app71_in_aaag(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaag(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
U21_aaag(T222, T226, T227, T228, X403, app71_out_aaag(T226, T227, T228, X403)) → app71_out_aaag(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_out_aaag(T198, T199, T197, X234)) → p43_out_aaaaaag(T199, T123, T127, T184, T198, T197, X234)
U22_aag(T122, T123, X234, p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aag(T122, T123, X234)
U54_ag(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_ag(T390, T363, T353, T391, qs60_in_ag(T371, T391))
qs60_in_ag([], []) → qs60_out_ag([], [])
qs60_in_ag(.(T192, T193), X370) → U20_ag(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
U20_ag(T192, T193, X370, p43_out_aaaaaag(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_ag(.(T192, T193), X370)
U55_ag(T390, T363, T353, T391, qs60_out_ag(T371, T391)) → qs1_out_ag(.(T390, .(T363, T353)), .(T390, T391))
qs1_in_ag(.(T404, .(T363, T353)), .(T402, T406)) → U56_ag(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
U56_ag(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_ag(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U57_ag(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_ag(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U58_ag(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_ag(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U59_ag(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_ag(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
app131_in_agag([], T421, T422, .(T421, T422)) → app131_out_agag([], T421, T422, .(T421, T422))
app131_in_agag(.(T433, T438), T435, T439, .(T433, T437)) → U23_agag(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
U23_agag(T433, T438, T435, T439, T437, app131_out_agag(T438, T435, T439, T437)) → app131_out_agag(.(T433, T438), T435, T439, .(T433, T437))
U60_ag(T404, T363, T353, T402, T406, app131_out_agag(T407, T404, T408, T406)) → qs1_out_ag(.(T404, .(T363, T353)), .(T402, T406))
qs1_in_ag(.(T459, .(T461, T460)), T329) → U61_ag(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
U61_ag(T459, T461, T460, T329, part44_out_aaaa(T459, T460, X705, X706)) → qs1_out_ag(.(T459, .(T461, T460)), T329)
qs1_in_ag(.(T468, .(T467, T460)), T329) → U62_ag(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_ag(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_ag(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U63_ag(T468, T467, T460, T329, qs60_out_aa(T465, X543)) → qs1_out_ag(.(T468, .(T467, T460)), T329)
qs1_in_ag(.(T476, .(T474, T460)), T329) → U64_ag(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_ag(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_ag(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U65_ag(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_ag(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U66_ag(T476, T474, T460, T329, qs39_out_aaa(T474, T475, X544)) → qs1_out_ag(.(T476, .(T474, T460)), T329)
qs1_in_ag(.(T498, .(T474, T460)), .(T498, T499)) → U67_ag(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
part44_in_gaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_gaaa(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
U6_gaaa(T148, T149, T150, X282, X283, less13_out_ga(T148, T149)) → part44_out_gaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_gaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_gaaa(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_gaaa(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_gaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_gaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_gaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_gaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_gaaa(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
part44_in_gaaa(T182, [], [], []) → part44_out_gaaa(T182, [], [], [])
U9_gaaa(T175, T173, T176, X333, X334, part44_out_gaaa(T175, T176, X333, X334)) → part44_out_gaaa(T175, .(T173, T176), X333, .(T173, X334))
U67_ag(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_ag(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U68_ag(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_ag(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U69_ag(T498, T474, T460, T499, qs39_out_aag(T474, T475, T499)) → qs1_out_ag(.(T498, .(T474, T460)), .(T498, T499))
qs1_in_ag(.(T516, .(T474, T460)), .(T510, T514)) → U70_ag(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
U70_ag(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_ag(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U71_ag(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_ag(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U72_ag(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_ag(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
app157_in_aaag([], T530, T531, .(T530, T531)) → app157_out_aaag([], T530, T531, .(T530, T531))
app157_in_aaag(.(T542, T547), T548, T549, .(T542, T546)) → U24_aaag(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
U24_aaag(T542, T547, T548, T549, T546, app157_out_aaag(T547, T548, T549, T546)) → app157_out_aaag(.(T542, T547), T548, T549, .(T542, T546))
U73_ag(T516, T474, T460, T510, T514, app157_out_aaag(T515, T516, T517, T514)) → qs1_out_ag(.(T516, .(T474, T460)), .(T510, T514))
qs1_in_ag(.(T557, []), T329) → U74_ag(T557, T329, qs100_in_a(X543))
U74_ag(T557, T329, qs100_out_a(X543)) → qs1_out_ag(.(T557, []), T329)
qs1_in_ag(.(T557, []), T329) → U75_ag(T557, T329, qs100_in_a(T560))
U75_ag(T557, T329, qs100_out_a(T560)) → U76_ag(T557, T329, qs100_in_a(X544))
U76_ag(T557, T329, qs100_out_a(X544)) → qs1_out_ag(.(T557, []), T329)
U75_ag(T557, T329, qs100_out_a(T560)) → U77_ag(T557, T329, T560, qs100_in_a(T563))
U77_ag(T557, T329, T560, qs100_out_a(T563)) → U78_ag(T557, T329, app157_in_gagg(T560, T557, T563, T329))
app157_in_gagg([], T530, T531, .(T530, T531)) → app157_out_gagg([], T530, T531, .(T530, T531))
app157_in_gagg(.(T542, T547), T548, T549, .(T542, T546)) → U24_gagg(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
U24_gagg(T542, T547, T548, T549, T546, app157_out_gagg(T547, T548, T549, T546)) → app157_out_gagg(.(T542, T547), T548, T549, .(T542, T546))
U78_ag(T557, T329, app157_out_gagg(T560, T557, T563, T329)) → qs1_out_ag(.(T557, []), T329)
QS1_IN_AG(.(T24, .(T25, T26)), []) → U25_AG(T24, T25, T26, less13_in_aa(T24, T25))
QS1_IN_AG(.(T24, .(T25, T26)), []) → LESS13_IN_AA(T24, T25)
LESS13_IN_AA(s(T45), s(T46)) → U1_AA(T45, T46, less13_in_aa(T45, T46))
LESS13_IN_AA(s(T45), s(T46)) → LESS13_IN_AA(T45, T46)
QS1_IN_AG(.(T29, .(T31, T30)), []) → U26_AG(T29, T31, T30, less13_in_aa(T29, T31))
U26_AG(T29, T31, T30, less13_out_aa(T29, T31)) → U27_AG(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
U26_AG(T29, T31, T30, less13_out_aa(T29, T31)) → PART23_IN_GAAA(T29, T30, X49, X50)
PART23_IN_GAAA(T70, .(T73, T74), .(T73, X123), X124) → U2_GAAA(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
PART23_IN_GAAA(T70, .(T73, T74), .(T73, X123), X124) → LESS13_IN_GA(T70, T73)
LESS13_IN_GA(s(T45), s(T46)) → U1_GA(T45, T46, less13_in_ga(T45, T46))
LESS13_IN_GA(s(T45), s(T46)) → LESS13_IN_GA(T45, T46)
PART23_IN_GAAA(T70, .(T73, T77), .(T73, X123), X124) → U3_GAAA(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_GAAA(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_GAAA(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
U3_GAAA(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → PART23_IN_GAAA(T70, T77, X123, X124)
PART23_IN_GAAA(T95, .(T96, T98), X174, .(T96, X175)) → U5_GAAA(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
PART23_IN_GAAA(T95, .(T96, T98), X174, .(T96, X175)) → PART23_IN_GAAA(T95, T98, X174, X175)
QS1_IN_AG(.(T29, .(T54, T30)), []) → U28_AG(T29, T54, T30, less13_in_aa(T29, T54))
U28_AG(T29, T54, T30, less13_out_aa(T29, T54)) → U29_AG(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U28_AG(T29, T54, T30, less13_out_aa(T29, T54)) → PART23_IN_GAAA(T29, T30, T52, T53)
U29_AG(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_AG(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
U29_AG(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → QS39_IN_AAA(T54, T52, X11)
QS39_IN_AAA(T122, T123, X234) → U22_AAA(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
QS39_IN_AAA(T122, T123, X234) → P43_IN_AAAAAAA(T122, T123, X230, X231, X232, X233, X234)
P43_IN_AAAAAAA(T122, T123, X230, X231, X232, X233, X234) → U10_AAAAAAA(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
P43_IN_AAAAAAA(T122, T123, X230, X231, X232, X233, X234) → PART44_IN_AAAA(T122, T123, X230, X231)
PART44_IN_AAAA(T148, .(T149, T150), .(T149, X282), X283) → U6_AAAA(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
PART44_IN_AAAA(T148, .(T149, T150), .(T149, X282), X283) → LESS13_IN_AA(T148, T149)
PART44_IN_AAAA(T153, .(T149, T154), .(T149, X282), X283) → U7_AAAA(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_AAAA(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_AAAA(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U7_AAAA(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → PART23_IN_GAAA(T153, T154, X282, X283)
PART44_IN_AAAA(T175, .(T173, T176), X333, .(T173, X334)) → U9_AAAA(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
PART44_IN_AAAA(T175, .(T173, T176), X333, .(T173, X334)) → PART44_IN_AAAA(T175, T176, X333, X334)
P43_IN_AAAAAAA(T129, T123, T127, T128, X232, X233, X234) → U11_AAAAAAA(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_AAAAAAA(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_AAAAAAA(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U11_AAAAAAA(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → QS60_IN_AA(T127, X232)
QS60_IN_AA(.(T192, T193), X370) → U20_AA(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
QS60_IN_AA(.(T192, T193), X370) → P43_IN_AAAAAAA(T192, T193, X366, X367, X368, X369, X370)
P43_IN_AAAAAAA(T185, T123, T127, T184, T183, X233, X234) → U13_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U13_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → QS60_IN_AA(T127, T183)
U14_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U14_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → QS60_IN_AA(T184, X233)
P43_IN_AAAAAAA(T199, T123, T127, T184, T198, T197, X234) → U16_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U16_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → QS60_IN_AA(T127, T198)
U17_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U17_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → QS60_IN_AA(T184, T197)
U18_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
U18_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → APP71_IN_AAAA(T198, T199, T197, X234)
APP71_IN_AAAA(.(T222, T226), T227, T228, .(T222, X403)) → U21_AAAA(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
APP71_IN_AAAA(.(T222, T226), T227, T228, .(T222, X403)) → APP71_IN_AAAA(T226, T227, T228, X403)
U28_AG(T29, T54, T30, less13_out_aa(T29, T54)) → U31_AG(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_AG(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_AG(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U31_AG(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → QS39_IN_AAA(T54, T52, T107)
U32_AG(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_AG(T29, T54, T30, qs60_in_aa(T108, X12))
U32_AG(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → QS60_IN_AA(T108, X12)
QS1_IN_AG(.(T264, .(T266, T265)), []) → U34_AG(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
QS1_IN_AG(.(T264, .(T266, T265)), []) → PART44_IN_AAAA(T264, T265, X454, X455)
QS1_IN_AG(.(T273, .(T272, T265)), []) → U35_AG(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_AG(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_AG(T273, T272, T265, qs60_in_aa(T270, X11))
U35_AG(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → QS60_IN_AA(T270, X11)
QS1_IN_AG(.(T280, .(T278, T265)), []) → U37_AG(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_AG(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_AG(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U37_AG(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → QS60_IN_AA(T270, T277)
U38_AG(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_AG(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U38_AG(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → QS39_IN_AAA(T278, T279, X12)
QS1_IN_AG(.(T305, []), []) → U40_AG(T305, qs100_in_a(X11))
QS1_IN_AG(.(T305, []), []) → QS100_IN_A(X11)
QS1_IN_AG(.(T305, []), []) → U41_AG(T305, qs100_in_a(T309))
U41_AG(T305, qs100_out_a(T309)) → U42_AG(T305, qs100_in_a(X12))
U41_AG(T305, qs100_out_a(T309)) → QS100_IN_A(X12)
QS1_IN_AG(.(T347, .(T348, T349)), T329) → U43_AG(T347, T348, T349, T329, less13_in_aa(T347, T348))
QS1_IN_AG(.(T347, .(T348, T349)), T329) → LESS13_IN_AA(T347, T348)
QS1_IN_AG(.(T352, .(T354, T353)), T329) → U44_AG(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_AG(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_AG(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U44_AG(T352, T354, T353, T329, less13_out_aa(T352, T354)) → PART23_IN_GAAA(T352, T353, X581, X582)
QS1_IN_AG(.(T352, .(T363, T353)), T329) → U46_AG(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_AG(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_AG(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U46_AG(T352, T363, T353, T329, less13_out_aa(T352, T363)) → PART23_IN_GAAA(T352, T353, T361, T362)
U47_AG(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_AG(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U47_AG(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → QS39_IN_AAA(T363, T361, X543)
U46_AG(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_AG(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_AG(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_AG(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U49_AG(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → QS39_IN_AAA(T363, T361, T370)
U50_AG(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_AG(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U50_AG(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → QS60_IN_AA(T371, X544)
QS1_IN_AG(.(T390, .(T363, T353)), .(T390, T391)) → U52_AG(T390, T363, T353, T391, less13_in_ga(T390, T363))
QS1_IN_AG(.(T390, .(T363, T353)), .(T390, T391)) → LESS13_IN_GA(T390, T363)
U52_AG(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_AG(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U52_AG(T390, T363, T353, T391, less13_out_ga(T390, T363)) → PART23_IN_GAAA(T390, T353, T361, T371)
U53_AG(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_AG(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
U53_AG(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → QS39_IN_AAG(T363, T361, [])
QS39_IN_AAG(T122, T123, X234) → U22_AAG(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
QS39_IN_AAG(T122, T123, X234) → P43_IN_AAAAAAG(T122, T123, X230, X231, X232, X233, X234)
P43_IN_AAAAAAG(T122, T123, X230, X231, X232, X233, X234) → U10_AAAAAAG(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
P43_IN_AAAAAAG(T122, T123, X230, X231, X232, X233, X234) → PART44_IN_AAAA(T122, T123, X230, X231)
P43_IN_AAAAAAG(T129, T123, T127, T128, X232, X233, X234) → U11_AAAAAAG(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_AAAAAAG(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_AAAAAAG(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U11_AAAAAAG(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → QS60_IN_AA(T127, X232)
P43_IN_AAAAAAG(T185, T123, T127, T184, T183, X233, X234) → U13_AAAAAAG(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_AAAAAAG(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_AAAAAAG(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U13_AAAAAAG(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → QS60_IN_AA(T127, T183)
U14_AAAAAAG(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_AAAAAAG(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U14_AAAAAAG(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → QS60_IN_AA(T184, X233)
P43_IN_AAAAAAG(T199, T123, T127, T184, T198, T197, X234) → U16_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U16_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → QS60_IN_AA(T127, T198)
U17_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U17_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → QS60_IN_AA(T184, T197)
U18_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
U18_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → APP71_IN_AAAG(T198, T199, T197, X234)
APP71_IN_AAAG(.(T222, T226), T227, T228, .(T222, X403)) → U21_AAAG(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
APP71_IN_AAAG(.(T222, T226), T227, T228, .(T222, X403)) → APP71_IN_AAAG(T226, T227, T228, X403)
U54_AG(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_AG(T390, T363, T353, T391, qs60_in_ag(T371, T391))
U54_AG(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → QS60_IN_AG(T371, T391)
QS60_IN_AG(.(T192, T193), X370) → U20_AG(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
QS60_IN_AG(.(T192, T193), X370) → P43_IN_AAAAAAG(T192, T193, X366, X367, X368, X369, X370)
QS1_IN_AG(.(T404, .(T363, T353)), .(T402, T406)) → U56_AG(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
QS1_IN_AG(.(T404, .(T363, T353)), .(T402, T406)) → LESS13_IN_AA(T404, T363)
U56_AG(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_AG(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U56_AG(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → PART23_IN_GAAA(T404, T353, T361, T371)
U57_AG(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_AG(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U57_AG(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → QS39_IN_AAA(T363, T361, .(T402, T407))
U58_AG(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_AG(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U58_AG(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → QS60_IN_AA(T371, T408)
U59_AG(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_AG(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
U59_AG(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → APP131_IN_AGAG(T407, T404, T408, T406)
APP131_IN_AGAG(.(T433, T438), T435, T439, .(T433, T437)) → U23_AGAG(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
APP131_IN_AGAG(.(T433, T438), T435, T439, .(T433, T437)) → APP131_IN_AGAG(T438, T435, T439, T437)
QS1_IN_AG(.(T459, .(T461, T460)), T329) → U61_AG(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
QS1_IN_AG(.(T459, .(T461, T460)), T329) → PART44_IN_AAAA(T459, T460, X705, X706)
QS1_IN_AG(.(T468, .(T467, T460)), T329) → U62_AG(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_AG(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_AG(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U62_AG(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → QS60_IN_AA(T465, X543)
QS1_IN_AG(.(T476, .(T474, T460)), T329) → U64_AG(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_AG(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_AG(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U64_AG(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → QS60_IN_AA(T465, T473)
U65_AG(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_AG(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U65_AG(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → QS39_IN_AAA(T474, T475, X544)
QS1_IN_AG(.(T498, .(T474, T460)), .(T498, T499)) → U67_AG(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
QS1_IN_AG(.(T498, .(T474, T460)), .(T498, T499)) → PART44_IN_GAAA(T498, T460, T465, T475)
PART44_IN_GAAA(T148, .(T149, T150), .(T149, X282), X283) → U6_GAAA(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
PART44_IN_GAAA(T148, .(T149, T150), .(T149, X282), X283) → LESS13_IN_GA(T148, T149)
PART44_IN_GAAA(T153, .(T149, T154), .(T149, X282), X283) → U7_GAAA(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_GAAA(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_GAAA(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U7_GAAA(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → PART23_IN_GAAA(T153, T154, X282, X283)
PART44_IN_GAAA(T175, .(T173, T176), X333, .(T173, X334)) → U9_GAAA(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
PART44_IN_GAAA(T175, .(T173, T176), X333, .(T173, X334)) → PART44_IN_GAAA(T175, T176, X333, X334)
U67_AG(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_AG(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U67_AG(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → QS60_IN_AG(T465, [])
U68_AG(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_AG(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U68_AG(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → QS39_IN_AAG(T474, T475, T499)
QS1_IN_AG(.(T516, .(T474, T460)), .(T510, T514)) → U70_AG(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
QS1_IN_AG(.(T516, .(T474, T460)), .(T510, T514)) → PART44_IN_AAAA(T516, T460, T465, T475)
U70_AG(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_AG(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U70_AG(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → QS60_IN_AA(T465, .(T510, T515))
U71_AG(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_AG(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U71_AG(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → QS39_IN_AAA(T474, T475, T517)
U72_AG(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_AG(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
U72_AG(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → APP157_IN_AAAG(T515, T516, T517, T514)
APP157_IN_AAAG(.(T542, T547), T548, T549, .(T542, T546)) → U24_AAAG(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
APP157_IN_AAAG(.(T542, T547), T548, T549, .(T542, T546)) → APP157_IN_AAAG(T547, T548, T549, T546)
QS1_IN_AG(.(T557, []), T329) → U74_AG(T557, T329, qs100_in_a(X543))
QS1_IN_AG(.(T557, []), T329) → QS100_IN_A(X543)
QS1_IN_AG(.(T557, []), T329) → U75_AG(T557, T329, qs100_in_a(T560))
U75_AG(T557, T329, qs100_out_a(T560)) → U76_AG(T557, T329, qs100_in_a(X544))
U75_AG(T557, T329, qs100_out_a(T560)) → QS100_IN_A(X544)
U75_AG(T557, T329, qs100_out_a(T560)) → U77_AG(T557, T329, T560, qs100_in_a(T563))
U77_AG(T557, T329, T560, qs100_out_a(T563)) → U78_AG(T557, T329, app157_in_gagg(T560, T557, T563, T329))
U77_AG(T557, T329, T560, qs100_out_a(T563)) → APP157_IN_GAGG(T560, T557, T563, T329)
APP157_IN_GAGG(.(T542, T547), T548, T549, .(T542, T546)) → U24_GAGG(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
APP157_IN_GAGG(.(T542, T547), T548, T549, .(T542, T546)) → APP157_IN_GAGG(T547, T548, T549, T546)
qs1_in_ag([], []) → qs1_out_ag([], [])
qs1_in_ag(.(T24, .(T25, T26)), []) → U25_ag(T24, T25, T26, less13_in_aa(T24, T25))
less13_in_aa(0, s(T38)) → less13_out_aa(0, s(T38))
less13_in_aa(s(T45), s(T46)) → U1_aa(T45, T46, less13_in_aa(T45, T46))
U1_aa(T45, T46, less13_out_aa(T45, T46)) → less13_out_aa(s(T45), s(T46))
U25_ag(T24, T25, T26, less13_out_aa(T24, T25)) → qs1_out_ag(.(T24, .(T25, T26)), [])
qs1_in_ag(.(T29, .(T31, T30)), []) → U26_ag(T29, T31, T30, less13_in_aa(T29, T31))
U26_ag(T29, T31, T30, less13_out_aa(T29, T31)) → U27_ag(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
part23_in_gaaa(T70, .(T73, T74), .(T73, X123), X124) → U2_gaaa(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
U2_gaaa(T70, T73, T74, X123, X124, less13_out_ga(T70, T73)) → part23_out_gaaa(T70, .(T73, T74), .(T73, X123), X124)
part23_in_gaaa(T70, .(T73, T77), .(T73, X123), X124) → U3_gaaa(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
part23_in_gaaa(T95, .(T96, T98), X174, .(T96, X175)) → U5_gaaa(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
part23_in_gaaa(T104, [], [], []) → part23_out_gaaa(T104, [], [], [])
U5_gaaa(T95, T96, T98, X174, X175, part23_out_gaaa(T95, T98, X174, X175)) → part23_out_gaaa(T95, .(T96, T98), X174, .(T96, X175))
U4_gaaa(T70, T73, T77, X123, X124, part23_out_gaaa(T70, T77, X123, X124)) → part23_out_gaaa(T70, .(T73, T77), .(T73, X123), X124)
U27_ag(T29, T31, T30, part23_out_gaaa(T29, T30, X49, X50)) → qs1_out_ag(.(T29, .(T31, T30)), [])
qs1_in_ag(.(T29, .(T54, T30)), []) → U28_ag(T29, T54, T30, less13_in_aa(T29, T54))
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U29_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U29_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_ag(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
qs39_in_aaa(T122, T123, X234) → U22_aaa(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
part44_in_aaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_aaaa(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
U6_aaaa(T148, T149, T150, X282, X283, less13_out_aa(T148, T149)) → part44_out_aaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_aaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_aaaa(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_aaaa(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_aaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_aaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_aaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_aaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_aaaa(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
part44_in_aaaa(T182, [], [], []) → part44_out_aaaa(T182, [], [], [])
U9_aaaa(T175, T173, T176, X333, X334, part44_out_aaaa(T175, T176, X333, X334)) → part44_out_aaaa(T175, .(T173, T176), X333, .(T173, X334))
U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaaa(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
qs60_in_aa([], []) → qs60_out_aa([], [])
qs60_in_aa(.(T192, T193), X370) → U20_aa(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
p43_in_aaaaaaa(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaaa(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaaa(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
app71_in_aaaa([], T212, T213, .(T212, T213)) → app71_out_aaaa([], T212, T213, .(T212, T213))
app71_in_aaaa(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaaa(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
U21_aaaa(T222, T226, T227, T228, X403, app71_out_aaaa(T226, T227, T228, X403)) → app71_out_aaaa(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_out_aaaa(T198, T199, T197, X234)) → p43_out_aaaaaaa(T199, T123, T127, T184, T198, T197, X234)
U20_aa(T192, T193, X370, p43_out_aaaaaaa(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_aa(.(T192, T193), X370)
U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaaa(T129, T123, T127, T128, X232, X233, X234)
U22_aaa(T122, T123, X234, p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aaa(T122, T123, X234)
U30_ag(T29, T54, T30, qs39_out_aaa(T54, T52, X11)) → qs1_out_ag(.(T29, .(T54, T30)), [])
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U31_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_ag(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U32_ag(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_ag(T29, T54, T30, qs60_in_aa(T108, X12))
U33_ag(T29, T54, T30, qs60_out_aa(T108, X12)) → qs1_out_ag(.(T29, .(T54, T30)), [])
qs1_in_ag(.(T264, .(T266, T265)), []) → U34_ag(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
U34_ag(T264, T266, T265, part44_out_aaaa(T264, T265, X454, X455)) → qs1_out_ag(.(T264, .(T266, T265)), [])
qs1_in_ag(.(T273, .(T272, T265)), []) → U35_ag(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_ag(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_ag(T273, T272, T265, qs60_in_aa(T270, X11))
U36_ag(T273, T272, T265, qs60_out_aa(T270, X11)) → qs1_out_ag(.(T273, .(T272, T265)), [])
qs1_in_ag(.(T280, .(T278, T265)), []) → U37_ag(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_ag(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_ag(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U38_ag(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_ag(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U39_ag(T280, T278, T265, qs39_out_aaa(T278, T279, X12)) → qs1_out_ag(.(T280, .(T278, T265)), [])
qs1_in_ag(.(T305, []), []) → U40_ag(T305, qs100_in_a(X11))
qs100_in_a([]) → qs100_out_a([])
U40_ag(T305, qs100_out_a(X11)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T305, []), []) → U41_ag(T305, qs100_in_a(T309))
U41_ag(T305, qs100_out_a(T309)) → U42_ag(T305, qs100_in_a(X12))
U42_ag(T305, qs100_out_a(X12)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T347, .(T348, T349)), T329) → U43_ag(T347, T348, T349, T329, less13_in_aa(T347, T348))
U43_ag(T347, T348, T349, T329, less13_out_aa(T347, T348)) → qs1_out_ag(.(T347, .(T348, T349)), T329)
qs1_in_ag(.(T352, .(T354, T353)), T329) → U44_ag(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_ag(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_ag(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U45_ag(T352, T354, T353, T329, part23_out_gaaa(T352, T353, X581, X582)) → qs1_out_ag(.(T352, .(T354, T353)), T329)
qs1_in_ag(.(T352, .(T363, T353)), T329) → U46_ag(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U47_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_ag(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U48_ag(T352, T363, T353, T329, qs39_out_aaa(T363, T361, X543)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_ag(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U50_ag(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_ag(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U51_ag(T352, T363, T353, T329, qs60_out_aa(T371, X544)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
qs1_in_ag(.(T390, .(T363, T353)), .(T390, T391)) → U52_ag(T390, T363, T353, T391, less13_in_ga(T390, T363))
U52_ag(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_ag(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U53_ag(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_ag(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
qs39_in_aag(T122, T123, X234) → U22_aag(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaag(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaag(T129, T123, T127, T128, X232, X233, X234)
p43_in_aaaaaag(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaag(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaag(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
app71_in_aaag([], T212, T213, .(T212, T213)) → app71_out_aaag([], T212, T213, .(T212, T213))
app71_in_aaag(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaag(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
U21_aaag(T222, T226, T227, T228, X403, app71_out_aaag(T226, T227, T228, X403)) → app71_out_aaag(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_out_aaag(T198, T199, T197, X234)) → p43_out_aaaaaag(T199, T123, T127, T184, T198, T197, X234)
U22_aag(T122, T123, X234, p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aag(T122, T123, X234)
U54_ag(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_ag(T390, T363, T353, T391, qs60_in_ag(T371, T391))
qs60_in_ag([], []) → qs60_out_ag([], [])
qs60_in_ag(.(T192, T193), X370) → U20_ag(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
U20_ag(T192, T193, X370, p43_out_aaaaaag(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_ag(.(T192, T193), X370)
U55_ag(T390, T363, T353, T391, qs60_out_ag(T371, T391)) → qs1_out_ag(.(T390, .(T363, T353)), .(T390, T391))
qs1_in_ag(.(T404, .(T363, T353)), .(T402, T406)) → U56_ag(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
U56_ag(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_ag(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U57_ag(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_ag(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U58_ag(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_ag(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U59_ag(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_ag(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
app131_in_agag([], T421, T422, .(T421, T422)) → app131_out_agag([], T421, T422, .(T421, T422))
app131_in_agag(.(T433, T438), T435, T439, .(T433, T437)) → U23_agag(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
U23_agag(T433, T438, T435, T439, T437, app131_out_agag(T438, T435, T439, T437)) → app131_out_agag(.(T433, T438), T435, T439, .(T433, T437))
U60_ag(T404, T363, T353, T402, T406, app131_out_agag(T407, T404, T408, T406)) → qs1_out_ag(.(T404, .(T363, T353)), .(T402, T406))
qs1_in_ag(.(T459, .(T461, T460)), T329) → U61_ag(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
U61_ag(T459, T461, T460, T329, part44_out_aaaa(T459, T460, X705, X706)) → qs1_out_ag(.(T459, .(T461, T460)), T329)
qs1_in_ag(.(T468, .(T467, T460)), T329) → U62_ag(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_ag(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_ag(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U63_ag(T468, T467, T460, T329, qs60_out_aa(T465, X543)) → qs1_out_ag(.(T468, .(T467, T460)), T329)
qs1_in_ag(.(T476, .(T474, T460)), T329) → U64_ag(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_ag(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_ag(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U65_ag(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_ag(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U66_ag(T476, T474, T460, T329, qs39_out_aaa(T474, T475, X544)) → qs1_out_ag(.(T476, .(T474, T460)), T329)
qs1_in_ag(.(T498, .(T474, T460)), .(T498, T499)) → U67_ag(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
part44_in_gaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_gaaa(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
U6_gaaa(T148, T149, T150, X282, X283, less13_out_ga(T148, T149)) → part44_out_gaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_gaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_gaaa(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_gaaa(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_gaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_gaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_gaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_gaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_gaaa(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
part44_in_gaaa(T182, [], [], []) → part44_out_gaaa(T182, [], [], [])
U9_gaaa(T175, T173, T176, X333, X334, part44_out_gaaa(T175, T176, X333, X334)) → part44_out_gaaa(T175, .(T173, T176), X333, .(T173, X334))
U67_ag(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_ag(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U68_ag(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_ag(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U69_ag(T498, T474, T460, T499, qs39_out_aag(T474, T475, T499)) → qs1_out_ag(.(T498, .(T474, T460)), .(T498, T499))
qs1_in_ag(.(T516, .(T474, T460)), .(T510, T514)) → U70_ag(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
U70_ag(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_ag(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U71_ag(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_ag(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U72_ag(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_ag(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
app157_in_aaag([], T530, T531, .(T530, T531)) → app157_out_aaag([], T530, T531, .(T530, T531))
app157_in_aaag(.(T542, T547), T548, T549, .(T542, T546)) → U24_aaag(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
U24_aaag(T542, T547, T548, T549, T546, app157_out_aaag(T547, T548, T549, T546)) → app157_out_aaag(.(T542, T547), T548, T549, .(T542, T546))
U73_ag(T516, T474, T460, T510, T514, app157_out_aaag(T515, T516, T517, T514)) → qs1_out_ag(.(T516, .(T474, T460)), .(T510, T514))
qs1_in_ag(.(T557, []), T329) → U74_ag(T557, T329, qs100_in_a(X543))
U74_ag(T557, T329, qs100_out_a(X543)) → qs1_out_ag(.(T557, []), T329)
qs1_in_ag(.(T557, []), T329) → U75_ag(T557, T329, qs100_in_a(T560))
U75_ag(T557, T329, qs100_out_a(T560)) → U76_ag(T557, T329, qs100_in_a(X544))
U76_ag(T557, T329, qs100_out_a(X544)) → qs1_out_ag(.(T557, []), T329)
U75_ag(T557, T329, qs100_out_a(T560)) → U77_ag(T557, T329, T560, qs100_in_a(T563))
U77_ag(T557, T329, T560, qs100_out_a(T563)) → U78_ag(T557, T329, app157_in_gagg(T560, T557, T563, T329))
app157_in_gagg([], T530, T531, .(T530, T531)) → app157_out_gagg([], T530, T531, .(T530, T531))
app157_in_gagg(.(T542, T547), T548, T549, .(T542, T546)) → U24_gagg(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
U24_gagg(T542, T547, T548, T549, T546, app157_out_gagg(T547, T548, T549, T546)) → app157_out_gagg(.(T542, T547), T548, T549, .(T542, T546))
U78_ag(T557, T329, app157_out_gagg(T560, T557, T563, T329)) → qs1_out_ag(.(T557, []), T329)
QS1_IN_AG(.(T24, .(T25, T26)), []) → U25_AG(T24, T25, T26, less13_in_aa(T24, T25))
QS1_IN_AG(.(T24, .(T25, T26)), []) → LESS13_IN_AA(T24, T25)
LESS13_IN_AA(s(T45), s(T46)) → U1_AA(T45, T46, less13_in_aa(T45, T46))
LESS13_IN_AA(s(T45), s(T46)) → LESS13_IN_AA(T45, T46)
QS1_IN_AG(.(T29, .(T31, T30)), []) → U26_AG(T29, T31, T30, less13_in_aa(T29, T31))
U26_AG(T29, T31, T30, less13_out_aa(T29, T31)) → U27_AG(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
U26_AG(T29, T31, T30, less13_out_aa(T29, T31)) → PART23_IN_GAAA(T29, T30, X49, X50)
PART23_IN_GAAA(T70, .(T73, T74), .(T73, X123), X124) → U2_GAAA(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
PART23_IN_GAAA(T70, .(T73, T74), .(T73, X123), X124) → LESS13_IN_GA(T70, T73)
LESS13_IN_GA(s(T45), s(T46)) → U1_GA(T45, T46, less13_in_ga(T45, T46))
LESS13_IN_GA(s(T45), s(T46)) → LESS13_IN_GA(T45, T46)
PART23_IN_GAAA(T70, .(T73, T77), .(T73, X123), X124) → U3_GAAA(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_GAAA(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_GAAA(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
U3_GAAA(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → PART23_IN_GAAA(T70, T77, X123, X124)
PART23_IN_GAAA(T95, .(T96, T98), X174, .(T96, X175)) → U5_GAAA(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
PART23_IN_GAAA(T95, .(T96, T98), X174, .(T96, X175)) → PART23_IN_GAAA(T95, T98, X174, X175)
QS1_IN_AG(.(T29, .(T54, T30)), []) → U28_AG(T29, T54, T30, less13_in_aa(T29, T54))
U28_AG(T29, T54, T30, less13_out_aa(T29, T54)) → U29_AG(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U28_AG(T29, T54, T30, less13_out_aa(T29, T54)) → PART23_IN_GAAA(T29, T30, T52, T53)
U29_AG(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_AG(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
U29_AG(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → QS39_IN_AAA(T54, T52, X11)
QS39_IN_AAA(T122, T123, X234) → U22_AAA(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
QS39_IN_AAA(T122, T123, X234) → P43_IN_AAAAAAA(T122, T123, X230, X231, X232, X233, X234)
P43_IN_AAAAAAA(T122, T123, X230, X231, X232, X233, X234) → U10_AAAAAAA(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
P43_IN_AAAAAAA(T122, T123, X230, X231, X232, X233, X234) → PART44_IN_AAAA(T122, T123, X230, X231)
PART44_IN_AAAA(T148, .(T149, T150), .(T149, X282), X283) → U6_AAAA(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
PART44_IN_AAAA(T148, .(T149, T150), .(T149, X282), X283) → LESS13_IN_AA(T148, T149)
PART44_IN_AAAA(T153, .(T149, T154), .(T149, X282), X283) → U7_AAAA(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_AAAA(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_AAAA(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U7_AAAA(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → PART23_IN_GAAA(T153, T154, X282, X283)
PART44_IN_AAAA(T175, .(T173, T176), X333, .(T173, X334)) → U9_AAAA(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
PART44_IN_AAAA(T175, .(T173, T176), X333, .(T173, X334)) → PART44_IN_AAAA(T175, T176, X333, X334)
P43_IN_AAAAAAA(T129, T123, T127, T128, X232, X233, X234) → U11_AAAAAAA(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_AAAAAAA(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_AAAAAAA(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U11_AAAAAAA(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → QS60_IN_AA(T127, X232)
QS60_IN_AA(.(T192, T193), X370) → U20_AA(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
QS60_IN_AA(.(T192, T193), X370) → P43_IN_AAAAAAA(T192, T193, X366, X367, X368, X369, X370)
P43_IN_AAAAAAA(T185, T123, T127, T184, T183, X233, X234) → U13_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U13_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → QS60_IN_AA(T127, T183)
U14_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U14_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → QS60_IN_AA(T184, X233)
P43_IN_AAAAAAA(T199, T123, T127, T184, T198, T197, X234) → U16_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U16_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → QS60_IN_AA(T127, T198)
U17_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U17_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → QS60_IN_AA(T184, T197)
U18_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
U18_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → APP71_IN_AAAA(T198, T199, T197, X234)
APP71_IN_AAAA(.(T222, T226), T227, T228, .(T222, X403)) → U21_AAAA(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
APP71_IN_AAAA(.(T222, T226), T227, T228, .(T222, X403)) → APP71_IN_AAAA(T226, T227, T228, X403)
U28_AG(T29, T54, T30, less13_out_aa(T29, T54)) → U31_AG(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_AG(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_AG(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U31_AG(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → QS39_IN_AAA(T54, T52, T107)
U32_AG(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_AG(T29, T54, T30, qs60_in_aa(T108, X12))
U32_AG(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → QS60_IN_AA(T108, X12)
QS1_IN_AG(.(T264, .(T266, T265)), []) → U34_AG(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
QS1_IN_AG(.(T264, .(T266, T265)), []) → PART44_IN_AAAA(T264, T265, X454, X455)
QS1_IN_AG(.(T273, .(T272, T265)), []) → U35_AG(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_AG(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_AG(T273, T272, T265, qs60_in_aa(T270, X11))
U35_AG(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → QS60_IN_AA(T270, X11)
QS1_IN_AG(.(T280, .(T278, T265)), []) → U37_AG(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_AG(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_AG(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U37_AG(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → QS60_IN_AA(T270, T277)
U38_AG(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_AG(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U38_AG(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → QS39_IN_AAA(T278, T279, X12)
QS1_IN_AG(.(T305, []), []) → U40_AG(T305, qs100_in_a(X11))
QS1_IN_AG(.(T305, []), []) → QS100_IN_A(X11)
QS1_IN_AG(.(T305, []), []) → U41_AG(T305, qs100_in_a(T309))
U41_AG(T305, qs100_out_a(T309)) → U42_AG(T305, qs100_in_a(X12))
U41_AG(T305, qs100_out_a(T309)) → QS100_IN_A(X12)
QS1_IN_AG(.(T347, .(T348, T349)), T329) → U43_AG(T347, T348, T349, T329, less13_in_aa(T347, T348))
QS1_IN_AG(.(T347, .(T348, T349)), T329) → LESS13_IN_AA(T347, T348)
QS1_IN_AG(.(T352, .(T354, T353)), T329) → U44_AG(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_AG(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_AG(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U44_AG(T352, T354, T353, T329, less13_out_aa(T352, T354)) → PART23_IN_GAAA(T352, T353, X581, X582)
QS1_IN_AG(.(T352, .(T363, T353)), T329) → U46_AG(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_AG(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_AG(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U46_AG(T352, T363, T353, T329, less13_out_aa(T352, T363)) → PART23_IN_GAAA(T352, T353, T361, T362)
U47_AG(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_AG(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U47_AG(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → QS39_IN_AAA(T363, T361, X543)
U46_AG(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_AG(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_AG(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_AG(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U49_AG(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → QS39_IN_AAA(T363, T361, T370)
U50_AG(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_AG(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U50_AG(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → QS60_IN_AA(T371, X544)
QS1_IN_AG(.(T390, .(T363, T353)), .(T390, T391)) → U52_AG(T390, T363, T353, T391, less13_in_ga(T390, T363))
QS1_IN_AG(.(T390, .(T363, T353)), .(T390, T391)) → LESS13_IN_GA(T390, T363)
U52_AG(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_AG(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U52_AG(T390, T363, T353, T391, less13_out_ga(T390, T363)) → PART23_IN_GAAA(T390, T353, T361, T371)
U53_AG(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_AG(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
U53_AG(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → QS39_IN_AAG(T363, T361, [])
QS39_IN_AAG(T122, T123, X234) → U22_AAG(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
QS39_IN_AAG(T122, T123, X234) → P43_IN_AAAAAAG(T122, T123, X230, X231, X232, X233, X234)
P43_IN_AAAAAAG(T122, T123, X230, X231, X232, X233, X234) → U10_AAAAAAG(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
P43_IN_AAAAAAG(T122, T123, X230, X231, X232, X233, X234) → PART44_IN_AAAA(T122, T123, X230, X231)
P43_IN_AAAAAAG(T129, T123, T127, T128, X232, X233, X234) → U11_AAAAAAG(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_AAAAAAG(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_AAAAAAG(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U11_AAAAAAG(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → QS60_IN_AA(T127, X232)
P43_IN_AAAAAAG(T185, T123, T127, T184, T183, X233, X234) → U13_AAAAAAG(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_AAAAAAG(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_AAAAAAG(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U13_AAAAAAG(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → QS60_IN_AA(T127, T183)
U14_AAAAAAG(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_AAAAAAG(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U14_AAAAAAG(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → QS60_IN_AA(T184, X233)
P43_IN_AAAAAAG(T199, T123, T127, T184, T198, T197, X234) → U16_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U16_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → QS60_IN_AA(T127, T198)
U17_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U17_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → QS60_IN_AA(T184, T197)
U18_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
U18_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → APP71_IN_AAAG(T198, T199, T197, X234)
APP71_IN_AAAG(.(T222, T226), T227, T228, .(T222, X403)) → U21_AAAG(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
APP71_IN_AAAG(.(T222, T226), T227, T228, .(T222, X403)) → APP71_IN_AAAG(T226, T227, T228, X403)
U54_AG(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_AG(T390, T363, T353, T391, qs60_in_ag(T371, T391))
U54_AG(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → QS60_IN_AG(T371, T391)
QS60_IN_AG(.(T192, T193), X370) → U20_AG(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
QS60_IN_AG(.(T192, T193), X370) → P43_IN_AAAAAAG(T192, T193, X366, X367, X368, X369, X370)
QS1_IN_AG(.(T404, .(T363, T353)), .(T402, T406)) → U56_AG(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
QS1_IN_AG(.(T404, .(T363, T353)), .(T402, T406)) → LESS13_IN_AA(T404, T363)
U56_AG(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_AG(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U56_AG(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → PART23_IN_GAAA(T404, T353, T361, T371)
U57_AG(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_AG(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U57_AG(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → QS39_IN_AAA(T363, T361, .(T402, T407))
U58_AG(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_AG(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U58_AG(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → QS60_IN_AA(T371, T408)
U59_AG(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_AG(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
U59_AG(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → APP131_IN_AGAG(T407, T404, T408, T406)
APP131_IN_AGAG(.(T433, T438), T435, T439, .(T433, T437)) → U23_AGAG(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
APP131_IN_AGAG(.(T433, T438), T435, T439, .(T433, T437)) → APP131_IN_AGAG(T438, T435, T439, T437)
QS1_IN_AG(.(T459, .(T461, T460)), T329) → U61_AG(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
QS1_IN_AG(.(T459, .(T461, T460)), T329) → PART44_IN_AAAA(T459, T460, X705, X706)
QS1_IN_AG(.(T468, .(T467, T460)), T329) → U62_AG(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_AG(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_AG(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U62_AG(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → QS60_IN_AA(T465, X543)
QS1_IN_AG(.(T476, .(T474, T460)), T329) → U64_AG(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_AG(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_AG(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U64_AG(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → QS60_IN_AA(T465, T473)
U65_AG(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_AG(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U65_AG(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → QS39_IN_AAA(T474, T475, X544)
QS1_IN_AG(.(T498, .(T474, T460)), .(T498, T499)) → U67_AG(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
QS1_IN_AG(.(T498, .(T474, T460)), .(T498, T499)) → PART44_IN_GAAA(T498, T460, T465, T475)
PART44_IN_GAAA(T148, .(T149, T150), .(T149, X282), X283) → U6_GAAA(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
PART44_IN_GAAA(T148, .(T149, T150), .(T149, X282), X283) → LESS13_IN_GA(T148, T149)
PART44_IN_GAAA(T153, .(T149, T154), .(T149, X282), X283) → U7_GAAA(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_GAAA(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_GAAA(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U7_GAAA(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → PART23_IN_GAAA(T153, T154, X282, X283)
PART44_IN_GAAA(T175, .(T173, T176), X333, .(T173, X334)) → U9_GAAA(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
PART44_IN_GAAA(T175, .(T173, T176), X333, .(T173, X334)) → PART44_IN_GAAA(T175, T176, X333, X334)
U67_AG(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_AG(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U67_AG(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → QS60_IN_AG(T465, [])
U68_AG(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_AG(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U68_AG(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → QS39_IN_AAG(T474, T475, T499)
QS1_IN_AG(.(T516, .(T474, T460)), .(T510, T514)) → U70_AG(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
QS1_IN_AG(.(T516, .(T474, T460)), .(T510, T514)) → PART44_IN_AAAA(T516, T460, T465, T475)
U70_AG(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_AG(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U70_AG(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → QS60_IN_AA(T465, .(T510, T515))
U71_AG(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_AG(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U71_AG(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → QS39_IN_AAA(T474, T475, T517)
U72_AG(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_AG(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
U72_AG(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → APP157_IN_AAAG(T515, T516, T517, T514)
APP157_IN_AAAG(.(T542, T547), T548, T549, .(T542, T546)) → U24_AAAG(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
APP157_IN_AAAG(.(T542, T547), T548, T549, .(T542, T546)) → APP157_IN_AAAG(T547, T548, T549, T546)
QS1_IN_AG(.(T557, []), T329) → U74_AG(T557, T329, qs100_in_a(X543))
QS1_IN_AG(.(T557, []), T329) → QS100_IN_A(X543)
QS1_IN_AG(.(T557, []), T329) → U75_AG(T557, T329, qs100_in_a(T560))
U75_AG(T557, T329, qs100_out_a(T560)) → U76_AG(T557, T329, qs100_in_a(X544))
U75_AG(T557, T329, qs100_out_a(T560)) → QS100_IN_A(X544)
U75_AG(T557, T329, qs100_out_a(T560)) → U77_AG(T557, T329, T560, qs100_in_a(T563))
U77_AG(T557, T329, T560, qs100_out_a(T563)) → U78_AG(T557, T329, app157_in_gagg(T560, T557, T563, T329))
U77_AG(T557, T329, T560, qs100_out_a(T563)) → APP157_IN_GAGG(T560, T557, T563, T329)
APP157_IN_GAGG(.(T542, T547), T548, T549, .(T542, T546)) → U24_GAGG(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
APP157_IN_GAGG(.(T542, T547), T548, T549, .(T542, T546)) → APP157_IN_GAGG(T547, T548, T549, T546)
qs1_in_ag([], []) → qs1_out_ag([], [])
qs1_in_ag(.(T24, .(T25, T26)), []) → U25_ag(T24, T25, T26, less13_in_aa(T24, T25))
less13_in_aa(0, s(T38)) → less13_out_aa(0, s(T38))
less13_in_aa(s(T45), s(T46)) → U1_aa(T45, T46, less13_in_aa(T45, T46))
U1_aa(T45, T46, less13_out_aa(T45, T46)) → less13_out_aa(s(T45), s(T46))
U25_ag(T24, T25, T26, less13_out_aa(T24, T25)) → qs1_out_ag(.(T24, .(T25, T26)), [])
qs1_in_ag(.(T29, .(T31, T30)), []) → U26_ag(T29, T31, T30, less13_in_aa(T29, T31))
U26_ag(T29, T31, T30, less13_out_aa(T29, T31)) → U27_ag(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
part23_in_gaaa(T70, .(T73, T74), .(T73, X123), X124) → U2_gaaa(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
U2_gaaa(T70, T73, T74, X123, X124, less13_out_ga(T70, T73)) → part23_out_gaaa(T70, .(T73, T74), .(T73, X123), X124)
part23_in_gaaa(T70, .(T73, T77), .(T73, X123), X124) → U3_gaaa(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
part23_in_gaaa(T95, .(T96, T98), X174, .(T96, X175)) → U5_gaaa(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
part23_in_gaaa(T104, [], [], []) → part23_out_gaaa(T104, [], [], [])
U5_gaaa(T95, T96, T98, X174, X175, part23_out_gaaa(T95, T98, X174, X175)) → part23_out_gaaa(T95, .(T96, T98), X174, .(T96, X175))
U4_gaaa(T70, T73, T77, X123, X124, part23_out_gaaa(T70, T77, X123, X124)) → part23_out_gaaa(T70, .(T73, T77), .(T73, X123), X124)
U27_ag(T29, T31, T30, part23_out_gaaa(T29, T30, X49, X50)) → qs1_out_ag(.(T29, .(T31, T30)), [])
qs1_in_ag(.(T29, .(T54, T30)), []) → U28_ag(T29, T54, T30, less13_in_aa(T29, T54))
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U29_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U29_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_ag(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
qs39_in_aaa(T122, T123, X234) → U22_aaa(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
part44_in_aaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_aaaa(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
U6_aaaa(T148, T149, T150, X282, X283, less13_out_aa(T148, T149)) → part44_out_aaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_aaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_aaaa(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_aaaa(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_aaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_aaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_aaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_aaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_aaaa(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
part44_in_aaaa(T182, [], [], []) → part44_out_aaaa(T182, [], [], [])
U9_aaaa(T175, T173, T176, X333, X334, part44_out_aaaa(T175, T176, X333, X334)) → part44_out_aaaa(T175, .(T173, T176), X333, .(T173, X334))
U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaaa(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
qs60_in_aa([], []) → qs60_out_aa([], [])
qs60_in_aa(.(T192, T193), X370) → U20_aa(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
p43_in_aaaaaaa(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaaa(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaaa(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
app71_in_aaaa([], T212, T213, .(T212, T213)) → app71_out_aaaa([], T212, T213, .(T212, T213))
app71_in_aaaa(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaaa(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
U21_aaaa(T222, T226, T227, T228, X403, app71_out_aaaa(T226, T227, T228, X403)) → app71_out_aaaa(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_out_aaaa(T198, T199, T197, X234)) → p43_out_aaaaaaa(T199, T123, T127, T184, T198, T197, X234)
U20_aa(T192, T193, X370, p43_out_aaaaaaa(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_aa(.(T192, T193), X370)
U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaaa(T129, T123, T127, T128, X232, X233, X234)
U22_aaa(T122, T123, X234, p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aaa(T122, T123, X234)
U30_ag(T29, T54, T30, qs39_out_aaa(T54, T52, X11)) → qs1_out_ag(.(T29, .(T54, T30)), [])
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U31_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_ag(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U32_ag(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_ag(T29, T54, T30, qs60_in_aa(T108, X12))
U33_ag(T29, T54, T30, qs60_out_aa(T108, X12)) → qs1_out_ag(.(T29, .(T54, T30)), [])
qs1_in_ag(.(T264, .(T266, T265)), []) → U34_ag(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
U34_ag(T264, T266, T265, part44_out_aaaa(T264, T265, X454, X455)) → qs1_out_ag(.(T264, .(T266, T265)), [])
qs1_in_ag(.(T273, .(T272, T265)), []) → U35_ag(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_ag(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_ag(T273, T272, T265, qs60_in_aa(T270, X11))
U36_ag(T273, T272, T265, qs60_out_aa(T270, X11)) → qs1_out_ag(.(T273, .(T272, T265)), [])
qs1_in_ag(.(T280, .(T278, T265)), []) → U37_ag(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_ag(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_ag(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U38_ag(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_ag(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U39_ag(T280, T278, T265, qs39_out_aaa(T278, T279, X12)) → qs1_out_ag(.(T280, .(T278, T265)), [])
qs1_in_ag(.(T305, []), []) → U40_ag(T305, qs100_in_a(X11))
qs100_in_a([]) → qs100_out_a([])
U40_ag(T305, qs100_out_a(X11)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T305, []), []) → U41_ag(T305, qs100_in_a(T309))
U41_ag(T305, qs100_out_a(T309)) → U42_ag(T305, qs100_in_a(X12))
U42_ag(T305, qs100_out_a(X12)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T347, .(T348, T349)), T329) → U43_ag(T347, T348, T349, T329, less13_in_aa(T347, T348))
U43_ag(T347, T348, T349, T329, less13_out_aa(T347, T348)) → qs1_out_ag(.(T347, .(T348, T349)), T329)
qs1_in_ag(.(T352, .(T354, T353)), T329) → U44_ag(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_ag(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_ag(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U45_ag(T352, T354, T353, T329, part23_out_gaaa(T352, T353, X581, X582)) → qs1_out_ag(.(T352, .(T354, T353)), T329)
qs1_in_ag(.(T352, .(T363, T353)), T329) → U46_ag(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U47_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_ag(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U48_ag(T352, T363, T353, T329, qs39_out_aaa(T363, T361, X543)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_ag(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U50_ag(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_ag(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U51_ag(T352, T363, T353, T329, qs60_out_aa(T371, X544)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
qs1_in_ag(.(T390, .(T363, T353)), .(T390, T391)) → U52_ag(T390, T363, T353, T391, less13_in_ga(T390, T363))
U52_ag(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_ag(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U53_ag(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_ag(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
qs39_in_aag(T122, T123, X234) → U22_aag(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaag(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaag(T129, T123, T127, T128, X232, X233, X234)
p43_in_aaaaaag(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaag(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaag(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
app71_in_aaag([], T212, T213, .(T212, T213)) → app71_out_aaag([], T212, T213, .(T212, T213))
app71_in_aaag(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaag(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
U21_aaag(T222, T226, T227, T228, X403, app71_out_aaag(T226, T227, T228, X403)) → app71_out_aaag(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_out_aaag(T198, T199, T197, X234)) → p43_out_aaaaaag(T199, T123, T127, T184, T198, T197, X234)
U22_aag(T122, T123, X234, p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aag(T122, T123, X234)
U54_ag(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_ag(T390, T363, T353, T391, qs60_in_ag(T371, T391))
qs60_in_ag([], []) → qs60_out_ag([], [])
qs60_in_ag(.(T192, T193), X370) → U20_ag(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
U20_ag(T192, T193, X370, p43_out_aaaaaag(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_ag(.(T192, T193), X370)
U55_ag(T390, T363, T353, T391, qs60_out_ag(T371, T391)) → qs1_out_ag(.(T390, .(T363, T353)), .(T390, T391))
qs1_in_ag(.(T404, .(T363, T353)), .(T402, T406)) → U56_ag(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
U56_ag(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_ag(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U57_ag(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_ag(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U58_ag(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_ag(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U59_ag(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_ag(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
app131_in_agag([], T421, T422, .(T421, T422)) → app131_out_agag([], T421, T422, .(T421, T422))
app131_in_agag(.(T433, T438), T435, T439, .(T433, T437)) → U23_agag(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
U23_agag(T433, T438, T435, T439, T437, app131_out_agag(T438, T435, T439, T437)) → app131_out_agag(.(T433, T438), T435, T439, .(T433, T437))
U60_ag(T404, T363, T353, T402, T406, app131_out_agag(T407, T404, T408, T406)) → qs1_out_ag(.(T404, .(T363, T353)), .(T402, T406))
qs1_in_ag(.(T459, .(T461, T460)), T329) → U61_ag(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
U61_ag(T459, T461, T460, T329, part44_out_aaaa(T459, T460, X705, X706)) → qs1_out_ag(.(T459, .(T461, T460)), T329)
qs1_in_ag(.(T468, .(T467, T460)), T329) → U62_ag(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_ag(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_ag(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U63_ag(T468, T467, T460, T329, qs60_out_aa(T465, X543)) → qs1_out_ag(.(T468, .(T467, T460)), T329)
qs1_in_ag(.(T476, .(T474, T460)), T329) → U64_ag(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_ag(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_ag(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U65_ag(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_ag(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U66_ag(T476, T474, T460, T329, qs39_out_aaa(T474, T475, X544)) → qs1_out_ag(.(T476, .(T474, T460)), T329)
qs1_in_ag(.(T498, .(T474, T460)), .(T498, T499)) → U67_ag(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
part44_in_gaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_gaaa(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
U6_gaaa(T148, T149, T150, X282, X283, less13_out_ga(T148, T149)) → part44_out_gaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_gaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_gaaa(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_gaaa(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_gaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_gaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_gaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_gaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_gaaa(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
part44_in_gaaa(T182, [], [], []) → part44_out_gaaa(T182, [], [], [])
U9_gaaa(T175, T173, T176, X333, X334, part44_out_gaaa(T175, T176, X333, X334)) → part44_out_gaaa(T175, .(T173, T176), X333, .(T173, X334))
U67_ag(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_ag(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U68_ag(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_ag(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U69_ag(T498, T474, T460, T499, qs39_out_aag(T474, T475, T499)) → qs1_out_ag(.(T498, .(T474, T460)), .(T498, T499))
qs1_in_ag(.(T516, .(T474, T460)), .(T510, T514)) → U70_ag(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
U70_ag(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_ag(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U71_ag(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_ag(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U72_ag(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_ag(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
app157_in_aaag([], T530, T531, .(T530, T531)) → app157_out_aaag([], T530, T531, .(T530, T531))
app157_in_aaag(.(T542, T547), T548, T549, .(T542, T546)) → U24_aaag(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
U24_aaag(T542, T547, T548, T549, T546, app157_out_aaag(T547, T548, T549, T546)) → app157_out_aaag(.(T542, T547), T548, T549, .(T542, T546))
U73_ag(T516, T474, T460, T510, T514, app157_out_aaag(T515, T516, T517, T514)) → qs1_out_ag(.(T516, .(T474, T460)), .(T510, T514))
qs1_in_ag(.(T557, []), T329) → U74_ag(T557, T329, qs100_in_a(X543))
U74_ag(T557, T329, qs100_out_a(X543)) → qs1_out_ag(.(T557, []), T329)
qs1_in_ag(.(T557, []), T329) → U75_ag(T557, T329, qs100_in_a(T560))
U75_ag(T557, T329, qs100_out_a(T560)) → U76_ag(T557, T329, qs100_in_a(X544))
U76_ag(T557, T329, qs100_out_a(X544)) → qs1_out_ag(.(T557, []), T329)
U75_ag(T557, T329, qs100_out_a(T560)) → U77_ag(T557, T329, T560, qs100_in_a(T563))
U77_ag(T557, T329, T560, qs100_out_a(T563)) → U78_ag(T557, T329, app157_in_gagg(T560, T557, T563, T329))
app157_in_gagg([], T530, T531, .(T530, T531)) → app157_out_gagg([], T530, T531, .(T530, T531))
app157_in_gagg(.(T542, T547), T548, T549, .(T542, T546)) → U24_gagg(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
U24_gagg(T542, T547, T548, T549, T546, app157_out_gagg(T547, T548, T549, T546)) → app157_out_gagg(.(T542, T547), T548, T549, .(T542, T546))
U78_ag(T557, T329, app157_out_gagg(T560, T557, T563, T329)) → qs1_out_ag(.(T557, []), T329)
APP157_IN_GAGG(.(T542, T547), T548, T549, .(T542, T546)) → APP157_IN_GAGG(T547, T548, T549, T546)
qs1_in_ag([], []) → qs1_out_ag([], [])
qs1_in_ag(.(T24, .(T25, T26)), []) → U25_ag(T24, T25, T26, less13_in_aa(T24, T25))
less13_in_aa(0, s(T38)) → less13_out_aa(0, s(T38))
less13_in_aa(s(T45), s(T46)) → U1_aa(T45, T46, less13_in_aa(T45, T46))
U1_aa(T45, T46, less13_out_aa(T45, T46)) → less13_out_aa(s(T45), s(T46))
U25_ag(T24, T25, T26, less13_out_aa(T24, T25)) → qs1_out_ag(.(T24, .(T25, T26)), [])
qs1_in_ag(.(T29, .(T31, T30)), []) → U26_ag(T29, T31, T30, less13_in_aa(T29, T31))
U26_ag(T29, T31, T30, less13_out_aa(T29, T31)) → U27_ag(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
part23_in_gaaa(T70, .(T73, T74), .(T73, X123), X124) → U2_gaaa(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
U2_gaaa(T70, T73, T74, X123, X124, less13_out_ga(T70, T73)) → part23_out_gaaa(T70, .(T73, T74), .(T73, X123), X124)
part23_in_gaaa(T70, .(T73, T77), .(T73, X123), X124) → U3_gaaa(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
part23_in_gaaa(T95, .(T96, T98), X174, .(T96, X175)) → U5_gaaa(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
part23_in_gaaa(T104, [], [], []) → part23_out_gaaa(T104, [], [], [])
U5_gaaa(T95, T96, T98, X174, X175, part23_out_gaaa(T95, T98, X174, X175)) → part23_out_gaaa(T95, .(T96, T98), X174, .(T96, X175))
U4_gaaa(T70, T73, T77, X123, X124, part23_out_gaaa(T70, T77, X123, X124)) → part23_out_gaaa(T70, .(T73, T77), .(T73, X123), X124)
U27_ag(T29, T31, T30, part23_out_gaaa(T29, T30, X49, X50)) → qs1_out_ag(.(T29, .(T31, T30)), [])
qs1_in_ag(.(T29, .(T54, T30)), []) → U28_ag(T29, T54, T30, less13_in_aa(T29, T54))
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U29_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U29_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_ag(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
qs39_in_aaa(T122, T123, X234) → U22_aaa(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
part44_in_aaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_aaaa(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
U6_aaaa(T148, T149, T150, X282, X283, less13_out_aa(T148, T149)) → part44_out_aaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_aaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_aaaa(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_aaaa(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_aaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_aaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_aaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_aaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_aaaa(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
part44_in_aaaa(T182, [], [], []) → part44_out_aaaa(T182, [], [], [])
U9_aaaa(T175, T173, T176, X333, X334, part44_out_aaaa(T175, T176, X333, X334)) → part44_out_aaaa(T175, .(T173, T176), X333, .(T173, X334))
U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaaa(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
qs60_in_aa([], []) → qs60_out_aa([], [])
qs60_in_aa(.(T192, T193), X370) → U20_aa(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
p43_in_aaaaaaa(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaaa(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaaa(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
app71_in_aaaa([], T212, T213, .(T212, T213)) → app71_out_aaaa([], T212, T213, .(T212, T213))
app71_in_aaaa(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaaa(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
U21_aaaa(T222, T226, T227, T228, X403, app71_out_aaaa(T226, T227, T228, X403)) → app71_out_aaaa(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_out_aaaa(T198, T199, T197, X234)) → p43_out_aaaaaaa(T199, T123, T127, T184, T198, T197, X234)
U20_aa(T192, T193, X370, p43_out_aaaaaaa(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_aa(.(T192, T193), X370)
U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaaa(T129, T123, T127, T128, X232, X233, X234)
U22_aaa(T122, T123, X234, p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aaa(T122, T123, X234)
U30_ag(T29, T54, T30, qs39_out_aaa(T54, T52, X11)) → qs1_out_ag(.(T29, .(T54, T30)), [])
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U31_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_ag(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U32_ag(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_ag(T29, T54, T30, qs60_in_aa(T108, X12))
U33_ag(T29, T54, T30, qs60_out_aa(T108, X12)) → qs1_out_ag(.(T29, .(T54, T30)), [])
qs1_in_ag(.(T264, .(T266, T265)), []) → U34_ag(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
U34_ag(T264, T266, T265, part44_out_aaaa(T264, T265, X454, X455)) → qs1_out_ag(.(T264, .(T266, T265)), [])
qs1_in_ag(.(T273, .(T272, T265)), []) → U35_ag(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_ag(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_ag(T273, T272, T265, qs60_in_aa(T270, X11))
U36_ag(T273, T272, T265, qs60_out_aa(T270, X11)) → qs1_out_ag(.(T273, .(T272, T265)), [])
qs1_in_ag(.(T280, .(T278, T265)), []) → U37_ag(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_ag(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_ag(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U38_ag(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_ag(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U39_ag(T280, T278, T265, qs39_out_aaa(T278, T279, X12)) → qs1_out_ag(.(T280, .(T278, T265)), [])
qs1_in_ag(.(T305, []), []) → U40_ag(T305, qs100_in_a(X11))
qs100_in_a([]) → qs100_out_a([])
U40_ag(T305, qs100_out_a(X11)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T305, []), []) → U41_ag(T305, qs100_in_a(T309))
U41_ag(T305, qs100_out_a(T309)) → U42_ag(T305, qs100_in_a(X12))
U42_ag(T305, qs100_out_a(X12)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T347, .(T348, T349)), T329) → U43_ag(T347, T348, T349, T329, less13_in_aa(T347, T348))
U43_ag(T347, T348, T349, T329, less13_out_aa(T347, T348)) → qs1_out_ag(.(T347, .(T348, T349)), T329)
qs1_in_ag(.(T352, .(T354, T353)), T329) → U44_ag(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_ag(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_ag(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U45_ag(T352, T354, T353, T329, part23_out_gaaa(T352, T353, X581, X582)) → qs1_out_ag(.(T352, .(T354, T353)), T329)
qs1_in_ag(.(T352, .(T363, T353)), T329) → U46_ag(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U47_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_ag(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U48_ag(T352, T363, T353, T329, qs39_out_aaa(T363, T361, X543)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_ag(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U50_ag(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_ag(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U51_ag(T352, T363, T353, T329, qs60_out_aa(T371, X544)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
qs1_in_ag(.(T390, .(T363, T353)), .(T390, T391)) → U52_ag(T390, T363, T353, T391, less13_in_ga(T390, T363))
U52_ag(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_ag(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U53_ag(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_ag(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
qs39_in_aag(T122, T123, X234) → U22_aag(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaag(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaag(T129, T123, T127, T128, X232, X233, X234)
p43_in_aaaaaag(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaag(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaag(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
app71_in_aaag([], T212, T213, .(T212, T213)) → app71_out_aaag([], T212, T213, .(T212, T213))
app71_in_aaag(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaag(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
U21_aaag(T222, T226, T227, T228, X403, app71_out_aaag(T226, T227, T228, X403)) → app71_out_aaag(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_out_aaag(T198, T199, T197, X234)) → p43_out_aaaaaag(T199, T123, T127, T184, T198, T197, X234)
U22_aag(T122, T123, X234, p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aag(T122, T123, X234)
U54_ag(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_ag(T390, T363, T353, T391, qs60_in_ag(T371, T391))
qs60_in_ag([], []) → qs60_out_ag([], [])
qs60_in_ag(.(T192, T193), X370) → U20_ag(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
U20_ag(T192, T193, X370, p43_out_aaaaaag(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_ag(.(T192, T193), X370)
U55_ag(T390, T363, T353, T391, qs60_out_ag(T371, T391)) → qs1_out_ag(.(T390, .(T363, T353)), .(T390, T391))
qs1_in_ag(.(T404, .(T363, T353)), .(T402, T406)) → U56_ag(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
U56_ag(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_ag(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U57_ag(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_ag(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U58_ag(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_ag(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U59_ag(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_ag(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
app131_in_agag([], T421, T422, .(T421, T422)) → app131_out_agag([], T421, T422, .(T421, T422))
app131_in_agag(.(T433, T438), T435, T439, .(T433, T437)) → U23_agag(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
U23_agag(T433, T438, T435, T439, T437, app131_out_agag(T438, T435, T439, T437)) → app131_out_agag(.(T433, T438), T435, T439, .(T433, T437))
U60_ag(T404, T363, T353, T402, T406, app131_out_agag(T407, T404, T408, T406)) → qs1_out_ag(.(T404, .(T363, T353)), .(T402, T406))
qs1_in_ag(.(T459, .(T461, T460)), T329) → U61_ag(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
U61_ag(T459, T461, T460, T329, part44_out_aaaa(T459, T460, X705, X706)) → qs1_out_ag(.(T459, .(T461, T460)), T329)
qs1_in_ag(.(T468, .(T467, T460)), T329) → U62_ag(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_ag(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_ag(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U63_ag(T468, T467, T460, T329, qs60_out_aa(T465, X543)) → qs1_out_ag(.(T468, .(T467, T460)), T329)
qs1_in_ag(.(T476, .(T474, T460)), T329) → U64_ag(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_ag(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_ag(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U65_ag(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_ag(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U66_ag(T476, T474, T460, T329, qs39_out_aaa(T474, T475, X544)) → qs1_out_ag(.(T476, .(T474, T460)), T329)
qs1_in_ag(.(T498, .(T474, T460)), .(T498, T499)) → U67_ag(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
part44_in_gaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_gaaa(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
U6_gaaa(T148, T149, T150, X282, X283, less13_out_ga(T148, T149)) → part44_out_gaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_gaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_gaaa(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_gaaa(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_gaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_gaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_gaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_gaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_gaaa(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
part44_in_gaaa(T182, [], [], []) → part44_out_gaaa(T182, [], [], [])
U9_gaaa(T175, T173, T176, X333, X334, part44_out_gaaa(T175, T176, X333, X334)) → part44_out_gaaa(T175, .(T173, T176), X333, .(T173, X334))
U67_ag(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_ag(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U68_ag(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_ag(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U69_ag(T498, T474, T460, T499, qs39_out_aag(T474, T475, T499)) → qs1_out_ag(.(T498, .(T474, T460)), .(T498, T499))
qs1_in_ag(.(T516, .(T474, T460)), .(T510, T514)) → U70_ag(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
U70_ag(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_ag(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U71_ag(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_ag(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U72_ag(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_ag(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
app157_in_aaag([], T530, T531, .(T530, T531)) → app157_out_aaag([], T530, T531, .(T530, T531))
app157_in_aaag(.(T542, T547), T548, T549, .(T542, T546)) → U24_aaag(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
U24_aaag(T542, T547, T548, T549, T546, app157_out_aaag(T547, T548, T549, T546)) → app157_out_aaag(.(T542, T547), T548, T549, .(T542, T546))
U73_ag(T516, T474, T460, T510, T514, app157_out_aaag(T515, T516, T517, T514)) → qs1_out_ag(.(T516, .(T474, T460)), .(T510, T514))
qs1_in_ag(.(T557, []), T329) → U74_ag(T557, T329, qs100_in_a(X543))
U74_ag(T557, T329, qs100_out_a(X543)) → qs1_out_ag(.(T557, []), T329)
qs1_in_ag(.(T557, []), T329) → U75_ag(T557, T329, qs100_in_a(T560))
U75_ag(T557, T329, qs100_out_a(T560)) → U76_ag(T557, T329, qs100_in_a(X544))
U76_ag(T557, T329, qs100_out_a(X544)) → qs1_out_ag(.(T557, []), T329)
U75_ag(T557, T329, qs100_out_a(T560)) → U77_ag(T557, T329, T560, qs100_in_a(T563))
U77_ag(T557, T329, T560, qs100_out_a(T563)) → U78_ag(T557, T329, app157_in_gagg(T560, T557, T563, T329))
app157_in_gagg([], T530, T531, .(T530, T531)) → app157_out_gagg([], T530, T531, .(T530, T531))
app157_in_gagg(.(T542, T547), T548, T549, .(T542, T546)) → U24_gagg(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
U24_gagg(T542, T547, T548, T549, T546, app157_out_gagg(T547, T548, T549, T546)) → app157_out_gagg(.(T542, T547), T548, T549, .(T542, T546))
U78_ag(T557, T329, app157_out_gagg(T560, T557, T563, T329)) → qs1_out_ag(.(T557, []), T329)
APP157_IN_GAGG(.(T542, T547), T548, T549, .(T542, T546)) → APP157_IN_GAGG(T547, T548, T549, T546)
APP157_IN_GAGG(.(T542, T547), T549, .(T542, T546)) → APP157_IN_GAGG(T547, T549, T546)
From the DPs we obtained the following set of size-change graphs:
APP157_IN_AAAG(.(T542, T547), T548, T549, .(T542, T546)) → APP157_IN_AAAG(T547, T548, T549, T546)
qs1_in_ag([], []) → qs1_out_ag([], [])
qs1_in_ag(.(T24, .(T25, T26)), []) → U25_ag(T24, T25, T26, less13_in_aa(T24, T25))
less13_in_aa(0, s(T38)) → less13_out_aa(0, s(T38))
less13_in_aa(s(T45), s(T46)) → U1_aa(T45, T46, less13_in_aa(T45, T46))
U1_aa(T45, T46, less13_out_aa(T45, T46)) → less13_out_aa(s(T45), s(T46))
U25_ag(T24, T25, T26, less13_out_aa(T24, T25)) → qs1_out_ag(.(T24, .(T25, T26)), [])
qs1_in_ag(.(T29, .(T31, T30)), []) → U26_ag(T29, T31, T30, less13_in_aa(T29, T31))
U26_ag(T29, T31, T30, less13_out_aa(T29, T31)) → U27_ag(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
part23_in_gaaa(T70, .(T73, T74), .(T73, X123), X124) → U2_gaaa(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
U2_gaaa(T70, T73, T74, X123, X124, less13_out_ga(T70, T73)) → part23_out_gaaa(T70, .(T73, T74), .(T73, X123), X124)
part23_in_gaaa(T70, .(T73, T77), .(T73, X123), X124) → U3_gaaa(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
part23_in_gaaa(T95, .(T96, T98), X174, .(T96, X175)) → U5_gaaa(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
part23_in_gaaa(T104, [], [], []) → part23_out_gaaa(T104, [], [], [])
U5_gaaa(T95, T96, T98, X174, X175, part23_out_gaaa(T95, T98, X174, X175)) → part23_out_gaaa(T95, .(T96, T98), X174, .(T96, X175))
U4_gaaa(T70, T73, T77, X123, X124, part23_out_gaaa(T70, T77, X123, X124)) → part23_out_gaaa(T70, .(T73, T77), .(T73, X123), X124)
U27_ag(T29, T31, T30, part23_out_gaaa(T29, T30, X49, X50)) → qs1_out_ag(.(T29, .(T31, T30)), [])
qs1_in_ag(.(T29, .(T54, T30)), []) → U28_ag(T29, T54, T30, less13_in_aa(T29, T54))
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U29_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U29_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_ag(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
qs39_in_aaa(T122, T123, X234) → U22_aaa(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
part44_in_aaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_aaaa(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
U6_aaaa(T148, T149, T150, X282, X283, less13_out_aa(T148, T149)) → part44_out_aaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_aaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_aaaa(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_aaaa(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_aaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_aaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_aaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_aaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_aaaa(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
part44_in_aaaa(T182, [], [], []) → part44_out_aaaa(T182, [], [], [])
U9_aaaa(T175, T173, T176, X333, X334, part44_out_aaaa(T175, T176, X333, X334)) → part44_out_aaaa(T175, .(T173, T176), X333, .(T173, X334))
U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaaa(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
qs60_in_aa([], []) → qs60_out_aa([], [])
qs60_in_aa(.(T192, T193), X370) → U20_aa(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
p43_in_aaaaaaa(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaaa(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaaa(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
app71_in_aaaa([], T212, T213, .(T212, T213)) → app71_out_aaaa([], T212, T213, .(T212, T213))
app71_in_aaaa(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaaa(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
U21_aaaa(T222, T226, T227, T228, X403, app71_out_aaaa(T226, T227, T228, X403)) → app71_out_aaaa(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_out_aaaa(T198, T199, T197, X234)) → p43_out_aaaaaaa(T199, T123, T127, T184, T198, T197, X234)
U20_aa(T192, T193, X370, p43_out_aaaaaaa(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_aa(.(T192, T193), X370)
U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaaa(T129, T123, T127, T128, X232, X233, X234)
U22_aaa(T122, T123, X234, p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aaa(T122, T123, X234)
U30_ag(T29, T54, T30, qs39_out_aaa(T54, T52, X11)) → qs1_out_ag(.(T29, .(T54, T30)), [])
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U31_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_ag(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U32_ag(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_ag(T29, T54, T30, qs60_in_aa(T108, X12))
U33_ag(T29, T54, T30, qs60_out_aa(T108, X12)) → qs1_out_ag(.(T29, .(T54, T30)), [])
qs1_in_ag(.(T264, .(T266, T265)), []) → U34_ag(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
U34_ag(T264, T266, T265, part44_out_aaaa(T264, T265, X454, X455)) → qs1_out_ag(.(T264, .(T266, T265)), [])
qs1_in_ag(.(T273, .(T272, T265)), []) → U35_ag(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_ag(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_ag(T273, T272, T265, qs60_in_aa(T270, X11))
U36_ag(T273, T272, T265, qs60_out_aa(T270, X11)) → qs1_out_ag(.(T273, .(T272, T265)), [])
qs1_in_ag(.(T280, .(T278, T265)), []) → U37_ag(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_ag(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_ag(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U38_ag(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_ag(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U39_ag(T280, T278, T265, qs39_out_aaa(T278, T279, X12)) → qs1_out_ag(.(T280, .(T278, T265)), [])
qs1_in_ag(.(T305, []), []) → U40_ag(T305, qs100_in_a(X11))
qs100_in_a([]) → qs100_out_a([])
U40_ag(T305, qs100_out_a(X11)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T305, []), []) → U41_ag(T305, qs100_in_a(T309))
U41_ag(T305, qs100_out_a(T309)) → U42_ag(T305, qs100_in_a(X12))
U42_ag(T305, qs100_out_a(X12)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T347, .(T348, T349)), T329) → U43_ag(T347, T348, T349, T329, less13_in_aa(T347, T348))
U43_ag(T347, T348, T349, T329, less13_out_aa(T347, T348)) → qs1_out_ag(.(T347, .(T348, T349)), T329)
qs1_in_ag(.(T352, .(T354, T353)), T329) → U44_ag(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_ag(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_ag(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U45_ag(T352, T354, T353, T329, part23_out_gaaa(T352, T353, X581, X582)) → qs1_out_ag(.(T352, .(T354, T353)), T329)
qs1_in_ag(.(T352, .(T363, T353)), T329) → U46_ag(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U47_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_ag(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U48_ag(T352, T363, T353, T329, qs39_out_aaa(T363, T361, X543)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_ag(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U50_ag(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_ag(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U51_ag(T352, T363, T353, T329, qs60_out_aa(T371, X544)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
qs1_in_ag(.(T390, .(T363, T353)), .(T390, T391)) → U52_ag(T390, T363, T353, T391, less13_in_ga(T390, T363))
U52_ag(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_ag(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U53_ag(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_ag(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
qs39_in_aag(T122, T123, X234) → U22_aag(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaag(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaag(T129, T123, T127, T128, X232, X233, X234)
p43_in_aaaaaag(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaag(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaag(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
app71_in_aaag([], T212, T213, .(T212, T213)) → app71_out_aaag([], T212, T213, .(T212, T213))
app71_in_aaag(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaag(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
U21_aaag(T222, T226, T227, T228, X403, app71_out_aaag(T226, T227, T228, X403)) → app71_out_aaag(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_out_aaag(T198, T199, T197, X234)) → p43_out_aaaaaag(T199, T123, T127, T184, T198, T197, X234)
U22_aag(T122, T123, X234, p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aag(T122, T123, X234)
U54_ag(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_ag(T390, T363, T353, T391, qs60_in_ag(T371, T391))
qs60_in_ag([], []) → qs60_out_ag([], [])
qs60_in_ag(.(T192, T193), X370) → U20_ag(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
U20_ag(T192, T193, X370, p43_out_aaaaaag(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_ag(.(T192, T193), X370)
U55_ag(T390, T363, T353, T391, qs60_out_ag(T371, T391)) → qs1_out_ag(.(T390, .(T363, T353)), .(T390, T391))
qs1_in_ag(.(T404, .(T363, T353)), .(T402, T406)) → U56_ag(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
U56_ag(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_ag(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U57_ag(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_ag(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U58_ag(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_ag(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U59_ag(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_ag(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
app131_in_agag([], T421, T422, .(T421, T422)) → app131_out_agag([], T421, T422, .(T421, T422))
app131_in_agag(.(T433, T438), T435, T439, .(T433, T437)) → U23_agag(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
U23_agag(T433, T438, T435, T439, T437, app131_out_agag(T438, T435, T439, T437)) → app131_out_agag(.(T433, T438), T435, T439, .(T433, T437))
U60_ag(T404, T363, T353, T402, T406, app131_out_agag(T407, T404, T408, T406)) → qs1_out_ag(.(T404, .(T363, T353)), .(T402, T406))
qs1_in_ag(.(T459, .(T461, T460)), T329) → U61_ag(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
U61_ag(T459, T461, T460, T329, part44_out_aaaa(T459, T460, X705, X706)) → qs1_out_ag(.(T459, .(T461, T460)), T329)
qs1_in_ag(.(T468, .(T467, T460)), T329) → U62_ag(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_ag(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_ag(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U63_ag(T468, T467, T460, T329, qs60_out_aa(T465, X543)) → qs1_out_ag(.(T468, .(T467, T460)), T329)
qs1_in_ag(.(T476, .(T474, T460)), T329) → U64_ag(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_ag(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_ag(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U65_ag(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_ag(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U66_ag(T476, T474, T460, T329, qs39_out_aaa(T474, T475, X544)) → qs1_out_ag(.(T476, .(T474, T460)), T329)
qs1_in_ag(.(T498, .(T474, T460)), .(T498, T499)) → U67_ag(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
part44_in_gaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_gaaa(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
U6_gaaa(T148, T149, T150, X282, X283, less13_out_ga(T148, T149)) → part44_out_gaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_gaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_gaaa(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_gaaa(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_gaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_gaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_gaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_gaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_gaaa(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
part44_in_gaaa(T182, [], [], []) → part44_out_gaaa(T182, [], [], [])
U9_gaaa(T175, T173, T176, X333, X334, part44_out_gaaa(T175, T176, X333, X334)) → part44_out_gaaa(T175, .(T173, T176), X333, .(T173, X334))
U67_ag(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_ag(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U68_ag(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_ag(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U69_ag(T498, T474, T460, T499, qs39_out_aag(T474, T475, T499)) → qs1_out_ag(.(T498, .(T474, T460)), .(T498, T499))
qs1_in_ag(.(T516, .(T474, T460)), .(T510, T514)) → U70_ag(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
U70_ag(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_ag(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U71_ag(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_ag(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U72_ag(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_ag(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
app157_in_aaag([], T530, T531, .(T530, T531)) → app157_out_aaag([], T530, T531, .(T530, T531))
app157_in_aaag(.(T542, T547), T548, T549, .(T542, T546)) → U24_aaag(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
U24_aaag(T542, T547, T548, T549, T546, app157_out_aaag(T547, T548, T549, T546)) → app157_out_aaag(.(T542, T547), T548, T549, .(T542, T546))
U73_ag(T516, T474, T460, T510, T514, app157_out_aaag(T515, T516, T517, T514)) → qs1_out_ag(.(T516, .(T474, T460)), .(T510, T514))
qs1_in_ag(.(T557, []), T329) → U74_ag(T557, T329, qs100_in_a(X543))
U74_ag(T557, T329, qs100_out_a(X543)) → qs1_out_ag(.(T557, []), T329)
qs1_in_ag(.(T557, []), T329) → U75_ag(T557, T329, qs100_in_a(T560))
U75_ag(T557, T329, qs100_out_a(T560)) → U76_ag(T557, T329, qs100_in_a(X544))
U76_ag(T557, T329, qs100_out_a(X544)) → qs1_out_ag(.(T557, []), T329)
U75_ag(T557, T329, qs100_out_a(T560)) → U77_ag(T557, T329, T560, qs100_in_a(T563))
U77_ag(T557, T329, T560, qs100_out_a(T563)) → U78_ag(T557, T329, app157_in_gagg(T560, T557, T563, T329))
app157_in_gagg([], T530, T531, .(T530, T531)) → app157_out_gagg([], T530, T531, .(T530, T531))
app157_in_gagg(.(T542, T547), T548, T549, .(T542, T546)) → U24_gagg(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
U24_gagg(T542, T547, T548, T549, T546, app157_out_gagg(T547, T548, T549, T546)) → app157_out_gagg(.(T542, T547), T548, T549, .(T542, T546))
U78_ag(T557, T329, app157_out_gagg(T560, T557, T563, T329)) → qs1_out_ag(.(T557, []), T329)
APP157_IN_AAAG(.(T542, T547), T548, T549, .(T542, T546)) → APP157_IN_AAAG(T547, T548, T549, T546)
APP157_IN_AAAG(.(T542, T546)) → APP157_IN_AAAG(T546)
From the DPs we obtained the following set of size-change graphs:
APP131_IN_AGAG(.(T433, T438), T435, T439, .(T433, T437)) → APP131_IN_AGAG(T438, T435, T439, T437)
qs1_in_ag([], []) → qs1_out_ag([], [])
qs1_in_ag(.(T24, .(T25, T26)), []) → U25_ag(T24, T25, T26, less13_in_aa(T24, T25))
less13_in_aa(0, s(T38)) → less13_out_aa(0, s(T38))
less13_in_aa(s(T45), s(T46)) → U1_aa(T45, T46, less13_in_aa(T45, T46))
U1_aa(T45, T46, less13_out_aa(T45, T46)) → less13_out_aa(s(T45), s(T46))
U25_ag(T24, T25, T26, less13_out_aa(T24, T25)) → qs1_out_ag(.(T24, .(T25, T26)), [])
qs1_in_ag(.(T29, .(T31, T30)), []) → U26_ag(T29, T31, T30, less13_in_aa(T29, T31))
U26_ag(T29, T31, T30, less13_out_aa(T29, T31)) → U27_ag(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
part23_in_gaaa(T70, .(T73, T74), .(T73, X123), X124) → U2_gaaa(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
U2_gaaa(T70, T73, T74, X123, X124, less13_out_ga(T70, T73)) → part23_out_gaaa(T70, .(T73, T74), .(T73, X123), X124)
part23_in_gaaa(T70, .(T73, T77), .(T73, X123), X124) → U3_gaaa(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
part23_in_gaaa(T95, .(T96, T98), X174, .(T96, X175)) → U5_gaaa(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
part23_in_gaaa(T104, [], [], []) → part23_out_gaaa(T104, [], [], [])
U5_gaaa(T95, T96, T98, X174, X175, part23_out_gaaa(T95, T98, X174, X175)) → part23_out_gaaa(T95, .(T96, T98), X174, .(T96, X175))
U4_gaaa(T70, T73, T77, X123, X124, part23_out_gaaa(T70, T77, X123, X124)) → part23_out_gaaa(T70, .(T73, T77), .(T73, X123), X124)
U27_ag(T29, T31, T30, part23_out_gaaa(T29, T30, X49, X50)) → qs1_out_ag(.(T29, .(T31, T30)), [])
qs1_in_ag(.(T29, .(T54, T30)), []) → U28_ag(T29, T54, T30, less13_in_aa(T29, T54))
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U29_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U29_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_ag(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
qs39_in_aaa(T122, T123, X234) → U22_aaa(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
part44_in_aaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_aaaa(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
U6_aaaa(T148, T149, T150, X282, X283, less13_out_aa(T148, T149)) → part44_out_aaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_aaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_aaaa(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_aaaa(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_aaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_aaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_aaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_aaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_aaaa(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
part44_in_aaaa(T182, [], [], []) → part44_out_aaaa(T182, [], [], [])
U9_aaaa(T175, T173, T176, X333, X334, part44_out_aaaa(T175, T176, X333, X334)) → part44_out_aaaa(T175, .(T173, T176), X333, .(T173, X334))
U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaaa(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
qs60_in_aa([], []) → qs60_out_aa([], [])
qs60_in_aa(.(T192, T193), X370) → U20_aa(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
p43_in_aaaaaaa(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaaa(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaaa(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
app71_in_aaaa([], T212, T213, .(T212, T213)) → app71_out_aaaa([], T212, T213, .(T212, T213))
app71_in_aaaa(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaaa(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
U21_aaaa(T222, T226, T227, T228, X403, app71_out_aaaa(T226, T227, T228, X403)) → app71_out_aaaa(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_out_aaaa(T198, T199, T197, X234)) → p43_out_aaaaaaa(T199, T123, T127, T184, T198, T197, X234)
U20_aa(T192, T193, X370, p43_out_aaaaaaa(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_aa(.(T192, T193), X370)
U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaaa(T129, T123, T127, T128, X232, X233, X234)
U22_aaa(T122, T123, X234, p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aaa(T122, T123, X234)
U30_ag(T29, T54, T30, qs39_out_aaa(T54, T52, X11)) → qs1_out_ag(.(T29, .(T54, T30)), [])
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U31_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_ag(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U32_ag(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_ag(T29, T54, T30, qs60_in_aa(T108, X12))
U33_ag(T29, T54, T30, qs60_out_aa(T108, X12)) → qs1_out_ag(.(T29, .(T54, T30)), [])
qs1_in_ag(.(T264, .(T266, T265)), []) → U34_ag(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
U34_ag(T264, T266, T265, part44_out_aaaa(T264, T265, X454, X455)) → qs1_out_ag(.(T264, .(T266, T265)), [])
qs1_in_ag(.(T273, .(T272, T265)), []) → U35_ag(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_ag(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_ag(T273, T272, T265, qs60_in_aa(T270, X11))
U36_ag(T273, T272, T265, qs60_out_aa(T270, X11)) → qs1_out_ag(.(T273, .(T272, T265)), [])
qs1_in_ag(.(T280, .(T278, T265)), []) → U37_ag(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_ag(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_ag(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U38_ag(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_ag(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U39_ag(T280, T278, T265, qs39_out_aaa(T278, T279, X12)) → qs1_out_ag(.(T280, .(T278, T265)), [])
qs1_in_ag(.(T305, []), []) → U40_ag(T305, qs100_in_a(X11))
qs100_in_a([]) → qs100_out_a([])
U40_ag(T305, qs100_out_a(X11)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T305, []), []) → U41_ag(T305, qs100_in_a(T309))
U41_ag(T305, qs100_out_a(T309)) → U42_ag(T305, qs100_in_a(X12))
U42_ag(T305, qs100_out_a(X12)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T347, .(T348, T349)), T329) → U43_ag(T347, T348, T349, T329, less13_in_aa(T347, T348))
U43_ag(T347, T348, T349, T329, less13_out_aa(T347, T348)) → qs1_out_ag(.(T347, .(T348, T349)), T329)
qs1_in_ag(.(T352, .(T354, T353)), T329) → U44_ag(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_ag(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_ag(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U45_ag(T352, T354, T353, T329, part23_out_gaaa(T352, T353, X581, X582)) → qs1_out_ag(.(T352, .(T354, T353)), T329)
qs1_in_ag(.(T352, .(T363, T353)), T329) → U46_ag(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U47_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_ag(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U48_ag(T352, T363, T353, T329, qs39_out_aaa(T363, T361, X543)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_ag(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U50_ag(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_ag(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U51_ag(T352, T363, T353, T329, qs60_out_aa(T371, X544)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
qs1_in_ag(.(T390, .(T363, T353)), .(T390, T391)) → U52_ag(T390, T363, T353, T391, less13_in_ga(T390, T363))
U52_ag(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_ag(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U53_ag(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_ag(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
qs39_in_aag(T122, T123, X234) → U22_aag(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaag(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaag(T129, T123, T127, T128, X232, X233, X234)
p43_in_aaaaaag(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaag(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaag(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
app71_in_aaag([], T212, T213, .(T212, T213)) → app71_out_aaag([], T212, T213, .(T212, T213))
app71_in_aaag(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaag(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
U21_aaag(T222, T226, T227, T228, X403, app71_out_aaag(T226, T227, T228, X403)) → app71_out_aaag(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_out_aaag(T198, T199, T197, X234)) → p43_out_aaaaaag(T199, T123, T127, T184, T198, T197, X234)
U22_aag(T122, T123, X234, p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aag(T122, T123, X234)
U54_ag(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_ag(T390, T363, T353, T391, qs60_in_ag(T371, T391))
qs60_in_ag([], []) → qs60_out_ag([], [])
qs60_in_ag(.(T192, T193), X370) → U20_ag(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
U20_ag(T192, T193, X370, p43_out_aaaaaag(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_ag(.(T192, T193), X370)
U55_ag(T390, T363, T353, T391, qs60_out_ag(T371, T391)) → qs1_out_ag(.(T390, .(T363, T353)), .(T390, T391))
qs1_in_ag(.(T404, .(T363, T353)), .(T402, T406)) → U56_ag(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
U56_ag(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_ag(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U57_ag(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_ag(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U58_ag(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_ag(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U59_ag(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_ag(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
app131_in_agag([], T421, T422, .(T421, T422)) → app131_out_agag([], T421, T422, .(T421, T422))
app131_in_agag(.(T433, T438), T435, T439, .(T433, T437)) → U23_agag(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
U23_agag(T433, T438, T435, T439, T437, app131_out_agag(T438, T435, T439, T437)) → app131_out_agag(.(T433, T438), T435, T439, .(T433, T437))
U60_ag(T404, T363, T353, T402, T406, app131_out_agag(T407, T404, T408, T406)) → qs1_out_ag(.(T404, .(T363, T353)), .(T402, T406))
qs1_in_ag(.(T459, .(T461, T460)), T329) → U61_ag(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
U61_ag(T459, T461, T460, T329, part44_out_aaaa(T459, T460, X705, X706)) → qs1_out_ag(.(T459, .(T461, T460)), T329)
qs1_in_ag(.(T468, .(T467, T460)), T329) → U62_ag(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_ag(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_ag(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U63_ag(T468, T467, T460, T329, qs60_out_aa(T465, X543)) → qs1_out_ag(.(T468, .(T467, T460)), T329)
qs1_in_ag(.(T476, .(T474, T460)), T329) → U64_ag(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_ag(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_ag(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U65_ag(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_ag(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U66_ag(T476, T474, T460, T329, qs39_out_aaa(T474, T475, X544)) → qs1_out_ag(.(T476, .(T474, T460)), T329)
qs1_in_ag(.(T498, .(T474, T460)), .(T498, T499)) → U67_ag(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
part44_in_gaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_gaaa(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
U6_gaaa(T148, T149, T150, X282, X283, less13_out_ga(T148, T149)) → part44_out_gaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_gaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_gaaa(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_gaaa(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_gaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_gaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_gaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_gaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_gaaa(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
part44_in_gaaa(T182, [], [], []) → part44_out_gaaa(T182, [], [], [])
U9_gaaa(T175, T173, T176, X333, X334, part44_out_gaaa(T175, T176, X333, X334)) → part44_out_gaaa(T175, .(T173, T176), X333, .(T173, X334))
U67_ag(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_ag(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U68_ag(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_ag(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U69_ag(T498, T474, T460, T499, qs39_out_aag(T474, T475, T499)) → qs1_out_ag(.(T498, .(T474, T460)), .(T498, T499))
qs1_in_ag(.(T516, .(T474, T460)), .(T510, T514)) → U70_ag(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
U70_ag(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_ag(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U71_ag(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_ag(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U72_ag(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_ag(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
app157_in_aaag([], T530, T531, .(T530, T531)) → app157_out_aaag([], T530, T531, .(T530, T531))
app157_in_aaag(.(T542, T547), T548, T549, .(T542, T546)) → U24_aaag(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
U24_aaag(T542, T547, T548, T549, T546, app157_out_aaag(T547, T548, T549, T546)) → app157_out_aaag(.(T542, T547), T548, T549, .(T542, T546))
U73_ag(T516, T474, T460, T510, T514, app157_out_aaag(T515, T516, T517, T514)) → qs1_out_ag(.(T516, .(T474, T460)), .(T510, T514))
qs1_in_ag(.(T557, []), T329) → U74_ag(T557, T329, qs100_in_a(X543))
U74_ag(T557, T329, qs100_out_a(X543)) → qs1_out_ag(.(T557, []), T329)
qs1_in_ag(.(T557, []), T329) → U75_ag(T557, T329, qs100_in_a(T560))
U75_ag(T557, T329, qs100_out_a(T560)) → U76_ag(T557, T329, qs100_in_a(X544))
U76_ag(T557, T329, qs100_out_a(X544)) → qs1_out_ag(.(T557, []), T329)
U75_ag(T557, T329, qs100_out_a(T560)) → U77_ag(T557, T329, T560, qs100_in_a(T563))
U77_ag(T557, T329, T560, qs100_out_a(T563)) → U78_ag(T557, T329, app157_in_gagg(T560, T557, T563, T329))
app157_in_gagg([], T530, T531, .(T530, T531)) → app157_out_gagg([], T530, T531, .(T530, T531))
app157_in_gagg(.(T542, T547), T548, T549, .(T542, T546)) → U24_gagg(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
U24_gagg(T542, T547, T548, T549, T546, app157_out_gagg(T547, T548, T549, T546)) → app157_out_gagg(.(T542, T547), T548, T549, .(T542, T546))
U78_ag(T557, T329, app157_out_gagg(T560, T557, T563, T329)) → qs1_out_ag(.(T557, []), T329)
APP131_IN_AGAG(.(T433, T438), T435, T439, .(T433, T437)) → APP131_IN_AGAG(T438, T435, T439, T437)
APP131_IN_AGAG(T435, .(T433, T437)) → APP131_IN_AGAG(T435, T437)
From the DPs we obtained the following set of size-change graphs:
APP71_IN_AAAG(.(T222, T226), T227, T228, .(T222, X403)) → APP71_IN_AAAG(T226, T227, T228, X403)
qs1_in_ag([], []) → qs1_out_ag([], [])
qs1_in_ag(.(T24, .(T25, T26)), []) → U25_ag(T24, T25, T26, less13_in_aa(T24, T25))
less13_in_aa(0, s(T38)) → less13_out_aa(0, s(T38))
less13_in_aa(s(T45), s(T46)) → U1_aa(T45, T46, less13_in_aa(T45, T46))
U1_aa(T45, T46, less13_out_aa(T45, T46)) → less13_out_aa(s(T45), s(T46))
U25_ag(T24, T25, T26, less13_out_aa(T24, T25)) → qs1_out_ag(.(T24, .(T25, T26)), [])
qs1_in_ag(.(T29, .(T31, T30)), []) → U26_ag(T29, T31, T30, less13_in_aa(T29, T31))
U26_ag(T29, T31, T30, less13_out_aa(T29, T31)) → U27_ag(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
part23_in_gaaa(T70, .(T73, T74), .(T73, X123), X124) → U2_gaaa(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
U2_gaaa(T70, T73, T74, X123, X124, less13_out_ga(T70, T73)) → part23_out_gaaa(T70, .(T73, T74), .(T73, X123), X124)
part23_in_gaaa(T70, .(T73, T77), .(T73, X123), X124) → U3_gaaa(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
part23_in_gaaa(T95, .(T96, T98), X174, .(T96, X175)) → U5_gaaa(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
part23_in_gaaa(T104, [], [], []) → part23_out_gaaa(T104, [], [], [])
U5_gaaa(T95, T96, T98, X174, X175, part23_out_gaaa(T95, T98, X174, X175)) → part23_out_gaaa(T95, .(T96, T98), X174, .(T96, X175))
U4_gaaa(T70, T73, T77, X123, X124, part23_out_gaaa(T70, T77, X123, X124)) → part23_out_gaaa(T70, .(T73, T77), .(T73, X123), X124)
U27_ag(T29, T31, T30, part23_out_gaaa(T29, T30, X49, X50)) → qs1_out_ag(.(T29, .(T31, T30)), [])
qs1_in_ag(.(T29, .(T54, T30)), []) → U28_ag(T29, T54, T30, less13_in_aa(T29, T54))
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U29_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U29_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_ag(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
qs39_in_aaa(T122, T123, X234) → U22_aaa(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
part44_in_aaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_aaaa(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
U6_aaaa(T148, T149, T150, X282, X283, less13_out_aa(T148, T149)) → part44_out_aaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_aaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_aaaa(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_aaaa(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_aaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_aaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_aaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_aaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_aaaa(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
part44_in_aaaa(T182, [], [], []) → part44_out_aaaa(T182, [], [], [])
U9_aaaa(T175, T173, T176, X333, X334, part44_out_aaaa(T175, T176, X333, X334)) → part44_out_aaaa(T175, .(T173, T176), X333, .(T173, X334))
U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaaa(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
qs60_in_aa([], []) → qs60_out_aa([], [])
qs60_in_aa(.(T192, T193), X370) → U20_aa(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
p43_in_aaaaaaa(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaaa(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaaa(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
app71_in_aaaa([], T212, T213, .(T212, T213)) → app71_out_aaaa([], T212, T213, .(T212, T213))
app71_in_aaaa(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaaa(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
U21_aaaa(T222, T226, T227, T228, X403, app71_out_aaaa(T226, T227, T228, X403)) → app71_out_aaaa(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_out_aaaa(T198, T199, T197, X234)) → p43_out_aaaaaaa(T199, T123, T127, T184, T198, T197, X234)
U20_aa(T192, T193, X370, p43_out_aaaaaaa(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_aa(.(T192, T193), X370)
U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaaa(T129, T123, T127, T128, X232, X233, X234)
U22_aaa(T122, T123, X234, p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aaa(T122, T123, X234)
U30_ag(T29, T54, T30, qs39_out_aaa(T54, T52, X11)) → qs1_out_ag(.(T29, .(T54, T30)), [])
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U31_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_ag(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U32_ag(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_ag(T29, T54, T30, qs60_in_aa(T108, X12))
U33_ag(T29, T54, T30, qs60_out_aa(T108, X12)) → qs1_out_ag(.(T29, .(T54, T30)), [])
qs1_in_ag(.(T264, .(T266, T265)), []) → U34_ag(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
U34_ag(T264, T266, T265, part44_out_aaaa(T264, T265, X454, X455)) → qs1_out_ag(.(T264, .(T266, T265)), [])
qs1_in_ag(.(T273, .(T272, T265)), []) → U35_ag(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_ag(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_ag(T273, T272, T265, qs60_in_aa(T270, X11))
U36_ag(T273, T272, T265, qs60_out_aa(T270, X11)) → qs1_out_ag(.(T273, .(T272, T265)), [])
qs1_in_ag(.(T280, .(T278, T265)), []) → U37_ag(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_ag(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_ag(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U38_ag(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_ag(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U39_ag(T280, T278, T265, qs39_out_aaa(T278, T279, X12)) → qs1_out_ag(.(T280, .(T278, T265)), [])
qs1_in_ag(.(T305, []), []) → U40_ag(T305, qs100_in_a(X11))
qs100_in_a([]) → qs100_out_a([])
U40_ag(T305, qs100_out_a(X11)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T305, []), []) → U41_ag(T305, qs100_in_a(T309))
U41_ag(T305, qs100_out_a(T309)) → U42_ag(T305, qs100_in_a(X12))
U42_ag(T305, qs100_out_a(X12)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T347, .(T348, T349)), T329) → U43_ag(T347, T348, T349, T329, less13_in_aa(T347, T348))
U43_ag(T347, T348, T349, T329, less13_out_aa(T347, T348)) → qs1_out_ag(.(T347, .(T348, T349)), T329)
qs1_in_ag(.(T352, .(T354, T353)), T329) → U44_ag(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_ag(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_ag(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U45_ag(T352, T354, T353, T329, part23_out_gaaa(T352, T353, X581, X582)) → qs1_out_ag(.(T352, .(T354, T353)), T329)
qs1_in_ag(.(T352, .(T363, T353)), T329) → U46_ag(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U47_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_ag(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U48_ag(T352, T363, T353, T329, qs39_out_aaa(T363, T361, X543)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_ag(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U50_ag(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_ag(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U51_ag(T352, T363, T353, T329, qs60_out_aa(T371, X544)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
qs1_in_ag(.(T390, .(T363, T353)), .(T390, T391)) → U52_ag(T390, T363, T353, T391, less13_in_ga(T390, T363))
U52_ag(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_ag(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U53_ag(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_ag(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
qs39_in_aag(T122, T123, X234) → U22_aag(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaag(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaag(T129, T123, T127, T128, X232, X233, X234)
p43_in_aaaaaag(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaag(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaag(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
app71_in_aaag([], T212, T213, .(T212, T213)) → app71_out_aaag([], T212, T213, .(T212, T213))
app71_in_aaag(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaag(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
U21_aaag(T222, T226, T227, T228, X403, app71_out_aaag(T226, T227, T228, X403)) → app71_out_aaag(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_out_aaag(T198, T199, T197, X234)) → p43_out_aaaaaag(T199, T123, T127, T184, T198, T197, X234)
U22_aag(T122, T123, X234, p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aag(T122, T123, X234)
U54_ag(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_ag(T390, T363, T353, T391, qs60_in_ag(T371, T391))
qs60_in_ag([], []) → qs60_out_ag([], [])
qs60_in_ag(.(T192, T193), X370) → U20_ag(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
U20_ag(T192, T193, X370, p43_out_aaaaaag(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_ag(.(T192, T193), X370)
U55_ag(T390, T363, T353, T391, qs60_out_ag(T371, T391)) → qs1_out_ag(.(T390, .(T363, T353)), .(T390, T391))
qs1_in_ag(.(T404, .(T363, T353)), .(T402, T406)) → U56_ag(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
U56_ag(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_ag(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U57_ag(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_ag(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U58_ag(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_ag(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U59_ag(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_ag(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
app131_in_agag([], T421, T422, .(T421, T422)) → app131_out_agag([], T421, T422, .(T421, T422))
app131_in_agag(.(T433, T438), T435, T439, .(T433, T437)) → U23_agag(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
U23_agag(T433, T438, T435, T439, T437, app131_out_agag(T438, T435, T439, T437)) → app131_out_agag(.(T433, T438), T435, T439, .(T433, T437))
U60_ag(T404, T363, T353, T402, T406, app131_out_agag(T407, T404, T408, T406)) → qs1_out_ag(.(T404, .(T363, T353)), .(T402, T406))
qs1_in_ag(.(T459, .(T461, T460)), T329) → U61_ag(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
U61_ag(T459, T461, T460, T329, part44_out_aaaa(T459, T460, X705, X706)) → qs1_out_ag(.(T459, .(T461, T460)), T329)
qs1_in_ag(.(T468, .(T467, T460)), T329) → U62_ag(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_ag(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_ag(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U63_ag(T468, T467, T460, T329, qs60_out_aa(T465, X543)) → qs1_out_ag(.(T468, .(T467, T460)), T329)
qs1_in_ag(.(T476, .(T474, T460)), T329) → U64_ag(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_ag(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_ag(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U65_ag(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_ag(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U66_ag(T476, T474, T460, T329, qs39_out_aaa(T474, T475, X544)) → qs1_out_ag(.(T476, .(T474, T460)), T329)
qs1_in_ag(.(T498, .(T474, T460)), .(T498, T499)) → U67_ag(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
part44_in_gaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_gaaa(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
U6_gaaa(T148, T149, T150, X282, X283, less13_out_ga(T148, T149)) → part44_out_gaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_gaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_gaaa(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_gaaa(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_gaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_gaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_gaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_gaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_gaaa(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
part44_in_gaaa(T182, [], [], []) → part44_out_gaaa(T182, [], [], [])
U9_gaaa(T175, T173, T176, X333, X334, part44_out_gaaa(T175, T176, X333, X334)) → part44_out_gaaa(T175, .(T173, T176), X333, .(T173, X334))
U67_ag(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_ag(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U68_ag(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_ag(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U69_ag(T498, T474, T460, T499, qs39_out_aag(T474, T475, T499)) → qs1_out_ag(.(T498, .(T474, T460)), .(T498, T499))
qs1_in_ag(.(T516, .(T474, T460)), .(T510, T514)) → U70_ag(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
U70_ag(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_ag(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U71_ag(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_ag(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U72_ag(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_ag(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
app157_in_aaag([], T530, T531, .(T530, T531)) → app157_out_aaag([], T530, T531, .(T530, T531))
app157_in_aaag(.(T542, T547), T548, T549, .(T542, T546)) → U24_aaag(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
U24_aaag(T542, T547, T548, T549, T546, app157_out_aaag(T547, T548, T549, T546)) → app157_out_aaag(.(T542, T547), T548, T549, .(T542, T546))
U73_ag(T516, T474, T460, T510, T514, app157_out_aaag(T515, T516, T517, T514)) → qs1_out_ag(.(T516, .(T474, T460)), .(T510, T514))
qs1_in_ag(.(T557, []), T329) → U74_ag(T557, T329, qs100_in_a(X543))
U74_ag(T557, T329, qs100_out_a(X543)) → qs1_out_ag(.(T557, []), T329)
qs1_in_ag(.(T557, []), T329) → U75_ag(T557, T329, qs100_in_a(T560))
U75_ag(T557, T329, qs100_out_a(T560)) → U76_ag(T557, T329, qs100_in_a(X544))
U76_ag(T557, T329, qs100_out_a(X544)) → qs1_out_ag(.(T557, []), T329)
U75_ag(T557, T329, qs100_out_a(T560)) → U77_ag(T557, T329, T560, qs100_in_a(T563))
U77_ag(T557, T329, T560, qs100_out_a(T563)) → U78_ag(T557, T329, app157_in_gagg(T560, T557, T563, T329))
app157_in_gagg([], T530, T531, .(T530, T531)) → app157_out_gagg([], T530, T531, .(T530, T531))
app157_in_gagg(.(T542, T547), T548, T549, .(T542, T546)) → U24_gagg(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
U24_gagg(T542, T547, T548, T549, T546, app157_out_gagg(T547, T548, T549, T546)) → app157_out_gagg(.(T542, T547), T548, T549, .(T542, T546))
U78_ag(T557, T329, app157_out_gagg(T560, T557, T563, T329)) → qs1_out_ag(.(T557, []), T329)
APP71_IN_AAAG(.(T222, T226), T227, T228, .(T222, X403)) → APP71_IN_AAAG(T226, T227, T228, X403)
APP71_IN_AAAG(.(T222, X403)) → APP71_IN_AAAG(X403)
From the DPs we obtained the following set of size-change graphs:
APP71_IN_AAAA(.(T222, T226), T227, T228, .(T222, X403)) → APP71_IN_AAAA(T226, T227, T228, X403)
qs1_in_ag([], []) → qs1_out_ag([], [])
qs1_in_ag(.(T24, .(T25, T26)), []) → U25_ag(T24, T25, T26, less13_in_aa(T24, T25))
less13_in_aa(0, s(T38)) → less13_out_aa(0, s(T38))
less13_in_aa(s(T45), s(T46)) → U1_aa(T45, T46, less13_in_aa(T45, T46))
U1_aa(T45, T46, less13_out_aa(T45, T46)) → less13_out_aa(s(T45), s(T46))
U25_ag(T24, T25, T26, less13_out_aa(T24, T25)) → qs1_out_ag(.(T24, .(T25, T26)), [])
qs1_in_ag(.(T29, .(T31, T30)), []) → U26_ag(T29, T31, T30, less13_in_aa(T29, T31))
U26_ag(T29, T31, T30, less13_out_aa(T29, T31)) → U27_ag(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
part23_in_gaaa(T70, .(T73, T74), .(T73, X123), X124) → U2_gaaa(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
U2_gaaa(T70, T73, T74, X123, X124, less13_out_ga(T70, T73)) → part23_out_gaaa(T70, .(T73, T74), .(T73, X123), X124)
part23_in_gaaa(T70, .(T73, T77), .(T73, X123), X124) → U3_gaaa(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
part23_in_gaaa(T95, .(T96, T98), X174, .(T96, X175)) → U5_gaaa(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
part23_in_gaaa(T104, [], [], []) → part23_out_gaaa(T104, [], [], [])
U5_gaaa(T95, T96, T98, X174, X175, part23_out_gaaa(T95, T98, X174, X175)) → part23_out_gaaa(T95, .(T96, T98), X174, .(T96, X175))
U4_gaaa(T70, T73, T77, X123, X124, part23_out_gaaa(T70, T77, X123, X124)) → part23_out_gaaa(T70, .(T73, T77), .(T73, X123), X124)
U27_ag(T29, T31, T30, part23_out_gaaa(T29, T30, X49, X50)) → qs1_out_ag(.(T29, .(T31, T30)), [])
qs1_in_ag(.(T29, .(T54, T30)), []) → U28_ag(T29, T54, T30, less13_in_aa(T29, T54))
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U29_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U29_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_ag(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
qs39_in_aaa(T122, T123, X234) → U22_aaa(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
part44_in_aaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_aaaa(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
U6_aaaa(T148, T149, T150, X282, X283, less13_out_aa(T148, T149)) → part44_out_aaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_aaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_aaaa(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_aaaa(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_aaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_aaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_aaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_aaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_aaaa(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
part44_in_aaaa(T182, [], [], []) → part44_out_aaaa(T182, [], [], [])
U9_aaaa(T175, T173, T176, X333, X334, part44_out_aaaa(T175, T176, X333, X334)) → part44_out_aaaa(T175, .(T173, T176), X333, .(T173, X334))
U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaaa(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
qs60_in_aa([], []) → qs60_out_aa([], [])
qs60_in_aa(.(T192, T193), X370) → U20_aa(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
p43_in_aaaaaaa(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaaa(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaaa(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
app71_in_aaaa([], T212, T213, .(T212, T213)) → app71_out_aaaa([], T212, T213, .(T212, T213))
app71_in_aaaa(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaaa(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
U21_aaaa(T222, T226, T227, T228, X403, app71_out_aaaa(T226, T227, T228, X403)) → app71_out_aaaa(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_out_aaaa(T198, T199, T197, X234)) → p43_out_aaaaaaa(T199, T123, T127, T184, T198, T197, X234)
U20_aa(T192, T193, X370, p43_out_aaaaaaa(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_aa(.(T192, T193), X370)
U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaaa(T129, T123, T127, T128, X232, X233, X234)
U22_aaa(T122, T123, X234, p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aaa(T122, T123, X234)
U30_ag(T29, T54, T30, qs39_out_aaa(T54, T52, X11)) → qs1_out_ag(.(T29, .(T54, T30)), [])
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U31_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_ag(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U32_ag(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_ag(T29, T54, T30, qs60_in_aa(T108, X12))
U33_ag(T29, T54, T30, qs60_out_aa(T108, X12)) → qs1_out_ag(.(T29, .(T54, T30)), [])
qs1_in_ag(.(T264, .(T266, T265)), []) → U34_ag(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
U34_ag(T264, T266, T265, part44_out_aaaa(T264, T265, X454, X455)) → qs1_out_ag(.(T264, .(T266, T265)), [])
qs1_in_ag(.(T273, .(T272, T265)), []) → U35_ag(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_ag(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_ag(T273, T272, T265, qs60_in_aa(T270, X11))
U36_ag(T273, T272, T265, qs60_out_aa(T270, X11)) → qs1_out_ag(.(T273, .(T272, T265)), [])
qs1_in_ag(.(T280, .(T278, T265)), []) → U37_ag(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_ag(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_ag(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U38_ag(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_ag(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U39_ag(T280, T278, T265, qs39_out_aaa(T278, T279, X12)) → qs1_out_ag(.(T280, .(T278, T265)), [])
qs1_in_ag(.(T305, []), []) → U40_ag(T305, qs100_in_a(X11))
qs100_in_a([]) → qs100_out_a([])
U40_ag(T305, qs100_out_a(X11)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T305, []), []) → U41_ag(T305, qs100_in_a(T309))
U41_ag(T305, qs100_out_a(T309)) → U42_ag(T305, qs100_in_a(X12))
U42_ag(T305, qs100_out_a(X12)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T347, .(T348, T349)), T329) → U43_ag(T347, T348, T349, T329, less13_in_aa(T347, T348))
U43_ag(T347, T348, T349, T329, less13_out_aa(T347, T348)) → qs1_out_ag(.(T347, .(T348, T349)), T329)
qs1_in_ag(.(T352, .(T354, T353)), T329) → U44_ag(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_ag(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_ag(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U45_ag(T352, T354, T353, T329, part23_out_gaaa(T352, T353, X581, X582)) → qs1_out_ag(.(T352, .(T354, T353)), T329)
qs1_in_ag(.(T352, .(T363, T353)), T329) → U46_ag(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U47_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_ag(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U48_ag(T352, T363, T353, T329, qs39_out_aaa(T363, T361, X543)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_ag(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U50_ag(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_ag(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U51_ag(T352, T363, T353, T329, qs60_out_aa(T371, X544)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
qs1_in_ag(.(T390, .(T363, T353)), .(T390, T391)) → U52_ag(T390, T363, T353, T391, less13_in_ga(T390, T363))
U52_ag(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_ag(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U53_ag(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_ag(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
qs39_in_aag(T122, T123, X234) → U22_aag(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaag(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaag(T129, T123, T127, T128, X232, X233, X234)
p43_in_aaaaaag(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaag(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaag(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
app71_in_aaag([], T212, T213, .(T212, T213)) → app71_out_aaag([], T212, T213, .(T212, T213))
app71_in_aaag(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaag(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
U21_aaag(T222, T226, T227, T228, X403, app71_out_aaag(T226, T227, T228, X403)) → app71_out_aaag(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_out_aaag(T198, T199, T197, X234)) → p43_out_aaaaaag(T199, T123, T127, T184, T198, T197, X234)
U22_aag(T122, T123, X234, p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aag(T122, T123, X234)
U54_ag(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_ag(T390, T363, T353, T391, qs60_in_ag(T371, T391))
qs60_in_ag([], []) → qs60_out_ag([], [])
qs60_in_ag(.(T192, T193), X370) → U20_ag(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
U20_ag(T192, T193, X370, p43_out_aaaaaag(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_ag(.(T192, T193), X370)
U55_ag(T390, T363, T353, T391, qs60_out_ag(T371, T391)) → qs1_out_ag(.(T390, .(T363, T353)), .(T390, T391))
qs1_in_ag(.(T404, .(T363, T353)), .(T402, T406)) → U56_ag(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
U56_ag(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_ag(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U57_ag(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_ag(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U58_ag(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_ag(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U59_ag(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_ag(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
app131_in_agag([], T421, T422, .(T421, T422)) → app131_out_agag([], T421, T422, .(T421, T422))
app131_in_agag(.(T433, T438), T435, T439, .(T433, T437)) → U23_agag(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
U23_agag(T433, T438, T435, T439, T437, app131_out_agag(T438, T435, T439, T437)) → app131_out_agag(.(T433, T438), T435, T439, .(T433, T437))
U60_ag(T404, T363, T353, T402, T406, app131_out_agag(T407, T404, T408, T406)) → qs1_out_ag(.(T404, .(T363, T353)), .(T402, T406))
qs1_in_ag(.(T459, .(T461, T460)), T329) → U61_ag(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
U61_ag(T459, T461, T460, T329, part44_out_aaaa(T459, T460, X705, X706)) → qs1_out_ag(.(T459, .(T461, T460)), T329)
qs1_in_ag(.(T468, .(T467, T460)), T329) → U62_ag(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_ag(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_ag(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U63_ag(T468, T467, T460, T329, qs60_out_aa(T465, X543)) → qs1_out_ag(.(T468, .(T467, T460)), T329)
qs1_in_ag(.(T476, .(T474, T460)), T329) → U64_ag(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_ag(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_ag(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U65_ag(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_ag(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U66_ag(T476, T474, T460, T329, qs39_out_aaa(T474, T475, X544)) → qs1_out_ag(.(T476, .(T474, T460)), T329)
qs1_in_ag(.(T498, .(T474, T460)), .(T498, T499)) → U67_ag(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
part44_in_gaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_gaaa(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
U6_gaaa(T148, T149, T150, X282, X283, less13_out_ga(T148, T149)) → part44_out_gaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_gaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_gaaa(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_gaaa(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_gaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_gaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_gaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_gaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_gaaa(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
part44_in_gaaa(T182, [], [], []) → part44_out_gaaa(T182, [], [], [])
U9_gaaa(T175, T173, T176, X333, X334, part44_out_gaaa(T175, T176, X333, X334)) → part44_out_gaaa(T175, .(T173, T176), X333, .(T173, X334))
U67_ag(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_ag(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U68_ag(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_ag(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U69_ag(T498, T474, T460, T499, qs39_out_aag(T474, T475, T499)) → qs1_out_ag(.(T498, .(T474, T460)), .(T498, T499))
qs1_in_ag(.(T516, .(T474, T460)), .(T510, T514)) → U70_ag(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
U70_ag(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_ag(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U71_ag(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_ag(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U72_ag(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_ag(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
app157_in_aaag([], T530, T531, .(T530, T531)) → app157_out_aaag([], T530, T531, .(T530, T531))
app157_in_aaag(.(T542, T547), T548, T549, .(T542, T546)) → U24_aaag(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
U24_aaag(T542, T547, T548, T549, T546, app157_out_aaag(T547, T548, T549, T546)) → app157_out_aaag(.(T542, T547), T548, T549, .(T542, T546))
U73_ag(T516, T474, T460, T510, T514, app157_out_aaag(T515, T516, T517, T514)) → qs1_out_ag(.(T516, .(T474, T460)), .(T510, T514))
qs1_in_ag(.(T557, []), T329) → U74_ag(T557, T329, qs100_in_a(X543))
U74_ag(T557, T329, qs100_out_a(X543)) → qs1_out_ag(.(T557, []), T329)
qs1_in_ag(.(T557, []), T329) → U75_ag(T557, T329, qs100_in_a(T560))
U75_ag(T557, T329, qs100_out_a(T560)) → U76_ag(T557, T329, qs100_in_a(X544))
U76_ag(T557, T329, qs100_out_a(X544)) → qs1_out_ag(.(T557, []), T329)
U75_ag(T557, T329, qs100_out_a(T560)) → U77_ag(T557, T329, T560, qs100_in_a(T563))
U77_ag(T557, T329, T560, qs100_out_a(T563)) → U78_ag(T557, T329, app157_in_gagg(T560, T557, T563, T329))
app157_in_gagg([], T530, T531, .(T530, T531)) → app157_out_gagg([], T530, T531, .(T530, T531))
app157_in_gagg(.(T542, T547), T548, T549, .(T542, T546)) → U24_gagg(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
U24_gagg(T542, T547, T548, T549, T546, app157_out_gagg(T547, T548, T549, T546)) → app157_out_gagg(.(T542, T547), T548, T549, .(T542, T546))
U78_ag(T557, T329, app157_out_gagg(T560, T557, T563, T329)) → qs1_out_ag(.(T557, []), T329)
APP71_IN_AAAA(.(T222, T226), T227, T228, .(T222, X403)) → APP71_IN_AAAA(T226, T227, T228, X403)
APP71_IN_AAAA → APP71_IN_AAAA
LESS13_IN_GA(s(T45), s(T46)) → LESS13_IN_GA(T45, T46)
qs1_in_ag([], []) → qs1_out_ag([], [])
qs1_in_ag(.(T24, .(T25, T26)), []) → U25_ag(T24, T25, T26, less13_in_aa(T24, T25))
less13_in_aa(0, s(T38)) → less13_out_aa(0, s(T38))
less13_in_aa(s(T45), s(T46)) → U1_aa(T45, T46, less13_in_aa(T45, T46))
U1_aa(T45, T46, less13_out_aa(T45, T46)) → less13_out_aa(s(T45), s(T46))
U25_ag(T24, T25, T26, less13_out_aa(T24, T25)) → qs1_out_ag(.(T24, .(T25, T26)), [])
qs1_in_ag(.(T29, .(T31, T30)), []) → U26_ag(T29, T31, T30, less13_in_aa(T29, T31))
U26_ag(T29, T31, T30, less13_out_aa(T29, T31)) → U27_ag(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
part23_in_gaaa(T70, .(T73, T74), .(T73, X123), X124) → U2_gaaa(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
U2_gaaa(T70, T73, T74, X123, X124, less13_out_ga(T70, T73)) → part23_out_gaaa(T70, .(T73, T74), .(T73, X123), X124)
part23_in_gaaa(T70, .(T73, T77), .(T73, X123), X124) → U3_gaaa(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
part23_in_gaaa(T95, .(T96, T98), X174, .(T96, X175)) → U5_gaaa(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
part23_in_gaaa(T104, [], [], []) → part23_out_gaaa(T104, [], [], [])
U5_gaaa(T95, T96, T98, X174, X175, part23_out_gaaa(T95, T98, X174, X175)) → part23_out_gaaa(T95, .(T96, T98), X174, .(T96, X175))
U4_gaaa(T70, T73, T77, X123, X124, part23_out_gaaa(T70, T77, X123, X124)) → part23_out_gaaa(T70, .(T73, T77), .(T73, X123), X124)
U27_ag(T29, T31, T30, part23_out_gaaa(T29, T30, X49, X50)) → qs1_out_ag(.(T29, .(T31, T30)), [])
qs1_in_ag(.(T29, .(T54, T30)), []) → U28_ag(T29, T54, T30, less13_in_aa(T29, T54))
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U29_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U29_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_ag(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
qs39_in_aaa(T122, T123, X234) → U22_aaa(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
part44_in_aaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_aaaa(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
U6_aaaa(T148, T149, T150, X282, X283, less13_out_aa(T148, T149)) → part44_out_aaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_aaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_aaaa(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_aaaa(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_aaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_aaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_aaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_aaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_aaaa(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
part44_in_aaaa(T182, [], [], []) → part44_out_aaaa(T182, [], [], [])
U9_aaaa(T175, T173, T176, X333, X334, part44_out_aaaa(T175, T176, X333, X334)) → part44_out_aaaa(T175, .(T173, T176), X333, .(T173, X334))
U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaaa(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
qs60_in_aa([], []) → qs60_out_aa([], [])
qs60_in_aa(.(T192, T193), X370) → U20_aa(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
p43_in_aaaaaaa(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaaa(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaaa(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
app71_in_aaaa([], T212, T213, .(T212, T213)) → app71_out_aaaa([], T212, T213, .(T212, T213))
app71_in_aaaa(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaaa(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
U21_aaaa(T222, T226, T227, T228, X403, app71_out_aaaa(T226, T227, T228, X403)) → app71_out_aaaa(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_out_aaaa(T198, T199, T197, X234)) → p43_out_aaaaaaa(T199, T123, T127, T184, T198, T197, X234)
U20_aa(T192, T193, X370, p43_out_aaaaaaa(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_aa(.(T192, T193), X370)
U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaaa(T129, T123, T127, T128, X232, X233, X234)
U22_aaa(T122, T123, X234, p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aaa(T122, T123, X234)
U30_ag(T29, T54, T30, qs39_out_aaa(T54, T52, X11)) → qs1_out_ag(.(T29, .(T54, T30)), [])
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U31_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_ag(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U32_ag(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_ag(T29, T54, T30, qs60_in_aa(T108, X12))
U33_ag(T29, T54, T30, qs60_out_aa(T108, X12)) → qs1_out_ag(.(T29, .(T54, T30)), [])
qs1_in_ag(.(T264, .(T266, T265)), []) → U34_ag(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
U34_ag(T264, T266, T265, part44_out_aaaa(T264, T265, X454, X455)) → qs1_out_ag(.(T264, .(T266, T265)), [])
qs1_in_ag(.(T273, .(T272, T265)), []) → U35_ag(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_ag(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_ag(T273, T272, T265, qs60_in_aa(T270, X11))
U36_ag(T273, T272, T265, qs60_out_aa(T270, X11)) → qs1_out_ag(.(T273, .(T272, T265)), [])
qs1_in_ag(.(T280, .(T278, T265)), []) → U37_ag(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_ag(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_ag(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U38_ag(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_ag(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U39_ag(T280, T278, T265, qs39_out_aaa(T278, T279, X12)) → qs1_out_ag(.(T280, .(T278, T265)), [])
qs1_in_ag(.(T305, []), []) → U40_ag(T305, qs100_in_a(X11))
qs100_in_a([]) → qs100_out_a([])
U40_ag(T305, qs100_out_a(X11)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T305, []), []) → U41_ag(T305, qs100_in_a(T309))
U41_ag(T305, qs100_out_a(T309)) → U42_ag(T305, qs100_in_a(X12))
U42_ag(T305, qs100_out_a(X12)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T347, .(T348, T349)), T329) → U43_ag(T347, T348, T349, T329, less13_in_aa(T347, T348))
U43_ag(T347, T348, T349, T329, less13_out_aa(T347, T348)) → qs1_out_ag(.(T347, .(T348, T349)), T329)
qs1_in_ag(.(T352, .(T354, T353)), T329) → U44_ag(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_ag(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_ag(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U45_ag(T352, T354, T353, T329, part23_out_gaaa(T352, T353, X581, X582)) → qs1_out_ag(.(T352, .(T354, T353)), T329)
qs1_in_ag(.(T352, .(T363, T353)), T329) → U46_ag(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U47_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_ag(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U48_ag(T352, T363, T353, T329, qs39_out_aaa(T363, T361, X543)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_ag(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U50_ag(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_ag(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U51_ag(T352, T363, T353, T329, qs60_out_aa(T371, X544)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
qs1_in_ag(.(T390, .(T363, T353)), .(T390, T391)) → U52_ag(T390, T363, T353, T391, less13_in_ga(T390, T363))
U52_ag(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_ag(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U53_ag(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_ag(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
qs39_in_aag(T122, T123, X234) → U22_aag(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaag(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaag(T129, T123, T127, T128, X232, X233, X234)
p43_in_aaaaaag(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaag(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaag(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
app71_in_aaag([], T212, T213, .(T212, T213)) → app71_out_aaag([], T212, T213, .(T212, T213))
app71_in_aaag(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaag(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
U21_aaag(T222, T226, T227, T228, X403, app71_out_aaag(T226, T227, T228, X403)) → app71_out_aaag(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_out_aaag(T198, T199, T197, X234)) → p43_out_aaaaaag(T199, T123, T127, T184, T198, T197, X234)
U22_aag(T122, T123, X234, p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aag(T122, T123, X234)
U54_ag(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_ag(T390, T363, T353, T391, qs60_in_ag(T371, T391))
qs60_in_ag([], []) → qs60_out_ag([], [])
qs60_in_ag(.(T192, T193), X370) → U20_ag(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
U20_ag(T192, T193, X370, p43_out_aaaaaag(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_ag(.(T192, T193), X370)
U55_ag(T390, T363, T353, T391, qs60_out_ag(T371, T391)) → qs1_out_ag(.(T390, .(T363, T353)), .(T390, T391))
qs1_in_ag(.(T404, .(T363, T353)), .(T402, T406)) → U56_ag(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
U56_ag(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_ag(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U57_ag(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_ag(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U58_ag(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_ag(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U59_ag(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_ag(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
app131_in_agag([], T421, T422, .(T421, T422)) → app131_out_agag([], T421, T422, .(T421, T422))
app131_in_agag(.(T433, T438), T435, T439, .(T433, T437)) → U23_agag(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
U23_agag(T433, T438, T435, T439, T437, app131_out_agag(T438, T435, T439, T437)) → app131_out_agag(.(T433, T438), T435, T439, .(T433, T437))
U60_ag(T404, T363, T353, T402, T406, app131_out_agag(T407, T404, T408, T406)) → qs1_out_ag(.(T404, .(T363, T353)), .(T402, T406))
qs1_in_ag(.(T459, .(T461, T460)), T329) → U61_ag(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
U61_ag(T459, T461, T460, T329, part44_out_aaaa(T459, T460, X705, X706)) → qs1_out_ag(.(T459, .(T461, T460)), T329)
qs1_in_ag(.(T468, .(T467, T460)), T329) → U62_ag(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_ag(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_ag(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U63_ag(T468, T467, T460, T329, qs60_out_aa(T465, X543)) → qs1_out_ag(.(T468, .(T467, T460)), T329)
qs1_in_ag(.(T476, .(T474, T460)), T329) → U64_ag(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_ag(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_ag(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U65_ag(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_ag(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U66_ag(T476, T474, T460, T329, qs39_out_aaa(T474, T475, X544)) → qs1_out_ag(.(T476, .(T474, T460)), T329)
qs1_in_ag(.(T498, .(T474, T460)), .(T498, T499)) → U67_ag(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
part44_in_gaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_gaaa(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
U6_gaaa(T148, T149, T150, X282, X283, less13_out_ga(T148, T149)) → part44_out_gaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_gaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_gaaa(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_gaaa(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_gaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_gaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_gaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_gaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_gaaa(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
part44_in_gaaa(T182, [], [], []) → part44_out_gaaa(T182, [], [], [])
U9_gaaa(T175, T173, T176, X333, X334, part44_out_gaaa(T175, T176, X333, X334)) → part44_out_gaaa(T175, .(T173, T176), X333, .(T173, X334))
U67_ag(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_ag(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U68_ag(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_ag(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U69_ag(T498, T474, T460, T499, qs39_out_aag(T474, T475, T499)) → qs1_out_ag(.(T498, .(T474, T460)), .(T498, T499))
qs1_in_ag(.(T516, .(T474, T460)), .(T510, T514)) → U70_ag(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
U70_ag(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_ag(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U71_ag(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_ag(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U72_ag(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_ag(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
app157_in_aaag([], T530, T531, .(T530, T531)) → app157_out_aaag([], T530, T531, .(T530, T531))
app157_in_aaag(.(T542, T547), T548, T549, .(T542, T546)) → U24_aaag(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
U24_aaag(T542, T547, T548, T549, T546, app157_out_aaag(T547, T548, T549, T546)) → app157_out_aaag(.(T542, T547), T548, T549, .(T542, T546))
U73_ag(T516, T474, T460, T510, T514, app157_out_aaag(T515, T516, T517, T514)) → qs1_out_ag(.(T516, .(T474, T460)), .(T510, T514))
qs1_in_ag(.(T557, []), T329) → U74_ag(T557, T329, qs100_in_a(X543))
U74_ag(T557, T329, qs100_out_a(X543)) → qs1_out_ag(.(T557, []), T329)
qs1_in_ag(.(T557, []), T329) → U75_ag(T557, T329, qs100_in_a(T560))
U75_ag(T557, T329, qs100_out_a(T560)) → U76_ag(T557, T329, qs100_in_a(X544))
U76_ag(T557, T329, qs100_out_a(X544)) → qs1_out_ag(.(T557, []), T329)
U75_ag(T557, T329, qs100_out_a(T560)) → U77_ag(T557, T329, T560, qs100_in_a(T563))
U77_ag(T557, T329, T560, qs100_out_a(T563)) → U78_ag(T557, T329, app157_in_gagg(T560, T557, T563, T329))
app157_in_gagg([], T530, T531, .(T530, T531)) → app157_out_gagg([], T530, T531, .(T530, T531))
app157_in_gagg(.(T542, T547), T548, T549, .(T542, T546)) → U24_gagg(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
U24_gagg(T542, T547, T548, T549, T546, app157_out_gagg(T547, T548, T549, T546)) → app157_out_gagg(.(T542, T547), T548, T549, .(T542, T546))
U78_ag(T557, T329, app157_out_gagg(T560, T557, T563, T329)) → qs1_out_ag(.(T557, []), T329)
LESS13_IN_GA(s(T45), s(T46)) → LESS13_IN_GA(T45, T46)
LESS13_IN_GA(s(T45)) → LESS13_IN_GA(T45)
From the DPs we obtained the following set of size-change graphs:
PART23_IN_GAAA(T70, .(T73, T77), .(T73, X123), X124) → U3_GAAA(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_GAAA(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → PART23_IN_GAAA(T70, T77, X123, X124)
PART23_IN_GAAA(T95, .(T96, T98), X174, .(T96, X175)) → PART23_IN_GAAA(T95, T98, X174, X175)
qs1_in_ag([], []) → qs1_out_ag([], [])
qs1_in_ag(.(T24, .(T25, T26)), []) → U25_ag(T24, T25, T26, less13_in_aa(T24, T25))
less13_in_aa(0, s(T38)) → less13_out_aa(0, s(T38))
less13_in_aa(s(T45), s(T46)) → U1_aa(T45, T46, less13_in_aa(T45, T46))
U1_aa(T45, T46, less13_out_aa(T45, T46)) → less13_out_aa(s(T45), s(T46))
U25_ag(T24, T25, T26, less13_out_aa(T24, T25)) → qs1_out_ag(.(T24, .(T25, T26)), [])
qs1_in_ag(.(T29, .(T31, T30)), []) → U26_ag(T29, T31, T30, less13_in_aa(T29, T31))
U26_ag(T29, T31, T30, less13_out_aa(T29, T31)) → U27_ag(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
part23_in_gaaa(T70, .(T73, T74), .(T73, X123), X124) → U2_gaaa(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
U2_gaaa(T70, T73, T74, X123, X124, less13_out_ga(T70, T73)) → part23_out_gaaa(T70, .(T73, T74), .(T73, X123), X124)
part23_in_gaaa(T70, .(T73, T77), .(T73, X123), X124) → U3_gaaa(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
part23_in_gaaa(T95, .(T96, T98), X174, .(T96, X175)) → U5_gaaa(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
part23_in_gaaa(T104, [], [], []) → part23_out_gaaa(T104, [], [], [])
U5_gaaa(T95, T96, T98, X174, X175, part23_out_gaaa(T95, T98, X174, X175)) → part23_out_gaaa(T95, .(T96, T98), X174, .(T96, X175))
U4_gaaa(T70, T73, T77, X123, X124, part23_out_gaaa(T70, T77, X123, X124)) → part23_out_gaaa(T70, .(T73, T77), .(T73, X123), X124)
U27_ag(T29, T31, T30, part23_out_gaaa(T29, T30, X49, X50)) → qs1_out_ag(.(T29, .(T31, T30)), [])
qs1_in_ag(.(T29, .(T54, T30)), []) → U28_ag(T29, T54, T30, less13_in_aa(T29, T54))
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U29_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U29_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_ag(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
qs39_in_aaa(T122, T123, X234) → U22_aaa(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
part44_in_aaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_aaaa(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
U6_aaaa(T148, T149, T150, X282, X283, less13_out_aa(T148, T149)) → part44_out_aaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_aaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_aaaa(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_aaaa(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_aaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_aaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_aaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_aaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_aaaa(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
part44_in_aaaa(T182, [], [], []) → part44_out_aaaa(T182, [], [], [])
U9_aaaa(T175, T173, T176, X333, X334, part44_out_aaaa(T175, T176, X333, X334)) → part44_out_aaaa(T175, .(T173, T176), X333, .(T173, X334))
U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaaa(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
qs60_in_aa([], []) → qs60_out_aa([], [])
qs60_in_aa(.(T192, T193), X370) → U20_aa(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
p43_in_aaaaaaa(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaaa(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaaa(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
app71_in_aaaa([], T212, T213, .(T212, T213)) → app71_out_aaaa([], T212, T213, .(T212, T213))
app71_in_aaaa(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaaa(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
U21_aaaa(T222, T226, T227, T228, X403, app71_out_aaaa(T226, T227, T228, X403)) → app71_out_aaaa(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_out_aaaa(T198, T199, T197, X234)) → p43_out_aaaaaaa(T199, T123, T127, T184, T198, T197, X234)
U20_aa(T192, T193, X370, p43_out_aaaaaaa(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_aa(.(T192, T193), X370)
U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaaa(T129, T123, T127, T128, X232, X233, X234)
U22_aaa(T122, T123, X234, p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aaa(T122, T123, X234)
U30_ag(T29, T54, T30, qs39_out_aaa(T54, T52, X11)) → qs1_out_ag(.(T29, .(T54, T30)), [])
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U31_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_ag(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U32_ag(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_ag(T29, T54, T30, qs60_in_aa(T108, X12))
U33_ag(T29, T54, T30, qs60_out_aa(T108, X12)) → qs1_out_ag(.(T29, .(T54, T30)), [])
qs1_in_ag(.(T264, .(T266, T265)), []) → U34_ag(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
U34_ag(T264, T266, T265, part44_out_aaaa(T264, T265, X454, X455)) → qs1_out_ag(.(T264, .(T266, T265)), [])
qs1_in_ag(.(T273, .(T272, T265)), []) → U35_ag(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_ag(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_ag(T273, T272, T265, qs60_in_aa(T270, X11))
U36_ag(T273, T272, T265, qs60_out_aa(T270, X11)) → qs1_out_ag(.(T273, .(T272, T265)), [])
qs1_in_ag(.(T280, .(T278, T265)), []) → U37_ag(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_ag(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_ag(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U38_ag(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_ag(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U39_ag(T280, T278, T265, qs39_out_aaa(T278, T279, X12)) → qs1_out_ag(.(T280, .(T278, T265)), [])
qs1_in_ag(.(T305, []), []) → U40_ag(T305, qs100_in_a(X11))
qs100_in_a([]) → qs100_out_a([])
U40_ag(T305, qs100_out_a(X11)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T305, []), []) → U41_ag(T305, qs100_in_a(T309))
U41_ag(T305, qs100_out_a(T309)) → U42_ag(T305, qs100_in_a(X12))
U42_ag(T305, qs100_out_a(X12)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T347, .(T348, T349)), T329) → U43_ag(T347, T348, T349, T329, less13_in_aa(T347, T348))
U43_ag(T347, T348, T349, T329, less13_out_aa(T347, T348)) → qs1_out_ag(.(T347, .(T348, T349)), T329)
qs1_in_ag(.(T352, .(T354, T353)), T329) → U44_ag(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_ag(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_ag(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U45_ag(T352, T354, T353, T329, part23_out_gaaa(T352, T353, X581, X582)) → qs1_out_ag(.(T352, .(T354, T353)), T329)
qs1_in_ag(.(T352, .(T363, T353)), T329) → U46_ag(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U47_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_ag(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U48_ag(T352, T363, T353, T329, qs39_out_aaa(T363, T361, X543)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_ag(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U50_ag(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_ag(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U51_ag(T352, T363, T353, T329, qs60_out_aa(T371, X544)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
qs1_in_ag(.(T390, .(T363, T353)), .(T390, T391)) → U52_ag(T390, T363, T353, T391, less13_in_ga(T390, T363))
U52_ag(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_ag(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U53_ag(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_ag(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
qs39_in_aag(T122, T123, X234) → U22_aag(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaag(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaag(T129, T123, T127, T128, X232, X233, X234)
p43_in_aaaaaag(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaag(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaag(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
app71_in_aaag([], T212, T213, .(T212, T213)) → app71_out_aaag([], T212, T213, .(T212, T213))
app71_in_aaag(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaag(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
U21_aaag(T222, T226, T227, T228, X403, app71_out_aaag(T226, T227, T228, X403)) → app71_out_aaag(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_out_aaag(T198, T199, T197, X234)) → p43_out_aaaaaag(T199, T123, T127, T184, T198, T197, X234)
U22_aag(T122, T123, X234, p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aag(T122, T123, X234)
U54_ag(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_ag(T390, T363, T353, T391, qs60_in_ag(T371, T391))
qs60_in_ag([], []) → qs60_out_ag([], [])
qs60_in_ag(.(T192, T193), X370) → U20_ag(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
U20_ag(T192, T193, X370, p43_out_aaaaaag(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_ag(.(T192, T193), X370)
U55_ag(T390, T363, T353, T391, qs60_out_ag(T371, T391)) → qs1_out_ag(.(T390, .(T363, T353)), .(T390, T391))
qs1_in_ag(.(T404, .(T363, T353)), .(T402, T406)) → U56_ag(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
U56_ag(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_ag(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U57_ag(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_ag(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U58_ag(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_ag(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U59_ag(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_ag(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
app131_in_agag([], T421, T422, .(T421, T422)) → app131_out_agag([], T421, T422, .(T421, T422))
app131_in_agag(.(T433, T438), T435, T439, .(T433, T437)) → U23_agag(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
U23_agag(T433, T438, T435, T439, T437, app131_out_agag(T438, T435, T439, T437)) → app131_out_agag(.(T433, T438), T435, T439, .(T433, T437))
U60_ag(T404, T363, T353, T402, T406, app131_out_agag(T407, T404, T408, T406)) → qs1_out_ag(.(T404, .(T363, T353)), .(T402, T406))
qs1_in_ag(.(T459, .(T461, T460)), T329) → U61_ag(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
U61_ag(T459, T461, T460, T329, part44_out_aaaa(T459, T460, X705, X706)) → qs1_out_ag(.(T459, .(T461, T460)), T329)
qs1_in_ag(.(T468, .(T467, T460)), T329) → U62_ag(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_ag(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_ag(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U63_ag(T468, T467, T460, T329, qs60_out_aa(T465, X543)) → qs1_out_ag(.(T468, .(T467, T460)), T329)
qs1_in_ag(.(T476, .(T474, T460)), T329) → U64_ag(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_ag(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_ag(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U65_ag(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_ag(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U66_ag(T476, T474, T460, T329, qs39_out_aaa(T474, T475, X544)) → qs1_out_ag(.(T476, .(T474, T460)), T329)
qs1_in_ag(.(T498, .(T474, T460)), .(T498, T499)) → U67_ag(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
part44_in_gaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_gaaa(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
U6_gaaa(T148, T149, T150, X282, X283, less13_out_ga(T148, T149)) → part44_out_gaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_gaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_gaaa(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_gaaa(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_gaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_gaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_gaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_gaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_gaaa(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
part44_in_gaaa(T182, [], [], []) → part44_out_gaaa(T182, [], [], [])
U9_gaaa(T175, T173, T176, X333, X334, part44_out_gaaa(T175, T176, X333, X334)) → part44_out_gaaa(T175, .(T173, T176), X333, .(T173, X334))
U67_ag(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_ag(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U68_ag(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_ag(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U69_ag(T498, T474, T460, T499, qs39_out_aag(T474, T475, T499)) → qs1_out_ag(.(T498, .(T474, T460)), .(T498, T499))
qs1_in_ag(.(T516, .(T474, T460)), .(T510, T514)) → U70_ag(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
U70_ag(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_ag(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U71_ag(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_ag(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U72_ag(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_ag(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
app157_in_aaag([], T530, T531, .(T530, T531)) → app157_out_aaag([], T530, T531, .(T530, T531))
app157_in_aaag(.(T542, T547), T548, T549, .(T542, T546)) → U24_aaag(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
U24_aaag(T542, T547, T548, T549, T546, app157_out_aaag(T547, T548, T549, T546)) → app157_out_aaag(.(T542, T547), T548, T549, .(T542, T546))
U73_ag(T516, T474, T460, T510, T514, app157_out_aaag(T515, T516, T517, T514)) → qs1_out_ag(.(T516, .(T474, T460)), .(T510, T514))
qs1_in_ag(.(T557, []), T329) → U74_ag(T557, T329, qs100_in_a(X543))
U74_ag(T557, T329, qs100_out_a(X543)) → qs1_out_ag(.(T557, []), T329)
qs1_in_ag(.(T557, []), T329) → U75_ag(T557, T329, qs100_in_a(T560))
U75_ag(T557, T329, qs100_out_a(T560)) → U76_ag(T557, T329, qs100_in_a(X544))
U76_ag(T557, T329, qs100_out_a(X544)) → qs1_out_ag(.(T557, []), T329)
U75_ag(T557, T329, qs100_out_a(T560)) → U77_ag(T557, T329, T560, qs100_in_a(T563))
U77_ag(T557, T329, T560, qs100_out_a(T563)) → U78_ag(T557, T329, app157_in_gagg(T560, T557, T563, T329))
app157_in_gagg([], T530, T531, .(T530, T531)) → app157_out_gagg([], T530, T531, .(T530, T531))
app157_in_gagg(.(T542, T547), T548, T549, .(T542, T546)) → U24_gagg(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
U24_gagg(T542, T547, T548, T549, T546, app157_out_gagg(T547, T548, T549, T546)) → app157_out_gagg(.(T542, T547), T548, T549, .(T542, T546))
U78_ag(T557, T329, app157_out_gagg(T560, T557, T563, T329)) → qs1_out_ag(.(T557, []), T329)
PART23_IN_GAAA(T70, .(T73, T77), .(T73, X123), X124) → U3_GAAA(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_GAAA(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → PART23_IN_GAAA(T70, T77, X123, X124)
PART23_IN_GAAA(T95, .(T96, T98), X174, .(T96, X175)) → PART23_IN_GAAA(T95, T98, X174, X175)
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
PART23_IN_GAAA(T70) → U3_GAAA(T70, less13_in_ga(T70))
U3_GAAA(T70, less13_out_ga) → PART23_IN_GAAA(T70)
PART23_IN_GAAA(T95) → PART23_IN_GAAA(T95)
less13_in_ga(0) → less13_out_ga
less13_in_ga(s(T45)) → U1_ga(less13_in_ga(T45))
U1_ga(less13_out_ga) → less13_out_ga
less13_in_ga(x0)
U1_ga(x0)
PART23_IN_GAAA(0) → U3_GAAA(0, less13_out_ga)
PART23_IN_GAAA(s(x0)) → U3_GAAA(s(x0), U1_ga(less13_in_ga(x0)))
U3_GAAA(T70, less13_out_ga) → PART23_IN_GAAA(T70)
PART23_IN_GAAA(T95) → PART23_IN_GAAA(T95)
PART23_IN_GAAA(0) → U3_GAAA(0, less13_out_ga)
PART23_IN_GAAA(s(x0)) → U3_GAAA(s(x0), U1_ga(less13_in_ga(x0)))
less13_in_ga(0) → less13_out_ga
less13_in_ga(s(T45)) → U1_ga(less13_in_ga(T45))
U1_ga(less13_out_ga) → less13_out_ga
less13_in_ga(x0)
U1_ga(x0)
U3_GAAA(0, less13_out_ga) → PART23_IN_GAAA(0)
U3_GAAA(s(z0), less13_out_ga) → PART23_IN_GAAA(s(z0))
PART23_IN_GAAA(T95) → PART23_IN_GAAA(T95)
PART23_IN_GAAA(0) → U3_GAAA(0, less13_out_ga)
PART23_IN_GAAA(s(x0)) → U3_GAAA(s(x0), U1_ga(less13_in_ga(x0)))
U3_GAAA(0, less13_out_ga) → PART23_IN_GAAA(0)
U3_GAAA(s(z0), less13_out_ga) → PART23_IN_GAAA(s(z0))
less13_in_ga(0) → less13_out_ga
less13_in_ga(s(T45)) → U1_ga(less13_in_ga(T45))
U1_ga(less13_out_ga) → less13_out_ga
less13_in_ga(x0)
U1_ga(x0)
PART44_IN_GAAA(T175, .(T173, T176), X333, .(T173, X334)) → PART44_IN_GAAA(T175, T176, X333, X334)
qs1_in_ag([], []) → qs1_out_ag([], [])
qs1_in_ag(.(T24, .(T25, T26)), []) → U25_ag(T24, T25, T26, less13_in_aa(T24, T25))
less13_in_aa(0, s(T38)) → less13_out_aa(0, s(T38))
less13_in_aa(s(T45), s(T46)) → U1_aa(T45, T46, less13_in_aa(T45, T46))
U1_aa(T45, T46, less13_out_aa(T45, T46)) → less13_out_aa(s(T45), s(T46))
U25_ag(T24, T25, T26, less13_out_aa(T24, T25)) → qs1_out_ag(.(T24, .(T25, T26)), [])
qs1_in_ag(.(T29, .(T31, T30)), []) → U26_ag(T29, T31, T30, less13_in_aa(T29, T31))
U26_ag(T29, T31, T30, less13_out_aa(T29, T31)) → U27_ag(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
part23_in_gaaa(T70, .(T73, T74), .(T73, X123), X124) → U2_gaaa(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
U2_gaaa(T70, T73, T74, X123, X124, less13_out_ga(T70, T73)) → part23_out_gaaa(T70, .(T73, T74), .(T73, X123), X124)
part23_in_gaaa(T70, .(T73, T77), .(T73, X123), X124) → U3_gaaa(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
part23_in_gaaa(T95, .(T96, T98), X174, .(T96, X175)) → U5_gaaa(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
part23_in_gaaa(T104, [], [], []) → part23_out_gaaa(T104, [], [], [])
U5_gaaa(T95, T96, T98, X174, X175, part23_out_gaaa(T95, T98, X174, X175)) → part23_out_gaaa(T95, .(T96, T98), X174, .(T96, X175))
U4_gaaa(T70, T73, T77, X123, X124, part23_out_gaaa(T70, T77, X123, X124)) → part23_out_gaaa(T70, .(T73, T77), .(T73, X123), X124)
U27_ag(T29, T31, T30, part23_out_gaaa(T29, T30, X49, X50)) → qs1_out_ag(.(T29, .(T31, T30)), [])
qs1_in_ag(.(T29, .(T54, T30)), []) → U28_ag(T29, T54, T30, less13_in_aa(T29, T54))
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U29_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U29_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_ag(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
qs39_in_aaa(T122, T123, X234) → U22_aaa(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
part44_in_aaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_aaaa(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
U6_aaaa(T148, T149, T150, X282, X283, less13_out_aa(T148, T149)) → part44_out_aaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_aaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_aaaa(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_aaaa(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_aaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_aaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_aaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_aaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_aaaa(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
part44_in_aaaa(T182, [], [], []) → part44_out_aaaa(T182, [], [], [])
U9_aaaa(T175, T173, T176, X333, X334, part44_out_aaaa(T175, T176, X333, X334)) → part44_out_aaaa(T175, .(T173, T176), X333, .(T173, X334))
U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaaa(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
qs60_in_aa([], []) → qs60_out_aa([], [])
qs60_in_aa(.(T192, T193), X370) → U20_aa(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
p43_in_aaaaaaa(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaaa(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaaa(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
app71_in_aaaa([], T212, T213, .(T212, T213)) → app71_out_aaaa([], T212, T213, .(T212, T213))
app71_in_aaaa(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaaa(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
U21_aaaa(T222, T226, T227, T228, X403, app71_out_aaaa(T226, T227, T228, X403)) → app71_out_aaaa(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_out_aaaa(T198, T199, T197, X234)) → p43_out_aaaaaaa(T199, T123, T127, T184, T198, T197, X234)
U20_aa(T192, T193, X370, p43_out_aaaaaaa(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_aa(.(T192, T193), X370)
U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaaa(T129, T123, T127, T128, X232, X233, X234)
U22_aaa(T122, T123, X234, p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aaa(T122, T123, X234)
U30_ag(T29, T54, T30, qs39_out_aaa(T54, T52, X11)) → qs1_out_ag(.(T29, .(T54, T30)), [])
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U31_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_ag(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U32_ag(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_ag(T29, T54, T30, qs60_in_aa(T108, X12))
U33_ag(T29, T54, T30, qs60_out_aa(T108, X12)) → qs1_out_ag(.(T29, .(T54, T30)), [])
qs1_in_ag(.(T264, .(T266, T265)), []) → U34_ag(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
U34_ag(T264, T266, T265, part44_out_aaaa(T264, T265, X454, X455)) → qs1_out_ag(.(T264, .(T266, T265)), [])
qs1_in_ag(.(T273, .(T272, T265)), []) → U35_ag(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_ag(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_ag(T273, T272, T265, qs60_in_aa(T270, X11))
U36_ag(T273, T272, T265, qs60_out_aa(T270, X11)) → qs1_out_ag(.(T273, .(T272, T265)), [])
qs1_in_ag(.(T280, .(T278, T265)), []) → U37_ag(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_ag(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_ag(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U38_ag(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_ag(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U39_ag(T280, T278, T265, qs39_out_aaa(T278, T279, X12)) → qs1_out_ag(.(T280, .(T278, T265)), [])
qs1_in_ag(.(T305, []), []) → U40_ag(T305, qs100_in_a(X11))
qs100_in_a([]) → qs100_out_a([])
U40_ag(T305, qs100_out_a(X11)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T305, []), []) → U41_ag(T305, qs100_in_a(T309))
U41_ag(T305, qs100_out_a(T309)) → U42_ag(T305, qs100_in_a(X12))
U42_ag(T305, qs100_out_a(X12)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T347, .(T348, T349)), T329) → U43_ag(T347, T348, T349, T329, less13_in_aa(T347, T348))
U43_ag(T347, T348, T349, T329, less13_out_aa(T347, T348)) → qs1_out_ag(.(T347, .(T348, T349)), T329)
qs1_in_ag(.(T352, .(T354, T353)), T329) → U44_ag(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_ag(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_ag(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U45_ag(T352, T354, T353, T329, part23_out_gaaa(T352, T353, X581, X582)) → qs1_out_ag(.(T352, .(T354, T353)), T329)
qs1_in_ag(.(T352, .(T363, T353)), T329) → U46_ag(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U47_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_ag(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U48_ag(T352, T363, T353, T329, qs39_out_aaa(T363, T361, X543)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_ag(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U50_ag(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_ag(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U51_ag(T352, T363, T353, T329, qs60_out_aa(T371, X544)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
qs1_in_ag(.(T390, .(T363, T353)), .(T390, T391)) → U52_ag(T390, T363, T353, T391, less13_in_ga(T390, T363))
U52_ag(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_ag(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U53_ag(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_ag(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
qs39_in_aag(T122, T123, X234) → U22_aag(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaag(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaag(T129, T123, T127, T128, X232, X233, X234)
p43_in_aaaaaag(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaag(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaag(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
app71_in_aaag([], T212, T213, .(T212, T213)) → app71_out_aaag([], T212, T213, .(T212, T213))
app71_in_aaag(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaag(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
U21_aaag(T222, T226, T227, T228, X403, app71_out_aaag(T226, T227, T228, X403)) → app71_out_aaag(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_out_aaag(T198, T199, T197, X234)) → p43_out_aaaaaag(T199, T123, T127, T184, T198, T197, X234)
U22_aag(T122, T123, X234, p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aag(T122, T123, X234)
U54_ag(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_ag(T390, T363, T353, T391, qs60_in_ag(T371, T391))
qs60_in_ag([], []) → qs60_out_ag([], [])
qs60_in_ag(.(T192, T193), X370) → U20_ag(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
U20_ag(T192, T193, X370, p43_out_aaaaaag(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_ag(.(T192, T193), X370)
U55_ag(T390, T363, T353, T391, qs60_out_ag(T371, T391)) → qs1_out_ag(.(T390, .(T363, T353)), .(T390, T391))
qs1_in_ag(.(T404, .(T363, T353)), .(T402, T406)) → U56_ag(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
U56_ag(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_ag(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U57_ag(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_ag(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U58_ag(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_ag(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U59_ag(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_ag(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
app131_in_agag([], T421, T422, .(T421, T422)) → app131_out_agag([], T421, T422, .(T421, T422))
app131_in_agag(.(T433, T438), T435, T439, .(T433, T437)) → U23_agag(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
U23_agag(T433, T438, T435, T439, T437, app131_out_agag(T438, T435, T439, T437)) → app131_out_agag(.(T433, T438), T435, T439, .(T433, T437))
U60_ag(T404, T363, T353, T402, T406, app131_out_agag(T407, T404, T408, T406)) → qs1_out_ag(.(T404, .(T363, T353)), .(T402, T406))
qs1_in_ag(.(T459, .(T461, T460)), T329) → U61_ag(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
U61_ag(T459, T461, T460, T329, part44_out_aaaa(T459, T460, X705, X706)) → qs1_out_ag(.(T459, .(T461, T460)), T329)
qs1_in_ag(.(T468, .(T467, T460)), T329) → U62_ag(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_ag(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_ag(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U63_ag(T468, T467, T460, T329, qs60_out_aa(T465, X543)) → qs1_out_ag(.(T468, .(T467, T460)), T329)
qs1_in_ag(.(T476, .(T474, T460)), T329) → U64_ag(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_ag(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_ag(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U65_ag(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_ag(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U66_ag(T476, T474, T460, T329, qs39_out_aaa(T474, T475, X544)) → qs1_out_ag(.(T476, .(T474, T460)), T329)
qs1_in_ag(.(T498, .(T474, T460)), .(T498, T499)) → U67_ag(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
part44_in_gaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_gaaa(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
U6_gaaa(T148, T149, T150, X282, X283, less13_out_ga(T148, T149)) → part44_out_gaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_gaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_gaaa(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_gaaa(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_gaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_gaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_gaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_gaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_gaaa(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
part44_in_gaaa(T182, [], [], []) → part44_out_gaaa(T182, [], [], [])
U9_gaaa(T175, T173, T176, X333, X334, part44_out_gaaa(T175, T176, X333, X334)) → part44_out_gaaa(T175, .(T173, T176), X333, .(T173, X334))
U67_ag(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_ag(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U68_ag(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_ag(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U69_ag(T498, T474, T460, T499, qs39_out_aag(T474, T475, T499)) → qs1_out_ag(.(T498, .(T474, T460)), .(T498, T499))
qs1_in_ag(.(T516, .(T474, T460)), .(T510, T514)) → U70_ag(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
U70_ag(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_ag(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U71_ag(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_ag(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U72_ag(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_ag(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
app157_in_aaag([], T530, T531, .(T530, T531)) → app157_out_aaag([], T530, T531, .(T530, T531))
app157_in_aaag(.(T542, T547), T548, T549, .(T542, T546)) → U24_aaag(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
U24_aaag(T542, T547, T548, T549, T546, app157_out_aaag(T547, T548, T549, T546)) → app157_out_aaag(.(T542, T547), T548, T549, .(T542, T546))
U73_ag(T516, T474, T460, T510, T514, app157_out_aaag(T515, T516, T517, T514)) → qs1_out_ag(.(T516, .(T474, T460)), .(T510, T514))
qs1_in_ag(.(T557, []), T329) → U74_ag(T557, T329, qs100_in_a(X543))
U74_ag(T557, T329, qs100_out_a(X543)) → qs1_out_ag(.(T557, []), T329)
qs1_in_ag(.(T557, []), T329) → U75_ag(T557, T329, qs100_in_a(T560))
U75_ag(T557, T329, qs100_out_a(T560)) → U76_ag(T557, T329, qs100_in_a(X544))
U76_ag(T557, T329, qs100_out_a(X544)) → qs1_out_ag(.(T557, []), T329)
U75_ag(T557, T329, qs100_out_a(T560)) → U77_ag(T557, T329, T560, qs100_in_a(T563))
U77_ag(T557, T329, T560, qs100_out_a(T563)) → U78_ag(T557, T329, app157_in_gagg(T560, T557, T563, T329))
app157_in_gagg([], T530, T531, .(T530, T531)) → app157_out_gagg([], T530, T531, .(T530, T531))
app157_in_gagg(.(T542, T547), T548, T549, .(T542, T546)) → U24_gagg(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
U24_gagg(T542, T547, T548, T549, T546, app157_out_gagg(T547, T548, T549, T546)) → app157_out_gagg(.(T542, T547), T548, T549, .(T542, T546))
U78_ag(T557, T329, app157_out_gagg(T560, T557, T563, T329)) → qs1_out_ag(.(T557, []), T329)
PART44_IN_GAAA(T175, .(T173, T176), X333, .(T173, X334)) → PART44_IN_GAAA(T175, T176, X333, X334)
PART44_IN_GAAA(T175) → PART44_IN_GAAA(T175)
LESS13_IN_AA(s(T45), s(T46)) → LESS13_IN_AA(T45, T46)
qs1_in_ag([], []) → qs1_out_ag([], [])
qs1_in_ag(.(T24, .(T25, T26)), []) → U25_ag(T24, T25, T26, less13_in_aa(T24, T25))
less13_in_aa(0, s(T38)) → less13_out_aa(0, s(T38))
less13_in_aa(s(T45), s(T46)) → U1_aa(T45, T46, less13_in_aa(T45, T46))
U1_aa(T45, T46, less13_out_aa(T45, T46)) → less13_out_aa(s(T45), s(T46))
U25_ag(T24, T25, T26, less13_out_aa(T24, T25)) → qs1_out_ag(.(T24, .(T25, T26)), [])
qs1_in_ag(.(T29, .(T31, T30)), []) → U26_ag(T29, T31, T30, less13_in_aa(T29, T31))
U26_ag(T29, T31, T30, less13_out_aa(T29, T31)) → U27_ag(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
part23_in_gaaa(T70, .(T73, T74), .(T73, X123), X124) → U2_gaaa(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
U2_gaaa(T70, T73, T74, X123, X124, less13_out_ga(T70, T73)) → part23_out_gaaa(T70, .(T73, T74), .(T73, X123), X124)
part23_in_gaaa(T70, .(T73, T77), .(T73, X123), X124) → U3_gaaa(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
part23_in_gaaa(T95, .(T96, T98), X174, .(T96, X175)) → U5_gaaa(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
part23_in_gaaa(T104, [], [], []) → part23_out_gaaa(T104, [], [], [])
U5_gaaa(T95, T96, T98, X174, X175, part23_out_gaaa(T95, T98, X174, X175)) → part23_out_gaaa(T95, .(T96, T98), X174, .(T96, X175))
U4_gaaa(T70, T73, T77, X123, X124, part23_out_gaaa(T70, T77, X123, X124)) → part23_out_gaaa(T70, .(T73, T77), .(T73, X123), X124)
U27_ag(T29, T31, T30, part23_out_gaaa(T29, T30, X49, X50)) → qs1_out_ag(.(T29, .(T31, T30)), [])
qs1_in_ag(.(T29, .(T54, T30)), []) → U28_ag(T29, T54, T30, less13_in_aa(T29, T54))
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U29_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U29_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_ag(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
qs39_in_aaa(T122, T123, X234) → U22_aaa(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
part44_in_aaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_aaaa(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
U6_aaaa(T148, T149, T150, X282, X283, less13_out_aa(T148, T149)) → part44_out_aaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_aaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_aaaa(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_aaaa(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_aaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_aaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_aaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_aaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_aaaa(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
part44_in_aaaa(T182, [], [], []) → part44_out_aaaa(T182, [], [], [])
U9_aaaa(T175, T173, T176, X333, X334, part44_out_aaaa(T175, T176, X333, X334)) → part44_out_aaaa(T175, .(T173, T176), X333, .(T173, X334))
U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaaa(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
qs60_in_aa([], []) → qs60_out_aa([], [])
qs60_in_aa(.(T192, T193), X370) → U20_aa(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
p43_in_aaaaaaa(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaaa(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaaa(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
app71_in_aaaa([], T212, T213, .(T212, T213)) → app71_out_aaaa([], T212, T213, .(T212, T213))
app71_in_aaaa(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaaa(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
U21_aaaa(T222, T226, T227, T228, X403, app71_out_aaaa(T226, T227, T228, X403)) → app71_out_aaaa(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_out_aaaa(T198, T199, T197, X234)) → p43_out_aaaaaaa(T199, T123, T127, T184, T198, T197, X234)
U20_aa(T192, T193, X370, p43_out_aaaaaaa(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_aa(.(T192, T193), X370)
U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaaa(T129, T123, T127, T128, X232, X233, X234)
U22_aaa(T122, T123, X234, p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aaa(T122, T123, X234)
U30_ag(T29, T54, T30, qs39_out_aaa(T54, T52, X11)) → qs1_out_ag(.(T29, .(T54, T30)), [])
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U31_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_ag(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U32_ag(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_ag(T29, T54, T30, qs60_in_aa(T108, X12))
U33_ag(T29, T54, T30, qs60_out_aa(T108, X12)) → qs1_out_ag(.(T29, .(T54, T30)), [])
qs1_in_ag(.(T264, .(T266, T265)), []) → U34_ag(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
U34_ag(T264, T266, T265, part44_out_aaaa(T264, T265, X454, X455)) → qs1_out_ag(.(T264, .(T266, T265)), [])
qs1_in_ag(.(T273, .(T272, T265)), []) → U35_ag(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_ag(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_ag(T273, T272, T265, qs60_in_aa(T270, X11))
U36_ag(T273, T272, T265, qs60_out_aa(T270, X11)) → qs1_out_ag(.(T273, .(T272, T265)), [])
qs1_in_ag(.(T280, .(T278, T265)), []) → U37_ag(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_ag(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_ag(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U38_ag(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_ag(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U39_ag(T280, T278, T265, qs39_out_aaa(T278, T279, X12)) → qs1_out_ag(.(T280, .(T278, T265)), [])
qs1_in_ag(.(T305, []), []) → U40_ag(T305, qs100_in_a(X11))
qs100_in_a([]) → qs100_out_a([])
U40_ag(T305, qs100_out_a(X11)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T305, []), []) → U41_ag(T305, qs100_in_a(T309))
U41_ag(T305, qs100_out_a(T309)) → U42_ag(T305, qs100_in_a(X12))
U42_ag(T305, qs100_out_a(X12)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T347, .(T348, T349)), T329) → U43_ag(T347, T348, T349, T329, less13_in_aa(T347, T348))
U43_ag(T347, T348, T349, T329, less13_out_aa(T347, T348)) → qs1_out_ag(.(T347, .(T348, T349)), T329)
qs1_in_ag(.(T352, .(T354, T353)), T329) → U44_ag(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_ag(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_ag(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U45_ag(T352, T354, T353, T329, part23_out_gaaa(T352, T353, X581, X582)) → qs1_out_ag(.(T352, .(T354, T353)), T329)
qs1_in_ag(.(T352, .(T363, T353)), T329) → U46_ag(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U47_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_ag(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U48_ag(T352, T363, T353, T329, qs39_out_aaa(T363, T361, X543)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_ag(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U50_ag(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_ag(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U51_ag(T352, T363, T353, T329, qs60_out_aa(T371, X544)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
qs1_in_ag(.(T390, .(T363, T353)), .(T390, T391)) → U52_ag(T390, T363, T353, T391, less13_in_ga(T390, T363))
U52_ag(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_ag(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U53_ag(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_ag(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
qs39_in_aag(T122, T123, X234) → U22_aag(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaag(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaag(T129, T123, T127, T128, X232, X233, X234)
p43_in_aaaaaag(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaag(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaag(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
app71_in_aaag([], T212, T213, .(T212, T213)) → app71_out_aaag([], T212, T213, .(T212, T213))
app71_in_aaag(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaag(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
U21_aaag(T222, T226, T227, T228, X403, app71_out_aaag(T226, T227, T228, X403)) → app71_out_aaag(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_out_aaag(T198, T199, T197, X234)) → p43_out_aaaaaag(T199, T123, T127, T184, T198, T197, X234)
U22_aag(T122, T123, X234, p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aag(T122, T123, X234)
U54_ag(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_ag(T390, T363, T353, T391, qs60_in_ag(T371, T391))
qs60_in_ag([], []) → qs60_out_ag([], [])
qs60_in_ag(.(T192, T193), X370) → U20_ag(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
U20_ag(T192, T193, X370, p43_out_aaaaaag(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_ag(.(T192, T193), X370)
U55_ag(T390, T363, T353, T391, qs60_out_ag(T371, T391)) → qs1_out_ag(.(T390, .(T363, T353)), .(T390, T391))
qs1_in_ag(.(T404, .(T363, T353)), .(T402, T406)) → U56_ag(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
U56_ag(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_ag(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U57_ag(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_ag(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U58_ag(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_ag(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U59_ag(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_ag(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
app131_in_agag([], T421, T422, .(T421, T422)) → app131_out_agag([], T421, T422, .(T421, T422))
app131_in_agag(.(T433, T438), T435, T439, .(T433, T437)) → U23_agag(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
U23_agag(T433, T438, T435, T439, T437, app131_out_agag(T438, T435, T439, T437)) → app131_out_agag(.(T433, T438), T435, T439, .(T433, T437))
U60_ag(T404, T363, T353, T402, T406, app131_out_agag(T407, T404, T408, T406)) → qs1_out_ag(.(T404, .(T363, T353)), .(T402, T406))
qs1_in_ag(.(T459, .(T461, T460)), T329) → U61_ag(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
U61_ag(T459, T461, T460, T329, part44_out_aaaa(T459, T460, X705, X706)) → qs1_out_ag(.(T459, .(T461, T460)), T329)
qs1_in_ag(.(T468, .(T467, T460)), T329) → U62_ag(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_ag(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_ag(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U63_ag(T468, T467, T460, T329, qs60_out_aa(T465, X543)) → qs1_out_ag(.(T468, .(T467, T460)), T329)
qs1_in_ag(.(T476, .(T474, T460)), T329) → U64_ag(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_ag(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_ag(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U65_ag(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_ag(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U66_ag(T476, T474, T460, T329, qs39_out_aaa(T474, T475, X544)) → qs1_out_ag(.(T476, .(T474, T460)), T329)
qs1_in_ag(.(T498, .(T474, T460)), .(T498, T499)) → U67_ag(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
part44_in_gaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_gaaa(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
U6_gaaa(T148, T149, T150, X282, X283, less13_out_ga(T148, T149)) → part44_out_gaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_gaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_gaaa(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_gaaa(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_gaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_gaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_gaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_gaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_gaaa(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
part44_in_gaaa(T182, [], [], []) → part44_out_gaaa(T182, [], [], [])
U9_gaaa(T175, T173, T176, X333, X334, part44_out_gaaa(T175, T176, X333, X334)) → part44_out_gaaa(T175, .(T173, T176), X333, .(T173, X334))
U67_ag(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_ag(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U68_ag(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_ag(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U69_ag(T498, T474, T460, T499, qs39_out_aag(T474, T475, T499)) → qs1_out_ag(.(T498, .(T474, T460)), .(T498, T499))
qs1_in_ag(.(T516, .(T474, T460)), .(T510, T514)) → U70_ag(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
U70_ag(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_ag(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U71_ag(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_ag(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U72_ag(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_ag(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
app157_in_aaag([], T530, T531, .(T530, T531)) → app157_out_aaag([], T530, T531, .(T530, T531))
app157_in_aaag(.(T542, T547), T548, T549, .(T542, T546)) → U24_aaag(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
U24_aaag(T542, T547, T548, T549, T546, app157_out_aaag(T547, T548, T549, T546)) → app157_out_aaag(.(T542, T547), T548, T549, .(T542, T546))
U73_ag(T516, T474, T460, T510, T514, app157_out_aaag(T515, T516, T517, T514)) → qs1_out_ag(.(T516, .(T474, T460)), .(T510, T514))
qs1_in_ag(.(T557, []), T329) → U74_ag(T557, T329, qs100_in_a(X543))
U74_ag(T557, T329, qs100_out_a(X543)) → qs1_out_ag(.(T557, []), T329)
qs1_in_ag(.(T557, []), T329) → U75_ag(T557, T329, qs100_in_a(T560))
U75_ag(T557, T329, qs100_out_a(T560)) → U76_ag(T557, T329, qs100_in_a(X544))
U76_ag(T557, T329, qs100_out_a(X544)) → qs1_out_ag(.(T557, []), T329)
U75_ag(T557, T329, qs100_out_a(T560)) → U77_ag(T557, T329, T560, qs100_in_a(T563))
U77_ag(T557, T329, T560, qs100_out_a(T563)) → U78_ag(T557, T329, app157_in_gagg(T560, T557, T563, T329))
app157_in_gagg([], T530, T531, .(T530, T531)) → app157_out_gagg([], T530, T531, .(T530, T531))
app157_in_gagg(.(T542, T547), T548, T549, .(T542, T546)) → U24_gagg(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
U24_gagg(T542, T547, T548, T549, T546, app157_out_gagg(T547, T548, T549, T546)) → app157_out_gagg(.(T542, T547), T548, T549, .(T542, T546))
U78_ag(T557, T329, app157_out_gagg(T560, T557, T563, T329)) → qs1_out_ag(.(T557, []), T329)
LESS13_IN_AA(s(T45), s(T46)) → LESS13_IN_AA(T45, T46)
LESS13_IN_AA → LESS13_IN_AA
PART44_IN_AAAA(T175, .(T173, T176), X333, .(T173, X334)) → PART44_IN_AAAA(T175, T176, X333, X334)
qs1_in_ag([], []) → qs1_out_ag([], [])
qs1_in_ag(.(T24, .(T25, T26)), []) → U25_ag(T24, T25, T26, less13_in_aa(T24, T25))
less13_in_aa(0, s(T38)) → less13_out_aa(0, s(T38))
less13_in_aa(s(T45), s(T46)) → U1_aa(T45, T46, less13_in_aa(T45, T46))
U1_aa(T45, T46, less13_out_aa(T45, T46)) → less13_out_aa(s(T45), s(T46))
U25_ag(T24, T25, T26, less13_out_aa(T24, T25)) → qs1_out_ag(.(T24, .(T25, T26)), [])
qs1_in_ag(.(T29, .(T31, T30)), []) → U26_ag(T29, T31, T30, less13_in_aa(T29, T31))
U26_ag(T29, T31, T30, less13_out_aa(T29, T31)) → U27_ag(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
part23_in_gaaa(T70, .(T73, T74), .(T73, X123), X124) → U2_gaaa(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
U2_gaaa(T70, T73, T74, X123, X124, less13_out_ga(T70, T73)) → part23_out_gaaa(T70, .(T73, T74), .(T73, X123), X124)
part23_in_gaaa(T70, .(T73, T77), .(T73, X123), X124) → U3_gaaa(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
part23_in_gaaa(T95, .(T96, T98), X174, .(T96, X175)) → U5_gaaa(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
part23_in_gaaa(T104, [], [], []) → part23_out_gaaa(T104, [], [], [])
U5_gaaa(T95, T96, T98, X174, X175, part23_out_gaaa(T95, T98, X174, X175)) → part23_out_gaaa(T95, .(T96, T98), X174, .(T96, X175))
U4_gaaa(T70, T73, T77, X123, X124, part23_out_gaaa(T70, T77, X123, X124)) → part23_out_gaaa(T70, .(T73, T77), .(T73, X123), X124)
U27_ag(T29, T31, T30, part23_out_gaaa(T29, T30, X49, X50)) → qs1_out_ag(.(T29, .(T31, T30)), [])
qs1_in_ag(.(T29, .(T54, T30)), []) → U28_ag(T29, T54, T30, less13_in_aa(T29, T54))
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U29_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U29_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_ag(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
qs39_in_aaa(T122, T123, X234) → U22_aaa(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
part44_in_aaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_aaaa(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
U6_aaaa(T148, T149, T150, X282, X283, less13_out_aa(T148, T149)) → part44_out_aaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_aaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_aaaa(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_aaaa(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_aaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_aaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_aaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_aaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_aaaa(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
part44_in_aaaa(T182, [], [], []) → part44_out_aaaa(T182, [], [], [])
U9_aaaa(T175, T173, T176, X333, X334, part44_out_aaaa(T175, T176, X333, X334)) → part44_out_aaaa(T175, .(T173, T176), X333, .(T173, X334))
U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaaa(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
qs60_in_aa([], []) → qs60_out_aa([], [])
qs60_in_aa(.(T192, T193), X370) → U20_aa(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
p43_in_aaaaaaa(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaaa(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaaa(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
app71_in_aaaa([], T212, T213, .(T212, T213)) → app71_out_aaaa([], T212, T213, .(T212, T213))
app71_in_aaaa(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaaa(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
U21_aaaa(T222, T226, T227, T228, X403, app71_out_aaaa(T226, T227, T228, X403)) → app71_out_aaaa(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_out_aaaa(T198, T199, T197, X234)) → p43_out_aaaaaaa(T199, T123, T127, T184, T198, T197, X234)
U20_aa(T192, T193, X370, p43_out_aaaaaaa(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_aa(.(T192, T193), X370)
U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaaa(T129, T123, T127, T128, X232, X233, X234)
U22_aaa(T122, T123, X234, p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aaa(T122, T123, X234)
U30_ag(T29, T54, T30, qs39_out_aaa(T54, T52, X11)) → qs1_out_ag(.(T29, .(T54, T30)), [])
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U31_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_ag(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U32_ag(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_ag(T29, T54, T30, qs60_in_aa(T108, X12))
U33_ag(T29, T54, T30, qs60_out_aa(T108, X12)) → qs1_out_ag(.(T29, .(T54, T30)), [])
qs1_in_ag(.(T264, .(T266, T265)), []) → U34_ag(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
U34_ag(T264, T266, T265, part44_out_aaaa(T264, T265, X454, X455)) → qs1_out_ag(.(T264, .(T266, T265)), [])
qs1_in_ag(.(T273, .(T272, T265)), []) → U35_ag(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_ag(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_ag(T273, T272, T265, qs60_in_aa(T270, X11))
U36_ag(T273, T272, T265, qs60_out_aa(T270, X11)) → qs1_out_ag(.(T273, .(T272, T265)), [])
qs1_in_ag(.(T280, .(T278, T265)), []) → U37_ag(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_ag(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_ag(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U38_ag(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_ag(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U39_ag(T280, T278, T265, qs39_out_aaa(T278, T279, X12)) → qs1_out_ag(.(T280, .(T278, T265)), [])
qs1_in_ag(.(T305, []), []) → U40_ag(T305, qs100_in_a(X11))
qs100_in_a([]) → qs100_out_a([])
U40_ag(T305, qs100_out_a(X11)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T305, []), []) → U41_ag(T305, qs100_in_a(T309))
U41_ag(T305, qs100_out_a(T309)) → U42_ag(T305, qs100_in_a(X12))
U42_ag(T305, qs100_out_a(X12)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T347, .(T348, T349)), T329) → U43_ag(T347, T348, T349, T329, less13_in_aa(T347, T348))
U43_ag(T347, T348, T349, T329, less13_out_aa(T347, T348)) → qs1_out_ag(.(T347, .(T348, T349)), T329)
qs1_in_ag(.(T352, .(T354, T353)), T329) → U44_ag(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_ag(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_ag(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U45_ag(T352, T354, T353, T329, part23_out_gaaa(T352, T353, X581, X582)) → qs1_out_ag(.(T352, .(T354, T353)), T329)
qs1_in_ag(.(T352, .(T363, T353)), T329) → U46_ag(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U47_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_ag(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U48_ag(T352, T363, T353, T329, qs39_out_aaa(T363, T361, X543)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_ag(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U50_ag(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_ag(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U51_ag(T352, T363, T353, T329, qs60_out_aa(T371, X544)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
qs1_in_ag(.(T390, .(T363, T353)), .(T390, T391)) → U52_ag(T390, T363, T353, T391, less13_in_ga(T390, T363))
U52_ag(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_ag(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U53_ag(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_ag(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
qs39_in_aag(T122, T123, X234) → U22_aag(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaag(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaag(T129, T123, T127, T128, X232, X233, X234)
p43_in_aaaaaag(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaag(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaag(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
app71_in_aaag([], T212, T213, .(T212, T213)) → app71_out_aaag([], T212, T213, .(T212, T213))
app71_in_aaag(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaag(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
U21_aaag(T222, T226, T227, T228, X403, app71_out_aaag(T226, T227, T228, X403)) → app71_out_aaag(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_out_aaag(T198, T199, T197, X234)) → p43_out_aaaaaag(T199, T123, T127, T184, T198, T197, X234)
U22_aag(T122, T123, X234, p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aag(T122, T123, X234)
U54_ag(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_ag(T390, T363, T353, T391, qs60_in_ag(T371, T391))
qs60_in_ag([], []) → qs60_out_ag([], [])
qs60_in_ag(.(T192, T193), X370) → U20_ag(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
U20_ag(T192, T193, X370, p43_out_aaaaaag(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_ag(.(T192, T193), X370)
U55_ag(T390, T363, T353, T391, qs60_out_ag(T371, T391)) → qs1_out_ag(.(T390, .(T363, T353)), .(T390, T391))
qs1_in_ag(.(T404, .(T363, T353)), .(T402, T406)) → U56_ag(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
U56_ag(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_ag(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U57_ag(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_ag(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U58_ag(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_ag(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U59_ag(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_ag(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
app131_in_agag([], T421, T422, .(T421, T422)) → app131_out_agag([], T421, T422, .(T421, T422))
app131_in_agag(.(T433, T438), T435, T439, .(T433, T437)) → U23_agag(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
U23_agag(T433, T438, T435, T439, T437, app131_out_agag(T438, T435, T439, T437)) → app131_out_agag(.(T433, T438), T435, T439, .(T433, T437))
U60_ag(T404, T363, T353, T402, T406, app131_out_agag(T407, T404, T408, T406)) → qs1_out_ag(.(T404, .(T363, T353)), .(T402, T406))
qs1_in_ag(.(T459, .(T461, T460)), T329) → U61_ag(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
U61_ag(T459, T461, T460, T329, part44_out_aaaa(T459, T460, X705, X706)) → qs1_out_ag(.(T459, .(T461, T460)), T329)
qs1_in_ag(.(T468, .(T467, T460)), T329) → U62_ag(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_ag(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_ag(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U63_ag(T468, T467, T460, T329, qs60_out_aa(T465, X543)) → qs1_out_ag(.(T468, .(T467, T460)), T329)
qs1_in_ag(.(T476, .(T474, T460)), T329) → U64_ag(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_ag(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_ag(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U65_ag(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_ag(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U66_ag(T476, T474, T460, T329, qs39_out_aaa(T474, T475, X544)) → qs1_out_ag(.(T476, .(T474, T460)), T329)
qs1_in_ag(.(T498, .(T474, T460)), .(T498, T499)) → U67_ag(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
part44_in_gaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_gaaa(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
U6_gaaa(T148, T149, T150, X282, X283, less13_out_ga(T148, T149)) → part44_out_gaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_gaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_gaaa(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_gaaa(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_gaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_gaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_gaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_gaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_gaaa(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
part44_in_gaaa(T182, [], [], []) → part44_out_gaaa(T182, [], [], [])
U9_gaaa(T175, T173, T176, X333, X334, part44_out_gaaa(T175, T176, X333, X334)) → part44_out_gaaa(T175, .(T173, T176), X333, .(T173, X334))
U67_ag(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_ag(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U68_ag(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_ag(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U69_ag(T498, T474, T460, T499, qs39_out_aag(T474, T475, T499)) → qs1_out_ag(.(T498, .(T474, T460)), .(T498, T499))
qs1_in_ag(.(T516, .(T474, T460)), .(T510, T514)) → U70_ag(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
U70_ag(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_ag(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U71_ag(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_ag(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U72_ag(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_ag(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
app157_in_aaag([], T530, T531, .(T530, T531)) → app157_out_aaag([], T530, T531, .(T530, T531))
app157_in_aaag(.(T542, T547), T548, T549, .(T542, T546)) → U24_aaag(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
U24_aaag(T542, T547, T548, T549, T546, app157_out_aaag(T547, T548, T549, T546)) → app157_out_aaag(.(T542, T547), T548, T549, .(T542, T546))
U73_ag(T516, T474, T460, T510, T514, app157_out_aaag(T515, T516, T517, T514)) → qs1_out_ag(.(T516, .(T474, T460)), .(T510, T514))
qs1_in_ag(.(T557, []), T329) → U74_ag(T557, T329, qs100_in_a(X543))
U74_ag(T557, T329, qs100_out_a(X543)) → qs1_out_ag(.(T557, []), T329)
qs1_in_ag(.(T557, []), T329) → U75_ag(T557, T329, qs100_in_a(T560))
U75_ag(T557, T329, qs100_out_a(T560)) → U76_ag(T557, T329, qs100_in_a(X544))
U76_ag(T557, T329, qs100_out_a(X544)) → qs1_out_ag(.(T557, []), T329)
U75_ag(T557, T329, qs100_out_a(T560)) → U77_ag(T557, T329, T560, qs100_in_a(T563))
U77_ag(T557, T329, T560, qs100_out_a(T563)) → U78_ag(T557, T329, app157_in_gagg(T560, T557, T563, T329))
app157_in_gagg([], T530, T531, .(T530, T531)) → app157_out_gagg([], T530, T531, .(T530, T531))
app157_in_gagg(.(T542, T547), T548, T549, .(T542, T546)) → U24_gagg(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
U24_gagg(T542, T547, T548, T549, T546, app157_out_gagg(T547, T548, T549, T546)) → app157_out_gagg(.(T542, T547), T548, T549, .(T542, T546))
U78_ag(T557, T329, app157_out_gagg(T560, T557, T563, T329)) → qs1_out_ag(.(T557, []), T329)
PART44_IN_AAAA(T175, .(T173, T176), X333, .(T173, X334)) → PART44_IN_AAAA(T175, T176, X333, X334)
PART44_IN_AAAA → PART44_IN_AAAA
P43_IN_AAAAAAA(T129, T123, T127, T128, X232, X233, X234) → U11_AAAAAAA(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_AAAAAAA(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → QS60_IN_AA(T127, X232)
QS60_IN_AA(.(T192, T193), X370) → P43_IN_AAAAAAA(T192, T193, X366, X367, X368, X369, X370)
P43_IN_AAAAAAA(T185, T123, T127, T184, T183, X233, X234) → U13_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → QS60_IN_AA(T184, X233)
U13_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → QS60_IN_AA(T127, T183)
P43_IN_AAAAAAA(T199, T123, T127, T184, T198, T197, X234) → U16_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → QS60_IN_AA(T184, T197)
U16_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → QS60_IN_AA(T127, T198)
qs1_in_ag([], []) → qs1_out_ag([], [])
qs1_in_ag(.(T24, .(T25, T26)), []) → U25_ag(T24, T25, T26, less13_in_aa(T24, T25))
less13_in_aa(0, s(T38)) → less13_out_aa(0, s(T38))
less13_in_aa(s(T45), s(T46)) → U1_aa(T45, T46, less13_in_aa(T45, T46))
U1_aa(T45, T46, less13_out_aa(T45, T46)) → less13_out_aa(s(T45), s(T46))
U25_ag(T24, T25, T26, less13_out_aa(T24, T25)) → qs1_out_ag(.(T24, .(T25, T26)), [])
qs1_in_ag(.(T29, .(T31, T30)), []) → U26_ag(T29, T31, T30, less13_in_aa(T29, T31))
U26_ag(T29, T31, T30, less13_out_aa(T29, T31)) → U27_ag(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
part23_in_gaaa(T70, .(T73, T74), .(T73, X123), X124) → U2_gaaa(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
U2_gaaa(T70, T73, T74, X123, X124, less13_out_ga(T70, T73)) → part23_out_gaaa(T70, .(T73, T74), .(T73, X123), X124)
part23_in_gaaa(T70, .(T73, T77), .(T73, X123), X124) → U3_gaaa(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
part23_in_gaaa(T95, .(T96, T98), X174, .(T96, X175)) → U5_gaaa(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
part23_in_gaaa(T104, [], [], []) → part23_out_gaaa(T104, [], [], [])
U5_gaaa(T95, T96, T98, X174, X175, part23_out_gaaa(T95, T98, X174, X175)) → part23_out_gaaa(T95, .(T96, T98), X174, .(T96, X175))
U4_gaaa(T70, T73, T77, X123, X124, part23_out_gaaa(T70, T77, X123, X124)) → part23_out_gaaa(T70, .(T73, T77), .(T73, X123), X124)
U27_ag(T29, T31, T30, part23_out_gaaa(T29, T30, X49, X50)) → qs1_out_ag(.(T29, .(T31, T30)), [])
qs1_in_ag(.(T29, .(T54, T30)), []) → U28_ag(T29, T54, T30, less13_in_aa(T29, T54))
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U29_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U29_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_ag(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
qs39_in_aaa(T122, T123, X234) → U22_aaa(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
part44_in_aaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_aaaa(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
U6_aaaa(T148, T149, T150, X282, X283, less13_out_aa(T148, T149)) → part44_out_aaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_aaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_aaaa(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_aaaa(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_aaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_aaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_aaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_aaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_aaaa(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
part44_in_aaaa(T182, [], [], []) → part44_out_aaaa(T182, [], [], [])
U9_aaaa(T175, T173, T176, X333, X334, part44_out_aaaa(T175, T176, X333, X334)) → part44_out_aaaa(T175, .(T173, T176), X333, .(T173, X334))
U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaaa(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
qs60_in_aa([], []) → qs60_out_aa([], [])
qs60_in_aa(.(T192, T193), X370) → U20_aa(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
p43_in_aaaaaaa(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaaa(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaaa(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
app71_in_aaaa([], T212, T213, .(T212, T213)) → app71_out_aaaa([], T212, T213, .(T212, T213))
app71_in_aaaa(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaaa(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
U21_aaaa(T222, T226, T227, T228, X403, app71_out_aaaa(T226, T227, T228, X403)) → app71_out_aaaa(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_out_aaaa(T198, T199, T197, X234)) → p43_out_aaaaaaa(T199, T123, T127, T184, T198, T197, X234)
U20_aa(T192, T193, X370, p43_out_aaaaaaa(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_aa(.(T192, T193), X370)
U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaaa(T129, T123, T127, T128, X232, X233, X234)
U22_aaa(T122, T123, X234, p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aaa(T122, T123, X234)
U30_ag(T29, T54, T30, qs39_out_aaa(T54, T52, X11)) → qs1_out_ag(.(T29, .(T54, T30)), [])
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U31_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_ag(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U32_ag(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_ag(T29, T54, T30, qs60_in_aa(T108, X12))
U33_ag(T29, T54, T30, qs60_out_aa(T108, X12)) → qs1_out_ag(.(T29, .(T54, T30)), [])
qs1_in_ag(.(T264, .(T266, T265)), []) → U34_ag(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
U34_ag(T264, T266, T265, part44_out_aaaa(T264, T265, X454, X455)) → qs1_out_ag(.(T264, .(T266, T265)), [])
qs1_in_ag(.(T273, .(T272, T265)), []) → U35_ag(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_ag(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_ag(T273, T272, T265, qs60_in_aa(T270, X11))
U36_ag(T273, T272, T265, qs60_out_aa(T270, X11)) → qs1_out_ag(.(T273, .(T272, T265)), [])
qs1_in_ag(.(T280, .(T278, T265)), []) → U37_ag(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_ag(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_ag(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U38_ag(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_ag(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U39_ag(T280, T278, T265, qs39_out_aaa(T278, T279, X12)) → qs1_out_ag(.(T280, .(T278, T265)), [])
qs1_in_ag(.(T305, []), []) → U40_ag(T305, qs100_in_a(X11))
qs100_in_a([]) → qs100_out_a([])
U40_ag(T305, qs100_out_a(X11)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T305, []), []) → U41_ag(T305, qs100_in_a(T309))
U41_ag(T305, qs100_out_a(T309)) → U42_ag(T305, qs100_in_a(X12))
U42_ag(T305, qs100_out_a(X12)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T347, .(T348, T349)), T329) → U43_ag(T347, T348, T349, T329, less13_in_aa(T347, T348))
U43_ag(T347, T348, T349, T329, less13_out_aa(T347, T348)) → qs1_out_ag(.(T347, .(T348, T349)), T329)
qs1_in_ag(.(T352, .(T354, T353)), T329) → U44_ag(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_ag(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_ag(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U45_ag(T352, T354, T353, T329, part23_out_gaaa(T352, T353, X581, X582)) → qs1_out_ag(.(T352, .(T354, T353)), T329)
qs1_in_ag(.(T352, .(T363, T353)), T329) → U46_ag(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U47_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_ag(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U48_ag(T352, T363, T353, T329, qs39_out_aaa(T363, T361, X543)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_ag(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U50_ag(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_ag(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U51_ag(T352, T363, T353, T329, qs60_out_aa(T371, X544)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
qs1_in_ag(.(T390, .(T363, T353)), .(T390, T391)) → U52_ag(T390, T363, T353, T391, less13_in_ga(T390, T363))
U52_ag(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_ag(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U53_ag(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_ag(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
qs39_in_aag(T122, T123, X234) → U22_aag(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaag(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaag(T129, T123, T127, T128, X232, X233, X234)
p43_in_aaaaaag(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaag(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaag(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
app71_in_aaag([], T212, T213, .(T212, T213)) → app71_out_aaag([], T212, T213, .(T212, T213))
app71_in_aaag(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaag(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
U21_aaag(T222, T226, T227, T228, X403, app71_out_aaag(T226, T227, T228, X403)) → app71_out_aaag(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_out_aaag(T198, T199, T197, X234)) → p43_out_aaaaaag(T199, T123, T127, T184, T198, T197, X234)
U22_aag(T122, T123, X234, p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aag(T122, T123, X234)
U54_ag(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_ag(T390, T363, T353, T391, qs60_in_ag(T371, T391))
qs60_in_ag([], []) → qs60_out_ag([], [])
qs60_in_ag(.(T192, T193), X370) → U20_ag(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
U20_ag(T192, T193, X370, p43_out_aaaaaag(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_ag(.(T192, T193), X370)
U55_ag(T390, T363, T353, T391, qs60_out_ag(T371, T391)) → qs1_out_ag(.(T390, .(T363, T353)), .(T390, T391))
qs1_in_ag(.(T404, .(T363, T353)), .(T402, T406)) → U56_ag(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
U56_ag(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_ag(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U57_ag(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_ag(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U58_ag(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_ag(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U59_ag(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_ag(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
app131_in_agag([], T421, T422, .(T421, T422)) → app131_out_agag([], T421, T422, .(T421, T422))
app131_in_agag(.(T433, T438), T435, T439, .(T433, T437)) → U23_agag(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
U23_agag(T433, T438, T435, T439, T437, app131_out_agag(T438, T435, T439, T437)) → app131_out_agag(.(T433, T438), T435, T439, .(T433, T437))
U60_ag(T404, T363, T353, T402, T406, app131_out_agag(T407, T404, T408, T406)) → qs1_out_ag(.(T404, .(T363, T353)), .(T402, T406))
qs1_in_ag(.(T459, .(T461, T460)), T329) → U61_ag(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
U61_ag(T459, T461, T460, T329, part44_out_aaaa(T459, T460, X705, X706)) → qs1_out_ag(.(T459, .(T461, T460)), T329)
qs1_in_ag(.(T468, .(T467, T460)), T329) → U62_ag(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_ag(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_ag(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U63_ag(T468, T467, T460, T329, qs60_out_aa(T465, X543)) → qs1_out_ag(.(T468, .(T467, T460)), T329)
qs1_in_ag(.(T476, .(T474, T460)), T329) → U64_ag(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_ag(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_ag(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U65_ag(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_ag(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U66_ag(T476, T474, T460, T329, qs39_out_aaa(T474, T475, X544)) → qs1_out_ag(.(T476, .(T474, T460)), T329)
qs1_in_ag(.(T498, .(T474, T460)), .(T498, T499)) → U67_ag(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
part44_in_gaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_gaaa(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
U6_gaaa(T148, T149, T150, X282, X283, less13_out_ga(T148, T149)) → part44_out_gaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_gaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_gaaa(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_gaaa(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_gaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_gaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_gaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_gaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_gaaa(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
part44_in_gaaa(T182, [], [], []) → part44_out_gaaa(T182, [], [], [])
U9_gaaa(T175, T173, T176, X333, X334, part44_out_gaaa(T175, T176, X333, X334)) → part44_out_gaaa(T175, .(T173, T176), X333, .(T173, X334))
U67_ag(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_ag(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U68_ag(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_ag(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U69_ag(T498, T474, T460, T499, qs39_out_aag(T474, T475, T499)) → qs1_out_ag(.(T498, .(T474, T460)), .(T498, T499))
qs1_in_ag(.(T516, .(T474, T460)), .(T510, T514)) → U70_ag(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
U70_ag(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_ag(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U71_ag(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_ag(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U72_ag(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_ag(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
app157_in_aaag([], T530, T531, .(T530, T531)) → app157_out_aaag([], T530, T531, .(T530, T531))
app157_in_aaag(.(T542, T547), T548, T549, .(T542, T546)) → U24_aaag(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
U24_aaag(T542, T547, T548, T549, T546, app157_out_aaag(T547, T548, T549, T546)) → app157_out_aaag(.(T542, T547), T548, T549, .(T542, T546))
U73_ag(T516, T474, T460, T510, T514, app157_out_aaag(T515, T516, T517, T514)) → qs1_out_ag(.(T516, .(T474, T460)), .(T510, T514))
qs1_in_ag(.(T557, []), T329) → U74_ag(T557, T329, qs100_in_a(X543))
U74_ag(T557, T329, qs100_out_a(X543)) → qs1_out_ag(.(T557, []), T329)
qs1_in_ag(.(T557, []), T329) → U75_ag(T557, T329, qs100_in_a(T560))
U75_ag(T557, T329, qs100_out_a(T560)) → U76_ag(T557, T329, qs100_in_a(X544))
U76_ag(T557, T329, qs100_out_a(X544)) → qs1_out_ag(.(T557, []), T329)
U75_ag(T557, T329, qs100_out_a(T560)) → U77_ag(T557, T329, T560, qs100_in_a(T563))
U77_ag(T557, T329, T560, qs100_out_a(T563)) → U78_ag(T557, T329, app157_in_gagg(T560, T557, T563, T329))
app157_in_gagg([], T530, T531, .(T530, T531)) → app157_out_gagg([], T530, T531, .(T530, T531))
app157_in_gagg(.(T542, T547), T548, T549, .(T542, T546)) → U24_gagg(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
U24_gagg(T542, T547, T548, T549, T546, app157_out_gagg(T547, T548, T549, T546)) → app157_out_gagg(.(T542, T547), T548, T549, .(T542, T546))
U78_ag(T557, T329, app157_out_gagg(T560, T557, T563, T329)) → qs1_out_ag(.(T557, []), T329)
P43_IN_AAAAAAA(T129, T123, T127, T128, X232, X233, X234) → U11_AAAAAAA(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_AAAAAAA(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → QS60_IN_AA(T127, X232)
QS60_IN_AA(.(T192, T193), X370) → P43_IN_AAAAAAA(T192, T193, X366, X367, X368, X369, X370)
P43_IN_AAAAAAA(T185, T123, T127, T184, T183, X233, X234) → U13_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → QS60_IN_AA(T184, X233)
U13_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → QS60_IN_AA(T127, T183)
P43_IN_AAAAAAA(T199, T123, T127, T184, T198, T197, X234) → U16_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → QS60_IN_AA(T184, T197)
U16_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → QS60_IN_AA(T127, T198)
part44_in_aaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_aaaa(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
part44_in_aaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_aaaa(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
part44_in_aaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_aaaa(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
part44_in_aaaa(T182, [], [], []) → part44_out_aaaa(T182, [], [], [])
qs60_in_aa([], []) → qs60_out_aa([], [])
qs60_in_aa(.(T192, T193), X370) → U20_aa(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
U6_aaaa(T148, T149, T150, X282, X283, less13_out_aa(T148, T149)) → part44_out_aaaa(T148, .(T149, T150), .(T149, X282), X283)
U7_aaaa(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_aaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U9_aaaa(T175, T173, T176, X333, X334, part44_out_aaaa(T175, T176, X333, X334)) → part44_out_aaaa(T175, .(T173, T176), X333, .(T173, X334))
U20_aa(T192, T193, X370, p43_out_aaaaaaa(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_aa(.(T192, T193), X370)
less13_in_aa(0, s(T38)) → less13_out_aa(0, s(T38))
less13_in_aa(s(T45), s(T46)) → U1_aa(T45, T46, less13_in_aa(T45, T46))
U8_aaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_aaaa(T153, .(T149, T154), .(T149, X282), X283)
p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
p43_in_aaaaaaa(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
p43_in_aaaaaaa(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
p43_in_aaaaaaa(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U1_aa(T45, T46, less13_out_aa(T45, T46)) → less13_out_aa(s(T45), s(T46))
part23_in_gaaa(T70, .(T73, T74), .(T73, X123), X124) → U2_gaaa(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
part23_in_gaaa(T70, .(T73, T77), .(T73, X123), X124) → U3_gaaa(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
part23_in_gaaa(T95, .(T96, T98), X174, .(T96, X175)) → U5_gaaa(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
part23_in_gaaa(T104, [], [], []) → part23_out_gaaa(T104, [], [], [])
U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)
U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U2_gaaa(T70, T73, T74, X123, X124, less13_out_ga(T70, T73)) → part23_out_gaaa(T70, .(T73, T74), .(T73, X123), X124)
U3_gaaa(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
U5_gaaa(T95, T96, T98, X174, X175, part23_out_gaaa(T95, T98, X174, X175)) → part23_out_gaaa(T95, .(T96, T98), X174, .(T96, X175))
U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaaa(T129, T123, T127, T128, X232, X233, X234)
U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U4_gaaa(T70, T73, T77, X123, X124, part23_out_gaaa(T70, T77, X123, X124)) → part23_out_gaaa(T70, .(T73, T77), .(T73, X123), X124)
U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaaa(T185, T123, T127, T184, T183, X233, X234)
U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_out_aaaa(T198, T199, T197, X234)) → p43_out_aaaaaaa(T199, T123, T127, T184, T198, T197, X234)
app71_in_aaaa([], T212, T213, .(T212, T213)) → app71_out_aaaa([], T212, T213, .(T212, T213))
app71_in_aaaa(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaaa(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
U21_aaaa(T222, T226, T227, T228, X403, app71_out_aaaa(T226, T227, T228, X403)) → app71_out_aaaa(.(T222, T226), T227, T228, .(T222, X403))
P43_IN_AAAAAAA → U11_AAAAAAA(part44_in_aaaa)
U11_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
QS60_IN_AA → P43_IN_AAAAAAA
P43_IN_AAAAAAA → U13_AAAAAAA(part44_in_aaaa)
U13_AAAAAAA(part44_out_aaaa) → U14_AAAAAAA(qs60_in_aa)
U14_AAAAAAA(qs60_out_aa) → QS60_IN_AA
U13_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
P43_IN_AAAAAAA → U16_AAAAAAA(part44_in_aaaa)
U16_AAAAAAA(part44_out_aaaa) → U17_AAAAAAA(qs60_in_aa)
U17_AAAAAAA(qs60_out_aa) → QS60_IN_AA
U16_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
part44_in_aaaa → U6_aaaa(less13_in_aa)
part44_in_aaaa → U7_aaaa(less13_in_aa)
part44_in_aaaa → U9_aaaa(part44_in_aaaa)
part44_in_aaaa → part44_out_aaaa
qs60_in_aa → qs60_out_aa
qs60_in_aa → U20_aa(p43_in_aaaaaaa)
U6_aaaa(less13_out_aa(T148)) → part44_out_aaaa
U7_aaaa(less13_out_aa(T153)) → U8_aaaa(part23_in_gaaa(T153))
U9_aaaa(part44_out_aaaa) → part44_out_aaaa
U20_aa(p43_out_aaaaaaa) → qs60_out_aa
less13_in_aa → less13_out_aa(0)
less13_in_aa → U1_aa(less13_in_aa)
U8_aaaa(part23_out_gaaa) → part44_out_aaaa
p43_in_aaaaaaa → U10_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaa → U11_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaa → U13_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaa → U16_aaaaaaa(part44_in_aaaa)
U1_aa(less13_out_aa(T45)) → less13_out_aa(s(T45))
part23_in_gaaa(T70) → U2_gaaa(less13_in_ga(T70))
part23_in_gaaa(T70) → U3_gaaa(T70, less13_in_ga(T70))
part23_in_gaaa(T95) → U5_gaaa(part23_in_gaaa(T95))
part23_in_gaaa(T104) → part23_out_gaaa
U10_aaaaaaa(part44_out_aaaa) → p43_out_aaaaaaa
U11_aaaaaaa(part44_out_aaaa) → U12_aaaaaaa(qs60_in_aa)
U13_aaaaaaa(part44_out_aaaa) → U14_aaaaaaa(qs60_in_aa)
U16_aaaaaaa(part44_out_aaaa) → U17_aaaaaaa(qs60_in_aa)
U2_gaaa(less13_out_ga) → part23_out_gaaa
U3_gaaa(T70, less13_out_ga) → U4_gaaa(part23_in_gaaa(T70))
U5_gaaa(part23_out_gaaa) → part23_out_gaaa
U12_aaaaaaa(qs60_out_aa) → p43_out_aaaaaaa
U14_aaaaaaa(qs60_out_aa) → U15_aaaaaaa(qs60_in_aa)
U17_aaaaaaa(qs60_out_aa) → U18_aaaaaaa(qs60_in_aa)
less13_in_ga(0) → less13_out_ga
less13_in_ga(s(T45)) → U1_ga(less13_in_ga(T45))
U4_gaaa(part23_out_gaaa) → part23_out_gaaa
U15_aaaaaaa(qs60_out_aa) → p43_out_aaaaaaa
U18_aaaaaaa(qs60_out_aa) → U19_aaaaaaa(app71_in_aaaa)
U1_ga(less13_out_ga) → less13_out_ga
U19_aaaaaaa(app71_out_aaaa) → p43_out_aaaaaaa
app71_in_aaaa → app71_out_aaaa
app71_in_aaaa → U21_aaaa(app71_in_aaaa)
U21_aaaa(app71_out_aaaa) → app71_out_aaaa
part44_in_aaaa
qs60_in_aa
U6_aaaa(x0)
U7_aaaa(x0)
U9_aaaa(x0)
U20_aa(x0)
less13_in_aa
U8_aaaa(x0)
p43_in_aaaaaaa
U1_aa(x0)
part23_in_gaaa(x0)
U10_aaaaaaa(x0)
U11_aaaaaaa(x0)
U13_aaaaaaa(x0)
U16_aaaaaaa(x0)
U2_gaaa(x0)
U3_gaaa(x0, x1)
U5_gaaa(x0)
U12_aaaaaaa(x0)
U14_aaaaaaa(x0)
U17_aaaaaaa(x0)
less13_in_ga(x0)
U4_gaaa(x0)
U15_aaaaaaa(x0)
U18_aaaaaaa(x0)
U1_ga(x0)
U19_aaaaaaa(x0)
app71_in_aaaa
U21_aaaa(x0)
P43_IN_AAAAAAA → U11_AAAAAAA(U6_aaaa(less13_in_aa))
P43_IN_AAAAAAA → U11_AAAAAAA(U7_aaaa(less13_in_aa))
P43_IN_AAAAAAA → U11_AAAAAAA(U9_aaaa(part44_in_aaaa))
P43_IN_AAAAAAA → U11_AAAAAAA(part44_out_aaaa)
U11_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
QS60_IN_AA → P43_IN_AAAAAAA
P43_IN_AAAAAAA → U13_AAAAAAA(part44_in_aaaa)
U13_AAAAAAA(part44_out_aaaa) → U14_AAAAAAA(qs60_in_aa)
U14_AAAAAAA(qs60_out_aa) → QS60_IN_AA
U13_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
P43_IN_AAAAAAA → U16_AAAAAAA(part44_in_aaaa)
U16_AAAAAAA(part44_out_aaaa) → U17_AAAAAAA(qs60_in_aa)
U17_AAAAAAA(qs60_out_aa) → QS60_IN_AA
U16_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
P43_IN_AAAAAAA → U11_AAAAAAA(U6_aaaa(less13_in_aa))
P43_IN_AAAAAAA → U11_AAAAAAA(U7_aaaa(less13_in_aa))
P43_IN_AAAAAAA → U11_AAAAAAA(U9_aaaa(part44_in_aaaa))
P43_IN_AAAAAAA → U11_AAAAAAA(part44_out_aaaa)
part44_in_aaaa → U6_aaaa(less13_in_aa)
part44_in_aaaa → U7_aaaa(less13_in_aa)
part44_in_aaaa → U9_aaaa(part44_in_aaaa)
part44_in_aaaa → part44_out_aaaa
qs60_in_aa → qs60_out_aa
qs60_in_aa → U20_aa(p43_in_aaaaaaa)
U6_aaaa(less13_out_aa(T148)) → part44_out_aaaa
U7_aaaa(less13_out_aa(T153)) → U8_aaaa(part23_in_gaaa(T153))
U9_aaaa(part44_out_aaaa) → part44_out_aaaa
U20_aa(p43_out_aaaaaaa) → qs60_out_aa
less13_in_aa → less13_out_aa(0)
less13_in_aa → U1_aa(less13_in_aa)
U8_aaaa(part23_out_gaaa) → part44_out_aaaa
p43_in_aaaaaaa → U10_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaa → U11_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaa → U13_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaa → U16_aaaaaaa(part44_in_aaaa)
U1_aa(less13_out_aa(T45)) → less13_out_aa(s(T45))
part23_in_gaaa(T70) → U2_gaaa(less13_in_ga(T70))
part23_in_gaaa(T70) → U3_gaaa(T70, less13_in_ga(T70))
part23_in_gaaa(T95) → U5_gaaa(part23_in_gaaa(T95))
part23_in_gaaa(T104) → part23_out_gaaa
U10_aaaaaaa(part44_out_aaaa) → p43_out_aaaaaaa
U11_aaaaaaa(part44_out_aaaa) → U12_aaaaaaa(qs60_in_aa)
U13_aaaaaaa(part44_out_aaaa) → U14_aaaaaaa(qs60_in_aa)
U16_aaaaaaa(part44_out_aaaa) → U17_aaaaaaa(qs60_in_aa)
U2_gaaa(less13_out_ga) → part23_out_gaaa
U3_gaaa(T70, less13_out_ga) → U4_gaaa(part23_in_gaaa(T70))
U5_gaaa(part23_out_gaaa) → part23_out_gaaa
U12_aaaaaaa(qs60_out_aa) → p43_out_aaaaaaa
U14_aaaaaaa(qs60_out_aa) → U15_aaaaaaa(qs60_in_aa)
U17_aaaaaaa(qs60_out_aa) → U18_aaaaaaa(qs60_in_aa)
less13_in_ga(0) → less13_out_ga
less13_in_ga(s(T45)) → U1_ga(less13_in_ga(T45))
U4_gaaa(part23_out_gaaa) → part23_out_gaaa
U15_aaaaaaa(qs60_out_aa) → p43_out_aaaaaaa
U18_aaaaaaa(qs60_out_aa) → U19_aaaaaaa(app71_in_aaaa)
U1_ga(less13_out_ga) → less13_out_ga
U19_aaaaaaa(app71_out_aaaa) → p43_out_aaaaaaa
app71_in_aaaa → app71_out_aaaa
app71_in_aaaa → U21_aaaa(app71_in_aaaa)
U21_aaaa(app71_out_aaaa) → app71_out_aaaa
part44_in_aaaa
qs60_in_aa
U6_aaaa(x0)
U7_aaaa(x0)
U9_aaaa(x0)
U20_aa(x0)
less13_in_aa
U8_aaaa(x0)
p43_in_aaaaaaa
U1_aa(x0)
part23_in_gaaa(x0)
U10_aaaaaaa(x0)
U11_aaaaaaa(x0)
U13_aaaaaaa(x0)
U16_aaaaaaa(x0)
U2_gaaa(x0)
U3_gaaa(x0, x1)
U5_gaaa(x0)
U12_aaaaaaa(x0)
U14_aaaaaaa(x0)
U17_aaaaaaa(x0)
less13_in_ga(x0)
U4_gaaa(x0)
U15_aaaaaaa(x0)
U18_aaaaaaa(x0)
U1_ga(x0)
U19_aaaaaaa(x0)
app71_in_aaaa
U21_aaaa(x0)
P43_IN_AAAAAAA → U13_AAAAAAA(U6_aaaa(less13_in_aa))
P43_IN_AAAAAAA → U13_AAAAAAA(U7_aaaa(less13_in_aa))
P43_IN_AAAAAAA → U13_AAAAAAA(U9_aaaa(part44_in_aaaa))
P43_IN_AAAAAAA → U13_AAAAAAA(part44_out_aaaa)
U11_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
QS60_IN_AA → P43_IN_AAAAAAA
U13_AAAAAAA(part44_out_aaaa) → U14_AAAAAAA(qs60_in_aa)
U14_AAAAAAA(qs60_out_aa) → QS60_IN_AA
U13_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
P43_IN_AAAAAAA → U16_AAAAAAA(part44_in_aaaa)
U16_AAAAAAA(part44_out_aaaa) → U17_AAAAAAA(qs60_in_aa)
U17_AAAAAAA(qs60_out_aa) → QS60_IN_AA
U16_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
P43_IN_AAAAAAA → U11_AAAAAAA(U6_aaaa(less13_in_aa))
P43_IN_AAAAAAA → U11_AAAAAAA(U7_aaaa(less13_in_aa))
P43_IN_AAAAAAA → U11_AAAAAAA(U9_aaaa(part44_in_aaaa))
P43_IN_AAAAAAA → U11_AAAAAAA(part44_out_aaaa)
P43_IN_AAAAAAA → U13_AAAAAAA(U6_aaaa(less13_in_aa))
P43_IN_AAAAAAA → U13_AAAAAAA(U7_aaaa(less13_in_aa))
P43_IN_AAAAAAA → U13_AAAAAAA(U9_aaaa(part44_in_aaaa))
P43_IN_AAAAAAA → U13_AAAAAAA(part44_out_aaaa)
part44_in_aaaa → U6_aaaa(less13_in_aa)
part44_in_aaaa → U7_aaaa(less13_in_aa)
part44_in_aaaa → U9_aaaa(part44_in_aaaa)
part44_in_aaaa → part44_out_aaaa
qs60_in_aa → qs60_out_aa
qs60_in_aa → U20_aa(p43_in_aaaaaaa)
U6_aaaa(less13_out_aa(T148)) → part44_out_aaaa
U7_aaaa(less13_out_aa(T153)) → U8_aaaa(part23_in_gaaa(T153))
U9_aaaa(part44_out_aaaa) → part44_out_aaaa
U20_aa(p43_out_aaaaaaa) → qs60_out_aa
less13_in_aa → less13_out_aa(0)
less13_in_aa → U1_aa(less13_in_aa)
U8_aaaa(part23_out_gaaa) → part44_out_aaaa
p43_in_aaaaaaa → U10_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaa → U11_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaa → U13_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaa → U16_aaaaaaa(part44_in_aaaa)
U1_aa(less13_out_aa(T45)) → less13_out_aa(s(T45))
part23_in_gaaa(T70) → U2_gaaa(less13_in_ga(T70))
part23_in_gaaa(T70) → U3_gaaa(T70, less13_in_ga(T70))
part23_in_gaaa(T95) → U5_gaaa(part23_in_gaaa(T95))
part23_in_gaaa(T104) → part23_out_gaaa
U10_aaaaaaa(part44_out_aaaa) → p43_out_aaaaaaa
U11_aaaaaaa(part44_out_aaaa) → U12_aaaaaaa(qs60_in_aa)
U13_aaaaaaa(part44_out_aaaa) → U14_aaaaaaa(qs60_in_aa)
U16_aaaaaaa(part44_out_aaaa) → U17_aaaaaaa(qs60_in_aa)
U2_gaaa(less13_out_ga) → part23_out_gaaa
U3_gaaa(T70, less13_out_ga) → U4_gaaa(part23_in_gaaa(T70))
U5_gaaa(part23_out_gaaa) → part23_out_gaaa
U12_aaaaaaa(qs60_out_aa) → p43_out_aaaaaaa
U14_aaaaaaa(qs60_out_aa) → U15_aaaaaaa(qs60_in_aa)
U17_aaaaaaa(qs60_out_aa) → U18_aaaaaaa(qs60_in_aa)
less13_in_ga(0) → less13_out_ga
less13_in_ga(s(T45)) → U1_ga(less13_in_ga(T45))
U4_gaaa(part23_out_gaaa) → part23_out_gaaa
U15_aaaaaaa(qs60_out_aa) → p43_out_aaaaaaa
U18_aaaaaaa(qs60_out_aa) → U19_aaaaaaa(app71_in_aaaa)
U1_ga(less13_out_ga) → less13_out_ga
U19_aaaaaaa(app71_out_aaaa) → p43_out_aaaaaaa
app71_in_aaaa → app71_out_aaaa
app71_in_aaaa → U21_aaaa(app71_in_aaaa)
U21_aaaa(app71_out_aaaa) → app71_out_aaaa
part44_in_aaaa
qs60_in_aa
U6_aaaa(x0)
U7_aaaa(x0)
U9_aaaa(x0)
U20_aa(x0)
less13_in_aa
U8_aaaa(x0)
p43_in_aaaaaaa
U1_aa(x0)
part23_in_gaaa(x0)
U10_aaaaaaa(x0)
U11_aaaaaaa(x0)
U13_aaaaaaa(x0)
U16_aaaaaaa(x0)
U2_gaaa(x0)
U3_gaaa(x0, x1)
U5_gaaa(x0)
U12_aaaaaaa(x0)
U14_aaaaaaa(x0)
U17_aaaaaaa(x0)
less13_in_ga(x0)
U4_gaaa(x0)
U15_aaaaaaa(x0)
U18_aaaaaaa(x0)
U1_ga(x0)
U19_aaaaaaa(x0)
app71_in_aaaa
U21_aaaa(x0)
U13_AAAAAAA(part44_out_aaaa) → U14_AAAAAAA(qs60_out_aa)
U13_AAAAAAA(part44_out_aaaa) → U14_AAAAAAA(U20_aa(p43_in_aaaaaaa))
U11_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
QS60_IN_AA → P43_IN_AAAAAAA
U14_AAAAAAA(qs60_out_aa) → QS60_IN_AA
U13_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
P43_IN_AAAAAAA → U16_AAAAAAA(part44_in_aaaa)
U16_AAAAAAA(part44_out_aaaa) → U17_AAAAAAA(qs60_in_aa)
U17_AAAAAAA(qs60_out_aa) → QS60_IN_AA
U16_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
P43_IN_AAAAAAA → U11_AAAAAAA(U6_aaaa(less13_in_aa))
P43_IN_AAAAAAA → U11_AAAAAAA(U7_aaaa(less13_in_aa))
P43_IN_AAAAAAA → U11_AAAAAAA(U9_aaaa(part44_in_aaaa))
P43_IN_AAAAAAA → U11_AAAAAAA(part44_out_aaaa)
P43_IN_AAAAAAA → U13_AAAAAAA(U6_aaaa(less13_in_aa))
P43_IN_AAAAAAA → U13_AAAAAAA(U7_aaaa(less13_in_aa))
P43_IN_AAAAAAA → U13_AAAAAAA(U9_aaaa(part44_in_aaaa))
P43_IN_AAAAAAA → U13_AAAAAAA(part44_out_aaaa)
U13_AAAAAAA(part44_out_aaaa) → U14_AAAAAAA(qs60_out_aa)
U13_AAAAAAA(part44_out_aaaa) → U14_AAAAAAA(U20_aa(p43_in_aaaaaaa))
part44_in_aaaa → U6_aaaa(less13_in_aa)
part44_in_aaaa → U7_aaaa(less13_in_aa)
part44_in_aaaa → U9_aaaa(part44_in_aaaa)
part44_in_aaaa → part44_out_aaaa
qs60_in_aa → qs60_out_aa
qs60_in_aa → U20_aa(p43_in_aaaaaaa)
U6_aaaa(less13_out_aa(T148)) → part44_out_aaaa
U7_aaaa(less13_out_aa(T153)) → U8_aaaa(part23_in_gaaa(T153))
U9_aaaa(part44_out_aaaa) → part44_out_aaaa
U20_aa(p43_out_aaaaaaa) → qs60_out_aa
less13_in_aa → less13_out_aa(0)
less13_in_aa → U1_aa(less13_in_aa)
U8_aaaa(part23_out_gaaa) → part44_out_aaaa
p43_in_aaaaaaa → U10_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaa → U11_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaa → U13_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaa → U16_aaaaaaa(part44_in_aaaa)
U1_aa(less13_out_aa(T45)) → less13_out_aa(s(T45))
part23_in_gaaa(T70) → U2_gaaa(less13_in_ga(T70))
part23_in_gaaa(T70) → U3_gaaa(T70, less13_in_ga(T70))
part23_in_gaaa(T95) → U5_gaaa(part23_in_gaaa(T95))
part23_in_gaaa(T104) → part23_out_gaaa
U10_aaaaaaa(part44_out_aaaa) → p43_out_aaaaaaa
U11_aaaaaaa(part44_out_aaaa) → U12_aaaaaaa(qs60_in_aa)
U13_aaaaaaa(part44_out_aaaa) → U14_aaaaaaa(qs60_in_aa)
U16_aaaaaaa(part44_out_aaaa) → U17_aaaaaaa(qs60_in_aa)
U2_gaaa(less13_out_ga) → part23_out_gaaa
U3_gaaa(T70, less13_out_ga) → U4_gaaa(part23_in_gaaa(T70))
U5_gaaa(part23_out_gaaa) → part23_out_gaaa
U12_aaaaaaa(qs60_out_aa) → p43_out_aaaaaaa
U14_aaaaaaa(qs60_out_aa) → U15_aaaaaaa(qs60_in_aa)
U17_aaaaaaa(qs60_out_aa) → U18_aaaaaaa(qs60_in_aa)
less13_in_ga(0) → less13_out_ga
less13_in_ga(s(T45)) → U1_ga(less13_in_ga(T45))
U4_gaaa(part23_out_gaaa) → part23_out_gaaa
U15_aaaaaaa(qs60_out_aa) → p43_out_aaaaaaa
U18_aaaaaaa(qs60_out_aa) → U19_aaaaaaa(app71_in_aaaa)
U1_ga(less13_out_ga) → less13_out_ga
U19_aaaaaaa(app71_out_aaaa) → p43_out_aaaaaaa
app71_in_aaaa → app71_out_aaaa
app71_in_aaaa → U21_aaaa(app71_in_aaaa)
U21_aaaa(app71_out_aaaa) → app71_out_aaaa
part44_in_aaaa
qs60_in_aa
U6_aaaa(x0)
U7_aaaa(x0)
U9_aaaa(x0)
U20_aa(x0)
less13_in_aa
U8_aaaa(x0)
p43_in_aaaaaaa
U1_aa(x0)
part23_in_gaaa(x0)
U10_aaaaaaa(x0)
U11_aaaaaaa(x0)
U13_aaaaaaa(x0)
U16_aaaaaaa(x0)
U2_gaaa(x0)
U3_gaaa(x0, x1)
U5_gaaa(x0)
U12_aaaaaaa(x0)
U14_aaaaaaa(x0)
U17_aaaaaaa(x0)
less13_in_ga(x0)
U4_gaaa(x0)
U15_aaaaaaa(x0)
U18_aaaaaaa(x0)
U1_ga(x0)
U19_aaaaaaa(x0)
app71_in_aaaa
U21_aaaa(x0)
P43_IN_AAAAAAA → U16_AAAAAAA(U6_aaaa(less13_in_aa))
P43_IN_AAAAAAA → U16_AAAAAAA(U7_aaaa(less13_in_aa))
P43_IN_AAAAAAA → U16_AAAAAAA(U9_aaaa(part44_in_aaaa))
P43_IN_AAAAAAA → U16_AAAAAAA(part44_out_aaaa)
U11_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
QS60_IN_AA → P43_IN_AAAAAAA
U14_AAAAAAA(qs60_out_aa) → QS60_IN_AA
U13_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
U16_AAAAAAA(part44_out_aaaa) → U17_AAAAAAA(qs60_in_aa)
U17_AAAAAAA(qs60_out_aa) → QS60_IN_AA
U16_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
P43_IN_AAAAAAA → U11_AAAAAAA(U6_aaaa(less13_in_aa))
P43_IN_AAAAAAA → U11_AAAAAAA(U7_aaaa(less13_in_aa))
P43_IN_AAAAAAA → U11_AAAAAAA(U9_aaaa(part44_in_aaaa))
P43_IN_AAAAAAA → U11_AAAAAAA(part44_out_aaaa)
P43_IN_AAAAAAA → U13_AAAAAAA(U6_aaaa(less13_in_aa))
P43_IN_AAAAAAA → U13_AAAAAAA(U7_aaaa(less13_in_aa))
P43_IN_AAAAAAA → U13_AAAAAAA(U9_aaaa(part44_in_aaaa))
P43_IN_AAAAAAA → U13_AAAAAAA(part44_out_aaaa)
U13_AAAAAAA(part44_out_aaaa) → U14_AAAAAAA(qs60_out_aa)
U13_AAAAAAA(part44_out_aaaa) → U14_AAAAAAA(U20_aa(p43_in_aaaaaaa))
P43_IN_AAAAAAA → U16_AAAAAAA(U6_aaaa(less13_in_aa))
P43_IN_AAAAAAA → U16_AAAAAAA(U7_aaaa(less13_in_aa))
P43_IN_AAAAAAA → U16_AAAAAAA(U9_aaaa(part44_in_aaaa))
P43_IN_AAAAAAA → U16_AAAAAAA(part44_out_aaaa)
part44_in_aaaa → U6_aaaa(less13_in_aa)
part44_in_aaaa → U7_aaaa(less13_in_aa)
part44_in_aaaa → U9_aaaa(part44_in_aaaa)
part44_in_aaaa → part44_out_aaaa
qs60_in_aa → qs60_out_aa
qs60_in_aa → U20_aa(p43_in_aaaaaaa)
U6_aaaa(less13_out_aa(T148)) → part44_out_aaaa
U7_aaaa(less13_out_aa(T153)) → U8_aaaa(part23_in_gaaa(T153))
U9_aaaa(part44_out_aaaa) → part44_out_aaaa
U20_aa(p43_out_aaaaaaa) → qs60_out_aa
less13_in_aa → less13_out_aa(0)
less13_in_aa → U1_aa(less13_in_aa)
U8_aaaa(part23_out_gaaa) → part44_out_aaaa
p43_in_aaaaaaa → U10_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaa → U11_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaa → U13_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaa → U16_aaaaaaa(part44_in_aaaa)
U1_aa(less13_out_aa(T45)) → less13_out_aa(s(T45))
part23_in_gaaa(T70) → U2_gaaa(less13_in_ga(T70))
part23_in_gaaa(T70) → U3_gaaa(T70, less13_in_ga(T70))
part23_in_gaaa(T95) → U5_gaaa(part23_in_gaaa(T95))
part23_in_gaaa(T104) → part23_out_gaaa
U10_aaaaaaa(part44_out_aaaa) → p43_out_aaaaaaa
U11_aaaaaaa(part44_out_aaaa) → U12_aaaaaaa(qs60_in_aa)
U13_aaaaaaa(part44_out_aaaa) → U14_aaaaaaa(qs60_in_aa)
U16_aaaaaaa(part44_out_aaaa) → U17_aaaaaaa(qs60_in_aa)
U2_gaaa(less13_out_ga) → part23_out_gaaa
U3_gaaa(T70, less13_out_ga) → U4_gaaa(part23_in_gaaa(T70))
U5_gaaa(part23_out_gaaa) → part23_out_gaaa
U12_aaaaaaa(qs60_out_aa) → p43_out_aaaaaaa
U14_aaaaaaa(qs60_out_aa) → U15_aaaaaaa(qs60_in_aa)
U17_aaaaaaa(qs60_out_aa) → U18_aaaaaaa(qs60_in_aa)
less13_in_ga(0) → less13_out_ga
less13_in_ga(s(T45)) → U1_ga(less13_in_ga(T45))
U4_gaaa(part23_out_gaaa) → part23_out_gaaa
U15_aaaaaaa(qs60_out_aa) → p43_out_aaaaaaa
U18_aaaaaaa(qs60_out_aa) → U19_aaaaaaa(app71_in_aaaa)
U1_ga(less13_out_ga) → less13_out_ga
U19_aaaaaaa(app71_out_aaaa) → p43_out_aaaaaaa
app71_in_aaaa → app71_out_aaaa
app71_in_aaaa → U21_aaaa(app71_in_aaaa)
U21_aaaa(app71_out_aaaa) → app71_out_aaaa
part44_in_aaaa
qs60_in_aa
U6_aaaa(x0)
U7_aaaa(x0)
U9_aaaa(x0)
U20_aa(x0)
less13_in_aa
U8_aaaa(x0)
p43_in_aaaaaaa
U1_aa(x0)
part23_in_gaaa(x0)
U10_aaaaaaa(x0)
U11_aaaaaaa(x0)
U13_aaaaaaa(x0)
U16_aaaaaaa(x0)
U2_gaaa(x0)
U3_gaaa(x0, x1)
U5_gaaa(x0)
U12_aaaaaaa(x0)
U14_aaaaaaa(x0)
U17_aaaaaaa(x0)
less13_in_ga(x0)
U4_gaaa(x0)
U15_aaaaaaa(x0)
U18_aaaaaaa(x0)
U1_ga(x0)
U19_aaaaaaa(x0)
app71_in_aaaa
U21_aaaa(x0)
U16_AAAAAAA(part44_out_aaaa) → U17_AAAAAAA(qs60_out_aa)
U16_AAAAAAA(part44_out_aaaa) → U17_AAAAAAA(U20_aa(p43_in_aaaaaaa))
U11_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
QS60_IN_AA → P43_IN_AAAAAAA
U14_AAAAAAA(qs60_out_aa) → QS60_IN_AA
U13_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
U17_AAAAAAA(qs60_out_aa) → QS60_IN_AA
U16_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
P43_IN_AAAAAAA → U11_AAAAAAA(U6_aaaa(less13_in_aa))
P43_IN_AAAAAAA → U11_AAAAAAA(U7_aaaa(less13_in_aa))
P43_IN_AAAAAAA → U11_AAAAAAA(U9_aaaa(part44_in_aaaa))
P43_IN_AAAAAAA → U11_AAAAAAA(part44_out_aaaa)
P43_IN_AAAAAAA → U13_AAAAAAA(U6_aaaa(less13_in_aa))
P43_IN_AAAAAAA → U13_AAAAAAA(U7_aaaa(less13_in_aa))
P43_IN_AAAAAAA → U13_AAAAAAA(U9_aaaa(part44_in_aaaa))
P43_IN_AAAAAAA → U13_AAAAAAA(part44_out_aaaa)
U13_AAAAAAA(part44_out_aaaa) → U14_AAAAAAA(qs60_out_aa)
U13_AAAAAAA(part44_out_aaaa) → U14_AAAAAAA(U20_aa(p43_in_aaaaaaa))
P43_IN_AAAAAAA → U16_AAAAAAA(U6_aaaa(less13_in_aa))
P43_IN_AAAAAAA → U16_AAAAAAA(U7_aaaa(less13_in_aa))
P43_IN_AAAAAAA → U16_AAAAAAA(U9_aaaa(part44_in_aaaa))
P43_IN_AAAAAAA → U16_AAAAAAA(part44_out_aaaa)
U16_AAAAAAA(part44_out_aaaa) → U17_AAAAAAA(qs60_out_aa)
U16_AAAAAAA(part44_out_aaaa) → U17_AAAAAAA(U20_aa(p43_in_aaaaaaa))
part44_in_aaaa → U6_aaaa(less13_in_aa)
part44_in_aaaa → U7_aaaa(less13_in_aa)
part44_in_aaaa → U9_aaaa(part44_in_aaaa)
part44_in_aaaa → part44_out_aaaa
qs60_in_aa → qs60_out_aa
qs60_in_aa → U20_aa(p43_in_aaaaaaa)
U6_aaaa(less13_out_aa(T148)) → part44_out_aaaa
U7_aaaa(less13_out_aa(T153)) → U8_aaaa(part23_in_gaaa(T153))
U9_aaaa(part44_out_aaaa) → part44_out_aaaa
U20_aa(p43_out_aaaaaaa) → qs60_out_aa
less13_in_aa → less13_out_aa(0)
less13_in_aa → U1_aa(less13_in_aa)
U8_aaaa(part23_out_gaaa) → part44_out_aaaa
p43_in_aaaaaaa → U10_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaa → U11_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaa → U13_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaa → U16_aaaaaaa(part44_in_aaaa)
U1_aa(less13_out_aa(T45)) → less13_out_aa(s(T45))
part23_in_gaaa(T70) → U2_gaaa(less13_in_ga(T70))
part23_in_gaaa(T70) → U3_gaaa(T70, less13_in_ga(T70))
part23_in_gaaa(T95) → U5_gaaa(part23_in_gaaa(T95))
part23_in_gaaa(T104) → part23_out_gaaa
U10_aaaaaaa(part44_out_aaaa) → p43_out_aaaaaaa
U11_aaaaaaa(part44_out_aaaa) → U12_aaaaaaa(qs60_in_aa)
U13_aaaaaaa(part44_out_aaaa) → U14_aaaaaaa(qs60_in_aa)
U16_aaaaaaa(part44_out_aaaa) → U17_aaaaaaa(qs60_in_aa)
U2_gaaa(less13_out_ga) → part23_out_gaaa
U3_gaaa(T70, less13_out_ga) → U4_gaaa(part23_in_gaaa(T70))
U5_gaaa(part23_out_gaaa) → part23_out_gaaa
U12_aaaaaaa(qs60_out_aa) → p43_out_aaaaaaa
U14_aaaaaaa(qs60_out_aa) → U15_aaaaaaa(qs60_in_aa)
U17_aaaaaaa(qs60_out_aa) → U18_aaaaaaa(qs60_in_aa)
less13_in_ga(0) → less13_out_ga
less13_in_ga(s(T45)) → U1_ga(less13_in_ga(T45))
U4_gaaa(part23_out_gaaa) → part23_out_gaaa
U15_aaaaaaa(qs60_out_aa) → p43_out_aaaaaaa
U18_aaaaaaa(qs60_out_aa) → U19_aaaaaaa(app71_in_aaaa)
U1_ga(less13_out_ga) → less13_out_ga
U19_aaaaaaa(app71_out_aaaa) → p43_out_aaaaaaa
app71_in_aaaa → app71_out_aaaa
app71_in_aaaa → U21_aaaa(app71_in_aaaa)
U21_aaaa(app71_out_aaaa) → app71_out_aaaa
part44_in_aaaa
qs60_in_aa
U6_aaaa(x0)
U7_aaaa(x0)
U9_aaaa(x0)
U20_aa(x0)
less13_in_aa
U8_aaaa(x0)
p43_in_aaaaaaa
U1_aa(x0)
part23_in_gaaa(x0)
U10_aaaaaaa(x0)
U11_aaaaaaa(x0)
U13_aaaaaaa(x0)
U16_aaaaaaa(x0)
U2_gaaa(x0)
U3_gaaa(x0, x1)
U5_gaaa(x0)
U12_aaaaaaa(x0)
U14_aaaaaaa(x0)
U17_aaaaaaa(x0)
less13_in_ga(x0)
U4_gaaa(x0)
U15_aaaaaaa(x0)
U18_aaaaaaa(x0)
U1_ga(x0)
U19_aaaaaaa(x0)
app71_in_aaaa
U21_aaaa(x0)