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 NonTerminationProof (⇔)
↳29 NO
↳30 PiDP
↳31 UsableRulesProof (⇔)
↳32 PiDP
↳33 PiDPToQDPProof (⇐)
↳34 QDP
↳35 NonTerminationProof (⇔)
↳36 NO
↳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 QDPSizeChangeProof (⇔)
↳57 YES
↳58 PiDP
↳59 UsableRulesProof (⇔)
↳60 PiDP
↳61 PiDPToQDPProof (⇐)
↳62 QDP
↳63 Narrowing (⇐)
↳64 QDP
↳65 Narrowing (⇐)
↳66 QDP
↳67 Instantiation (⇔)
↳68 QDP
↳69 Instantiation (⇔)
↳70 QDP
↳71 DependencyGraphProof (⇔)
↳72 AND
↳73 QDP
↳74 UsableRulesProof (⇔)
↳75 QDP
↳76 QReductionProof (⇔)
↳77 QDP
↳78 NonTerminationProof (⇔)
↳79 NO
↳80 QDP
↳81 NonTerminationProof (⇔)
↳82 NO
↳83 PiDP
↳84 UsableRulesProof (⇔)
↳85 PiDP
↳86 PiDPToQDPProof (⇐)
↳87 QDP
↳88 NonTerminationProof (⇔)
↳89 NO
↳90 PiDP
↳91 UsableRulesProof (⇔)
↳92 PiDP
↳93 PiDPToQDPProof (⇐)
↳94 QDP
↳95 Narrowing (⇐)
↳96 QDP
↳97 Narrowing (⇐)
↳98 QDP
↳99 NonTerminationProof (⇔)
↳100 NO
↳101 PiDP
↳102 UsableRulesProof (⇔)
↳103 PiDP
↳104 PiDPToQDPProof (⇐)
↳105 QDP
↳106 Narrowing (⇐)
↳107 QDP
↳108 Narrowing (⇐)
↳109 QDP
↳110 NonTerminationProof (⇔)
↳111 NO
↳112 PiDP
↳113 UsableRulesProof (⇔)
↳114 PiDP
↳115 PiDPToQDPProof (⇔)
↳116 QDP
↳117 QDPSizeChangeProof (⇔)
↳118 YES
↳119 PiDP
↳120 UsableRulesProof (⇔)
↳121 PiDP
↳122 PiDPToQDPProof (⇔)
↳123 QDP
↳124 QDPSizeChangeProof (⇔)
↳125 YES
↳126 PiDP
↳127 UsableRulesProof (⇔)
↳128 PiDP
↳129 PiDPToQDPProof (⇐)
↳130 QDP
↳131 QDPSizeChangeProof (⇔)
↳132 YES
↳133 PrologToPiTRSProof (⇐)
↳134 PiTRS
↳135 DependencyPairsProof (⇔)
↳136 PiDP
↳137 DependencyGraphProof (⇔)
↳138 AND
↳139 PiDP
↳140 UsableRulesProof (⇔)
↳141 PiDP
↳142 PiDPToQDPProof (⇐)
↳143 QDP
↳144 QDPSizeChangeProof (⇔)
↳145 YES
↳146 PiDP
↳147 UsableRulesProof (⇔)
↳148 PiDP
↳149 PiDPToQDPProof (⇐)
↳150 QDP
↳151 QDPSizeChangeProof (⇔)
↳152 YES
↳153 PiDP
↳154 UsableRulesProof (⇔)
↳155 PiDP
↳156 PiDPToQDPProof (⇐)
↳157 QDP
↳158 NonTerminationProof (⇔)
↳159 NO
↳160 PiDP
↳161 UsableRulesProof (⇔)
↳162 PiDP
↳163 PiDPToQDPProof (⇐)
↳164 QDP
↳165 NonTerminationProof (⇔)
↳166 NO
↳167 PiDP
↳168 UsableRulesProof (⇔)
↳169 PiDP
↳170 PiDPToQDPProof (⇐)
↳171 QDP
↳172 NonTerminationProof (⇔)
↳173 NO
↳174 PiDP
↳175 UsableRulesProof (⇔)
↳176 PiDP
↳177 PiDPToQDPProof (⇐)
↳178 QDP
↳179 QDPSizeChangeProof (⇔)
↳180 YES
↳181 PiDP
↳182 UsableRulesProof (⇔)
↳183 PiDP
↳184 PiDPToQDPProof (⇐)
↳185 QDP
↳186 QDPSizeChangeProof (⇔)
↳187 YES
↳188 PiDP
↳189 UsableRulesProof (⇔)
↳190 PiDP
↳191 PiDPToQDPProof (⇐)
↳192 QDP
↳193 Narrowing (⇐)
↳194 QDP
↳195 Narrowing (⇐)
↳196 QDP
↳197 Instantiation (⇔)
↳198 QDP
↳199 Instantiation (⇔)
↳200 QDP
↳201 DependencyGraphProof (⇔)
↳202 AND
↳203 QDP
↳204 UsableRulesProof (⇔)
↳205 QDP
↳206 QReductionProof (⇔)
↳207 QDP
↳208 NonTerminationProof (⇔)
↳209 NO
↳210 QDP
↳211 NonTerminationProof (⇔)
↳212 NO
↳213 PiDP
↳214 UsableRulesProof (⇔)
↳215 PiDP
↳216 PiDPToQDPProof (⇐)
↳217 QDP
↳218 NonTerminationProof (⇔)
↳219 NO
↳220 PiDP
↳221 UsableRulesProof (⇔)
↳222 PiDP
↳223 PiDPToQDPProof (⇐)
↳224 QDP
↳225 Narrowing (⇐)
↳226 QDP
↳227 Narrowing (⇐)
↳228 QDP
↳229 NonTerminationProof (⇔)
↳230 NO
↳231 PiDP
↳232 UsableRulesProof (⇔)
↳233 PiDP
↳234 PiDPToQDPProof (⇐)
↳235 QDP
↳236 Narrowing (⇐)
↳237 QDP
↳238 Narrowing (⇐)
↳239 QDP
↳240 NonTerminationProof (⇔)
↳241 NO
↳242 PiDP
↳243 UsableRulesProof (⇔)
↳244 PiDP
↳245 PiDPToQDPProof (⇔)
↳246 QDP
↳247 QDPSizeChangeProof (⇔)
↳248 YES
↳249 PiDP
↳250 UsableRulesProof (⇔)
↳251 PiDP
↳252 PiDPToQDPProof (⇔)
↳253 QDP
↳254 QDPSizeChangeProof (⇔)
↳255 YES
↳256 PiDP
↳257 UsableRulesProof (⇔)
↳258 PiDP
↳259 PiDPToQDPProof (⇐)
↳260 QDP
↳261 QDPSizeChangeProof (⇔)
↳262 YES
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(T106)) → le33_out_gg(0, s(T106))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T112, [], [], []) → part20_out_ggaa(T112, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(T106)) → le33_out_ga(0, s(T106))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T112, [], [], []) → part20_out_gaaa(T112, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T239, .(T240, T241)), T9) → U25_aa(T239, T240, T241, T9, le33_in_aa(T239, T240))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(T106)) → le33_out_aa(0, s(T106))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U26_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, X437, X438))
U26_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, X437, X438)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U27_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, T249, T250))
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U28_aa(T239, T240, T241, T9, qs53_in_aa(T249, X9))
qs53_in_aa(.(T131, T132), X275) → U7_aa(T131, T132, X275, part20_in_aaaa(T131, T132, X271, X272))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T112, [], [], []) → part20_out_aaaa(T112, [], [], [])
U7_aa(T131, T132, X275, part20_out_aaaa(T131, T132, X271, X272)) → qs53_out_aa(.(T131, T132), X275)
qs53_in_aa(.(T131, T132), X275) → U8_aa(T131, T132, X275, part20_in_aaaa(T131, T132, T136, T137))
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U9_aa(T131, T132, X275, qs53_in_aa(T136, X273))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T131, T132, X275, qs53_out_aa(T136, X273)) → qs53_out_aa(.(T131, T132), X275)
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U10_aa(T131, T132, X275, T137, qs53_in_aa(T136, T143))
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U11_aa(T131, T132, X275, qs53_in_aa(T137, X274))
U11_aa(T131, T132, X275, qs53_out_aa(T137, X274)) → qs53_out_aa(.(T131, T132), X275)
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U12_aa(T131, T132, X275, T143, qs53_in_aa(T137, T148))
U12_aa(T131, T132, X275, T143, qs53_out_aa(T137, T148)) → U13_aa(T131, T132, X275, app65_in_aaaa(T143, T131, T148, X275))
app65_in_aaaa(.(T171, T172), T173, T174, .(T171, X354)) → U14_aaaa(T171, T172, T173, T174, X354, app65_in_aaaa(T172, T173, T174, X354))
app65_in_aaaa([], T183, T184, .(T183, T184)) → app65_out_aaaa([], T183, T184, .(T183, T184))
U14_aaaa(T171, T172, T173, T174, X354, app65_out_aaaa(T172, T173, T174, X354)) → app65_out_aaaa(.(T171, T172), T173, T174, .(T171, X354))
U13_aa(T131, T132, X275, app65_out_aaaa(T143, T131, T148, X275)) → qs53_out_aa(.(T131, T132), X275)
U28_aa(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U29_aa(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_aa(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_aa(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
p52_in_aaaga(T45, X10, T115, T22, T9) → U16_aaaga(T45, X10, T115, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T115, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T115, T22, T9)
p52_in_aaaga(T45, T120, T115, T22, T9) → U17_aaaga(T45, T120, T115, T22, T9, qs53_in_aa(T45, T120))
U17_aaaga(T45, T120, T115, T22, T9, qs53_out_aa(T45, T120)) → U18_aaaga(T45, T120, T115, T22, T9, app54_in_agaa(T115, T22, T120, T9))
app54_in_agaa(.(T210, T211), T212, T213, .(T210, T215)) → U15_agaa(T210, T211, T212, T213, T215, app54_in_agaa(T211, T212, T213, T215))
app54_in_agaa([], T225, T226, .(T225, T226)) → app54_out_agaa([], T225, T226, .(T225, T226))
U15_agaa(T210, T211, T212, T213, T215, app54_out_agaa(T211, T212, T213, T215)) → app54_out_agaa(.(T210, T211), T212, T213, .(T210, T215))
U18_aaaga(T45, T120, T115, T22, T9, app54_out_agaa(T115, T22, T120, T9)) → p52_out_aaaga(T45, T120, T115, T22, T9)
U30_aa(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
qs1_in_aa(.(T265, []), T9) → U31_aa(T265, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T265, T9, qs99_out_a(X9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa(.(T265, []), T9) → U32_aa(T265, T9, qs99_in_a(T268))
U32_aa(T265, T9, qs99_out_a(T268)) → U33_aa(T265, T9, qs99_in_a(X10))
U33_aa(T265, T9, qs99_out_a(X10)) → qs1_out_aa(.(T265, []), T9)
U32_aa(T265, T9, qs99_out_a(T268)) → U34_aa(T265, T9, T268, qs99_in_a(T273))
U34_aa(T265, T9, T268, qs99_out_a(T273)) → U35_aa(T265, T9, app54_in_gaga(T268, T265, T273, T9))
app54_in_gaga(.(T210, T211), T212, T213, .(T210, T215)) → U15_gaga(T210, T211, T212, T213, T215, app54_in_gaga(T211, T212, T213, T215))
app54_in_gaga([], T225, T226, .(T225, T226)) → app54_out_gaga([], T225, T226, .(T225, T226))
U15_gaga(T210, T211, T212, T213, T215, app54_out_gaga(T211, T212, T213, T215)) → app54_out_gaga(.(T210, T211), T212, T213, .(T210, T215))
U35_aa(T265, T9, app54_out_gaga(T268, T265, T273, T9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T239, .(T240, T241)), T9) → U25_ga(T239, T240, T241, T9, le33_in_gg(T239, T240))
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U26_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, X437, X438))
U26_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, X437, X438)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U27_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, T249, T250))
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U28_ga(T239, T240, T241, T9, qs53_in_aa(T249, X9))
U28_ga(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U29_ga(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_ga(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_ga(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
U30_ga(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
qs1_in_ga(.(T265, []), T9) → U31_ga(T265, T9, qs99_in_a(X9))
U31_ga(T265, T9, qs99_out_a(X9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga(.(T265, []), T9) → U32_ga(T265, T9, qs99_in_a(T268))
U32_ga(T265, T9, qs99_out_a(T268)) → U33_ga(T265, T9, qs99_in_a(X10))
U33_ga(T265, T9, qs99_out_a(X10)) → qs1_out_ga(.(T265, []), T9)
U32_ga(T265, T9, qs99_out_a(T268)) → U34_ga(T265, T9, T268, qs99_in_a(T273))
U34_ga(T265, T9, T268, qs99_out_a(T273)) → U35_ga(T265, T9, app54_in_ggga(T268, T265, T273, T9))
app54_in_ggga(.(T210, T211), T212, T213, .(T210, T215)) → U15_ggga(T210, T211, T212, T213, T215, app54_in_ggga(T211, T212, T213, T215))
app54_in_ggga([], T225, T226, .(T225, T226)) → app54_out_ggga([], T225, T226, .(T225, T226))
U15_ggga(T210, T211, T212, T213, T215, app54_out_ggga(T211, T212, T213, T215)) → app54_out_ggga(.(T210, T211), T212, T213, .(T210, T215))
U35_ga(T265, T9, app54_out_ggga(T268, T265, T273, T9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(T106)) → le33_out_gg(0, s(T106))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T112, [], [], []) → part20_out_ggaa(T112, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(T106)) → le33_out_ga(0, s(T106))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T112, [], [], []) → part20_out_gaaa(T112, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T239, .(T240, T241)), T9) → U25_aa(T239, T240, T241, T9, le33_in_aa(T239, T240))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(T106)) → le33_out_aa(0, s(T106))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U26_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, X437, X438))
U26_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, X437, X438)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U27_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, T249, T250))
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U28_aa(T239, T240, T241, T9, qs53_in_aa(T249, X9))
qs53_in_aa(.(T131, T132), X275) → U7_aa(T131, T132, X275, part20_in_aaaa(T131, T132, X271, X272))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T112, [], [], []) → part20_out_aaaa(T112, [], [], [])
U7_aa(T131, T132, X275, part20_out_aaaa(T131, T132, X271, X272)) → qs53_out_aa(.(T131, T132), X275)
qs53_in_aa(.(T131, T132), X275) → U8_aa(T131, T132, X275, part20_in_aaaa(T131, T132, T136, T137))
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U9_aa(T131, T132, X275, qs53_in_aa(T136, X273))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T131, T132, X275, qs53_out_aa(T136, X273)) → qs53_out_aa(.(T131, T132), X275)
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U10_aa(T131, T132, X275, T137, qs53_in_aa(T136, T143))
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U11_aa(T131, T132, X275, qs53_in_aa(T137, X274))
U11_aa(T131, T132, X275, qs53_out_aa(T137, X274)) → qs53_out_aa(.(T131, T132), X275)
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U12_aa(T131, T132, X275, T143, qs53_in_aa(T137, T148))
U12_aa(T131, T132, X275, T143, qs53_out_aa(T137, T148)) → U13_aa(T131, T132, X275, app65_in_aaaa(T143, T131, T148, X275))
app65_in_aaaa(.(T171, T172), T173, T174, .(T171, X354)) → U14_aaaa(T171, T172, T173, T174, X354, app65_in_aaaa(T172, T173, T174, X354))
app65_in_aaaa([], T183, T184, .(T183, T184)) → app65_out_aaaa([], T183, T184, .(T183, T184))
U14_aaaa(T171, T172, T173, T174, X354, app65_out_aaaa(T172, T173, T174, X354)) → app65_out_aaaa(.(T171, T172), T173, T174, .(T171, X354))
U13_aa(T131, T132, X275, app65_out_aaaa(T143, T131, T148, X275)) → qs53_out_aa(.(T131, T132), X275)
U28_aa(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U29_aa(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_aa(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_aa(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
p52_in_aaaga(T45, X10, T115, T22, T9) → U16_aaaga(T45, X10, T115, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T115, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T115, T22, T9)
p52_in_aaaga(T45, T120, T115, T22, T9) → U17_aaaga(T45, T120, T115, T22, T9, qs53_in_aa(T45, T120))
U17_aaaga(T45, T120, T115, T22, T9, qs53_out_aa(T45, T120)) → U18_aaaga(T45, T120, T115, T22, T9, app54_in_agaa(T115, T22, T120, T9))
app54_in_agaa(.(T210, T211), T212, T213, .(T210, T215)) → U15_agaa(T210, T211, T212, T213, T215, app54_in_agaa(T211, T212, T213, T215))
app54_in_agaa([], T225, T226, .(T225, T226)) → app54_out_agaa([], T225, T226, .(T225, T226))
U15_agaa(T210, T211, T212, T213, T215, app54_out_agaa(T211, T212, T213, T215)) → app54_out_agaa(.(T210, T211), T212, T213, .(T210, T215))
U18_aaaga(T45, T120, T115, T22, T9, app54_out_agaa(T115, T22, T120, T9)) → p52_out_aaaga(T45, T120, T115, T22, T9)
U30_aa(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
qs1_in_aa(.(T265, []), T9) → U31_aa(T265, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T265, T9, qs99_out_a(X9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa(.(T265, []), T9) → U32_aa(T265, T9, qs99_in_a(T268))
U32_aa(T265, T9, qs99_out_a(T268)) → U33_aa(T265, T9, qs99_in_a(X10))
U33_aa(T265, T9, qs99_out_a(X10)) → qs1_out_aa(.(T265, []), T9)
U32_aa(T265, T9, qs99_out_a(T268)) → U34_aa(T265, T9, T268, qs99_in_a(T273))
U34_aa(T265, T9, T268, qs99_out_a(T273)) → U35_aa(T265, T9, app54_in_gaga(T268, T265, T273, T9))
app54_in_gaga(.(T210, T211), T212, T213, .(T210, T215)) → U15_gaga(T210, T211, T212, T213, T215, app54_in_gaga(T211, T212, T213, T215))
app54_in_gaga([], T225, T226, .(T225, T226)) → app54_out_gaga([], T225, T226, .(T225, T226))
U15_gaga(T210, T211, T212, T213, T215, app54_out_gaga(T211, T212, T213, T215)) → app54_out_gaga(.(T210, T211), T212, T213, .(T210, T215))
U35_aa(T265, T9, app54_out_gaga(T268, T265, T273, T9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T239, .(T240, T241)), T9) → U25_ga(T239, T240, T241, T9, le33_in_gg(T239, T240))
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U26_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, X437, X438))
U26_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, X437, X438)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U27_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, T249, T250))
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U28_ga(T239, T240, T241, T9, qs53_in_aa(T249, X9))
U28_ga(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U29_ga(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_ga(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_ga(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
U30_ga(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
qs1_in_ga(.(T265, []), T9) → U31_ga(T265, T9, qs99_in_a(X9))
U31_ga(T265, T9, qs99_out_a(X9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga(.(T265, []), T9) → U32_ga(T265, T9, qs99_in_a(T268))
U32_ga(T265, T9, qs99_out_a(T268)) → U33_ga(T265, T9, qs99_in_a(X10))
U33_ga(T265, T9, qs99_out_a(X10)) → qs1_out_ga(.(T265, []), T9)
U32_ga(T265, T9, qs99_out_a(T268)) → U34_ga(T265, T9, T268, qs99_in_a(T273))
U34_ga(T265, T9, T268, qs99_out_a(T273)) → U35_ga(T265, T9, app54_in_ggga(T268, T265, T273, T9))
app54_in_ggga(.(T210, T211), T212, T213, .(T210, T215)) → U15_ggga(T210, T211, T212, T213, T215, app54_in_ggga(T211, T212, T213, T215))
app54_in_ggga([], T225, T226, .(T225, T226)) → app54_out_ggga([], T225, T226, .(T225, T226))
U15_ggga(T210, T211, T212, T213, T215, app54_out_ggga(T211, T212, T213, T215)) → app54_out_ggga(.(T210, T211), T212, T213, .(T210, T215))
U35_ga(T265, T9, app54_out_ggga(T268, T265, T273, T9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
QS1_IN_GA(.(T22, .(T23, T24)), T9) → U19_GA(T22, T23, T24, T9, gt10_in_gg(T22, T23))
QS1_IN_GA(.(T22, .(T23, T24)), T9) → GT10_IN_GG(T22, T23)
GT10_IN_GG(s(T37), s(T38)) → U1_GG(T37, T38, gt10_in_gg(T37, T38))
GT10_IN_GG(s(T37), s(T38)) → GT10_IN_GG(T37, T38)
U19_GA(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_GA(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
U19_GA(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → PART20_IN_GGAA(T22, T24, X47, X48)
PART20_IN_GGAA(T61, .(T62, T63), .(T62, X119), X120) → U2_GGAA(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
PART20_IN_GGAA(T61, .(T62, T63), .(T62, X119), X120) → GT10_IN_GG(T61, T62)
U2_GGAA(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_GGAA(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
U2_GGAA(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → PART20_IN_GGAA(T61, T63, X119, X120)
PART20_IN_GGAA(T83, .(T84, T85), X170, .(T84, X171)) → U4_GGAA(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
PART20_IN_GGAA(T83, .(T84, T85), X170, .(T84, X171)) → LE33_IN_GG(T83, T84)
LE33_IN_GG(s(T98), s(T99)) → U6_GG(T98, T99, le33_in_gg(T98, T99))
LE33_IN_GG(s(T98), s(T99)) → LE33_IN_GG(T98, T99)
U4_GGAA(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_GGAA(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
U4_GGAA(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → PART20_IN_GGAA(T83, T85, X170, X171)
U19_GA(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_GA(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_GA(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_GA(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
U21_GA(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → QS1_IN_AA(.(T23, T44), X9)
QS1_IN_AA(.(T22, .(T23, T24)), T9) → U19_AA(T22, T23, T24, T9, gt10_in_aa(T22, T23))
QS1_IN_AA(.(T22, .(T23, T24)), T9) → GT10_IN_AA(T22, T23)
GT10_IN_AA(s(T37), s(T38)) → U1_AA(T37, T38, gt10_in_aa(T37, T38))
GT10_IN_AA(s(T37), s(T38)) → GT10_IN_AA(T37, T38)
U19_AA(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_AA(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
U19_AA(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → PART20_IN_GAAA(T22, T24, X47, X48)
PART20_IN_GAAA(T61, .(T62, T63), .(T62, X119), X120) → U2_GAAA(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
PART20_IN_GAAA(T61, .(T62, T63), .(T62, X119), X120) → GT10_IN_GA(T61, T62)
GT10_IN_GA(s(T37), s(T38)) → U1_GA(T37, T38, gt10_in_ga(T37, T38))
GT10_IN_GA(s(T37), s(T38)) → GT10_IN_GA(T37, T38)
U2_GAAA(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_GAAA(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U2_GAAA(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → PART20_IN_GAAA(T61, T63, X119, X120)
PART20_IN_GAAA(T83, .(T84, T85), X170, .(T84, X171)) → U4_GAAA(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
PART20_IN_GAAA(T83, .(T84, T85), X170, .(T84, X171)) → LE33_IN_GA(T83, T84)
LE33_IN_GA(s(T98), s(T99)) → U6_GA(T98, T99, le33_in_ga(T98, T99))
LE33_IN_GA(s(T98), s(T99)) → LE33_IN_GA(T98, T99)
U4_GAAA(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_GAAA(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U4_GAAA(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → PART20_IN_GAAA(T83, T85, X170, X171)
U19_AA(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_AA(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_AA(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_AA(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
U21_AA(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → QS1_IN_AA(.(T23, T44), X9)
QS1_IN_AA(.(T239, .(T240, T241)), T9) → U25_AA(T239, T240, T241, T9, le33_in_aa(T239, T240))
QS1_IN_AA(.(T239, .(T240, T241)), T9) → LE33_IN_AA(T239, T240)
LE33_IN_AA(s(T98), s(T99)) → U6_AA(T98, T99, le33_in_aa(T98, T99))
LE33_IN_AA(s(T98), s(T99)) → LE33_IN_AA(T98, T99)
U25_AA(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U26_AA(T239, T240, T241, T9, part20_in_gaaa(T239, T241, X437, X438))
U25_AA(T239, T240, T241, T9, le33_out_aa(T239, T240)) → PART20_IN_GAAA(T239, T241, X437, X438)
U25_AA(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U27_AA(T239, T240, T241, T9, part20_in_gaaa(T239, T241, T249, T250))
U27_AA(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U28_AA(T239, T240, T241, T9, qs53_in_aa(T249, X9))
U27_AA(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → QS53_IN_AA(T249, X9)
QS53_IN_AA(.(T131, T132), X275) → U7_AA(T131, T132, X275, part20_in_aaaa(T131, T132, X271, X272))
QS53_IN_AA(.(T131, T132), X275) → PART20_IN_AAAA(T131, T132, X271, X272)
PART20_IN_AAAA(T61, .(T62, T63), .(T62, X119), X120) → U2_AAAA(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
PART20_IN_AAAA(T61, .(T62, T63), .(T62, X119), X120) → GT10_IN_AA(T61, T62)
U2_AAAA(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_AAAA(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U2_AAAA(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → PART20_IN_GAAA(T61, T63, X119, X120)
PART20_IN_AAAA(T83, .(T84, T85), X170, .(T84, X171)) → U4_AAAA(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
PART20_IN_AAAA(T83, .(T84, T85), X170, .(T84, X171)) → LE33_IN_AA(T83, T84)
U4_AAAA(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_AAAA(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U4_AAAA(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → PART20_IN_GAAA(T83, T85, X170, X171)
QS53_IN_AA(.(T131, T132), X275) → U8_AA(T131, T132, X275, part20_in_aaaa(T131, T132, T136, T137))
U8_AA(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U9_AA(T131, T132, X275, qs53_in_aa(T136, X273))
U8_AA(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → QS53_IN_AA(T136, X273)
U8_AA(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U10_AA(T131, T132, X275, T137, qs53_in_aa(T136, T143))
U10_AA(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U11_AA(T131, T132, X275, qs53_in_aa(T137, X274))
U10_AA(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → QS53_IN_AA(T137, X274)
U10_AA(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U12_AA(T131, T132, X275, T143, qs53_in_aa(T137, T148))
U12_AA(T131, T132, X275, T143, qs53_out_aa(T137, T148)) → U13_AA(T131, T132, X275, app65_in_aaaa(T143, T131, T148, X275))
U12_AA(T131, T132, X275, T143, qs53_out_aa(T137, T148)) → APP65_IN_AAAA(T143, T131, T148, X275)
APP65_IN_AAAA(.(T171, T172), T173, T174, .(T171, X354)) → U14_AAAA(T171, T172, T173, T174, X354, app65_in_aaaa(T172, T173, T174, X354))
APP65_IN_AAAA(.(T171, T172), T173, T174, .(T171, X354)) → APP65_IN_AAAA(T172, T173, T174, X354)
U27_AA(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U29_AA(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_AA(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_AA(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
U29_AA(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → P52_IN_AAAGA(.(T240, T250), X10, T256, T239, T9)
P52_IN_AAAGA(T45, X10, T115, T22, T9) → U16_AAAGA(T45, X10, T115, T22, T9, qs53_in_aa(T45, X10))
P52_IN_AAAGA(T45, X10, T115, T22, T9) → QS53_IN_AA(T45, X10)
P52_IN_AAAGA(T45, T120, T115, T22, T9) → U17_AAAGA(T45, T120, T115, T22, T9, qs53_in_aa(T45, T120))
U17_AAAGA(T45, T120, T115, T22, T9, qs53_out_aa(T45, T120)) → U18_AAAGA(T45, T120, T115, T22, T9, app54_in_agaa(T115, T22, T120, T9))
U17_AAAGA(T45, T120, T115, T22, T9, qs53_out_aa(T45, T120)) → APP54_IN_AGAA(T115, T22, T120, T9)
APP54_IN_AGAA(.(T210, T211), T212, T213, .(T210, T215)) → U15_AGAA(T210, T211, T212, T213, T215, app54_in_agaa(T211, T212, T213, T215))
APP54_IN_AGAA(.(T210, T211), T212, T213, .(T210, T215)) → APP54_IN_AGAA(T211, T212, T213, T215)
QS1_IN_AA(.(T265, []), T9) → U31_AA(T265, T9, qs99_in_a(X9))
QS1_IN_AA(.(T265, []), T9) → QS99_IN_A(X9)
QS1_IN_AA(.(T265, []), T9) → U32_AA(T265, T9, qs99_in_a(T268))
U32_AA(T265, T9, qs99_out_a(T268)) → U33_AA(T265, T9, qs99_in_a(X10))
U32_AA(T265, T9, qs99_out_a(T268)) → QS99_IN_A(X10)
U32_AA(T265, T9, qs99_out_a(T268)) → U34_AA(T265, T9, T268, qs99_in_a(T273))
U34_AA(T265, T9, T268, qs99_out_a(T273)) → U35_AA(T265, T9, app54_in_gaga(T268, T265, T273, T9))
U34_AA(T265, T9, T268, qs99_out_a(T273)) → APP54_IN_GAGA(T268, T265, T273, T9)
APP54_IN_GAGA(.(T210, T211), T212, T213, .(T210, T215)) → U15_GAGA(T210, T211, T212, T213, T215, app54_in_gaga(T211, T212, T213, T215))
APP54_IN_GAGA(.(T210, T211), T212, T213, .(T210, T215)) → APP54_IN_GAGA(T211, T212, T213, T215)
U21_AA(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_AA(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_AA(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_AA(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U23_AA(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → P52_IN_AAAGA(T45, X10, T115, T22, T9)
U21_GA(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_GA(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_GA(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_GA(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U23_GA(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → P52_IN_AAAGA(T45, X10, T115, T22, T9)
QS1_IN_GA(.(T239, .(T240, T241)), T9) → U25_GA(T239, T240, T241, T9, le33_in_gg(T239, T240))
QS1_IN_GA(.(T239, .(T240, T241)), T9) → LE33_IN_GG(T239, T240)
U25_GA(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U26_GA(T239, T240, T241, T9, part20_in_ggaa(T239, T241, X437, X438))
U25_GA(T239, T240, T241, T9, le33_out_gg(T239, T240)) → PART20_IN_GGAA(T239, T241, X437, X438)
U25_GA(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U27_GA(T239, T240, T241, T9, part20_in_ggaa(T239, T241, T249, T250))
U27_GA(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U28_GA(T239, T240, T241, T9, qs53_in_aa(T249, X9))
U27_GA(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → QS53_IN_AA(T249, X9)
U27_GA(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U29_GA(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_GA(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_GA(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
U29_GA(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → P52_IN_AAAGA(.(T240, T250), X10, T256, T239, T9)
QS1_IN_GA(.(T265, []), T9) → U31_GA(T265, T9, qs99_in_a(X9))
QS1_IN_GA(.(T265, []), T9) → QS99_IN_A(X9)
QS1_IN_GA(.(T265, []), T9) → U32_GA(T265, T9, qs99_in_a(T268))
U32_GA(T265, T9, qs99_out_a(T268)) → U33_GA(T265, T9, qs99_in_a(X10))
U32_GA(T265, T9, qs99_out_a(T268)) → QS99_IN_A(X10)
U32_GA(T265, T9, qs99_out_a(T268)) → U34_GA(T265, T9, T268, qs99_in_a(T273))
U34_GA(T265, T9, T268, qs99_out_a(T273)) → U35_GA(T265, T9, app54_in_ggga(T268, T265, T273, T9))
U34_GA(T265, T9, T268, qs99_out_a(T273)) → APP54_IN_GGGA(T268, T265, T273, T9)
APP54_IN_GGGA(.(T210, T211), T212, T213, .(T210, T215)) → U15_GGGA(T210, T211, T212, T213, T215, app54_in_ggga(T211, T212, T213, T215))
APP54_IN_GGGA(.(T210, T211), T212, T213, .(T210, T215)) → APP54_IN_GGGA(T211, T212, T213, T215)
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(T106)) → le33_out_gg(0, s(T106))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T112, [], [], []) → part20_out_ggaa(T112, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(T106)) → le33_out_ga(0, s(T106))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T112, [], [], []) → part20_out_gaaa(T112, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T239, .(T240, T241)), T9) → U25_aa(T239, T240, T241, T9, le33_in_aa(T239, T240))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(T106)) → le33_out_aa(0, s(T106))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U26_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, X437, X438))
U26_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, X437, X438)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U27_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, T249, T250))
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U28_aa(T239, T240, T241, T9, qs53_in_aa(T249, X9))
qs53_in_aa(.(T131, T132), X275) → U7_aa(T131, T132, X275, part20_in_aaaa(T131, T132, X271, X272))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T112, [], [], []) → part20_out_aaaa(T112, [], [], [])
U7_aa(T131, T132, X275, part20_out_aaaa(T131, T132, X271, X272)) → qs53_out_aa(.(T131, T132), X275)
qs53_in_aa(.(T131, T132), X275) → U8_aa(T131, T132, X275, part20_in_aaaa(T131, T132, T136, T137))
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U9_aa(T131, T132, X275, qs53_in_aa(T136, X273))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T131, T132, X275, qs53_out_aa(T136, X273)) → qs53_out_aa(.(T131, T132), X275)
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U10_aa(T131, T132, X275, T137, qs53_in_aa(T136, T143))
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U11_aa(T131, T132, X275, qs53_in_aa(T137, X274))
U11_aa(T131, T132, X275, qs53_out_aa(T137, X274)) → qs53_out_aa(.(T131, T132), X275)
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U12_aa(T131, T132, X275, T143, qs53_in_aa(T137, T148))
U12_aa(T131, T132, X275, T143, qs53_out_aa(T137, T148)) → U13_aa(T131, T132, X275, app65_in_aaaa(T143, T131, T148, X275))
app65_in_aaaa(.(T171, T172), T173, T174, .(T171, X354)) → U14_aaaa(T171, T172, T173, T174, X354, app65_in_aaaa(T172, T173, T174, X354))
app65_in_aaaa([], T183, T184, .(T183, T184)) → app65_out_aaaa([], T183, T184, .(T183, T184))
U14_aaaa(T171, T172, T173, T174, X354, app65_out_aaaa(T172, T173, T174, X354)) → app65_out_aaaa(.(T171, T172), T173, T174, .(T171, X354))
U13_aa(T131, T132, X275, app65_out_aaaa(T143, T131, T148, X275)) → qs53_out_aa(.(T131, T132), X275)
U28_aa(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U29_aa(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_aa(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_aa(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
p52_in_aaaga(T45, X10, T115, T22, T9) → U16_aaaga(T45, X10, T115, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T115, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T115, T22, T9)
p52_in_aaaga(T45, T120, T115, T22, T9) → U17_aaaga(T45, T120, T115, T22, T9, qs53_in_aa(T45, T120))
U17_aaaga(T45, T120, T115, T22, T9, qs53_out_aa(T45, T120)) → U18_aaaga(T45, T120, T115, T22, T9, app54_in_agaa(T115, T22, T120, T9))
app54_in_agaa(.(T210, T211), T212, T213, .(T210, T215)) → U15_agaa(T210, T211, T212, T213, T215, app54_in_agaa(T211, T212, T213, T215))
app54_in_agaa([], T225, T226, .(T225, T226)) → app54_out_agaa([], T225, T226, .(T225, T226))
U15_agaa(T210, T211, T212, T213, T215, app54_out_agaa(T211, T212, T213, T215)) → app54_out_agaa(.(T210, T211), T212, T213, .(T210, T215))
U18_aaaga(T45, T120, T115, T22, T9, app54_out_agaa(T115, T22, T120, T9)) → p52_out_aaaga(T45, T120, T115, T22, T9)
U30_aa(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
qs1_in_aa(.(T265, []), T9) → U31_aa(T265, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T265, T9, qs99_out_a(X9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa(.(T265, []), T9) → U32_aa(T265, T9, qs99_in_a(T268))
U32_aa(T265, T9, qs99_out_a(T268)) → U33_aa(T265, T9, qs99_in_a(X10))
U33_aa(T265, T9, qs99_out_a(X10)) → qs1_out_aa(.(T265, []), T9)
U32_aa(T265, T9, qs99_out_a(T268)) → U34_aa(T265, T9, T268, qs99_in_a(T273))
U34_aa(T265, T9, T268, qs99_out_a(T273)) → U35_aa(T265, T9, app54_in_gaga(T268, T265, T273, T9))
app54_in_gaga(.(T210, T211), T212, T213, .(T210, T215)) → U15_gaga(T210, T211, T212, T213, T215, app54_in_gaga(T211, T212, T213, T215))
app54_in_gaga([], T225, T226, .(T225, T226)) → app54_out_gaga([], T225, T226, .(T225, T226))
U15_gaga(T210, T211, T212, T213, T215, app54_out_gaga(T211, T212, T213, T215)) → app54_out_gaga(.(T210, T211), T212, T213, .(T210, T215))
U35_aa(T265, T9, app54_out_gaga(T268, T265, T273, T9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T239, .(T240, T241)), T9) → U25_ga(T239, T240, T241, T9, le33_in_gg(T239, T240))
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U26_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, X437, X438))
U26_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, X437, X438)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U27_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, T249, T250))
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U28_ga(T239, T240, T241, T9, qs53_in_aa(T249, X9))
U28_ga(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U29_ga(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_ga(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_ga(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
U30_ga(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
qs1_in_ga(.(T265, []), T9) → U31_ga(T265, T9, qs99_in_a(X9))
U31_ga(T265, T9, qs99_out_a(X9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga(.(T265, []), T9) → U32_ga(T265, T9, qs99_in_a(T268))
U32_ga(T265, T9, qs99_out_a(T268)) → U33_ga(T265, T9, qs99_in_a(X10))
U33_ga(T265, T9, qs99_out_a(X10)) → qs1_out_ga(.(T265, []), T9)
U32_ga(T265, T9, qs99_out_a(T268)) → U34_ga(T265, T9, T268, qs99_in_a(T273))
U34_ga(T265, T9, T268, qs99_out_a(T273)) → U35_ga(T265, T9, app54_in_ggga(T268, T265, T273, T9))
app54_in_ggga(.(T210, T211), T212, T213, .(T210, T215)) → U15_ggga(T210, T211, T212, T213, T215, app54_in_ggga(T211, T212, T213, T215))
app54_in_ggga([], T225, T226, .(T225, T226)) → app54_out_ggga([], T225, T226, .(T225, T226))
U15_ggga(T210, T211, T212, T213, T215, app54_out_ggga(T211, T212, T213, T215)) → app54_out_ggga(.(T210, T211), T212, T213, .(T210, T215))
U35_ga(T265, T9, app54_out_ggga(T268, T265, T273, T9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
QS1_IN_GA(.(T22, .(T23, T24)), T9) → U19_GA(T22, T23, T24, T9, gt10_in_gg(T22, T23))
QS1_IN_GA(.(T22, .(T23, T24)), T9) → GT10_IN_GG(T22, T23)
GT10_IN_GG(s(T37), s(T38)) → U1_GG(T37, T38, gt10_in_gg(T37, T38))
GT10_IN_GG(s(T37), s(T38)) → GT10_IN_GG(T37, T38)
U19_GA(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_GA(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
U19_GA(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → PART20_IN_GGAA(T22, T24, X47, X48)
PART20_IN_GGAA(T61, .(T62, T63), .(T62, X119), X120) → U2_GGAA(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
PART20_IN_GGAA(T61, .(T62, T63), .(T62, X119), X120) → GT10_IN_GG(T61, T62)
U2_GGAA(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_GGAA(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
U2_GGAA(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → PART20_IN_GGAA(T61, T63, X119, X120)
PART20_IN_GGAA(T83, .(T84, T85), X170, .(T84, X171)) → U4_GGAA(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
PART20_IN_GGAA(T83, .(T84, T85), X170, .(T84, X171)) → LE33_IN_GG(T83, T84)
LE33_IN_GG(s(T98), s(T99)) → U6_GG(T98, T99, le33_in_gg(T98, T99))
LE33_IN_GG(s(T98), s(T99)) → LE33_IN_GG(T98, T99)
U4_GGAA(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_GGAA(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
U4_GGAA(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → PART20_IN_GGAA(T83, T85, X170, X171)
U19_GA(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_GA(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_GA(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_GA(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
U21_GA(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → QS1_IN_AA(.(T23, T44), X9)
QS1_IN_AA(.(T22, .(T23, T24)), T9) → U19_AA(T22, T23, T24, T9, gt10_in_aa(T22, T23))
QS1_IN_AA(.(T22, .(T23, T24)), T9) → GT10_IN_AA(T22, T23)
GT10_IN_AA(s(T37), s(T38)) → U1_AA(T37, T38, gt10_in_aa(T37, T38))
GT10_IN_AA(s(T37), s(T38)) → GT10_IN_AA(T37, T38)
U19_AA(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_AA(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
U19_AA(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → PART20_IN_GAAA(T22, T24, X47, X48)
PART20_IN_GAAA(T61, .(T62, T63), .(T62, X119), X120) → U2_GAAA(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
PART20_IN_GAAA(T61, .(T62, T63), .(T62, X119), X120) → GT10_IN_GA(T61, T62)
GT10_IN_GA(s(T37), s(T38)) → U1_GA(T37, T38, gt10_in_ga(T37, T38))
GT10_IN_GA(s(T37), s(T38)) → GT10_IN_GA(T37, T38)
U2_GAAA(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_GAAA(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U2_GAAA(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → PART20_IN_GAAA(T61, T63, X119, X120)
PART20_IN_GAAA(T83, .(T84, T85), X170, .(T84, X171)) → U4_GAAA(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
PART20_IN_GAAA(T83, .(T84, T85), X170, .(T84, X171)) → LE33_IN_GA(T83, T84)
LE33_IN_GA(s(T98), s(T99)) → U6_GA(T98, T99, le33_in_ga(T98, T99))
LE33_IN_GA(s(T98), s(T99)) → LE33_IN_GA(T98, T99)
U4_GAAA(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_GAAA(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U4_GAAA(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → PART20_IN_GAAA(T83, T85, X170, X171)
U19_AA(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_AA(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_AA(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_AA(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
U21_AA(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → QS1_IN_AA(.(T23, T44), X9)
QS1_IN_AA(.(T239, .(T240, T241)), T9) → U25_AA(T239, T240, T241, T9, le33_in_aa(T239, T240))
QS1_IN_AA(.(T239, .(T240, T241)), T9) → LE33_IN_AA(T239, T240)
LE33_IN_AA(s(T98), s(T99)) → U6_AA(T98, T99, le33_in_aa(T98, T99))
LE33_IN_AA(s(T98), s(T99)) → LE33_IN_AA(T98, T99)
U25_AA(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U26_AA(T239, T240, T241, T9, part20_in_gaaa(T239, T241, X437, X438))
U25_AA(T239, T240, T241, T9, le33_out_aa(T239, T240)) → PART20_IN_GAAA(T239, T241, X437, X438)
U25_AA(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U27_AA(T239, T240, T241, T9, part20_in_gaaa(T239, T241, T249, T250))
U27_AA(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U28_AA(T239, T240, T241, T9, qs53_in_aa(T249, X9))
U27_AA(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → QS53_IN_AA(T249, X9)
QS53_IN_AA(.(T131, T132), X275) → U7_AA(T131, T132, X275, part20_in_aaaa(T131, T132, X271, X272))
QS53_IN_AA(.(T131, T132), X275) → PART20_IN_AAAA(T131, T132, X271, X272)
PART20_IN_AAAA(T61, .(T62, T63), .(T62, X119), X120) → U2_AAAA(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
PART20_IN_AAAA(T61, .(T62, T63), .(T62, X119), X120) → GT10_IN_AA(T61, T62)
U2_AAAA(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_AAAA(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U2_AAAA(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → PART20_IN_GAAA(T61, T63, X119, X120)
PART20_IN_AAAA(T83, .(T84, T85), X170, .(T84, X171)) → U4_AAAA(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
PART20_IN_AAAA(T83, .(T84, T85), X170, .(T84, X171)) → LE33_IN_AA(T83, T84)
U4_AAAA(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_AAAA(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U4_AAAA(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → PART20_IN_GAAA(T83, T85, X170, X171)
QS53_IN_AA(.(T131, T132), X275) → U8_AA(T131, T132, X275, part20_in_aaaa(T131, T132, T136, T137))
U8_AA(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U9_AA(T131, T132, X275, qs53_in_aa(T136, X273))
U8_AA(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → QS53_IN_AA(T136, X273)
U8_AA(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U10_AA(T131, T132, X275, T137, qs53_in_aa(T136, T143))
U10_AA(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U11_AA(T131, T132, X275, qs53_in_aa(T137, X274))
U10_AA(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → QS53_IN_AA(T137, X274)
U10_AA(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U12_AA(T131, T132, X275, T143, qs53_in_aa(T137, T148))
U12_AA(T131, T132, X275, T143, qs53_out_aa(T137, T148)) → U13_AA(T131, T132, X275, app65_in_aaaa(T143, T131, T148, X275))
U12_AA(T131, T132, X275, T143, qs53_out_aa(T137, T148)) → APP65_IN_AAAA(T143, T131, T148, X275)
APP65_IN_AAAA(.(T171, T172), T173, T174, .(T171, X354)) → U14_AAAA(T171, T172, T173, T174, X354, app65_in_aaaa(T172, T173, T174, X354))
APP65_IN_AAAA(.(T171, T172), T173, T174, .(T171, X354)) → APP65_IN_AAAA(T172, T173, T174, X354)
U27_AA(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U29_AA(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_AA(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_AA(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
U29_AA(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → P52_IN_AAAGA(.(T240, T250), X10, T256, T239, T9)
P52_IN_AAAGA(T45, X10, T115, T22, T9) → U16_AAAGA(T45, X10, T115, T22, T9, qs53_in_aa(T45, X10))
P52_IN_AAAGA(T45, X10, T115, T22, T9) → QS53_IN_AA(T45, X10)
P52_IN_AAAGA(T45, T120, T115, T22, T9) → U17_AAAGA(T45, T120, T115, T22, T9, qs53_in_aa(T45, T120))
U17_AAAGA(T45, T120, T115, T22, T9, qs53_out_aa(T45, T120)) → U18_AAAGA(T45, T120, T115, T22, T9, app54_in_agaa(T115, T22, T120, T9))
U17_AAAGA(T45, T120, T115, T22, T9, qs53_out_aa(T45, T120)) → APP54_IN_AGAA(T115, T22, T120, T9)
APP54_IN_AGAA(.(T210, T211), T212, T213, .(T210, T215)) → U15_AGAA(T210, T211, T212, T213, T215, app54_in_agaa(T211, T212, T213, T215))
APP54_IN_AGAA(.(T210, T211), T212, T213, .(T210, T215)) → APP54_IN_AGAA(T211, T212, T213, T215)
QS1_IN_AA(.(T265, []), T9) → U31_AA(T265, T9, qs99_in_a(X9))
QS1_IN_AA(.(T265, []), T9) → QS99_IN_A(X9)
QS1_IN_AA(.(T265, []), T9) → U32_AA(T265, T9, qs99_in_a(T268))
U32_AA(T265, T9, qs99_out_a(T268)) → U33_AA(T265, T9, qs99_in_a(X10))
U32_AA(T265, T9, qs99_out_a(T268)) → QS99_IN_A(X10)
U32_AA(T265, T9, qs99_out_a(T268)) → U34_AA(T265, T9, T268, qs99_in_a(T273))
U34_AA(T265, T9, T268, qs99_out_a(T273)) → U35_AA(T265, T9, app54_in_gaga(T268, T265, T273, T9))
U34_AA(T265, T9, T268, qs99_out_a(T273)) → APP54_IN_GAGA(T268, T265, T273, T9)
APP54_IN_GAGA(.(T210, T211), T212, T213, .(T210, T215)) → U15_GAGA(T210, T211, T212, T213, T215, app54_in_gaga(T211, T212, T213, T215))
APP54_IN_GAGA(.(T210, T211), T212, T213, .(T210, T215)) → APP54_IN_GAGA(T211, T212, T213, T215)
U21_AA(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_AA(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_AA(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_AA(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U23_AA(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → P52_IN_AAAGA(T45, X10, T115, T22, T9)
U21_GA(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_GA(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_GA(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_GA(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U23_GA(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → P52_IN_AAAGA(T45, X10, T115, T22, T9)
QS1_IN_GA(.(T239, .(T240, T241)), T9) → U25_GA(T239, T240, T241, T9, le33_in_gg(T239, T240))
QS1_IN_GA(.(T239, .(T240, T241)), T9) → LE33_IN_GG(T239, T240)
U25_GA(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U26_GA(T239, T240, T241, T9, part20_in_ggaa(T239, T241, X437, X438))
U25_GA(T239, T240, T241, T9, le33_out_gg(T239, T240)) → PART20_IN_GGAA(T239, T241, X437, X438)
U25_GA(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U27_GA(T239, T240, T241, T9, part20_in_ggaa(T239, T241, T249, T250))
U27_GA(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U28_GA(T239, T240, T241, T9, qs53_in_aa(T249, X9))
U27_GA(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → QS53_IN_AA(T249, X9)
U27_GA(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U29_GA(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_GA(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_GA(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
U29_GA(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → P52_IN_AAAGA(.(T240, T250), X10, T256, T239, T9)
QS1_IN_GA(.(T265, []), T9) → U31_GA(T265, T9, qs99_in_a(X9))
QS1_IN_GA(.(T265, []), T9) → QS99_IN_A(X9)
QS1_IN_GA(.(T265, []), T9) → U32_GA(T265, T9, qs99_in_a(T268))
U32_GA(T265, T9, qs99_out_a(T268)) → U33_GA(T265, T9, qs99_in_a(X10))
U32_GA(T265, T9, qs99_out_a(T268)) → QS99_IN_A(X10)
U32_GA(T265, T9, qs99_out_a(T268)) → U34_GA(T265, T9, T268, qs99_in_a(T273))
U34_GA(T265, T9, T268, qs99_out_a(T273)) → U35_GA(T265, T9, app54_in_ggga(T268, T265, T273, T9))
U34_GA(T265, T9, T268, qs99_out_a(T273)) → APP54_IN_GGGA(T268, T265, T273, T9)
APP54_IN_GGGA(.(T210, T211), T212, T213, .(T210, T215)) → U15_GGGA(T210, T211, T212, T213, T215, app54_in_ggga(T211, T212, T213, T215))
APP54_IN_GGGA(.(T210, T211), T212, T213, .(T210, T215)) → APP54_IN_GGGA(T211, T212, T213, T215)
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(T106)) → le33_out_gg(0, s(T106))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T112, [], [], []) → part20_out_ggaa(T112, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(T106)) → le33_out_ga(0, s(T106))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T112, [], [], []) → part20_out_gaaa(T112, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T239, .(T240, T241)), T9) → U25_aa(T239, T240, T241, T9, le33_in_aa(T239, T240))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(T106)) → le33_out_aa(0, s(T106))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U26_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, X437, X438))
U26_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, X437, X438)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U27_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, T249, T250))
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U28_aa(T239, T240, T241, T9, qs53_in_aa(T249, X9))
qs53_in_aa(.(T131, T132), X275) → U7_aa(T131, T132, X275, part20_in_aaaa(T131, T132, X271, X272))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T112, [], [], []) → part20_out_aaaa(T112, [], [], [])
U7_aa(T131, T132, X275, part20_out_aaaa(T131, T132, X271, X272)) → qs53_out_aa(.(T131, T132), X275)
qs53_in_aa(.(T131, T132), X275) → U8_aa(T131, T132, X275, part20_in_aaaa(T131, T132, T136, T137))
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U9_aa(T131, T132, X275, qs53_in_aa(T136, X273))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T131, T132, X275, qs53_out_aa(T136, X273)) → qs53_out_aa(.(T131, T132), X275)
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U10_aa(T131, T132, X275, T137, qs53_in_aa(T136, T143))
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U11_aa(T131, T132, X275, qs53_in_aa(T137, X274))
U11_aa(T131, T132, X275, qs53_out_aa(T137, X274)) → qs53_out_aa(.(T131, T132), X275)
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U12_aa(T131, T132, X275, T143, qs53_in_aa(T137, T148))
U12_aa(T131, T132, X275, T143, qs53_out_aa(T137, T148)) → U13_aa(T131, T132, X275, app65_in_aaaa(T143, T131, T148, X275))
app65_in_aaaa(.(T171, T172), T173, T174, .(T171, X354)) → U14_aaaa(T171, T172, T173, T174, X354, app65_in_aaaa(T172, T173, T174, X354))
app65_in_aaaa([], T183, T184, .(T183, T184)) → app65_out_aaaa([], T183, T184, .(T183, T184))
U14_aaaa(T171, T172, T173, T174, X354, app65_out_aaaa(T172, T173, T174, X354)) → app65_out_aaaa(.(T171, T172), T173, T174, .(T171, X354))
U13_aa(T131, T132, X275, app65_out_aaaa(T143, T131, T148, X275)) → qs53_out_aa(.(T131, T132), X275)
U28_aa(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U29_aa(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_aa(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_aa(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
p52_in_aaaga(T45, X10, T115, T22, T9) → U16_aaaga(T45, X10, T115, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T115, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T115, T22, T9)
p52_in_aaaga(T45, T120, T115, T22, T9) → U17_aaaga(T45, T120, T115, T22, T9, qs53_in_aa(T45, T120))
U17_aaaga(T45, T120, T115, T22, T9, qs53_out_aa(T45, T120)) → U18_aaaga(T45, T120, T115, T22, T9, app54_in_agaa(T115, T22, T120, T9))
app54_in_agaa(.(T210, T211), T212, T213, .(T210, T215)) → U15_agaa(T210, T211, T212, T213, T215, app54_in_agaa(T211, T212, T213, T215))
app54_in_agaa([], T225, T226, .(T225, T226)) → app54_out_agaa([], T225, T226, .(T225, T226))
U15_agaa(T210, T211, T212, T213, T215, app54_out_agaa(T211, T212, T213, T215)) → app54_out_agaa(.(T210, T211), T212, T213, .(T210, T215))
U18_aaaga(T45, T120, T115, T22, T9, app54_out_agaa(T115, T22, T120, T9)) → p52_out_aaaga(T45, T120, T115, T22, T9)
U30_aa(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
qs1_in_aa(.(T265, []), T9) → U31_aa(T265, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T265, T9, qs99_out_a(X9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa(.(T265, []), T9) → U32_aa(T265, T9, qs99_in_a(T268))
U32_aa(T265, T9, qs99_out_a(T268)) → U33_aa(T265, T9, qs99_in_a(X10))
U33_aa(T265, T9, qs99_out_a(X10)) → qs1_out_aa(.(T265, []), T9)
U32_aa(T265, T9, qs99_out_a(T268)) → U34_aa(T265, T9, T268, qs99_in_a(T273))
U34_aa(T265, T9, T268, qs99_out_a(T273)) → U35_aa(T265, T9, app54_in_gaga(T268, T265, T273, T9))
app54_in_gaga(.(T210, T211), T212, T213, .(T210, T215)) → U15_gaga(T210, T211, T212, T213, T215, app54_in_gaga(T211, T212, T213, T215))
app54_in_gaga([], T225, T226, .(T225, T226)) → app54_out_gaga([], T225, T226, .(T225, T226))
U15_gaga(T210, T211, T212, T213, T215, app54_out_gaga(T211, T212, T213, T215)) → app54_out_gaga(.(T210, T211), T212, T213, .(T210, T215))
U35_aa(T265, T9, app54_out_gaga(T268, T265, T273, T9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T239, .(T240, T241)), T9) → U25_ga(T239, T240, T241, T9, le33_in_gg(T239, T240))
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U26_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, X437, X438))
U26_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, X437, X438)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U27_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, T249, T250))
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U28_ga(T239, T240, T241, T9, qs53_in_aa(T249, X9))
U28_ga(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U29_ga(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_ga(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_ga(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
U30_ga(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
qs1_in_ga(.(T265, []), T9) → U31_ga(T265, T9, qs99_in_a(X9))
U31_ga(T265, T9, qs99_out_a(X9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga(.(T265, []), T9) → U32_ga(T265, T9, qs99_in_a(T268))
U32_ga(T265, T9, qs99_out_a(T268)) → U33_ga(T265, T9, qs99_in_a(X10))
U33_ga(T265, T9, qs99_out_a(X10)) → qs1_out_ga(.(T265, []), T9)
U32_ga(T265, T9, qs99_out_a(T268)) → U34_ga(T265, T9, T268, qs99_in_a(T273))
U34_ga(T265, T9, T268, qs99_out_a(T273)) → U35_ga(T265, T9, app54_in_ggga(T268, T265, T273, T9))
app54_in_ggga(.(T210, T211), T212, T213, .(T210, T215)) → U15_ggga(T210, T211, T212, T213, T215, app54_in_ggga(T211, T212, T213, T215))
app54_in_ggga([], T225, T226, .(T225, T226)) → app54_out_ggga([], T225, T226, .(T225, T226))
U15_ggga(T210, T211, T212, T213, T215, app54_out_ggga(T211, T212, T213, T215)) → app54_out_ggga(.(T210, T211), T212, T213, .(T210, T215))
U35_ga(T265, T9, app54_out_ggga(T268, T265, T273, T9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
APP54_IN_GGGA(.(T210, T211), T212, T213, .(T210, T215)) → APP54_IN_GGGA(T211, T212, T213, T215)
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(T106)) → le33_out_gg(0, s(T106))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T112, [], [], []) → part20_out_ggaa(T112, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(T106)) → le33_out_ga(0, s(T106))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T112, [], [], []) → part20_out_gaaa(T112, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T239, .(T240, T241)), T9) → U25_aa(T239, T240, T241, T9, le33_in_aa(T239, T240))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(T106)) → le33_out_aa(0, s(T106))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U26_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, X437, X438))
U26_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, X437, X438)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U27_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, T249, T250))
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U28_aa(T239, T240, T241, T9, qs53_in_aa(T249, X9))
qs53_in_aa(.(T131, T132), X275) → U7_aa(T131, T132, X275, part20_in_aaaa(T131, T132, X271, X272))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T112, [], [], []) → part20_out_aaaa(T112, [], [], [])
U7_aa(T131, T132, X275, part20_out_aaaa(T131, T132, X271, X272)) → qs53_out_aa(.(T131, T132), X275)
qs53_in_aa(.(T131, T132), X275) → U8_aa(T131, T132, X275, part20_in_aaaa(T131, T132, T136, T137))
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U9_aa(T131, T132, X275, qs53_in_aa(T136, X273))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T131, T132, X275, qs53_out_aa(T136, X273)) → qs53_out_aa(.(T131, T132), X275)
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U10_aa(T131, T132, X275, T137, qs53_in_aa(T136, T143))
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U11_aa(T131, T132, X275, qs53_in_aa(T137, X274))
U11_aa(T131, T132, X275, qs53_out_aa(T137, X274)) → qs53_out_aa(.(T131, T132), X275)
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U12_aa(T131, T132, X275, T143, qs53_in_aa(T137, T148))
U12_aa(T131, T132, X275, T143, qs53_out_aa(T137, T148)) → U13_aa(T131, T132, X275, app65_in_aaaa(T143, T131, T148, X275))
app65_in_aaaa(.(T171, T172), T173, T174, .(T171, X354)) → U14_aaaa(T171, T172, T173, T174, X354, app65_in_aaaa(T172, T173, T174, X354))
app65_in_aaaa([], T183, T184, .(T183, T184)) → app65_out_aaaa([], T183, T184, .(T183, T184))
U14_aaaa(T171, T172, T173, T174, X354, app65_out_aaaa(T172, T173, T174, X354)) → app65_out_aaaa(.(T171, T172), T173, T174, .(T171, X354))
U13_aa(T131, T132, X275, app65_out_aaaa(T143, T131, T148, X275)) → qs53_out_aa(.(T131, T132), X275)
U28_aa(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U29_aa(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_aa(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_aa(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
p52_in_aaaga(T45, X10, T115, T22, T9) → U16_aaaga(T45, X10, T115, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T115, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T115, T22, T9)
p52_in_aaaga(T45, T120, T115, T22, T9) → U17_aaaga(T45, T120, T115, T22, T9, qs53_in_aa(T45, T120))
U17_aaaga(T45, T120, T115, T22, T9, qs53_out_aa(T45, T120)) → U18_aaaga(T45, T120, T115, T22, T9, app54_in_agaa(T115, T22, T120, T9))
app54_in_agaa(.(T210, T211), T212, T213, .(T210, T215)) → U15_agaa(T210, T211, T212, T213, T215, app54_in_agaa(T211, T212, T213, T215))
app54_in_agaa([], T225, T226, .(T225, T226)) → app54_out_agaa([], T225, T226, .(T225, T226))
U15_agaa(T210, T211, T212, T213, T215, app54_out_agaa(T211, T212, T213, T215)) → app54_out_agaa(.(T210, T211), T212, T213, .(T210, T215))
U18_aaaga(T45, T120, T115, T22, T9, app54_out_agaa(T115, T22, T120, T9)) → p52_out_aaaga(T45, T120, T115, T22, T9)
U30_aa(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
qs1_in_aa(.(T265, []), T9) → U31_aa(T265, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T265, T9, qs99_out_a(X9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa(.(T265, []), T9) → U32_aa(T265, T9, qs99_in_a(T268))
U32_aa(T265, T9, qs99_out_a(T268)) → U33_aa(T265, T9, qs99_in_a(X10))
U33_aa(T265, T9, qs99_out_a(X10)) → qs1_out_aa(.(T265, []), T9)
U32_aa(T265, T9, qs99_out_a(T268)) → U34_aa(T265, T9, T268, qs99_in_a(T273))
U34_aa(T265, T9, T268, qs99_out_a(T273)) → U35_aa(T265, T9, app54_in_gaga(T268, T265, T273, T9))
app54_in_gaga(.(T210, T211), T212, T213, .(T210, T215)) → U15_gaga(T210, T211, T212, T213, T215, app54_in_gaga(T211, T212, T213, T215))
app54_in_gaga([], T225, T226, .(T225, T226)) → app54_out_gaga([], T225, T226, .(T225, T226))
U15_gaga(T210, T211, T212, T213, T215, app54_out_gaga(T211, T212, T213, T215)) → app54_out_gaga(.(T210, T211), T212, T213, .(T210, T215))
U35_aa(T265, T9, app54_out_gaga(T268, T265, T273, T9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T239, .(T240, T241)), T9) → U25_ga(T239, T240, T241, T9, le33_in_gg(T239, T240))
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U26_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, X437, X438))
U26_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, X437, X438)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U27_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, T249, T250))
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U28_ga(T239, T240, T241, T9, qs53_in_aa(T249, X9))
U28_ga(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U29_ga(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_ga(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_ga(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
U30_ga(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
qs1_in_ga(.(T265, []), T9) → U31_ga(T265, T9, qs99_in_a(X9))
U31_ga(T265, T9, qs99_out_a(X9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga(.(T265, []), T9) → U32_ga(T265, T9, qs99_in_a(T268))
U32_ga(T265, T9, qs99_out_a(T268)) → U33_ga(T265, T9, qs99_in_a(X10))
U33_ga(T265, T9, qs99_out_a(X10)) → qs1_out_ga(.(T265, []), T9)
U32_ga(T265, T9, qs99_out_a(T268)) → U34_ga(T265, T9, T268, qs99_in_a(T273))
U34_ga(T265, T9, T268, qs99_out_a(T273)) → U35_ga(T265, T9, app54_in_ggga(T268, T265, T273, T9))
app54_in_ggga(.(T210, T211), T212, T213, .(T210, T215)) → U15_ggga(T210, T211, T212, T213, T215, app54_in_ggga(T211, T212, T213, T215))
app54_in_ggga([], T225, T226, .(T225, T226)) → app54_out_ggga([], T225, T226, .(T225, T226))
U15_ggga(T210, T211, T212, T213, T215, app54_out_ggga(T211, T212, T213, T215)) → app54_out_ggga(.(T210, T211), T212, T213, .(T210, T215))
U35_ga(T265, T9, app54_out_ggga(T268, T265, T273, T9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
APP54_IN_GGGA(.(T210, T211), T212, T213, .(T210, T215)) → APP54_IN_GGGA(T211, T212, T213, T215)
APP54_IN_GGGA(.(T210, T211), T212, T213) → APP54_IN_GGGA(T211, T212, T213)
From the DPs we obtained the following set of size-change graphs:
APP54_IN_GAGA(.(T210, T211), T212, T213, .(T210, T215)) → APP54_IN_GAGA(T211, T212, T213, T215)
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(T106)) → le33_out_gg(0, s(T106))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T112, [], [], []) → part20_out_ggaa(T112, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(T106)) → le33_out_ga(0, s(T106))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T112, [], [], []) → part20_out_gaaa(T112, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T239, .(T240, T241)), T9) → U25_aa(T239, T240, T241, T9, le33_in_aa(T239, T240))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(T106)) → le33_out_aa(0, s(T106))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U26_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, X437, X438))
U26_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, X437, X438)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U27_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, T249, T250))
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U28_aa(T239, T240, T241, T9, qs53_in_aa(T249, X9))
qs53_in_aa(.(T131, T132), X275) → U7_aa(T131, T132, X275, part20_in_aaaa(T131, T132, X271, X272))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T112, [], [], []) → part20_out_aaaa(T112, [], [], [])
U7_aa(T131, T132, X275, part20_out_aaaa(T131, T132, X271, X272)) → qs53_out_aa(.(T131, T132), X275)
qs53_in_aa(.(T131, T132), X275) → U8_aa(T131, T132, X275, part20_in_aaaa(T131, T132, T136, T137))
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U9_aa(T131, T132, X275, qs53_in_aa(T136, X273))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T131, T132, X275, qs53_out_aa(T136, X273)) → qs53_out_aa(.(T131, T132), X275)
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U10_aa(T131, T132, X275, T137, qs53_in_aa(T136, T143))
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U11_aa(T131, T132, X275, qs53_in_aa(T137, X274))
U11_aa(T131, T132, X275, qs53_out_aa(T137, X274)) → qs53_out_aa(.(T131, T132), X275)
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U12_aa(T131, T132, X275, T143, qs53_in_aa(T137, T148))
U12_aa(T131, T132, X275, T143, qs53_out_aa(T137, T148)) → U13_aa(T131, T132, X275, app65_in_aaaa(T143, T131, T148, X275))
app65_in_aaaa(.(T171, T172), T173, T174, .(T171, X354)) → U14_aaaa(T171, T172, T173, T174, X354, app65_in_aaaa(T172, T173, T174, X354))
app65_in_aaaa([], T183, T184, .(T183, T184)) → app65_out_aaaa([], T183, T184, .(T183, T184))
U14_aaaa(T171, T172, T173, T174, X354, app65_out_aaaa(T172, T173, T174, X354)) → app65_out_aaaa(.(T171, T172), T173, T174, .(T171, X354))
U13_aa(T131, T132, X275, app65_out_aaaa(T143, T131, T148, X275)) → qs53_out_aa(.(T131, T132), X275)
U28_aa(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U29_aa(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_aa(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_aa(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
p52_in_aaaga(T45, X10, T115, T22, T9) → U16_aaaga(T45, X10, T115, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T115, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T115, T22, T9)
p52_in_aaaga(T45, T120, T115, T22, T9) → U17_aaaga(T45, T120, T115, T22, T9, qs53_in_aa(T45, T120))
U17_aaaga(T45, T120, T115, T22, T9, qs53_out_aa(T45, T120)) → U18_aaaga(T45, T120, T115, T22, T9, app54_in_agaa(T115, T22, T120, T9))
app54_in_agaa(.(T210, T211), T212, T213, .(T210, T215)) → U15_agaa(T210, T211, T212, T213, T215, app54_in_agaa(T211, T212, T213, T215))
app54_in_agaa([], T225, T226, .(T225, T226)) → app54_out_agaa([], T225, T226, .(T225, T226))
U15_agaa(T210, T211, T212, T213, T215, app54_out_agaa(T211, T212, T213, T215)) → app54_out_agaa(.(T210, T211), T212, T213, .(T210, T215))
U18_aaaga(T45, T120, T115, T22, T9, app54_out_agaa(T115, T22, T120, T9)) → p52_out_aaaga(T45, T120, T115, T22, T9)
U30_aa(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
qs1_in_aa(.(T265, []), T9) → U31_aa(T265, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T265, T9, qs99_out_a(X9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa(.(T265, []), T9) → U32_aa(T265, T9, qs99_in_a(T268))
U32_aa(T265, T9, qs99_out_a(T268)) → U33_aa(T265, T9, qs99_in_a(X10))
U33_aa(T265, T9, qs99_out_a(X10)) → qs1_out_aa(.(T265, []), T9)
U32_aa(T265, T9, qs99_out_a(T268)) → U34_aa(T265, T9, T268, qs99_in_a(T273))
U34_aa(T265, T9, T268, qs99_out_a(T273)) → U35_aa(T265, T9, app54_in_gaga(T268, T265, T273, T9))
app54_in_gaga(.(T210, T211), T212, T213, .(T210, T215)) → U15_gaga(T210, T211, T212, T213, T215, app54_in_gaga(T211, T212, T213, T215))
app54_in_gaga([], T225, T226, .(T225, T226)) → app54_out_gaga([], T225, T226, .(T225, T226))
U15_gaga(T210, T211, T212, T213, T215, app54_out_gaga(T211, T212, T213, T215)) → app54_out_gaga(.(T210, T211), T212, T213, .(T210, T215))
U35_aa(T265, T9, app54_out_gaga(T268, T265, T273, T9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T239, .(T240, T241)), T9) → U25_ga(T239, T240, T241, T9, le33_in_gg(T239, T240))
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U26_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, X437, X438))
U26_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, X437, X438)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U27_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, T249, T250))
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U28_ga(T239, T240, T241, T9, qs53_in_aa(T249, X9))
U28_ga(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U29_ga(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_ga(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_ga(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
U30_ga(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
qs1_in_ga(.(T265, []), T9) → U31_ga(T265, T9, qs99_in_a(X9))
U31_ga(T265, T9, qs99_out_a(X9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga(.(T265, []), T9) → U32_ga(T265, T9, qs99_in_a(T268))
U32_ga(T265, T9, qs99_out_a(T268)) → U33_ga(T265, T9, qs99_in_a(X10))
U33_ga(T265, T9, qs99_out_a(X10)) → qs1_out_ga(.(T265, []), T9)
U32_ga(T265, T9, qs99_out_a(T268)) → U34_ga(T265, T9, T268, qs99_in_a(T273))
U34_ga(T265, T9, T268, qs99_out_a(T273)) → U35_ga(T265, T9, app54_in_ggga(T268, T265, T273, T9))
app54_in_ggga(.(T210, T211), T212, T213, .(T210, T215)) → U15_ggga(T210, T211, T212, T213, T215, app54_in_ggga(T211, T212, T213, T215))
app54_in_ggga([], T225, T226, .(T225, T226)) → app54_out_ggga([], T225, T226, .(T225, T226))
U15_ggga(T210, T211, T212, T213, T215, app54_out_ggga(T211, T212, T213, T215)) → app54_out_ggga(.(T210, T211), T212, T213, .(T210, T215))
U35_ga(T265, T9, app54_out_ggga(T268, T265, T273, T9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
APP54_IN_GAGA(.(T210, T211), T212, T213, .(T210, T215)) → APP54_IN_GAGA(T211, T212, T213, T215)
APP54_IN_GAGA(.(T210, T211), T213) → APP54_IN_GAGA(T211, T213)
From the DPs we obtained the following set of size-change graphs:
APP54_IN_AGAA(.(T210, T211), T212, T213, .(T210, T215)) → APP54_IN_AGAA(T211, T212, T213, T215)
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(T106)) → le33_out_gg(0, s(T106))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T112, [], [], []) → part20_out_ggaa(T112, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(T106)) → le33_out_ga(0, s(T106))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T112, [], [], []) → part20_out_gaaa(T112, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T239, .(T240, T241)), T9) → U25_aa(T239, T240, T241, T9, le33_in_aa(T239, T240))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(T106)) → le33_out_aa(0, s(T106))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U26_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, X437, X438))
U26_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, X437, X438)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U27_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, T249, T250))
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U28_aa(T239, T240, T241, T9, qs53_in_aa(T249, X9))
qs53_in_aa(.(T131, T132), X275) → U7_aa(T131, T132, X275, part20_in_aaaa(T131, T132, X271, X272))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T112, [], [], []) → part20_out_aaaa(T112, [], [], [])
U7_aa(T131, T132, X275, part20_out_aaaa(T131, T132, X271, X272)) → qs53_out_aa(.(T131, T132), X275)
qs53_in_aa(.(T131, T132), X275) → U8_aa(T131, T132, X275, part20_in_aaaa(T131, T132, T136, T137))
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U9_aa(T131, T132, X275, qs53_in_aa(T136, X273))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T131, T132, X275, qs53_out_aa(T136, X273)) → qs53_out_aa(.(T131, T132), X275)
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U10_aa(T131, T132, X275, T137, qs53_in_aa(T136, T143))
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U11_aa(T131, T132, X275, qs53_in_aa(T137, X274))
U11_aa(T131, T132, X275, qs53_out_aa(T137, X274)) → qs53_out_aa(.(T131, T132), X275)
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U12_aa(T131, T132, X275, T143, qs53_in_aa(T137, T148))
U12_aa(T131, T132, X275, T143, qs53_out_aa(T137, T148)) → U13_aa(T131, T132, X275, app65_in_aaaa(T143, T131, T148, X275))
app65_in_aaaa(.(T171, T172), T173, T174, .(T171, X354)) → U14_aaaa(T171, T172, T173, T174, X354, app65_in_aaaa(T172, T173, T174, X354))
app65_in_aaaa([], T183, T184, .(T183, T184)) → app65_out_aaaa([], T183, T184, .(T183, T184))
U14_aaaa(T171, T172, T173, T174, X354, app65_out_aaaa(T172, T173, T174, X354)) → app65_out_aaaa(.(T171, T172), T173, T174, .(T171, X354))
U13_aa(T131, T132, X275, app65_out_aaaa(T143, T131, T148, X275)) → qs53_out_aa(.(T131, T132), X275)
U28_aa(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U29_aa(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_aa(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_aa(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
p52_in_aaaga(T45, X10, T115, T22, T9) → U16_aaaga(T45, X10, T115, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T115, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T115, T22, T9)
p52_in_aaaga(T45, T120, T115, T22, T9) → U17_aaaga(T45, T120, T115, T22, T9, qs53_in_aa(T45, T120))
U17_aaaga(T45, T120, T115, T22, T9, qs53_out_aa(T45, T120)) → U18_aaaga(T45, T120, T115, T22, T9, app54_in_agaa(T115, T22, T120, T9))
app54_in_agaa(.(T210, T211), T212, T213, .(T210, T215)) → U15_agaa(T210, T211, T212, T213, T215, app54_in_agaa(T211, T212, T213, T215))
app54_in_agaa([], T225, T226, .(T225, T226)) → app54_out_agaa([], T225, T226, .(T225, T226))
U15_agaa(T210, T211, T212, T213, T215, app54_out_agaa(T211, T212, T213, T215)) → app54_out_agaa(.(T210, T211), T212, T213, .(T210, T215))
U18_aaaga(T45, T120, T115, T22, T9, app54_out_agaa(T115, T22, T120, T9)) → p52_out_aaaga(T45, T120, T115, T22, T9)
U30_aa(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
qs1_in_aa(.(T265, []), T9) → U31_aa(T265, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T265, T9, qs99_out_a(X9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa(.(T265, []), T9) → U32_aa(T265, T9, qs99_in_a(T268))
U32_aa(T265, T9, qs99_out_a(T268)) → U33_aa(T265, T9, qs99_in_a(X10))
U33_aa(T265, T9, qs99_out_a(X10)) → qs1_out_aa(.(T265, []), T9)
U32_aa(T265, T9, qs99_out_a(T268)) → U34_aa(T265, T9, T268, qs99_in_a(T273))
U34_aa(T265, T9, T268, qs99_out_a(T273)) → U35_aa(T265, T9, app54_in_gaga(T268, T265, T273, T9))
app54_in_gaga(.(T210, T211), T212, T213, .(T210, T215)) → U15_gaga(T210, T211, T212, T213, T215, app54_in_gaga(T211, T212, T213, T215))
app54_in_gaga([], T225, T226, .(T225, T226)) → app54_out_gaga([], T225, T226, .(T225, T226))
U15_gaga(T210, T211, T212, T213, T215, app54_out_gaga(T211, T212, T213, T215)) → app54_out_gaga(.(T210, T211), T212, T213, .(T210, T215))
U35_aa(T265, T9, app54_out_gaga(T268, T265, T273, T9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T239, .(T240, T241)), T9) → U25_ga(T239, T240, T241, T9, le33_in_gg(T239, T240))
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U26_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, X437, X438))
U26_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, X437, X438)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U27_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, T249, T250))
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U28_ga(T239, T240, T241, T9, qs53_in_aa(T249, X9))
U28_ga(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U29_ga(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_ga(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_ga(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
U30_ga(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
qs1_in_ga(.(T265, []), T9) → U31_ga(T265, T9, qs99_in_a(X9))
U31_ga(T265, T9, qs99_out_a(X9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga(.(T265, []), T9) → U32_ga(T265, T9, qs99_in_a(T268))
U32_ga(T265, T9, qs99_out_a(T268)) → U33_ga(T265, T9, qs99_in_a(X10))
U33_ga(T265, T9, qs99_out_a(X10)) → qs1_out_ga(.(T265, []), T9)
U32_ga(T265, T9, qs99_out_a(T268)) → U34_ga(T265, T9, T268, qs99_in_a(T273))
U34_ga(T265, T9, T268, qs99_out_a(T273)) → U35_ga(T265, T9, app54_in_ggga(T268, T265, T273, T9))
app54_in_ggga(.(T210, T211), T212, T213, .(T210, T215)) → U15_ggga(T210, T211, T212, T213, T215, app54_in_ggga(T211, T212, T213, T215))
app54_in_ggga([], T225, T226, .(T225, T226)) → app54_out_ggga([], T225, T226, .(T225, T226))
U15_ggga(T210, T211, T212, T213, T215, app54_out_ggga(T211, T212, T213, T215)) → app54_out_ggga(.(T210, T211), T212, T213, .(T210, T215))
U35_ga(T265, T9, app54_out_ggga(T268, T265, T273, T9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
APP54_IN_AGAA(.(T210, T211), T212, T213, .(T210, T215)) → APP54_IN_AGAA(T211, T212, T213, T215)
APP54_IN_AGAA(T212) → APP54_IN_AGAA(T212)
APP65_IN_AAAA(.(T171, T172), T173, T174, .(T171, X354)) → APP65_IN_AAAA(T172, T173, T174, X354)
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(T106)) → le33_out_gg(0, s(T106))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T112, [], [], []) → part20_out_ggaa(T112, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(T106)) → le33_out_ga(0, s(T106))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T112, [], [], []) → part20_out_gaaa(T112, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T239, .(T240, T241)), T9) → U25_aa(T239, T240, T241, T9, le33_in_aa(T239, T240))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(T106)) → le33_out_aa(0, s(T106))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U26_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, X437, X438))
U26_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, X437, X438)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U27_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, T249, T250))
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U28_aa(T239, T240, T241, T9, qs53_in_aa(T249, X9))
qs53_in_aa(.(T131, T132), X275) → U7_aa(T131, T132, X275, part20_in_aaaa(T131, T132, X271, X272))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T112, [], [], []) → part20_out_aaaa(T112, [], [], [])
U7_aa(T131, T132, X275, part20_out_aaaa(T131, T132, X271, X272)) → qs53_out_aa(.(T131, T132), X275)
qs53_in_aa(.(T131, T132), X275) → U8_aa(T131, T132, X275, part20_in_aaaa(T131, T132, T136, T137))
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U9_aa(T131, T132, X275, qs53_in_aa(T136, X273))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T131, T132, X275, qs53_out_aa(T136, X273)) → qs53_out_aa(.(T131, T132), X275)
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U10_aa(T131, T132, X275, T137, qs53_in_aa(T136, T143))
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U11_aa(T131, T132, X275, qs53_in_aa(T137, X274))
U11_aa(T131, T132, X275, qs53_out_aa(T137, X274)) → qs53_out_aa(.(T131, T132), X275)
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U12_aa(T131, T132, X275, T143, qs53_in_aa(T137, T148))
U12_aa(T131, T132, X275, T143, qs53_out_aa(T137, T148)) → U13_aa(T131, T132, X275, app65_in_aaaa(T143, T131, T148, X275))
app65_in_aaaa(.(T171, T172), T173, T174, .(T171, X354)) → U14_aaaa(T171, T172, T173, T174, X354, app65_in_aaaa(T172, T173, T174, X354))
app65_in_aaaa([], T183, T184, .(T183, T184)) → app65_out_aaaa([], T183, T184, .(T183, T184))
U14_aaaa(T171, T172, T173, T174, X354, app65_out_aaaa(T172, T173, T174, X354)) → app65_out_aaaa(.(T171, T172), T173, T174, .(T171, X354))
U13_aa(T131, T132, X275, app65_out_aaaa(T143, T131, T148, X275)) → qs53_out_aa(.(T131, T132), X275)
U28_aa(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U29_aa(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_aa(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_aa(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
p52_in_aaaga(T45, X10, T115, T22, T9) → U16_aaaga(T45, X10, T115, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T115, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T115, T22, T9)
p52_in_aaaga(T45, T120, T115, T22, T9) → U17_aaaga(T45, T120, T115, T22, T9, qs53_in_aa(T45, T120))
U17_aaaga(T45, T120, T115, T22, T9, qs53_out_aa(T45, T120)) → U18_aaaga(T45, T120, T115, T22, T9, app54_in_agaa(T115, T22, T120, T9))
app54_in_agaa(.(T210, T211), T212, T213, .(T210, T215)) → U15_agaa(T210, T211, T212, T213, T215, app54_in_agaa(T211, T212, T213, T215))
app54_in_agaa([], T225, T226, .(T225, T226)) → app54_out_agaa([], T225, T226, .(T225, T226))
U15_agaa(T210, T211, T212, T213, T215, app54_out_agaa(T211, T212, T213, T215)) → app54_out_agaa(.(T210, T211), T212, T213, .(T210, T215))
U18_aaaga(T45, T120, T115, T22, T9, app54_out_agaa(T115, T22, T120, T9)) → p52_out_aaaga(T45, T120, T115, T22, T9)
U30_aa(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
qs1_in_aa(.(T265, []), T9) → U31_aa(T265, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T265, T9, qs99_out_a(X9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa(.(T265, []), T9) → U32_aa(T265, T9, qs99_in_a(T268))
U32_aa(T265, T9, qs99_out_a(T268)) → U33_aa(T265, T9, qs99_in_a(X10))
U33_aa(T265, T9, qs99_out_a(X10)) → qs1_out_aa(.(T265, []), T9)
U32_aa(T265, T9, qs99_out_a(T268)) → U34_aa(T265, T9, T268, qs99_in_a(T273))
U34_aa(T265, T9, T268, qs99_out_a(T273)) → U35_aa(T265, T9, app54_in_gaga(T268, T265, T273, T9))
app54_in_gaga(.(T210, T211), T212, T213, .(T210, T215)) → U15_gaga(T210, T211, T212, T213, T215, app54_in_gaga(T211, T212, T213, T215))
app54_in_gaga([], T225, T226, .(T225, T226)) → app54_out_gaga([], T225, T226, .(T225, T226))
U15_gaga(T210, T211, T212, T213, T215, app54_out_gaga(T211, T212, T213, T215)) → app54_out_gaga(.(T210, T211), T212, T213, .(T210, T215))
U35_aa(T265, T9, app54_out_gaga(T268, T265, T273, T9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T239, .(T240, T241)), T9) → U25_ga(T239, T240, T241, T9, le33_in_gg(T239, T240))
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U26_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, X437, X438))
U26_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, X437, X438)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U27_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, T249, T250))
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U28_ga(T239, T240, T241, T9, qs53_in_aa(T249, X9))
U28_ga(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U29_ga(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_ga(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_ga(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
U30_ga(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
qs1_in_ga(.(T265, []), T9) → U31_ga(T265, T9, qs99_in_a(X9))
U31_ga(T265, T9, qs99_out_a(X9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga(.(T265, []), T9) → U32_ga(T265, T9, qs99_in_a(T268))
U32_ga(T265, T9, qs99_out_a(T268)) → U33_ga(T265, T9, qs99_in_a(X10))
U33_ga(T265, T9, qs99_out_a(X10)) → qs1_out_ga(.(T265, []), T9)
U32_ga(T265, T9, qs99_out_a(T268)) → U34_ga(T265, T9, T268, qs99_in_a(T273))
U34_ga(T265, T9, T268, qs99_out_a(T273)) → U35_ga(T265, T9, app54_in_ggga(T268, T265, T273, T9))
app54_in_ggga(.(T210, T211), T212, T213, .(T210, T215)) → U15_ggga(T210, T211, T212, T213, T215, app54_in_ggga(T211, T212, T213, T215))
app54_in_ggga([], T225, T226, .(T225, T226)) → app54_out_ggga([], T225, T226, .(T225, T226))
U15_ggga(T210, T211, T212, T213, T215, app54_out_ggga(T211, T212, T213, T215)) → app54_out_ggga(.(T210, T211), T212, T213, .(T210, T215))
U35_ga(T265, T9, app54_out_ggga(T268, T265, T273, T9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
APP65_IN_AAAA(.(T171, T172), T173, T174, .(T171, X354)) → APP65_IN_AAAA(T172, T173, T174, X354)
APP65_IN_AAAA → APP65_IN_AAAA
LE33_IN_AA(s(T98), s(T99)) → LE33_IN_AA(T98, T99)
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(T106)) → le33_out_gg(0, s(T106))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T112, [], [], []) → part20_out_ggaa(T112, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(T106)) → le33_out_ga(0, s(T106))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T112, [], [], []) → part20_out_gaaa(T112, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T239, .(T240, T241)), T9) → U25_aa(T239, T240, T241, T9, le33_in_aa(T239, T240))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(T106)) → le33_out_aa(0, s(T106))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U26_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, X437, X438))
U26_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, X437, X438)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U27_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, T249, T250))
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U28_aa(T239, T240, T241, T9, qs53_in_aa(T249, X9))
qs53_in_aa(.(T131, T132), X275) → U7_aa(T131, T132, X275, part20_in_aaaa(T131, T132, X271, X272))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T112, [], [], []) → part20_out_aaaa(T112, [], [], [])
U7_aa(T131, T132, X275, part20_out_aaaa(T131, T132, X271, X272)) → qs53_out_aa(.(T131, T132), X275)
qs53_in_aa(.(T131, T132), X275) → U8_aa(T131, T132, X275, part20_in_aaaa(T131, T132, T136, T137))
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U9_aa(T131, T132, X275, qs53_in_aa(T136, X273))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T131, T132, X275, qs53_out_aa(T136, X273)) → qs53_out_aa(.(T131, T132), X275)
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U10_aa(T131, T132, X275, T137, qs53_in_aa(T136, T143))
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U11_aa(T131, T132, X275, qs53_in_aa(T137, X274))
U11_aa(T131, T132, X275, qs53_out_aa(T137, X274)) → qs53_out_aa(.(T131, T132), X275)
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U12_aa(T131, T132, X275, T143, qs53_in_aa(T137, T148))
U12_aa(T131, T132, X275, T143, qs53_out_aa(T137, T148)) → U13_aa(T131, T132, X275, app65_in_aaaa(T143, T131, T148, X275))
app65_in_aaaa(.(T171, T172), T173, T174, .(T171, X354)) → U14_aaaa(T171, T172, T173, T174, X354, app65_in_aaaa(T172, T173, T174, X354))
app65_in_aaaa([], T183, T184, .(T183, T184)) → app65_out_aaaa([], T183, T184, .(T183, T184))
U14_aaaa(T171, T172, T173, T174, X354, app65_out_aaaa(T172, T173, T174, X354)) → app65_out_aaaa(.(T171, T172), T173, T174, .(T171, X354))
U13_aa(T131, T132, X275, app65_out_aaaa(T143, T131, T148, X275)) → qs53_out_aa(.(T131, T132), X275)
U28_aa(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U29_aa(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_aa(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_aa(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
p52_in_aaaga(T45, X10, T115, T22, T9) → U16_aaaga(T45, X10, T115, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T115, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T115, T22, T9)
p52_in_aaaga(T45, T120, T115, T22, T9) → U17_aaaga(T45, T120, T115, T22, T9, qs53_in_aa(T45, T120))
U17_aaaga(T45, T120, T115, T22, T9, qs53_out_aa(T45, T120)) → U18_aaaga(T45, T120, T115, T22, T9, app54_in_agaa(T115, T22, T120, T9))
app54_in_agaa(.(T210, T211), T212, T213, .(T210, T215)) → U15_agaa(T210, T211, T212, T213, T215, app54_in_agaa(T211, T212, T213, T215))
app54_in_agaa([], T225, T226, .(T225, T226)) → app54_out_agaa([], T225, T226, .(T225, T226))
U15_agaa(T210, T211, T212, T213, T215, app54_out_agaa(T211, T212, T213, T215)) → app54_out_agaa(.(T210, T211), T212, T213, .(T210, T215))
U18_aaaga(T45, T120, T115, T22, T9, app54_out_agaa(T115, T22, T120, T9)) → p52_out_aaaga(T45, T120, T115, T22, T9)
U30_aa(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
qs1_in_aa(.(T265, []), T9) → U31_aa(T265, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T265, T9, qs99_out_a(X9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa(.(T265, []), T9) → U32_aa(T265, T9, qs99_in_a(T268))
U32_aa(T265, T9, qs99_out_a(T268)) → U33_aa(T265, T9, qs99_in_a(X10))
U33_aa(T265, T9, qs99_out_a(X10)) → qs1_out_aa(.(T265, []), T9)
U32_aa(T265, T9, qs99_out_a(T268)) → U34_aa(T265, T9, T268, qs99_in_a(T273))
U34_aa(T265, T9, T268, qs99_out_a(T273)) → U35_aa(T265, T9, app54_in_gaga(T268, T265, T273, T9))
app54_in_gaga(.(T210, T211), T212, T213, .(T210, T215)) → U15_gaga(T210, T211, T212, T213, T215, app54_in_gaga(T211, T212, T213, T215))
app54_in_gaga([], T225, T226, .(T225, T226)) → app54_out_gaga([], T225, T226, .(T225, T226))
U15_gaga(T210, T211, T212, T213, T215, app54_out_gaga(T211, T212, T213, T215)) → app54_out_gaga(.(T210, T211), T212, T213, .(T210, T215))
U35_aa(T265, T9, app54_out_gaga(T268, T265, T273, T9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T239, .(T240, T241)), T9) → U25_ga(T239, T240, T241, T9, le33_in_gg(T239, T240))
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U26_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, X437, X438))
U26_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, X437, X438)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U27_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, T249, T250))
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U28_ga(T239, T240, T241, T9, qs53_in_aa(T249, X9))
U28_ga(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U29_ga(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_ga(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_ga(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
U30_ga(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
qs1_in_ga(.(T265, []), T9) → U31_ga(T265, T9, qs99_in_a(X9))
U31_ga(T265, T9, qs99_out_a(X9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga(.(T265, []), T9) → U32_ga(T265, T9, qs99_in_a(T268))
U32_ga(T265, T9, qs99_out_a(T268)) → U33_ga(T265, T9, qs99_in_a(X10))
U33_ga(T265, T9, qs99_out_a(X10)) → qs1_out_ga(.(T265, []), T9)
U32_ga(T265, T9, qs99_out_a(T268)) → U34_ga(T265, T9, T268, qs99_in_a(T273))
U34_ga(T265, T9, T268, qs99_out_a(T273)) → U35_ga(T265, T9, app54_in_ggga(T268, T265, T273, T9))
app54_in_ggga(.(T210, T211), T212, T213, .(T210, T215)) → U15_ggga(T210, T211, T212, T213, T215, app54_in_ggga(T211, T212, T213, T215))
app54_in_ggga([], T225, T226, .(T225, T226)) → app54_out_ggga([], T225, T226, .(T225, T226))
U15_ggga(T210, T211, T212, T213, T215, app54_out_ggga(T211, T212, T213, T215)) → app54_out_ggga(.(T210, T211), T212, T213, .(T210, T215))
U35_ga(T265, T9, app54_out_ggga(T268, T265, T273, T9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
LE33_IN_AA(s(T98), s(T99)) → LE33_IN_AA(T98, T99)
LE33_IN_AA → LE33_IN_AA
LE33_IN_GA(s(T98), s(T99)) → LE33_IN_GA(T98, T99)
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(T106)) → le33_out_gg(0, s(T106))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T112, [], [], []) → part20_out_ggaa(T112, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(T106)) → le33_out_ga(0, s(T106))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T112, [], [], []) → part20_out_gaaa(T112, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T239, .(T240, T241)), T9) → U25_aa(T239, T240, T241, T9, le33_in_aa(T239, T240))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(T106)) → le33_out_aa(0, s(T106))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U26_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, X437, X438))
U26_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, X437, X438)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U27_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, T249, T250))
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U28_aa(T239, T240, T241, T9, qs53_in_aa(T249, X9))
qs53_in_aa(.(T131, T132), X275) → U7_aa(T131, T132, X275, part20_in_aaaa(T131, T132, X271, X272))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T112, [], [], []) → part20_out_aaaa(T112, [], [], [])
U7_aa(T131, T132, X275, part20_out_aaaa(T131, T132, X271, X272)) → qs53_out_aa(.(T131, T132), X275)
qs53_in_aa(.(T131, T132), X275) → U8_aa(T131, T132, X275, part20_in_aaaa(T131, T132, T136, T137))
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U9_aa(T131, T132, X275, qs53_in_aa(T136, X273))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T131, T132, X275, qs53_out_aa(T136, X273)) → qs53_out_aa(.(T131, T132), X275)
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U10_aa(T131, T132, X275, T137, qs53_in_aa(T136, T143))
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U11_aa(T131, T132, X275, qs53_in_aa(T137, X274))
U11_aa(T131, T132, X275, qs53_out_aa(T137, X274)) → qs53_out_aa(.(T131, T132), X275)
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U12_aa(T131, T132, X275, T143, qs53_in_aa(T137, T148))
U12_aa(T131, T132, X275, T143, qs53_out_aa(T137, T148)) → U13_aa(T131, T132, X275, app65_in_aaaa(T143, T131, T148, X275))
app65_in_aaaa(.(T171, T172), T173, T174, .(T171, X354)) → U14_aaaa(T171, T172, T173, T174, X354, app65_in_aaaa(T172, T173, T174, X354))
app65_in_aaaa([], T183, T184, .(T183, T184)) → app65_out_aaaa([], T183, T184, .(T183, T184))
U14_aaaa(T171, T172, T173, T174, X354, app65_out_aaaa(T172, T173, T174, X354)) → app65_out_aaaa(.(T171, T172), T173, T174, .(T171, X354))
U13_aa(T131, T132, X275, app65_out_aaaa(T143, T131, T148, X275)) → qs53_out_aa(.(T131, T132), X275)
U28_aa(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U29_aa(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_aa(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_aa(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
p52_in_aaaga(T45, X10, T115, T22, T9) → U16_aaaga(T45, X10, T115, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T115, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T115, T22, T9)
p52_in_aaaga(T45, T120, T115, T22, T9) → U17_aaaga(T45, T120, T115, T22, T9, qs53_in_aa(T45, T120))
U17_aaaga(T45, T120, T115, T22, T9, qs53_out_aa(T45, T120)) → U18_aaaga(T45, T120, T115, T22, T9, app54_in_agaa(T115, T22, T120, T9))
app54_in_agaa(.(T210, T211), T212, T213, .(T210, T215)) → U15_agaa(T210, T211, T212, T213, T215, app54_in_agaa(T211, T212, T213, T215))
app54_in_agaa([], T225, T226, .(T225, T226)) → app54_out_agaa([], T225, T226, .(T225, T226))
U15_agaa(T210, T211, T212, T213, T215, app54_out_agaa(T211, T212, T213, T215)) → app54_out_agaa(.(T210, T211), T212, T213, .(T210, T215))
U18_aaaga(T45, T120, T115, T22, T9, app54_out_agaa(T115, T22, T120, T9)) → p52_out_aaaga(T45, T120, T115, T22, T9)
U30_aa(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
qs1_in_aa(.(T265, []), T9) → U31_aa(T265, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T265, T9, qs99_out_a(X9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa(.(T265, []), T9) → U32_aa(T265, T9, qs99_in_a(T268))
U32_aa(T265, T9, qs99_out_a(T268)) → U33_aa(T265, T9, qs99_in_a(X10))
U33_aa(T265, T9, qs99_out_a(X10)) → qs1_out_aa(.(T265, []), T9)
U32_aa(T265, T9, qs99_out_a(T268)) → U34_aa(T265, T9, T268, qs99_in_a(T273))
U34_aa(T265, T9, T268, qs99_out_a(T273)) → U35_aa(T265, T9, app54_in_gaga(T268, T265, T273, T9))
app54_in_gaga(.(T210, T211), T212, T213, .(T210, T215)) → U15_gaga(T210, T211, T212, T213, T215, app54_in_gaga(T211, T212, T213, T215))
app54_in_gaga([], T225, T226, .(T225, T226)) → app54_out_gaga([], T225, T226, .(T225, T226))
U15_gaga(T210, T211, T212, T213, T215, app54_out_gaga(T211, T212, T213, T215)) → app54_out_gaga(.(T210, T211), T212, T213, .(T210, T215))
U35_aa(T265, T9, app54_out_gaga(T268, T265, T273, T9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T239, .(T240, T241)), T9) → U25_ga(T239, T240, T241, T9, le33_in_gg(T239, T240))
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U26_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, X437, X438))
U26_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, X437, X438)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U27_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, T249, T250))
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U28_ga(T239, T240, T241, T9, qs53_in_aa(T249, X9))
U28_ga(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U29_ga(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_ga(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_ga(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
U30_ga(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
qs1_in_ga(.(T265, []), T9) → U31_ga(T265, T9, qs99_in_a(X9))
U31_ga(T265, T9, qs99_out_a(X9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga(.(T265, []), T9) → U32_ga(T265, T9, qs99_in_a(T268))
U32_ga(T265, T9, qs99_out_a(T268)) → U33_ga(T265, T9, qs99_in_a(X10))
U33_ga(T265, T9, qs99_out_a(X10)) → qs1_out_ga(.(T265, []), T9)
U32_ga(T265, T9, qs99_out_a(T268)) → U34_ga(T265, T9, T268, qs99_in_a(T273))
U34_ga(T265, T9, T268, qs99_out_a(T273)) → U35_ga(T265, T9, app54_in_ggga(T268, T265, T273, T9))
app54_in_ggga(.(T210, T211), T212, T213, .(T210, T215)) → U15_ggga(T210, T211, T212, T213, T215, app54_in_ggga(T211, T212, T213, T215))
app54_in_ggga([], T225, T226, .(T225, T226)) → app54_out_ggga([], T225, T226, .(T225, T226))
U15_ggga(T210, T211, T212, T213, T215, app54_out_ggga(T211, T212, T213, T215)) → app54_out_ggga(.(T210, T211), T212, T213, .(T210, T215))
U35_ga(T265, T9, app54_out_ggga(T268, T265, T273, T9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
LE33_IN_GA(s(T98), s(T99)) → LE33_IN_GA(T98, T99)
LE33_IN_GA(s(T98)) → LE33_IN_GA(T98)
From the DPs we obtained the following set of size-change graphs:
GT10_IN_GA(s(T37), s(T38)) → GT10_IN_GA(T37, T38)
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(T106)) → le33_out_gg(0, s(T106))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T112, [], [], []) → part20_out_ggaa(T112, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(T106)) → le33_out_ga(0, s(T106))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T112, [], [], []) → part20_out_gaaa(T112, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T239, .(T240, T241)), T9) → U25_aa(T239, T240, T241, T9, le33_in_aa(T239, T240))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(T106)) → le33_out_aa(0, s(T106))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U26_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, X437, X438))
U26_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, X437, X438)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U27_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, T249, T250))
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U28_aa(T239, T240, T241, T9, qs53_in_aa(T249, X9))
qs53_in_aa(.(T131, T132), X275) → U7_aa(T131, T132, X275, part20_in_aaaa(T131, T132, X271, X272))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T112, [], [], []) → part20_out_aaaa(T112, [], [], [])
U7_aa(T131, T132, X275, part20_out_aaaa(T131, T132, X271, X272)) → qs53_out_aa(.(T131, T132), X275)
qs53_in_aa(.(T131, T132), X275) → U8_aa(T131, T132, X275, part20_in_aaaa(T131, T132, T136, T137))
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U9_aa(T131, T132, X275, qs53_in_aa(T136, X273))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T131, T132, X275, qs53_out_aa(T136, X273)) → qs53_out_aa(.(T131, T132), X275)
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U10_aa(T131, T132, X275, T137, qs53_in_aa(T136, T143))
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U11_aa(T131, T132, X275, qs53_in_aa(T137, X274))
U11_aa(T131, T132, X275, qs53_out_aa(T137, X274)) → qs53_out_aa(.(T131, T132), X275)
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U12_aa(T131, T132, X275, T143, qs53_in_aa(T137, T148))
U12_aa(T131, T132, X275, T143, qs53_out_aa(T137, T148)) → U13_aa(T131, T132, X275, app65_in_aaaa(T143, T131, T148, X275))
app65_in_aaaa(.(T171, T172), T173, T174, .(T171, X354)) → U14_aaaa(T171, T172, T173, T174, X354, app65_in_aaaa(T172, T173, T174, X354))
app65_in_aaaa([], T183, T184, .(T183, T184)) → app65_out_aaaa([], T183, T184, .(T183, T184))
U14_aaaa(T171, T172, T173, T174, X354, app65_out_aaaa(T172, T173, T174, X354)) → app65_out_aaaa(.(T171, T172), T173, T174, .(T171, X354))
U13_aa(T131, T132, X275, app65_out_aaaa(T143, T131, T148, X275)) → qs53_out_aa(.(T131, T132), X275)
U28_aa(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U29_aa(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_aa(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_aa(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
p52_in_aaaga(T45, X10, T115, T22, T9) → U16_aaaga(T45, X10, T115, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T115, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T115, T22, T9)
p52_in_aaaga(T45, T120, T115, T22, T9) → U17_aaaga(T45, T120, T115, T22, T9, qs53_in_aa(T45, T120))
U17_aaaga(T45, T120, T115, T22, T9, qs53_out_aa(T45, T120)) → U18_aaaga(T45, T120, T115, T22, T9, app54_in_agaa(T115, T22, T120, T9))
app54_in_agaa(.(T210, T211), T212, T213, .(T210, T215)) → U15_agaa(T210, T211, T212, T213, T215, app54_in_agaa(T211, T212, T213, T215))
app54_in_agaa([], T225, T226, .(T225, T226)) → app54_out_agaa([], T225, T226, .(T225, T226))
U15_agaa(T210, T211, T212, T213, T215, app54_out_agaa(T211, T212, T213, T215)) → app54_out_agaa(.(T210, T211), T212, T213, .(T210, T215))
U18_aaaga(T45, T120, T115, T22, T9, app54_out_agaa(T115, T22, T120, T9)) → p52_out_aaaga(T45, T120, T115, T22, T9)
U30_aa(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
qs1_in_aa(.(T265, []), T9) → U31_aa(T265, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T265, T9, qs99_out_a(X9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa(.(T265, []), T9) → U32_aa(T265, T9, qs99_in_a(T268))
U32_aa(T265, T9, qs99_out_a(T268)) → U33_aa(T265, T9, qs99_in_a(X10))
U33_aa(T265, T9, qs99_out_a(X10)) → qs1_out_aa(.(T265, []), T9)
U32_aa(T265, T9, qs99_out_a(T268)) → U34_aa(T265, T9, T268, qs99_in_a(T273))
U34_aa(T265, T9, T268, qs99_out_a(T273)) → U35_aa(T265, T9, app54_in_gaga(T268, T265, T273, T9))
app54_in_gaga(.(T210, T211), T212, T213, .(T210, T215)) → U15_gaga(T210, T211, T212, T213, T215, app54_in_gaga(T211, T212, T213, T215))
app54_in_gaga([], T225, T226, .(T225, T226)) → app54_out_gaga([], T225, T226, .(T225, T226))
U15_gaga(T210, T211, T212, T213, T215, app54_out_gaga(T211, T212, T213, T215)) → app54_out_gaga(.(T210, T211), T212, T213, .(T210, T215))
U35_aa(T265, T9, app54_out_gaga(T268, T265, T273, T9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T239, .(T240, T241)), T9) → U25_ga(T239, T240, T241, T9, le33_in_gg(T239, T240))
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U26_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, X437, X438))
U26_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, X437, X438)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U27_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, T249, T250))
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U28_ga(T239, T240, T241, T9, qs53_in_aa(T249, X9))
U28_ga(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U29_ga(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_ga(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_ga(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
U30_ga(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
qs1_in_ga(.(T265, []), T9) → U31_ga(T265, T9, qs99_in_a(X9))
U31_ga(T265, T9, qs99_out_a(X9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga(.(T265, []), T9) → U32_ga(T265, T9, qs99_in_a(T268))
U32_ga(T265, T9, qs99_out_a(T268)) → U33_ga(T265, T9, qs99_in_a(X10))
U33_ga(T265, T9, qs99_out_a(X10)) → qs1_out_ga(.(T265, []), T9)
U32_ga(T265, T9, qs99_out_a(T268)) → U34_ga(T265, T9, T268, qs99_in_a(T273))
U34_ga(T265, T9, T268, qs99_out_a(T273)) → U35_ga(T265, T9, app54_in_ggga(T268, T265, T273, T9))
app54_in_ggga(.(T210, T211), T212, T213, .(T210, T215)) → U15_ggga(T210, T211, T212, T213, T215, app54_in_ggga(T211, T212, T213, T215))
app54_in_ggga([], T225, T226, .(T225, T226)) → app54_out_ggga([], T225, T226, .(T225, T226))
U15_ggga(T210, T211, T212, T213, T215, app54_out_ggga(T211, T212, T213, T215)) → app54_out_ggga(.(T210, T211), T212, T213, .(T210, T215))
U35_ga(T265, T9, app54_out_ggga(T268, T265, T273, T9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
GT10_IN_GA(s(T37), s(T38)) → GT10_IN_GA(T37, T38)
GT10_IN_GA(s(T37)) → GT10_IN_GA(T37)
From the DPs we obtained the following set of size-change graphs:
U2_GAAA(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → PART20_IN_GAAA(T61, T63, X119, X120)
PART20_IN_GAAA(T61, .(T62, T63), .(T62, X119), X120) → U2_GAAA(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
PART20_IN_GAAA(T83, .(T84, T85), X170, .(T84, X171)) → U4_GAAA(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
U4_GAAA(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → PART20_IN_GAAA(T83, T85, X170, X171)
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(T106)) → le33_out_gg(0, s(T106))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T112, [], [], []) → part20_out_ggaa(T112, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(T106)) → le33_out_ga(0, s(T106))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T112, [], [], []) → part20_out_gaaa(T112, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T239, .(T240, T241)), T9) → U25_aa(T239, T240, T241, T9, le33_in_aa(T239, T240))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(T106)) → le33_out_aa(0, s(T106))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U26_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, X437, X438))
U26_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, X437, X438)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U27_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, T249, T250))
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U28_aa(T239, T240, T241, T9, qs53_in_aa(T249, X9))
qs53_in_aa(.(T131, T132), X275) → U7_aa(T131, T132, X275, part20_in_aaaa(T131, T132, X271, X272))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T112, [], [], []) → part20_out_aaaa(T112, [], [], [])
U7_aa(T131, T132, X275, part20_out_aaaa(T131, T132, X271, X272)) → qs53_out_aa(.(T131, T132), X275)
qs53_in_aa(.(T131, T132), X275) → U8_aa(T131, T132, X275, part20_in_aaaa(T131, T132, T136, T137))
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U9_aa(T131, T132, X275, qs53_in_aa(T136, X273))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T131, T132, X275, qs53_out_aa(T136, X273)) → qs53_out_aa(.(T131, T132), X275)
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U10_aa(T131, T132, X275, T137, qs53_in_aa(T136, T143))
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U11_aa(T131, T132, X275, qs53_in_aa(T137, X274))
U11_aa(T131, T132, X275, qs53_out_aa(T137, X274)) → qs53_out_aa(.(T131, T132), X275)
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U12_aa(T131, T132, X275, T143, qs53_in_aa(T137, T148))
U12_aa(T131, T132, X275, T143, qs53_out_aa(T137, T148)) → U13_aa(T131, T132, X275, app65_in_aaaa(T143, T131, T148, X275))
app65_in_aaaa(.(T171, T172), T173, T174, .(T171, X354)) → U14_aaaa(T171, T172, T173, T174, X354, app65_in_aaaa(T172, T173, T174, X354))
app65_in_aaaa([], T183, T184, .(T183, T184)) → app65_out_aaaa([], T183, T184, .(T183, T184))
U14_aaaa(T171, T172, T173, T174, X354, app65_out_aaaa(T172, T173, T174, X354)) → app65_out_aaaa(.(T171, T172), T173, T174, .(T171, X354))
U13_aa(T131, T132, X275, app65_out_aaaa(T143, T131, T148, X275)) → qs53_out_aa(.(T131, T132), X275)
U28_aa(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U29_aa(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_aa(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_aa(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
p52_in_aaaga(T45, X10, T115, T22, T9) → U16_aaaga(T45, X10, T115, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T115, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T115, T22, T9)
p52_in_aaaga(T45, T120, T115, T22, T9) → U17_aaaga(T45, T120, T115, T22, T9, qs53_in_aa(T45, T120))
U17_aaaga(T45, T120, T115, T22, T9, qs53_out_aa(T45, T120)) → U18_aaaga(T45, T120, T115, T22, T9, app54_in_agaa(T115, T22, T120, T9))
app54_in_agaa(.(T210, T211), T212, T213, .(T210, T215)) → U15_agaa(T210, T211, T212, T213, T215, app54_in_agaa(T211, T212, T213, T215))
app54_in_agaa([], T225, T226, .(T225, T226)) → app54_out_agaa([], T225, T226, .(T225, T226))
U15_agaa(T210, T211, T212, T213, T215, app54_out_agaa(T211, T212, T213, T215)) → app54_out_agaa(.(T210, T211), T212, T213, .(T210, T215))
U18_aaaga(T45, T120, T115, T22, T9, app54_out_agaa(T115, T22, T120, T9)) → p52_out_aaaga(T45, T120, T115, T22, T9)
U30_aa(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
qs1_in_aa(.(T265, []), T9) → U31_aa(T265, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T265, T9, qs99_out_a(X9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa(.(T265, []), T9) → U32_aa(T265, T9, qs99_in_a(T268))
U32_aa(T265, T9, qs99_out_a(T268)) → U33_aa(T265, T9, qs99_in_a(X10))
U33_aa(T265, T9, qs99_out_a(X10)) → qs1_out_aa(.(T265, []), T9)
U32_aa(T265, T9, qs99_out_a(T268)) → U34_aa(T265, T9, T268, qs99_in_a(T273))
U34_aa(T265, T9, T268, qs99_out_a(T273)) → U35_aa(T265, T9, app54_in_gaga(T268, T265, T273, T9))
app54_in_gaga(.(T210, T211), T212, T213, .(T210, T215)) → U15_gaga(T210, T211, T212, T213, T215, app54_in_gaga(T211, T212, T213, T215))
app54_in_gaga([], T225, T226, .(T225, T226)) → app54_out_gaga([], T225, T226, .(T225, T226))
U15_gaga(T210, T211, T212, T213, T215, app54_out_gaga(T211, T212, T213, T215)) → app54_out_gaga(.(T210, T211), T212, T213, .(T210, T215))
U35_aa(T265, T9, app54_out_gaga(T268, T265, T273, T9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T239, .(T240, T241)), T9) → U25_ga(T239, T240, T241, T9, le33_in_gg(T239, T240))
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U26_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, X437, X438))
U26_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, X437, X438)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U27_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, T249, T250))
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U28_ga(T239, T240, T241, T9, qs53_in_aa(T249, X9))
U28_ga(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U29_ga(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_ga(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_ga(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
U30_ga(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
qs1_in_ga(.(T265, []), T9) → U31_ga(T265, T9, qs99_in_a(X9))
U31_ga(T265, T9, qs99_out_a(X9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga(.(T265, []), T9) → U32_ga(T265, T9, qs99_in_a(T268))
U32_ga(T265, T9, qs99_out_a(T268)) → U33_ga(T265, T9, qs99_in_a(X10))
U33_ga(T265, T9, qs99_out_a(X10)) → qs1_out_ga(.(T265, []), T9)
U32_ga(T265, T9, qs99_out_a(T268)) → U34_ga(T265, T9, T268, qs99_in_a(T273))
U34_ga(T265, T9, T268, qs99_out_a(T273)) → U35_ga(T265, T9, app54_in_ggga(T268, T265, T273, T9))
app54_in_ggga(.(T210, T211), T212, T213, .(T210, T215)) → U15_ggga(T210, T211, T212, T213, T215, app54_in_ggga(T211, T212, T213, T215))
app54_in_ggga([], T225, T226, .(T225, T226)) → app54_out_ggga([], T225, T226, .(T225, T226))
U15_ggga(T210, T211, T212, T213, T215, app54_out_ggga(T211, T212, T213, T215)) → app54_out_ggga(.(T210, T211), T212, T213, .(T210, T215))
U35_ga(T265, T9, app54_out_ggga(T268, T265, T273, T9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
U2_GAAA(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → PART20_IN_GAAA(T61, T63, X119, X120)
PART20_IN_GAAA(T61, .(T62, T63), .(T62, X119), X120) → U2_GAAA(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
PART20_IN_GAAA(T83, .(T84, T85), X170, .(T84, X171)) → U4_GAAA(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
U4_GAAA(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → PART20_IN_GAAA(T83, T85, X170, X171)
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(T106)) → le33_out_ga(0, s(T106))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U2_GAAA(T61, gt10_out_ga(T61, T62)) → PART20_IN_GAAA(T61)
PART20_IN_GAAA(T61) → U2_GAAA(T61, gt10_in_ga(T61))
PART20_IN_GAAA(T83) → U4_GAAA(T83, le33_in_ga(T83))
U4_GAAA(T83, le33_out_ga(T83)) → PART20_IN_GAAA(T83)
gt10_in_ga(s(T37)) → U1_ga(T37, gt10_in_ga(T37))
gt10_in_ga(s(0)) → gt10_out_ga(s(0), 0)
le33_in_ga(s(T98)) → U6_ga(T98, le33_in_ga(T98))
le33_in_ga(0) → le33_out_ga(0)
U1_ga(T37, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U6_ga(T98, le33_out_ga(T98)) → le33_out_ga(s(T98))
gt10_in_ga(x0)
le33_in_ga(x0)
U1_ga(x0, x1)
U6_ga(x0, x1)
PART20_IN_GAAA(s(x0)) → U2_GAAA(s(x0), U1_ga(x0, gt10_in_ga(x0)))
PART20_IN_GAAA(s(0)) → U2_GAAA(s(0), gt10_out_ga(s(0), 0))
U2_GAAA(T61, gt10_out_ga(T61, T62)) → PART20_IN_GAAA(T61)
PART20_IN_GAAA(T83) → U4_GAAA(T83, le33_in_ga(T83))
U4_GAAA(T83, le33_out_ga(T83)) → PART20_IN_GAAA(T83)
PART20_IN_GAAA(s(x0)) → U2_GAAA(s(x0), U1_ga(x0, gt10_in_ga(x0)))
PART20_IN_GAAA(s(0)) → U2_GAAA(s(0), gt10_out_ga(s(0), 0))
gt10_in_ga(s(T37)) → U1_ga(T37, gt10_in_ga(T37))
gt10_in_ga(s(0)) → gt10_out_ga(s(0), 0)
le33_in_ga(s(T98)) → U6_ga(T98, le33_in_ga(T98))
le33_in_ga(0) → le33_out_ga(0)
U1_ga(T37, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U6_ga(T98, le33_out_ga(T98)) → le33_out_ga(s(T98))
gt10_in_ga(x0)
le33_in_ga(x0)
U1_ga(x0, x1)
U6_ga(x0, x1)
PART20_IN_GAAA(s(x0)) → U4_GAAA(s(x0), U6_ga(x0, le33_in_ga(x0)))
PART20_IN_GAAA(0) → U4_GAAA(0, le33_out_ga(0))
U2_GAAA(T61, gt10_out_ga(T61, T62)) → PART20_IN_GAAA(T61)
U4_GAAA(T83, le33_out_ga(T83)) → PART20_IN_GAAA(T83)
PART20_IN_GAAA(s(x0)) → U2_GAAA(s(x0), U1_ga(x0, gt10_in_ga(x0)))
PART20_IN_GAAA(s(0)) → U2_GAAA(s(0), gt10_out_ga(s(0), 0))
PART20_IN_GAAA(s(x0)) → U4_GAAA(s(x0), U6_ga(x0, le33_in_ga(x0)))
PART20_IN_GAAA(0) → U4_GAAA(0, le33_out_ga(0))
gt10_in_ga(s(T37)) → U1_ga(T37, gt10_in_ga(T37))
gt10_in_ga(s(0)) → gt10_out_ga(s(0), 0)
le33_in_ga(s(T98)) → U6_ga(T98, le33_in_ga(T98))
le33_in_ga(0) → le33_out_ga(0)
U1_ga(T37, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U6_ga(T98, le33_out_ga(T98)) → le33_out_ga(s(T98))
gt10_in_ga(x0)
le33_in_ga(x0)
U1_ga(x0, x1)
U6_ga(x0, x1)
U2_GAAA(s(z0), gt10_out_ga(s(z0), x1)) → PART20_IN_GAAA(s(z0))
U2_GAAA(s(0), gt10_out_ga(s(0), 0)) → PART20_IN_GAAA(s(0))
U4_GAAA(T83, le33_out_ga(T83)) → PART20_IN_GAAA(T83)
PART20_IN_GAAA(s(x0)) → U2_GAAA(s(x0), U1_ga(x0, gt10_in_ga(x0)))
PART20_IN_GAAA(s(0)) → U2_GAAA(s(0), gt10_out_ga(s(0), 0))
PART20_IN_GAAA(s(x0)) → U4_GAAA(s(x0), U6_ga(x0, le33_in_ga(x0)))
PART20_IN_GAAA(0) → U4_GAAA(0, le33_out_ga(0))
U2_GAAA(s(z0), gt10_out_ga(s(z0), x1)) → PART20_IN_GAAA(s(z0))
U2_GAAA(s(0), gt10_out_ga(s(0), 0)) → PART20_IN_GAAA(s(0))
gt10_in_ga(s(T37)) → U1_ga(T37, gt10_in_ga(T37))
gt10_in_ga(s(0)) → gt10_out_ga(s(0), 0)
le33_in_ga(s(T98)) → U6_ga(T98, le33_in_ga(T98))
le33_in_ga(0) → le33_out_ga(0)
U1_ga(T37, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U6_ga(T98, le33_out_ga(T98)) → le33_out_ga(s(T98))
gt10_in_ga(x0)
le33_in_ga(x0)
U1_ga(x0, x1)
U6_ga(x0, x1)
U4_GAAA(s(z0), le33_out_ga(s(z0))) → PART20_IN_GAAA(s(z0))
U4_GAAA(0, le33_out_ga(0)) → PART20_IN_GAAA(0)
PART20_IN_GAAA(s(x0)) → U2_GAAA(s(x0), U1_ga(x0, gt10_in_ga(x0)))
PART20_IN_GAAA(s(0)) → U2_GAAA(s(0), gt10_out_ga(s(0), 0))
PART20_IN_GAAA(s(x0)) → U4_GAAA(s(x0), U6_ga(x0, le33_in_ga(x0)))
PART20_IN_GAAA(0) → U4_GAAA(0, le33_out_ga(0))
U2_GAAA(s(z0), gt10_out_ga(s(z0), x1)) → PART20_IN_GAAA(s(z0))
U2_GAAA(s(0), gt10_out_ga(s(0), 0)) → PART20_IN_GAAA(s(0))
U4_GAAA(s(z0), le33_out_ga(s(z0))) → PART20_IN_GAAA(s(z0))
U4_GAAA(0, le33_out_ga(0)) → PART20_IN_GAAA(0)
gt10_in_ga(s(T37)) → U1_ga(T37, gt10_in_ga(T37))
gt10_in_ga(s(0)) → gt10_out_ga(s(0), 0)
le33_in_ga(s(T98)) → U6_ga(T98, le33_in_ga(T98))
le33_in_ga(0) → le33_out_ga(0)
U1_ga(T37, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U6_ga(T98, le33_out_ga(T98)) → le33_out_ga(s(T98))
gt10_in_ga(x0)
le33_in_ga(x0)
U1_ga(x0, x1)
U6_ga(x0, x1)
U4_GAAA(0, le33_out_ga(0)) → PART20_IN_GAAA(0)
PART20_IN_GAAA(0) → U4_GAAA(0, le33_out_ga(0))
gt10_in_ga(s(T37)) → U1_ga(T37, gt10_in_ga(T37))
gt10_in_ga(s(0)) → gt10_out_ga(s(0), 0)
le33_in_ga(s(T98)) → U6_ga(T98, le33_in_ga(T98))
le33_in_ga(0) → le33_out_ga(0)
U1_ga(T37, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U6_ga(T98, le33_out_ga(T98)) → le33_out_ga(s(T98))
gt10_in_ga(x0)
le33_in_ga(x0)
U1_ga(x0, x1)
U6_ga(x0, x1)
U4_GAAA(0, le33_out_ga(0)) → PART20_IN_GAAA(0)
PART20_IN_GAAA(0) → U4_GAAA(0, le33_out_ga(0))
gt10_in_ga(x0)
le33_in_ga(x0)
U1_ga(x0, x1)
U6_ga(x0, x1)
gt10_in_ga(x0)
le33_in_ga(x0)
U1_ga(x0, x1)
U6_ga(x0, x1)
U4_GAAA(0, le33_out_ga(0)) → PART20_IN_GAAA(0)
PART20_IN_GAAA(0) → U4_GAAA(0, le33_out_ga(0))
U2_GAAA(s(z0), gt10_out_ga(s(z0), x1)) → PART20_IN_GAAA(s(z0))
PART20_IN_GAAA(s(x0)) → U2_GAAA(s(x0), U1_ga(x0, gt10_in_ga(x0)))
U2_GAAA(s(0), gt10_out_ga(s(0), 0)) → PART20_IN_GAAA(s(0))
PART20_IN_GAAA(s(0)) → U2_GAAA(s(0), gt10_out_ga(s(0), 0))
PART20_IN_GAAA(s(x0)) → U4_GAAA(s(x0), U6_ga(x0, le33_in_ga(x0)))
U4_GAAA(s(z0), le33_out_ga(s(z0))) → PART20_IN_GAAA(s(z0))
gt10_in_ga(s(T37)) → U1_ga(T37, gt10_in_ga(T37))
gt10_in_ga(s(0)) → gt10_out_ga(s(0), 0)
le33_in_ga(s(T98)) → U6_ga(T98, le33_in_ga(T98))
le33_in_ga(0) → le33_out_ga(0)
U1_ga(T37, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U6_ga(T98, le33_out_ga(T98)) → le33_out_ga(s(T98))
gt10_in_ga(x0)
le33_in_ga(x0)
U1_ga(x0, x1)
U6_ga(x0, x1)
GT10_IN_AA(s(T37), s(T38)) → GT10_IN_AA(T37, T38)
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(T106)) → le33_out_gg(0, s(T106))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T112, [], [], []) → part20_out_ggaa(T112, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(T106)) → le33_out_ga(0, s(T106))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T112, [], [], []) → part20_out_gaaa(T112, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T239, .(T240, T241)), T9) → U25_aa(T239, T240, T241, T9, le33_in_aa(T239, T240))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(T106)) → le33_out_aa(0, s(T106))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U26_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, X437, X438))
U26_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, X437, X438)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U27_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, T249, T250))
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U28_aa(T239, T240, T241, T9, qs53_in_aa(T249, X9))
qs53_in_aa(.(T131, T132), X275) → U7_aa(T131, T132, X275, part20_in_aaaa(T131, T132, X271, X272))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T112, [], [], []) → part20_out_aaaa(T112, [], [], [])
U7_aa(T131, T132, X275, part20_out_aaaa(T131, T132, X271, X272)) → qs53_out_aa(.(T131, T132), X275)
qs53_in_aa(.(T131, T132), X275) → U8_aa(T131, T132, X275, part20_in_aaaa(T131, T132, T136, T137))
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U9_aa(T131, T132, X275, qs53_in_aa(T136, X273))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T131, T132, X275, qs53_out_aa(T136, X273)) → qs53_out_aa(.(T131, T132), X275)
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U10_aa(T131, T132, X275, T137, qs53_in_aa(T136, T143))
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U11_aa(T131, T132, X275, qs53_in_aa(T137, X274))
U11_aa(T131, T132, X275, qs53_out_aa(T137, X274)) → qs53_out_aa(.(T131, T132), X275)
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U12_aa(T131, T132, X275, T143, qs53_in_aa(T137, T148))
U12_aa(T131, T132, X275, T143, qs53_out_aa(T137, T148)) → U13_aa(T131, T132, X275, app65_in_aaaa(T143, T131, T148, X275))
app65_in_aaaa(.(T171, T172), T173, T174, .(T171, X354)) → U14_aaaa(T171, T172, T173, T174, X354, app65_in_aaaa(T172, T173, T174, X354))
app65_in_aaaa([], T183, T184, .(T183, T184)) → app65_out_aaaa([], T183, T184, .(T183, T184))
U14_aaaa(T171, T172, T173, T174, X354, app65_out_aaaa(T172, T173, T174, X354)) → app65_out_aaaa(.(T171, T172), T173, T174, .(T171, X354))
U13_aa(T131, T132, X275, app65_out_aaaa(T143, T131, T148, X275)) → qs53_out_aa(.(T131, T132), X275)
U28_aa(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U29_aa(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_aa(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_aa(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
p52_in_aaaga(T45, X10, T115, T22, T9) → U16_aaaga(T45, X10, T115, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T115, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T115, T22, T9)
p52_in_aaaga(T45, T120, T115, T22, T9) → U17_aaaga(T45, T120, T115, T22, T9, qs53_in_aa(T45, T120))
U17_aaaga(T45, T120, T115, T22, T9, qs53_out_aa(T45, T120)) → U18_aaaga(T45, T120, T115, T22, T9, app54_in_agaa(T115, T22, T120, T9))
app54_in_agaa(.(T210, T211), T212, T213, .(T210, T215)) → U15_agaa(T210, T211, T212, T213, T215, app54_in_agaa(T211, T212, T213, T215))
app54_in_agaa([], T225, T226, .(T225, T226)) → app54_out_agaa([], T225, T226, .(T225, T226))
U15_agaa(T210, T211, T212, T213, T215, app54_out_agaa(T211, T212, T213, T215)) → app54_out_agaa(.(T210, T211), T212, T213, .(T210, T215))
U18_aaaga(T45, T120, T115, T22, T9, app54_out_agaa(T115, T22, T120, T9)) → p52_out_aaaga(T45, T120, T115, T22, T9)
U30_aa(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
qs1_in_aa(.(T265, []), T9) → U31_aa(T265, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T265, T9, qs99_out_a(X9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa(.(T265, []), T9) → U32_aa(T265, T9, qs99_in_a(T268))
U32_aa(T265, T9, qs99_out_a(T268)) → U33_aa(T265, T9, qs99_in_a(X10))
U33_aa(T265, T9, qs99_out_a(X10)) → qs1_out_aa(.(T265, []), T9)
U32_aa(T265, T9, qs99_out_a(T268)) → U34_aa(T265, T9, T268, qs99_in_a(T273))
U34_aa(T265, T9, T268, qs99_out_a(T273)) → U35_aa(T265, T9, app54_in_gaga(T268, T265, T273, T9))
app54_in_gaga(.(T210, T211), T212, T213, .(T210, T215)) → U15_gaga(T210, T211, T212, T213, T215, app54_in_gaga(T211, T212, T213, T215))
app54_in_gaga([], T225, T226, .(T225, T226)) → app54_out_gaga([], T225, T226, .(T225, T226))
U15_gaga(T210, T211, T212, T213, T215, app54_out_gaga(T211, T212, T213, T215)) → app54_out_gaga(.(T210, T211), T212, T213, .(T210, T215))
U35_aa(T265, T9, app54_out_gaga(T268, T265, T273, T9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T239, .(T240, T241)), T9) → U25_ga(T239, T240, T241, T9, le33_in_gg(T239, T240))
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U26_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, X437, X438))
U26_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, X437, X438)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U27_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, T249, T250))
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U28_ga(T239, T240, T241, T9, qs53_in_aa(T249, X9))
U28_ga(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U29_ga(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_ga(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_ga(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
U30_ga(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
qs1_in_ga(.(T265, []), T9) → U31_ga(T265, T9, qs99_in_a(X9))
U31_ga(T265, T9, qs99_out_a(X9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga(.(T265, []), T9) → U32_ga(T265, T9, qs99_in_a(T268))
U32_ga(T265, T9, qs99_out_a(T268)) → U33_ga(T265, T9, qs99_in_a(X10))
U33_ga(T265, T9, qs99_out_a(X10)) → qs1_out_ga(.(T265, []), T9)
U32_ga(T265, T9, qs99_out_a(T268)) → U34_ga(T265, T9, T268, qs99_in_a(T273))
U34_ga(T265, T9, T268, qs99_out_a(T273)) → U35_ga(T265, T9, app54_in_ggga(T268, T265, T273, T9))
app54_in_ggga(.(T210, T211), T212, T213, .(T210, T215)) → U15_ggga(T210, T211, T212, T213, T215, app54_in_ggga(T211, T212, T213, T215))
app54_in_ggga([], T225, T226, .(T225, T226)) → app54_out_ggga([], T225, T226, .(T225, T226))
U15_ggga(T210, T211, T212, T213, T215, app54_out_ggga(T211, T212, T213, T215)) → app54_out_ggga(.(T210, T211), T212, T213, .(T210, T215))
U35_ga(T265, T9, app54_out_ggga(T268, T265, T273, T9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
GT10_IN_AA(s(T37), s(T38)) → GT10_IN_AA(T37, T38)
GT10_IN_AA → GT10_IN_AA
QS53_IN_AA(.(T131, T132), X275) → U8_AA(T131, T132, X275, part20_in_aaaa(T131, T132, T136, T137))
U8_AA(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → QS53_IN_AA(T136, X273)
U8_AA(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U10_AA(T131, T132, X275, T137, qs53_in_aa(T136, T143))
U10_AA(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → QS53_IN_AA(T137, X274)
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(T106)) → le33_out_gg(0, s(T106))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T112, [], [], []) → part20_out_ggaa(T112, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(T106)) → le33_out_ga(0, s(T106))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T112, [], [], []) → part20_out_gaaa(T112, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T239, .(T240, T241)), T9) → U25_aa(T239, T240, T241, T9, le33_in_aa(T239, T240))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(T106)) → le33_out_aa(0, s(T106))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U26_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, X437, X438))
U26_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, X437, X438)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U27_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, T249, T250))
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U28_aa(T239, T240, T241, T9, qs53_in_aa(T249, X9))
qs53_in_aa(.(T131, T132), X275) → U7_aa(T131, T132, X275, part20_in_aaaa(T131, T132, X271, X272))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T112, [], [], []) → part20_out_aaaa(T112, [], [], [])
U7_aa(T131, T132, X275, part20_out_aaaa(T131, T132, X271, X272)) → qs53_out_aa(.(T131, T132), X275)
qs53_in_aa(.(T131, T132), X275) → U8_aa(T131, T132, X275, part20_in_aaaa(T131, T132, T136, T137))
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U9_aa(T131, T132, X275, qs53_in_aa(T136, X273))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T131, T132, X275, qs53_out_aa(T136, X273)) → qs53_out_aa(.(T131, T132), X275)
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U10_aa(T131, T132, X275, T137, qs53_in_aa(T136, T143))
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U11_aa(T131, T132, X275, qs53_in_aa(T137, X274))
U11_aa(T131, T132, X275, qs53_out_aa(T137, X274)) → qs53_out_aa(.(T131, T132), X275)
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U12_aa(T131, T132, X275, T143, qs53_in_aa(T137, T148))
U12_aa(T131, T132, X275, T143, qs53_out_aa(T137, T148)) → U13_aa(T131, T132, X275, app65_in_aaaa(T143, T131, T148, X275))
app65_in_aaaa(.(T171, T172), T173, T174, .(T171, X354)) → U14_aaaa(T171, T172, T173, T174, X354, app65_in_aaaa(T172, T173, T174, X354))
app65_in_aaaa([], T183, T184, .(T183, T184)) → app65_out_aaaa([], T183, T184, .(T183, T184))
U14_aaaa(T171, T172, T173, T174, X354, app65_out_aaaa(T172, T173, T174, X354)) → app65_out_aaaa(.(T171, T172), T173, T174, .(T171, X354))
U13_aa(T131, T132, X275, app65_out_aaaa(T143, T131, T148, X275)) → qs53_out_aa(.(T131, T132), X275)
U28_aa(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U29_aa(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_aa(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_aa(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
p52_in_aaaga(T45, X10, T115, T22, T9) → U16_aaaga(T45, X10, T115, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T115, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T115, T22, T9)
p52_in_aaaga(T45, T120, T115, T22, T9) → U17_aaaga(T45, T120, T115, T22, T9, qs53_in_aa(T45, T120))
U17_aaaga(T45, T120, T115, T22, T9, qs53_out_aa(T45, T120)) → U18_aaaga(T45, T120, T115, T22, T9, app54_in_agaa(T115, T22, T120, T9))
app54_in_agaa(.(T210, T211), T212, T213, .(T210, T215)) → U15_agaa(T210, T211, T212, T213, T215, app54_in_agaa(T211, T212, T213, T215))
app54_in_agaa([], T225, T226, .(T225, T226)) → app54_out_agaa([], T225, T226, .(T225, T226))
U15_agaa(T210, T211, T212, T213, T215, app54_out_agaa(T211, T212, T213, T215)) → app54_out_agaa(.(T210, T211), T212, T213, .(T210, T215))
U18_aaaga(T45, T120, T115, T22, T9, app54_out_agaa(T115, T22, T120, T9)) → p52_out_aaaga(T45, T120, T115, T22, T9)
U30_aa(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
qs1_in_aa(.(T265, []), T9) → U31_aa(T265, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T265, T9, qs99_out_a(X9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa(.(T265, []), T9) → U32_aa(T265, T9, qs99_in_a(T268))
U32_aa(T265, T9, qs99_out_a(T268)) → U33_aa(T265, T9, qs99_in_a(X10))
U33_aa(T265, T9, qs99_out_a(X10)) → qs1_out_aa(.(T265, []), T9)
U32_aa(T265, T9, qs99_out_a(T268)) → U34_aa(T265, T9, T268, qs99_in_a(T273))
U34_aa(T265, T9, T268, qs99_out_a(T273)) → U35_aa(T265, T9, app54_in_gaga(T268, T265, T273, T9))
app54_in_gaga(.(T210, T211), T212, T213, .(T210, T215)) → U15_gaga(T210, T211, T212, T213, T215, app54_in_gaga(T211, T212, T213, T215))
app54_in_gaga([], T225, T226, .(T225, T226)) → app54_out_gaga([], T225, T226, .(T225, T226))
U15_gaga(T210, T211, T212, T213, T215, app54_out_gaga(T211, T212, T213, T215)) → app54_out_gaga(.(T210, T211), T212, T213, .(T210, T215))
U35_aa(T265, T9, app54_out_gaga(T268, T265, T273, T9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T239, .(T240, T241)), T9) → U25_ga(T239, T240, T241, T9, le33_in_gg(T239, T240))
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U26_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, X437, X438))
U26_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, X437, X438)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U27_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, T249, T250))
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U28_ga(T239, T240, T241, T9, qs53_in_aa(T249, X9))
U28_ga(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U29_ga(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_ga(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_ga(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
U30_ga(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
qs1_in_ga(.(T265, []), T9) → U31_ga(T265, T9, qs99_in_a(X9))
U31_ga(T265, T9, qs99_out_a(X9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga(.(T265, []), T9) → U32_ga(T265, T9, qs99_in_a(T268))
U32_ga(T265, T9, qs99_out_a(T268)) → U33_ga(T265, T9, qs99_in_a(X10))
U33_ga(T265, T9, qs99_out_a(X10)) → qs1_out_ga(.(T265, []), T9)
U32_ga(T265, T9, qs99_out_a(T268)) → U34_ga(T265, T9, T268, qs99_in_a(T273))
U34_ga(T265, T9, T268, qs99_out_a(T273)) → U35_ga(T265, T9, app54_in_ggga(T268, T265, T273, T9))
app54_in_ggga(.(T210, T211), T212, T213, .(T210, T215)) → U15_ggga(T210, T211, T212, T213, T215, app54_in_ggga(T211, T212, T213, T215))
app54_in_ggga([], T225, T226, .(T225, T226)) → app54_out_ggga([], T225, T226, .(T225, T226))
U15_ggga(T210, T211, T212, T213, T215, app54_out_ggga(T211, T212, T213, T215)) → app54_out_ggga(.(T210, T211), T212, T213, .(T210, T215))
U35_ga(T265, T9, app54_out_ggga(T268, T265, T273, T9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
QS53_IN_AA(.(T131, T132), X275) → U8_AA(T131, T132, X275, part20_in_aaaa(T131, T132, T136, T137))
U8_AA(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → QS53_IN_AA(T136, X273)
U8_AA(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U10_AA(T131, T132, X275, T137, qs53_in_aa(T136, T143))
U10_AA(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → QS53_IN_AA(T137, X274)
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
part20_in_aaaa(T112, [], [], []) → part20_out_aaaa(T112, [], [], [])
qs53_in_aa(.(T131, T132), X275) → U7_aa(T131, T132, X275, part20_in_aaaa(T131, T132, X271, X272))
qs53_in_aa(.(T131, T132), X275) → U8_aa(T131, T132, X275, part20_in_aaaa(T131, T132, T136, T137))
qs53_in_aa([], []) → qs53_out_aa([], [])
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U7_aa(T131, T132, X275, part20_out_aaaa(T131, T132, X271, X272)) → qs53_out_aa(.(T131, T132), X275)
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U9_aa(T131, T132, X275, qs53_in_aa(T136, X273))
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U10_aa(T131, T132, X275, T137, qs53_in_aa(T136, T143))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(T106)) → le33_out_aa(0, s(T106))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U9_aa(T131, T132, X275, qs53_out_aa(T136, X273)) → qs53_out_aa(.(T131, T132), X275)
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U11_aa(T131, T132, X275, qs53_in_aa(T137, X274))
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U12_aa(T131, T132, X275, T143, qs53_in_aa(T137, T148))
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
part20_in_gaaa(T112, [], [], []) → part20_out_gaaa(T112, [], [], [])
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U11_aa(T131, T132, X275, qs53_out_aa(T137, X274)) → qs53_out_aa(.(T131, T132), X275)
U12_aa(T131, T132, X275, T143, qs53_out_aa(T137, T148)) → U13_aa(T131, T132, X275, app65_in_aaaa(T143, T131, T148, X275))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U13_aa(T131, T132, X275, app65_out_aaaa(T143, T131, T148, X275)) → qs53_out_aa(.(T131, T132), X275)
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(T106)) → le33_out_ga(0, s(T106))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
app65_in_aaaa(.(T171, T172), T173, T174, .(T171, X354)) → U14_aaaa(T171, T172, T173, T174, X354, app65_in_aaaa(T172, T173, T174, X354))
app65_in_aaaa([], T183, T184, .(T183, T184)) → app65_out_aaaa([], T183, T184, .(T183, T184))
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U14_aaaa(T171, T172, T173, T174, X354, app65_out_aaaa(T172, T173, T174, X354)) → app65_out_aaaa(.(T171, T172), T173, T174, .(T171, X354))
QS53_IN_AA → U8_AA(part20_in_aaaa)
U8_AA(part20_out_aaaa) → QS53_IN_AA
U8_AA(part20_out_aaaa) → U10_AA(qs53_in_aa)
U10_AA(qs53_out_aa) → QS53_IN_AA
part20_in_aaaa → U2_aaaa(gt10_in_aa)
part20_in_aaaa → U4_aaaa(le33_in_aa)
part20_in_aaaa → part20_out_aaaa
qs53_in_aa → U7_aa(part20_in_aaaa)
qs53_in_aa → U8_aa(part20_in_aaaa)
qs53_in_aa → qs53_out_aa
U2_aaaa(gt10_out_aa(T61, T62)) → part20_out_aaaa
U2_aaaa(gt10_out_aa(T61, T62)) → U3_aaaa(part20_in_gaaa(T61))
U4_aaaa(le33_out_aa(T83)) → part20_out_aaaa
U4_aaaa(le33_out_aa(T83)) → U5_aaaa(part20_in_gaaa(T83))
U7_aa(part20_out_aaaa) → qs53_out_aa
U8_aa(part20_out_aaaa) → U9_aa(qs53_in_aa)
U8_aa(part20_out_aaaa) → U10_aa(qs53_in_aa)
gt10_in_aa → U1_aa(gt10_in_aa)
gt10_in_aa → gt10_out_aa(s(0), 0)
U3_aaaa(part20_out_gaaa(T61)) → part20_out_aaaa
le33_in_aa → U6_aa(le33_in_aa)
le33_in_aa → le33_out_aa(0)
U5_aaaa(part20_out_gaaa(T83)) → part20_out_aaaa
U9_aa(qs53_out_aa) → qs53_out_aa
U10_aa(qs53_out_aa) → U11_aa(qs53_in_aa)
U10_aa(qs53_out_aa) → U12_aa(qs53_in_aa)
U1_aa(gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
part20_in_gaaa(T61) → U2_gaaa(T61, gt10_in_ga(T61))
part20_in_gaaa(T83) → U4_gaaa(T83, le33_in_ga(T83))
part20_in_gaaa(T112) → part20_out_gaaa(T112)
U6_aa(le33_out_aa(T98)) → le33_out_aa(s(T98))
U11_aa(qs53_out_aa) → qs53_out_aa
U12_aa(qs53_out_aa) → U13_aa(app65_in_aaaa)
U2_gaaa(T61, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61)
U2_gaaa(T61, gt10_out_ga(T61, T62)) → U3_gaaa(T61, part20_in_gaaa(T61))
U4_gaaa(T83, le33_out_ga(T83)) → part20_out_gaaa(T83)
U4_gaaa(T83, le33_out_ga(T83)) → U5_gaaa(T83, part20_in_gaaa(T83))
U13_aa(app65_out_aaaa) → qs53_out_aa
gt10_in_ga(s(T37)) → U1_ga(T37, gt10_in_ga(T37))
gt10_in_ga(s(0)) → gt10_out_ga(s(0), 0)
U3_gaaa(T61, part20_out_gaaa(T61)) → part20_out_gaaa(T61)
le33_in_ga(s(T98)) → U6_ga(T98, le33_in_ga(T98))
le33_in_ga(0) → le33_out_ga(0)
U5_gaaa(T83, part20_out_gaaa(T83)) → part20_out_gaaa(T83)
app65_in_aaaa → U14_aaaa(app65_in_aaaa)
app65_in_aaaa → app65_out_aaaa
U1_ga(T37, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U6_ga(T98, le33_out_ga(T98)) → le33_out_ga(s(T98))
U14_aaaa(app65_out_aaaa) → app65_out_aaaa
part20_in_aaaa
qs53_in_aa
U2_aaaa(x0)
U4_aaaa(x0)
U7_aa(x0)
U8_aa(x0)
gt10_in_aa
U3_aaaa(x0)
le33_in_aa
U5_aaaa(x0)
U9_aa(x0)
U10_aa(x0)
U1_aa(x0)
part20_in_gaaa(x0)
U6_aa(x0)
U11_aa(x0)
U12_aa(x0)
U2_gaaa(x0, x1)
U4_gaaa(x0, x1)
U13_aa(x0)
gt10_in_ga(x0)
U3_gaaa(x0, x1)
le33_in_ga(x0)
U5_gaaa(x0, x1)
app65_in_aaaa
U1_ga(x0, x1)
U6_ga(x0, x1)
U14_aaaa(x0)
QS53_IN_AA → U8_AA(U2_aaaa(gt10_in_aa))
QS53_IN_AA → U8_AA(U4_aaaa(le33_in_aa))
QS53_IN_AA → U8_AA(part20_out_aaaa)
U8_AA(part20_out_aaaa) → QS53_IN_AA
U8_AA(part20_out_aaaa) → U10_AA(qs53_in_aa)
U10_AA(qs53_out_aa) → QS53_IN_AA
QS53_IN_AA → U8_AA(U2_aaaa(gt10_in_aa))
QS53_IN_AA → U8_AA(U4_aaaa(le33_in_aa))
QS53_IN_AA → U8_AA(part20_out_aaaa)
part20_in_aaaa → U2_aaaa(gt10_in_aa)
part20_in_aaaa → U4_aaaa(le33_in_aa)
part20_in_aaaa → part20_out_aaaa
qs53_in_aa → U7_aa(part20_in_aaaa)
qs53_in_aa → U8_aa(part20_in_aaaa)
qs53_in_aa → qs53_out_aa
U2_aaaa(gt10_out_aa(T61, T62)) → part20_out_aaaa
U2_aaaa(gt10_out_aa(T61, T62)) → U3_aaaa(part20_in_gaaa(T61))
U4_aaaa(le33_out_aa(T83)) → part20_out_aaaa
U4_aaaa(le33_out_aa(T83)) → U5_aaaa(part20_in_gaaa(T83))
U7_aa(part20_out_aaaa) → qs53_out_aa
U8_aa(part20_out_aaaa) → U9_aa(qs53_in_aa)
U8_aa(part20_out_aaaa) → U10_aa(qs53_in_aa)
gt10_in_aa → U1_aa(gt10_in_aa)
gt10_in_aa → gt10_out_aa(s(0), 0)
U3_aaaa(part20_out_gaaa(T61)) → part20_out_aaaa
le33_in_aa → U6_aa(le33_in_aa)
le33_in_aa → le33_out_aa(0)
U5_aaaa(part20_out_gaaa(T83)) → part20_out_aaaa
U9_aa(qs53_out_aa) → qs53_out_aa
U10_aa(qs53_out_aa) → U11_aa(qs53_in_aa)
U10_aa(qs53_out_aa) → U12_aa(qs53_in_aa)
U1_aa(gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
part20_in_gaaa(T61) → U2_gaaa(T61, gt10_in_ga(T61))
part20_in_gaaa(T83) → U4_gaaa(T83, le33_in_ga(T83))
part20_in_gaaa(T112) → part20_out_gaaa(T112)
U6_aa(le33_out_aa(T98)) → le33_out_aa(s(T98))
U11_aa(qs53_out_aa) → qs53_out_aa
U12_aa(qs53_out_aa) → U13_aa(app65_in_aaaa)
U2_gaaa(T61, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61)
U2_gaaa(T61, gt10_out_ga(T61, T62)) → U3_gaaa(T61, part20_in_gaaa(T61))
U4_gaaa(T83, le33_out_ga(T83)) → part20_out_gaaa(T83)
U4_gaaa(T83, le33_out_ga(T83)) → U5_gaaa(T83, part20_in_gaaa(T83))
U13_aa(app65_out_aaaa) → qs53_out_aa
gt10_in_ga(s(T37)) → U1_ga(T37, gt10_in_ga(T37))
gt10_in_ga(s(0)) → gt10_out_ga(s(0), 0)
U3_gaaa(T61, part20_out_gaaa(T61)) → part20_out_gaaa(T61)
le33_in_ga(s(T98)) → U6_ga(T98, le33_in_ga(T98))
le33_in_ga(0) → le33_out_ga(0)
U5_gaaa(T83, part20_out_gaaa(T83)) → part20_out_gaaa(T83)
app65_in_aaaa → U14_aaaa(app65_in_aaaa)
app65_in_aaaa → app65_out_aaaa
U1_ga(T37, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U6_ga(T98, le33_out_ga(T98)) → le33_out_ga(s(T98))
U14_aaaa(app65_out_aaaa) → app65_out_aaaa
part20_in_aaaa
qs53_in_aa
U2_aaaa(x0)
U4_aaaa(x0)
U7_aa(x0)
U8_aa(x0)
gt10_in_aa
U3_aaaa(x0)
le33_in_aa
U5_aaaa(x0)
U9_aa(x0)
U10_aa(x0)
U1_aa(x0)
part20_in_gaaa(x0)
U6_aa(x0)
U11_aa(x0)
U12_aa(x0)
U2_gaaa(x0, x1)
U4_gaaa(x0, x1)
U13_aa(x0)
gt10_in_ga(x0)
U3_gaaa(x0, x1)
le33_in_ga(x0)
U5_gaaa(x0, x1)
app65_in_aaaa
U1_ga(x0, x1)
U6_ga(x0, x1)
U14_aaaa(x0)
U8_AA(part20_out_aaaa) → U10_AA(U7_aa(part20_in_aaaa))
U8_AA(part20_out_aaaa) → U10_AA(U8_aa(part20_in_aaaa))
U8_AA(part20_out_aaaa) → U10_AA(qs53_out_aa)
U8_AA(part20_out_aaaa) → QS53_IN_AA
U10_AA(qs53_out_aa) → QS53_IN_AA
QS53_IN_AA → U8_AA(U2_aaaa(gt10_in_aa))
QS53_IN_AA → U8_AA(U4_aaaa(le33_in_aa))
QS53_IN_AA → U8_AA(part20_out_aaaa)
U8_AA(part20_out_aaaa) → U10_AA(U7_aa(part20_in_aaaa))
U8_AA(part20_out_aaaa) → U10_AA(U8_aa(part20_in_aaaa))
U8_AA(part20_out_aaaa) → U10_AA(qs53_out_aa)
part20_in_aaaa → U2_aaaa(gt10_in_aa)
part20_in_aaaa → U4_aaaa(le33_in_aa)
part20_in_aaaa → part20_out_aaaa
qs53_in_aa → U7_aa(part20_in_aaaa)
qs53_in_aa → U8_aa(part20_in_aaaa)
qs53_in_aa → qs53_out_aa
U2_aaaa(gt10_out_aa(T61, T62)) → part20_out_aaaa
U2_aaaa(gt10_out_aa(T61, T62)) → U3_aaaa(part20_in_gaaa(T61))
U4_aaaa(le33_out_aa(T83)) → part20_out_aaaa
U4_aaaa(le33_out_aa(T83)) → U5_aaaa(part20_in_gaaa(T83))
U7_aa(part20_out_aaaa) → qs53_out_aa
U8_aa(part20_out_aaaa) → U9_aa(qs53_in_aa)
U8_aa(part20_out_aaaa) → U10_aa(qs53_in_aa)
gt10_in_aa → U1_aa(gt10_in_aa)
gt10_in_aa → gt10_out_aa(s(0), 0)
U3_aaaa(part20_out_gaaa(T61)) → part20_out_aaaa
le33_in_aa → U6_aa(le33_in_aa)
le33_in_aa → le33_out_aa(0)
U5_aaaa(part20_out_gaaa(T83)) → part20_out_aaaa
U9_aa(qs53_out_aa) → qs53_out_aa
U10_aa(qs53_out_aa) → U11_aa(qs53_in_aa)
U10_aa(qs53_out_aa) → U12_aa(qs53_in_aa)
U1_aa(gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
part20_in_gaaa(T61) → U2_gaaa(T61, gt10_in_ga(T61))
part20_in_gaaa(T83) → U4_gaaa(T83, le33_in_ga(T83))
part20_in_gaaa(T112) → part20_out_gaaa(T112)
U6_aa(le33_out_aa(T98)) → le33_out_aa(s(T98))
U11_aa(qs53_out_aa) → qs53_out_aa
U12_aa(qs53_out_aa) → U13_aa(app65_in_aaaa)
U2_gaaa(T61, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61)
U2_gaaa(T61, gt10_out_ga(T61, T62)) → U3_gaaa(T61, part20_in_gaaa(T61))
U4_gaaa(T83, le33_out_ga(T83)) → part20_out_gaaa(T83)
U4_gaaa(T83, le33_out_ga(T83)) → U5_gaaa(T83, part20_in_gaaa(T83))
U13_aa(app65_out_aaaa) → qs53_out_aa
gt10_in_ga(s(T37)) → U1_ga(T37, gt10_in_ga(T37))
gt10_in_ga(s(0)) → gt10_out_ga(s(0), 0)
U3_gaaa(T61, part20_out_gaaa(T61)) → part20_out_gaaa(T61)
le33_in_ga(s(T98)) → U6_ga(T98, le33_in_ga(T98))
le33_in_ga(0) → le33_out_ga(0)
U5_gaaa(T83, part20_out_gaaa(T83)) → part20_out_gaaa(T83)
app65_in_aaaa → U14_aaaa(app65_in_aaaa)
app65_in_aaaa → app65_out_aaaa
U1_ga(T37, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U6_ga(T98, le33_out_ga(T98)) → le33_out_ga(s(T98))
U14_aaaa(app65_out_aaaa) → app65_out_aaaa
part20_in_aaaa
qs53_in_aa
U2_aaaa(x0)
U4_aaaa(x0)
U7_aa(x0)
U8_aa(x0)
gt10_in_aa
U3_aaaa(x0)
le33_in_aa
U5_aaaa(x0)
U9_aa(x0)
U10_aa(x0)
U1_aa(x0)
part20_in_gaaa(x0)
U6_aa(x0)
U11_aa(x0)
U12_aa(x0)
U2_gaaa(x0, x1)
U4_gaaa(x0, x1)
U13_aa(x0)
gt10_in_ga(x0)
U3_gaaa(x0, x1)
le33_in_ga(x0)
U5_gaaa(x0, x1)
app65_in_aaaa
U1_ga(x0, x1)
U6_ga(x0, x1)
U14_aaaa(x0)
U19_AA(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_AA(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_AA(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → QS1_IN_AA(.(T23, T44), X9)
QS1_IN_AA(.(T22, .(T23, T24)), T9) → U19_AA(T22, T23, T24, T9, gt10_in_aa(T22, T23))
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(T106)) → le33_out_gg(0, s(T106))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T112, [], [], []) → part20_out_ggaa(T112, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(T106)) → le33_out_ga(0, s(T106))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T112, [], [], []) → part20_out_gaaa(T112, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T239, .(T240, T241)), T9) → U25_aa(T239, T240, T241, T9, le33_in_aa(T239, T240))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(T106)) → le33_out_aa(0, s(T106))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U26_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, X437, X438))
U26_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, X437, X438)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U27_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, T249, T250))
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U28_aa(T239, T240, T241, T9, qs53_in_aa(T249, X9))
qs53_in_aa(.(T131, T132), X275) → U7_aa(T131, T132, X275, part20_in_aaaa(T131, T132, X271, X272))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T112, [], [], []) → part20_out_aaaa(T112, [], [], [])
U7_aa(T131, T132, X275, part20_out_aaaa(T131, T132, X271, X272)) → qs53_out_aa(.(T131, T132), X275)
qs53_in_aa(.(T131, T132), X275) → U8_aa(T131, T132, X275, part20_in_aaaa(T131, T132, T136, T137))
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U9_aa(T131, T132, X275, qs53_in_aa(T136, X273))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T131, T132, X275, qs53_out_aa(T136, X273)) → qs53_out_aa(.(T131, T132), X275)
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U10_aa(T131, T132, X275, T137, qs53_in_aa(T136, T143))
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U11_aa(T131, T132, X275, qs53_in_aa(T137, X274))
U11_aa(T131, T132, X275, qs53_out_aa(T137, X274)) → qs53_out_aa(.(T131, T132), X275)
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U12_aa(T131, T132, X275, T143, qs53_in_aa(T137, T148))
U12_aa(T131, T132, X275, T143, qs53_out_aa(T137, T148)) → U13_aa(T131, T132, X275, app65_in_aaaa(T143, T131, T148, X275))
app65_in_aaaa(.(T171, T172), T173, T174, .(T171, X354)) → U14_aaaa(T171, T172, T173, T174, X354, app65_in_aaaa(T172, T173, T174, X354))
app65_in_aaaa([], T183, T184, .(T183, T184)) → app65_out_aaaa([], T183, T184, .(T183, T184))
U14_aaaa(T171, T172, T173, T174, X354, app65_out_aaaa(T172, T173, T174, X354)) → app65_out_aaaa(.(T171, T172), T173, T174, .(T171, X354))
U13_aa(T131, T132, X275, app65_out_aaaa(T143, T131, T148, X275)) → qs53_out_aa(.(T131, T132), X275)
U28_aa(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U29_aa(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_aa(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_aa(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
p52_in_aaaga(T45, X10, T115, T22, T9) → U16_aaaga(T45, X10, T115, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T115, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T115, T22, T9)
p52_in_aaaga(T45, T120, T115, T22, T9) → U17_aaaga(T45, T120, T115, T22, T9, qs53_in_aa(T45, T120))
U17_aaaga(T45, T120, T115, T22, T9, qs53_out_aa(T45, T120)) → U18_aaaga(T45, T120, T115, T22, T9, app54_in_agaa(T115, T22, T120, T9))
app54_in_agaa(.(T210, T211), T212, T213, .(T210, T215)) → U15_agaa(T210, T211, T212, T213, T215, app54_in_agaa(T211, T212, T213, T215))
app54_in_agaa([], T225, T226, .(T225, T226)) → app54_out_agaa([], T225, T226, .(T225, T226))
U15_agaa(T210, T211, T212, T213, T215, app54_out_agaa(T211, T212, T213, T215)) → app54_out_agaa(.(T210, T211), T212, T213, .(T210, T215))
U18_aaaga(T45, T120, T115, T22, T9, app54_out_agaa(T115, T22, T120, T9)) → p52_out_aaaga(T45, T120, T115, T22, T9)
U30_aa(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
qs1_in_aa(.(T265, []), T9) → U31_aa(T265, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T265, T9, qs99_out_a(X9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa(.(T265, []), T9) → U32_aa(T265, T9, qs99_in_a(T268))
U32_aa(T265, T9, qs99_out_a(T268)) → U33_aa(T265, T9, qs99_in_a(X10))
U33_aa(T265, T9, qs99_out_a(X10)) → qs1_out_aa(.(T265, []), T9)
U32_aa(T265, T9, qs99_out_a(T268)) → U34_aa(T265, T9, T268, qs99_in_a(T273))
U34_aa(T265, T9, T268, qs99_out_a(T273)) → U35_aa(T265, T9, app54_in_gaga(T268, T265, T273, T9))
app54_in_gaga(.(T210, T211), T212, T213, .(T210, T215)) → U15_gaga(T210, T211, T212, T213, T215, app54_in_gaga(T211, T212, T213, T215))
app54_in_gaga([], T225, T226, .(T225, T226)) → app54_out_gaga([], T225, T226, .(T225, T226))
U15_gaga(T210, T211, T212, T213, T215, app54_out_gaga(T211, T212, T213, T215)) → app54_out_gaga(.(T210, T211), T212, T213, .(T210, T215))
U35_aa(T265, T9, app54_out_gaga(T268, T265, T273, T9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T239, .(T240, T241)), T9) → U25_ga(T239, T240, T241, T9, le33_in_gg(T239, T240))
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U26_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, X437, X438))
U26_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, X437, X438)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U27_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, T249, T250))
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U28_ga(T239, T240, T241, T9, qs53_in_aa(T249, X9))
U28_ga(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U29_ga(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_ga(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_ga(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
U30_ga(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
qs1_in_ga(.(T265, []), T9) → U31_ga(T265, T9, qs99_in_a(X9))
U31_ga(T265, T9, qs99_out_a(X9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga(.(T265, []), T9) → U32_ga(T265, T9, qs99_in_a(T268))
U32_ga(T265, T9, qs99_out_a(T268)) → U33_ga(T265, T9, qs99_in_a(X10))
U33_ga(T265, T9, qs99_out_a(X10)) → qs1_out_ga(.(T265, []), T9)
U32_ga(T265, T9, qs99_out_a(T268)) → U34_ga(T265, T9, T268, qs99_in_a(T273))
U34_ga(T265, T9, T268, qs99_out_a(T273)) → U35_ga(T265, T9, app54_in_ggga(T268, T265, T273, T9))
app54_in_ggga(.(T210, T211), T212, T213, .(T210, T215)) → U15_ggga(T210, T211, T212, T213, T215, app54_in_ggga(T211, T212, T213, T215))
app54_in_ggga([], T225, T226, .(T225, T226)) → app54_out_ggga([], T225, T226, .(T225, T226))
U15_ggga(T210, T211, T212, T213, T215, app54_out_ggga(T211, T212, T213, T215)) → app54_out_ggga(.(T210, T211), T212, T213, .(T210, T215))
U35_ga(T265, T9, app54_out_ggga(T268, T265, T273, T9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
U19_AA(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_AA(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_AA(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → QS1_IN_AA(.(T23, T44), X9)
QS1_IN_AA(.(T22, .(T23, T24)), T9) → U19_AA(T22, T23, T24, T9, gt10_in_aa(T22, T23))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
part20_in_gaaa(T112, [], [], []) → part20_out_gaaa(T112, [], [], [])
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(T106)) → le33_out_ga(0, s(T106))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U19_AA(gt10_out_aa(T22, T23)) → U21_AA(T22, part20_in_gaaa(T22))
U21_AA(T22, part20_out_gaaa(T22)) → QS1_IN_AA
QS1_IN_AA → U19_AA(gt10_in_aa)
part20_in_gaaa(T61) → U2_gaaa(T61, gt10_in_ga(T61))
part20_in_gaaa(T83) → U4_gaaa(T83, le33_in_ga(T83))
part20_in_gaaa(T112) → part20_out_gaaa(T112)
gt10_in_aa → U1_aa(gt10_in_aa)
gt10_in_aa → gt10_out_aa(s(0), 0)
U2_gaaa(T61, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61)
U2_gaaa(T61, gt10_out_ga(T61, T62)) → U3_gaaa(T61, part20_in_gaaa(T61))
U4_gaaa(T83, le33_out_ga(T83)) → part20_out_gaaa(T83)
U4_gaaa(T83, le33_out_ga(T83)) → U5_gaaa(T83, part20_in_gaaa(T83))
U1_aa(gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
gt10_in_ga(s(T37)) → U1_ga(T37, gt10_in_ga(T37))
gt10_in_ga(s(0)) → gt10_out_ga(s(0), 0)
U3_gaaa(T61, part20_out_gaaa(T61)) → part20_out_gaaa(T61)
le33_in_ga(s(T98)) → U6_ga(T98, le33_in_ga(T98))
le33_in_ga(0) → le33_out_ga(0)
U5_gaaa(T83, part20_out_gaaa(T83)) → part20_out_gaaa(T83)
U1_ga(T37, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U6_ga(T98, le33_out_ga(T98)) → le33_out_ga(s(T98))
part20_in_gaaa(x0)
gt10_in_aa
U2_gaaa(x0, x1)
U4_gaaa(x0, x1)
U1_aa(x0)
gt10_in_ga(x0)
U3_gaaa(x0, x1)
le33_in_ga(x0)
U5_gaaa(x0, x1)
U1_ga(x0, x1)
U6_ga(x0, x1)
U19_AA(gt10_out_aa(x0, y1)) → U21_AA(x0, U2_gaaa(x0, gt10_in_ga(x0)))
U19_AA(gt10_out_aa(x0, y1)) → U21_AA(x0, U4_gaaa(x0, le33_in_ga(x0)))
U19_AA(gt10_out_aa(x0, y1)) → U21_AA(x0, part20_out_gaaa(x0))
U21_AA(T22, part20_out_gaaa(T22)) → QS1_IN_AA
QS1_IN_AA → U19_AA(gt10_in_aa)
U19_AA(gt10_out_aa(x0, y1)) → U21_AA(x0, U2_gaaa(x0, gt10_in_ga(x0)))
U19_AA(gt10_out_aa(x0, y1)) → U21_AA(x0, U4_gaaa(x0, le33_in_ga(x0)))
U19_AA(gt10_out_aa(x0, y1)) → U21_AA(x0, part20_out_gaaa(x0))
part20_in_gaaa(T61) → U2_gaaa(T61, gt10_in_ga(T61))
part20_in_gaaa(T83) → U4_gaaa(T83, le33_in_ga(T83))
part20_in_gaaa(T112) → part20_out_gaaa(T112)
gt10_in_aa → U1_aa(gt10_in_aa)
gt10_in_aa → gt10_out_aa(s(0), 0)
U2_gaaa(T61, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61)
U2_gaaa(T61, gt10_out_ga(T61, T62)) → U3_gaaa(T61, part20_in_gaaa(T61))
U4_gaaa(T83, le33_out_ga(T83)) → part20_out_gaaa(T83)
U4_gaaa(T83, le33_out_ga(T83)) → U5_gaaa(T83, part20_in_gaaa(T83))
U1_aa(gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
gt10_in_ga(s(T37)) → U1_ga(T37, gt10_in_ga(T37))
gt10_in_ga(s(0)) → gt10_out_ga(s(0), 0)
U3_gaaa(T61, part20_out_gaaa(T61)) → part20_out_gaaa(T61)
le33_in_ga(s(T98)) → U6_ga(T98, le33_in_ga(T98))
le33_in_ga(0) → le33_out_ga(0)
U5_gaaa(T83, part20_out_gaaa(T83)) → part20_out_gaaa(T83)
U1_ga(T37, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U6_ga(T98, le33_out_ga(T98)) → le33_out_ga(s(T98))
part20_in_gaaa(x0)
gt10_in_aa
U2_gaaa(x0, x1)
U4_gaaa(x0, x1)
U1_aa(x0)
gt10_in_ga(x0)
U3_gaaa(x0, x1)
le33_in_ga(x0)
U5_gaaa(x0, x1)
U1_ga(x0, x1)
U6_ga(x0, x1)
QS1_IN_AA → U19_AA(U1_aa(gt10_in_aa))
QS1_IN_AA → U19_AA(gt10_out_aa(s(0), 0))
U21_AA(T22, part20_out_gaaa(T22)) → QS1_IN_AA
U19_AA(gt10_out_aa(x0, y1)) → U21_AA(x0, U2_gaaa(x0, gt10_in_ga(x0)))
U19_AA(gt10_out_aa(x0, y1)) → U21_AA(x0, U4_gaaa(x0, le33_in_ga(x0)))
U19_AA(gt10_out_aa(x0, y1)) → U21_AA(x0, part20_out_gaaa(x0))
QS1_IN_AA → U19_AA(U1_aa(gt10_in_aa))
QS1_IN_AA → U19_AA(gt10_out_aa(s(0), 0))
part20_in_gaaa(T61) → U2_gaaa(T61, gt10_in_ga(T61))
part20_in_gaaa(T83) → U4_gaaa(T83, le33_in_ga(T83))
part20_in_gaaa(T112) → part20_out_gaaa(T112)
gt10_in_aa → U1_aa(gt10_in_aa)
gt10_in_aa → gt10_out_aa(s(0), 0)
U2_gaaa(T61, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61)
U2_gaaa(T61, gt10_out_ga(T61, T62)) → U3_gaaa(T61, part20_in_gaaa(T61))
U4_gaaa(T83, le33_out_ga(T83)) → part20_out_gaaa(T83)
U4_gaaa(T83, le33_out_ga(T83)) → U5_gaaa(T83, part20_in_gaaa(T83))
U1_aa(gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
gt10_in_ga(s(T37)) → U1_ga(T37, gt10_in_ga(T37))
gt10_in_ga(s(0)) → gt10_out_ga(s(0), 0)
U3_gaaa(T61, part20_out_gaaa(T61)) → part20_out_gaaa(T61)
le33_in_ga(s(T98)) → U6_ga(T98, le33_in_ga(T98))
le33_in_ga(0) → le33_out_ga(0)
U5_gaaa(T83, part20_out_gaaa(T83)) → part20_out_gaaa(T83)
U1_ga(T37, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U6_ga(T98, le33_out_ga(T98)) → le33_out_ga(s(T98))
part20_in_gaaa(x0)
gt10_in_aa
U2_gaaa(x0, x1)
U4_gaaa(x0, x1)
U1_aa(x0)
gt10_in_ga(x0)
U3_gaaa(x0, x1)
le33_in_ga(x0)
U5_gaaa(x0, x1)
U1_ga(x0, x1)
U6_ga(x0, x1)
LE33_IN_GG(s(T98), s(T99)) → LE33_IN_GG(T98, T99)
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(T106)) → le33_out_gg(0, s(T106))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T112, [], [], []) → part20_out_ggaa(T112, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(T106)) → le33_out_ga(0, s(T106))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T112, [], [], []) → part20_out_gaaa(T112, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T239, .(T240, T241)), T9) → U25_aa(T239, T240, T241, T9, le33_in_aa(T239, T240))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(T106)) → le33_out_aa(0, s(T106))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U26_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, X437, X438))
U26_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, X437, X438)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U27_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, T249, T250))
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U28_aa(T239, T240, T241, T9, qs53_in_aa(T249, X9))
qs53_in_aa(.(T131, T132), X275) → U7_aa(T131, T132, X275, part20_in_aaaa(T131, T132, X271, X272))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T112, [], [], []) → part20_out_aaaa(T112, [], [], [])
U7_aa(T131, T132, X275, part20_out_aaaa(T131, T132, X271, X272)) → qs53_out_aa(.(T131, T132), X275)
qs53_in_aa(.(T131, T132), X275) → U8_aa(T131, T132, X275, part20_in_aaaa(T131, T132, T136, T137))
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U9_aa(T131, T132, X275, qs53_in_aa(T136, X273))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T131, T132, X275, qs53_out_aa(T136, X273)) → qs53_out_aa(.(T131, T132), X275)
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U10_aa(T131, T132, X275, T137, qs53_in_aa(T136, T143))
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U11_aa(T131, T132, X275, qs53_in_aa(T137, X274))
U11_aa(T131, T132, X275, qs53_out_aa(T137, X274)) → qs53_out_aa(.(T131, T132), X275)
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U12_aa(T131, T132, X275, T143, qs53_in_aa(T137, T148))
U12_aa(T131, T132, X275, T143, qs53_out_aa(T137, T148)) → U13_aa(T131, T132, X275, app65_in_aaaa(T143, T131, T148, X275))
app65_in_aaaa(.(T171, T172), T173, T174, .(T171, X354)) → U14_aaaa(T171, T172, T173, T174, X354, app65_in_aaaa(T172, T173, T174, X354))
app65_in_aaaa([], T183, T184, .(T183, T184)) → app65_out_aaaa([], T183, T184, .(T183, T184))
U14_aaaa(T171, T172, T173, T174, X354, app65_out_aaaa(T172, T173, T174, X354)) → app65_out_aaaa(.(T171, T172), T173, T174, .(T171, X354))
U13_aa(T131, T132, X275, app65_out_aaaa(T143, T131, T148, X275)) → qs53_out_aa(.(T131, T132), X275)
U28_aa(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U29_aa(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_aa(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_aa(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
p52_in_aaaga(T45, X10, T115, T22, T9) → U16_aaaga(T45, X10, T115, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T115, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T115, T22, T9)
p52_in_aaaga(T45, T120, T115, T22, T9) → U17_aaaga(T45, T120, T115, T22, T9, qs53_in_aa(T45, T120))
U17_aaaga(T45, T120, T115, T22, T9, qs53_out_aa(T45, T120)) → U18_aaaga(T45, T120, T115, T22, T9, app54_in_agaa(T115, T22, T120, T9))
app54_in_agaa(.(T210, T211), T212, T213, .(T210, T215)) → U15_agaa(T210, T211, T212, T213, T215, app54_in_agaa(T211, T212, T213, T215))
app54_in_agaa([], T225, T226, .(T225, T226)) → app54_out_agaa([], T225, T226, .(T225, T226))
U15_agaa(T210, T211, T212, T213, T215, app54_out_agaa(T211, T212, T213, T215)) → app54_out_agaa(.(T210, T211), T212, T213, .(T210, T215))
U18_aaaga(T45, T120, T115, T22, T9, app54_out_agaa(T115, T22, T120, T9)) → p52_out_aaaga(T45, T120, T115, T22, T9)
U30_aa(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
qs1_in_aa(.(T265, []), T9) → U31_aa(T265, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T265, T9, qs99_out_a(X9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa(.(T265, []), T9) → U32_aa(T265, T9, qs99_in_a(T268))
U32_aa(T265, T9, qs99_out_a(T268)) → U33_aa(T265, T9, qs99_in_a(X10))
U33_aa(T265, T9, qs99_out_a(X10)) → qs1_out_aa(.(T265, []), T9)
U32_aa(T265, T9, qs99_out_a(T268)) → U34_aa(T265, T9, T268, qs99_in_a(T273))
U34_aa(T265, T9, T268, qs99_out_a(T273)) → U35_aa(T265, T9, app54_in_gaga(T268, T265, T273, T9))
app54_in_gaga(.(T210, T211), T212, T213, .(T210, T215)) → U15_gaga(T210, T211, T212, T213, T215, app54_in_gaga(T211, T212, T213, T215))
app54_in_gaga([], T225, T226, .(T225, T226)) → app54_out_gaga([], T225, T226, .(T225, T226))
U15_gaga(T210, T211, T212, T213, T215, app54_out_gaga(T211, T212, T213, T215)) → app54_out_gaga(.(T210, T211), T212, T213, .(T210, T215))
U35_aa(T265, T9, app54_out_gaga(T268, T265, T273, T9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T239, .(T240, T241)), T9) → U25_ga(T239, T240, T241, T9, le33_in_gg(T239, T240))
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U26_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, X437, X438))
U26_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, X437, X438)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U27_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, T249, T250))
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U28_ga(T239, T240, T241, T9, qs53_in_aa(T249, X9))
U28_ga(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U29_ga(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_ga(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_ga(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
U30_ga(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
qs1_in_ga(.(T265, []), T9) → U31_ga(T265, T9, qs99_in_a(X9))
U31_ga(T265, T9, qs99_out_a(X9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga(.(T265, []), T9) → U32_ga(T265, T9, qs99_in_a(T268))
U32_ga(T265, T9, qs99_out_a(T268)) → U33_ga(T265, T9, qs99_in_a(X10))
U33_ga(T265, T9, qs99_out_a(X10)) → qs1_out_ga(.(T265, []), T9)
U32_ga(T265, T9, qs99_out_a(T268)) → U34_ga(T265, T9, T268, qs99_in_a(T273))
U34_ga(T265, T9, T268, qs99_out_a(T273)) → U35_ga(T265, T9, app54_in_ggga(T268, T265, T273, T9))
app54_in_ggga(.(T210, T211), T212, T213, .(T210, T215)) → U15_ggga(T210, T211, T212, T213, T215, app54_in_ggga(T211, T212, T213, T215))
app54_in_ggga([], T225, T226, .(T225, T226)) → app54_out_ggga([], T225, T226, .(T225, T226))
U15_ggga(T210, T211, T212, T213, T215, app54_out_ggga(T211, T212, T213, T215)) → app54_out_ggga(.(T210, T211), T212, T213, .(T210, T215))
U35_ga(T265, T9, app54_out_ggga(T268, T265, T273, T9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
LE33_IN_GG(s(T98), s(T99)) → LE33_IN_GG(T98, T99)
LE33_IN_GG(s(T98), s(T99)) → LE33_IN_GG(T98, T99)
From the DPs we obtained the following set of size-change graphs:
GT10_IN_GG(s(T37), s(T38)) → GT10_IN_GG(T37, T38)
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(T106)) → le33_out_gg(0, s(T106))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T112, [], [], []) → part20_out_ggaa(T112, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(T106)) → le33_out_ga(0, s(T106))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T112, [], [], []) → part20_out_gaaa(T112, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T239, .(T240, T241)), T9) → U25_aa(T239, T240, T241, T9, le33_in_aa(T239, T240))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(T106)) → le33_out_aa(0, s(T106))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U26_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, X437, X438))
U26_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, X437, X438)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U27_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, T249, T250))
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U28_aa(T239, T240, T241, T9, qs53_in_aa(T249, X9))
qs53_in_aa(.(T131, T132), X275) → U7_aa(T131, T132, X275, part20_in_aaaa(T131, T132, X271, X272))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T112, [], [], []) → part20_out_aaaa(T112, [], [], [])
U7_aa(T131, T132, X275, part20_out_aaaa(T131, T132, X271, X272)) → qs53_out_aa(.(T131, T132), X275)
qs53_in_aa(.(T131, T132), X275) → U8_aa(T131, T132, X275, part20_in_aaaa(T131, T132, T136, T137))
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U9_aa(T131, T132, X275, qs53_in_aa(T136, X273))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T131, T132, X275, qs53_out_aa(T136, X273)) → qs53_out_aa(.(T131, T132), X275)
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U10_aa(T131, T132, X275, T137, qs53_in_aa(T136, T143))
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U11_aa(T131, T132, X275, qs53_in_aa(T137, X274))
U11_aa(T131, T132, X275, qs53_out_aa(T137, X274)) → qs53_out_aa(.(T131, T132), X275)
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U12_aa(T131, T132, X275, T143, qs53_in_aa(T137, T148))
U12_aa(T131, T132, X275, T143, qs53_out_aa(T137, T148)) → U13_aa(T131, T132, X275, app65_in_aaaa(T143, T131, T148, X275))
app65_in_aaaa(.(T171, T172), T173, T174, .(T171, X354)) → U14_aaaa(T171, T172, T173, T174, X354, app65_in_aaaa(T172, T173, T174, X354))
app65_in_aaaa([], T183, T184, .(T183, T184)) → app65_out_aaaa([], T183, T184, .(T183, T184))
U14_aaaa(T171, T172, T173, T174, X354, app65_out_aaaa(T172, T173, T174, X354)) → app65_out_aaaa(.(T171, T172), T173, T174, .(T171, X354))
U13_aa(T131, T132, X275, app65_out_aaaa(T143, T131, T148, X275)) → qs53_out_aa(.(T131, T132), X275)
U28_aa(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U29_aa(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_aa(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_aa(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
p52_in_aaaga(T45, X10, T115, T22, T9) → U16_aaaga(T45, X10, T115, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T115, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T115, T22, T9)
p52_in_aaaga(T45, T120, T115, T22, T9) → U17_aaaga(T45, T120, T115, T22, T9, qs53_in_aa(T45, T120))
U17_aaaga(T45, T120, T115, T22, T9, qs53_out_aa(T45, T120)) → U18_aaaga(T45, T120, T115, T22, T9, app54_in_agaa(T115, T22, T120, T9))
app54_in_agaa(.(T210, T211), T212, T213, .(T210, T215)) → U15_agaa(T210, T211, T212, T213, T215, app54_in_agaa(T211, T212, T213, T215))
app54_in_agaa([], T225, T226, .(T225, T226)) → app54_out_agaa([], T225, T226, .(T225, T226))
U15_agaa(T210, T211, T212, T213, T215, app54_out_agaa(T211, T212, T213, T215)) → app54_out_agaa(.(T210, T211), T212, T213, .(T210, T215))
U18_aaaga(T45, T120, T115, T22, T9, app54_out_agaa(T115, T22, T120, T9)) → p52_out_aaaga(T45, T120, T115, T22, T9)
U30_aa(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
qs1_in_aa(.(T265, []), T9) → U31_aa(T265, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T265, T9, qs99_out_a(X9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa(.(T265, []), T9) → U32_aa(T265, T9, qs99_in_a(T268))
U32_aa(T265, T9, qs99_out_a(T268)) → U33_aa(T265, T9, qs99_in_a(X10))
U33_aa(T265, T9, qs99_out_a(X10)) → qs1_out_aa(.(T265, []), T9)
U32_aa(T265, T9, qs99_out_a(T268)) → U34_aa(T265, T9, T268, qs99_in_a(T273))
U34_aa(T265, T9, T268, qs99_out_a(T273)) → U35_aa(T265, T9, app54_in_gaga(T268, T265, T273, T9))
app54_in_gaga(.(T210, T211), T212, T213, .(T210, T215)) → U15_gaga(T210, T211, T212, T213, T215, app54_in_gaga(T211, T212, T213, T215))
app54_in_gaga([], T225, T226, .(T225, T226)) → app54_out_gaga([], T225, T226, .(T225, T226))
U15_gaga(T210, T211, T212, T213, T215, app54_out_gaga(T211, T212, T213, T215)) → app54_out_gaga(.(T210, T211), T212, T213, .(T210, T215))
U35_aa(T265, T9, app54_out_gaga(T268, T265, T273, T9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T239, .(T240, T241)), T9) → U25_ga(T239, T240, T241, T9, le33_in_gg(T239, T240))
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U26_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, X437, X438))
U26_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, X437, X438)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U27_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, T249, T250))
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U28_ga(T239, T240, T241, T9, qs53_in_aa(T249, X9))
U28_ga(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U29_ga(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_ga(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_ga(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
U30_ga(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
qs1_in_ga(.(T265, []), T9) → U31_ga(T265, T9, qs99_in_a(X9))
U31_ga(T265, T9, qs99_out_a(X9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga(.(T265, []), T9) → U32_ga(T265, T9, qs99_in_a(T268))
U32_ga(T265, T9, qs99_out_a(T268)) → U33_ga(T265, T9, qs99_in_a(X10))
U33_ga(T265, T9, qs99_out_a(X10)) → qs1_out_ga(.(T265, []), T9)
U32_ga(T265, T9, qs99_out_a(T268)) → U34_ga(T265, T9, T268, qs99_in_a(T273))
U34_ga(T265, T9, T268, qs99_out_a(T273)) → U35_ga(T265, T9, app54_in_ggga(T268, T265, T273, T9))
app54_in_ggga(.(T210, T211), T212, T213, .(T210, T215)) → U15_ggga(T210, T211, T212, T213, T215, app54_in_ggga(T211, T212, T213, T215))
app54_in_ggga([], T225, T226, .(T225, T226)) → app54_out_ggga([], T225, T226, .(T225, T226))
U15_ggga(T210, T211, T212, T213, T215, app54_out_ggga(T211, T212, T213, T215)) → app54_out_ggga(.(T210, T211), T212, T213, .(T210, T215))
U35_ga(T265, T9, app54_out_ggga(T268, T265, T273, T9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
GT10_IN_GG(s(T37), s(T38)) → GT10_IN_GG(T37, T38)
GT10_IN_GG(s(T37), s(T38)) → GT10_IN_GG(T37, T38)
From the DPs we obtained the following set of size-change graphs:
PART20_IN_GGAA(T61, .(T62, T63), .(T62, X119), X120) → U2_GGAA(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_GGAA(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → PART20_IN_GGAA(T61, T63, X119, X120)
PART20_IN_GGAA(T83, .(T84, T85), X170, .(T84, X171)) → U4_GGAA(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
U4_GGAA(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → PART20_IN_GGAA(T83, T85, X170, X171)
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(T106)) → le33_out_gg(0, s(T106))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T112, [], [], []) → part20_out_ggaa(T112, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(T106)) → le33_out_ga(0, s(T106))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T112, [], [], []) → part20_out_gaaa(T112, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T239, .(T240, T241)), T9) → U25_aa(T239, T240, T241, T9, le33_in_aa(T239, T240))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(T106)) → le33_out_aa(0, s(T106))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U26_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, X437, X438))
U26_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, X437, X438)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U27_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, T249, T250))
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U28_aa(T239, T240, T241, T9, qs53_in_aa(T249, X9))
qs53_in_aa(.(T131, T132), X275) → U7_aa(T131, T132, X275, part20_in_aaaa(T131, T132, X271, X272))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T112, [], [], []) → part20_out_aaaa(T112, [], [], [])
U7_aa(T131, T132, X275, part20_out_aaaa(T131, T132, X271, X272)) → qs53_out_aa(.(T131, T132), X275)
qs53_in_aa(.(T131, T132), X275) → U8_aa(T131, T132, X275, part20_in_aaaa(T131, T132, T136, T137))
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U9_aa(T131, T132, X275, qs53_in_aa(T136, X273))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T131, T132, X275, qs53_out_aa(T136, X273)) → qs53_out_aa(.(T131, T132), X275)
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U10_aa(T131, T132, X275, T137, qs53_in_aa(T136, T143))
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U11_aa(T131, T132, X275, qs53_in_aa(T137, X274))
U11_aa(T131, T132, X275, qs53_out_aa(T137, X274)) → qs53_out_aa(.(T131, T132), X275)
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U12_aa(T131, T132, X275, T143, qs53_in_aa(T137, T148))
U12_aa(T131, T132, X275, T143, qs53_out_aa(T137, T148)) → U13_aa(T131, T132, X275, app65_in_aaaa(T143, T131, T148, X275))
app65_in_aaaa(.(T171, T172), T173, T174, .(T171, X354)) → U14_aaaa(T171, T172, T173, T174, X354, app65_in_aaaa(T172, T173, T174, X354))
app65_in_aaaa([], T183, T184, .(T183, T184)) → app65_out_aaaa([], T183, T184, .(T183, T184))
U14_aaaa(T171, T172, T173, T174, X354, app65_out_aaaa(T172, T173, T174, X354)) → app65_out_aaaa(.(T171, T172), T173, T174, .(T171, X354))
U13_aa(T131, T132, X275, app65_out_aaaa(T143, T131, T148, X275)) → qs53_out_aa(.(T131, T132), X275)
U28_aa(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U29_aa(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_aa(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_aa(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
p52_in_aaaga(T45, X10, T115, T22, T9) → U16_aaaga(T45, X10, T115, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T115, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T115, T22, T9)
p52_in_aaaga(T45, T120, T115, T22, T9) → U17_aaaga(T45, T120, T115, T22, T9, qs53_in_aa(T45, T120))
U17_aaaga(T45, T120, T115, T22, T9, qs53_out_aa(T45, T120)) → U18_aaaga(T45, T120, T115, T22, T9, app54_in_agaa(T115, T22, T120, T9))
app54_in_agaa(.(T210, T211), T212, T213, .(T210, T215)) → U15_agaa(T210, T211, T212, T213, T215, app54_in_agaa(T211, T212, T213, T215))
app54_in_agaa([], T225, T226, .(T225, T226)) → app54_out_agaa([], T225, T226, .(T225, T226))
U15_agaa(T210, T211, T212, T213, T215, app54_out_agaa(T211, T212, T213, T215)) → app54_out_agaa(.(T210, T211), T212, T213, .(T210, T215))
U18_aaaga(T45, T120, T115, T22, T9, app54_out_agaa(T115, T22, T120, T9)) → p52_out_aaaga(T45, T120, T115, T22, T9)
U30_aa(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
qs1_in_aa(.(T265, []), T9) → U31_aa(T265, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T265, T9, qs99_out_a(X9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa(.(T265, []), T9) → U32_aa(T265, T9, qs99_in_a(T268))
U32_aa(T265, T9, qs99_out_a(T268)) → U33_aa(T265, T9, qs99_in_a(X10))
U33_aa(T265, T9, qs99_out_a(X10)) → qs1_out_aa(.(T265, []), T9)
U32_aa(T265, T9, qs99_out_a(T268)) → U34_aa(T265, T9, T268, qs99_in_a(T273))
U34_aa(T265, T9, T268, qs99_out_a(T273)) → U35_aa(T265, T9, app54_in_gaga(T268, T265, T273, T9))
app54_in_gaga(.(T210, T211), T212, T213, .(T210, T215)) → U15_gaga(T210, T211, T212, T213, T215, app54_in_gaga(T211, T212, T213, T215))
app54_in_gaga([], T225, T226, .(T225, T226)) → app54_out_gaga([], T225, T226, .(T225, T226))
U15_gaga(T210, T211, T212, T213, T215, app54_out_gaga(T211, T212, T213, T215)) → app54_out_gaga(.(T210, T211), T212, T213, .(T210, T215))
U35_aa(T265, T9, app54_out_gaga(T268, T265, T273, T9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T239, .(T240, T241)), T9) → U25_ga(T239, T240, T241, T9, le33_in_gg(T239, T240))
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U26_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, X437, X438))
U26_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, X437, X438)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U27_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, T249, T250))
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U28_ga(T239, T240, T241, T9, qs53_in_aa(T249, X9))
U28_ga(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U29_ga(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_ga(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_ga(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
U30_ga(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
qs1_in_ga(.(T265, []), T9) → U31_ga(T265, T9, qs99_in_a(X9))
U31_ga(T265, T9, qs99_out_a(X9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga(.(T265, []), T9) → U32_ga(T265, T9, qs99_in_a(T268))
U32_ga(T265, T9, qs99_out_a(T268)) → U33_ga(T265, T9, qs99_in_a(X10))
U33_ga(T265, T9, qs99_out_a(X10)) → qs1_out_ga(.(T265, []), T9)
U32_ga(T265, T9, qs99_out_a(T268)) → U34_ga(T265, T9, T268, qs99_in_a(T273))
U34_ga(T265, T9, T268, qs99_out_a(T273)) → U35_ga(T265, T9, app54_in_ggga(T268, T265, T273, T9))
app54_in_ggga(.(T210, T211), T212, T213, .(T210, T215)) → U15_ggga(T210, T211, T212, T213, T215, app54_in_ggga(T211, T212, T213, T215))
app54_in_ggga([], T225, T226, .(T225, T226)) → app54_out_ggga([], T225, T226, .(T225, T226))
U15_ggga(T210, T211, T212, T213, T215, app54_out_ggga(T211, T212, T213, T215)) → app54_out_ggga(.(T210, T211), T212, T213, .(T210, T215))
U35_ga(T265, T9, app54_out_ggga(T268, T265, T273, T9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
PART20_IN_GGAA(T61, .(T62, T63), .(T62, X119), X120) → U2_GGAA(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_GGAA(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → PART20_IN_GGAA(T61, T63, X119, X120)
PART20_IN_GGAA(T83, .(T84, T85), X170, .(T84, X171)) → U4_GGAA(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
U4_GGAA(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → PART20_IN_GGAA(T83, T85, X170, X171)
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(T106)) → le33_out_gg(0, s(T106))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
PART20_IN_GGAA(T61, .(T62, T63)) → U2_GGAA(T61, T62, T63, gt10_in_gg(T61, T62))
U2_GGAA(T61, T62, T63, gt10_out_gg(T61, T62)) → PART20_IN_GGAA(T61, T63)
PART20_IN_GGAA(T83, .(T84, T85)) → U4_GGAA(T83, T84, T85, le33_in_gg(T83, T84))
U4_GGAA(T83, T84, T85, le33_out_gg(T83, T84)) → PART20_IN_GGAA(T83, T85)
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(T106)) → le33_out_gg(0, s(T106))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
gt10_in_gg(x0, x1)
le33_in_gg(x0, x1)
U1_gg(x0, x1, x2)
U6_gg(x0, x1, x2)
From the DPs we obtained the following set of size-change graphs:
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(T106)) → le33_out_gg(0, s(T106))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T112, [], [], []) → part20_out_ggaa(T112, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(T106)) → le33_out_ga(0, s(T106))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T112, [], [], []) → part20_out_gaaa(T112, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T239, .(T240, T241)), T9) → U25_aa(T239, T240, T241, T9, le33_in_aa(T239, T240))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(T106)) → le33_out_aa(0, s(T106))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U26_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, X437, X438))
U26_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, X437, X438)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U27_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, T249, T250))
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U28_aa(T239, T240, T241, T9, qs53_in_aa(T249, X9))
qs53_in_aa(.(T131, T132), X275) → U7_aa(T131, T132, X275, part20_in_aaaa(T131, T132, X271, X272))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T112, [], [], []) → part20_out_aaaa(T112, [], [], [])
U7_aa(T131, T132, X275, part20_out_aaaa(T131, T132, X271, X272)) → qs53_out_aa(.(T131, T132), X275)
qs53_in_aa(.(T131, T132), X275) → U8_aa(T131, T132, X275, part20_in_aaaa(T131, T132, T136, T137))
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U9_aa(T131, T132, X275, qs53_in_aa(T136, X273))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T131, T132, X275, qs53_out_aa(T136, X273)) → qs53_out_aa(.(T131, T132), X275)
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U10_aa(T131, T132, X275, T137, qs53_in_aa(T136, T143))
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U11_aa(T131, T132, X275, qs53_in_aa(T137, X274))
U11_aa(T131, T132, X275, qs53_out_aa(T137, X274)) → qs53_out_aa(.(T131, T132), X275)
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U12_aa(T131, T132, X275, T143, qs53_in_aa(T137, T148))
U12_aa(T131, T132, X275, T143, qs53_out_aa(T137, T148)) → U13_aa(T131, T132, X275, app65_in_aaaa(T143, T131, T148, X275))
app65_in_aaaa(.(T171, T172), T173, T174, .(T171, X354)) → U14_aaaa(T171, T172, T173, T174, X354, app65_in_aaaa(T172, T173, T174, X354))
app65_in_aaaa([], T183, T184, .(T183, T184)) → app65_out_aaaa([], T183, T184, .(T183, T184))
U14_aaaa(T171, T172, T173, T174, X354, app65_out_aaaa(T172, T173, T174, X354)) → app65_out_aaaa(.(T171, T172), T173, T174, .(T171, X354))
U13_aa(T131, T132, X275, app65_out_aaaa(T143, T131, T148, X275)) → qs53_out_aa(.(T131, T132), X275)
U28_aa(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U29_aa(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_aa(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_aa(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
p52_in_aaaga(T45, X10, T115, T22, T9) → U16_aaaga(T45, X10, T115, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T115, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T115, T22, T9)
p52_in_aaaga(T45, T120, T115, T22, T9) → U17_aaaga(T45, T120, T115, T22, T9, qs53_in_aa(T45, T120))
U17_aaaga(T45, T120, T115, T22, T9, qs53_out_aa(T45, T120)) → U18_aaaga(T45, T120, T115, T22, T9, app54_in_agaa(T115, T22, T120, T9))
app54_in_agaa(.(T210, T211), T212, T213, .(T210, T215)) → U15_agaa(T210, T211, T212, T213, T215, app54_in_agaa(T211, T212, T213, T215))
app54_in_agaa([], T225, T226, .(T225, T226)) → app54_out_agaa([], T225, T226, .(T225, T226))
U15_agaa(T210, T211, T212, T213, T215, app54_out_agaa(T211, T212, T213, T215)) → app54_out_agaa(.(T210, T211), T212, T213, .(T210, T215))
U18_aaaga(T45, T120, T115, T22, T9, app54_out_agaa(T115, T22, T120, T9)) → p52_out_aaaga(T45, T120, T115, T22, T9)
U30_aa(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
qs1_in_aa(.(T265, []), T9) → U31_aa(T265, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T265, T9, qs99_out_a(X9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa(.(T265, []), T9) → U32_aa(T265, T9, qs99_in_a(T268))
U32_aa(T265, T9, qs99_out_a(T268)) → U33_aa(T265, T9, qs99_in_a(X10))
U33_aa(T265, T9, qs99_out_a(X10)) → qs1_out_aa(.(T265, []), T9)
U32_aa(T265, T9, qs99_out_a(T268)) → U34_aa(T265, T9, T268, qs99_in_a(T273))
U34_aa(T265, T9, T268, qs99_out_a(T273)) → U35_aa(T265, T9, app54_in_gaga(T268, T265, T273, T9))
app54_in_gaga(.(T210, T211), T212, T213, .(T210, T215)) → U15_gaga(T210, T211, T212, T213, T215, app54_in_gaga(T211, T212, T213, T215))
app54_in_gaga([], T225, T226, .(T225, T226)) → app54_out_gaga([], T225, T226, .(T225, T226))
U15_gaga(T210, T211, T212, T213, T215, app54_out_gaga(T211, T212, T213, T215)) → app54_out_gaga(.(T210, T211), T212, T213, .(T210, T215))
U35_aa(T265, T9, app54_out_gaga(T268, T265, T273, T9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T239, .(T240, T241)), T9) → U25_ga(T239, T240, T241, T9, le33_in_gg(T239, T240))
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U26_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, X437, X438))
U26_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, X437, X438)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U27_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, T249, T250))
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U28_ga(T239, T240, T241, T9, qs53_in_aa(T249, X9))
U28_ga(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U29_ga(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_ga(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_ga(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
U30_ga(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
qs1_in_ga(.(T265, []), T9) → U31_ga(T265, T9, qs99_in_a(X9))
U31_ga(T265, T9, qs99_out_a(X9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga(.(T265, []), T9) → U32_ga(T265, T9, qs99_in_a(T268))
U32_ga(T265, T9, qs99_out_a(T268)) → U33_ga(T265, T9, qs99_in_a(X10))
U33_ga(T265, T9, qs99_out_a(X10)) → qs1_out_ga(.(T265, []), T9)
U32_ga(T265, T9, qs99_out_a(T268)) → U34_ga(T265, T9, T268, qs99_in_a(T273))
U34_ga(T265, T9, T268, qs99_out_a(T273)) → U35_ga(T265, T9, app54_in_ggga(T268, T265, T273, T9))
app54_in_ggga(.(T210, T211), T212, T213, .(T210, T215)) → U15_ggga(T210, T211, T212, T213, T215, app54_in_ggga(T211, T212, T213, T215))
app54_in_ggga([], T225, T226, .(T225, T226)) → app54_out_ggga([], T225, T226, .(T225, T226))
U15_ggga(T210, T211, T212, T213, T215, app54_out_ggga(T211, T212, T213, T215)) → app54_out_ggga(.(T210, T211), T212, T213, .(T210, T215))
U35_ga(T265, T9, app54_out_ggga(T268, T265, T273, T9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(T106)) → le33_out_gg(0, s(T106))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T112, [], [], []) → part20_out_ggaa(T112, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(T106)) → le33_out_ga(0, s(T106))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T112, [], [], []) → part20_out_gaaa(T112, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T239, .(T240, T241)), T9) → U25_aa(T239, T240, T241, T9, le33_in_aa(T239, T240))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(T106)) → le33_out_aa(0, s(T106))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U26_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, X437, X438))
U26_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, X437, X438)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U27_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, T249, T250))
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U28_aa(T239, T240, T241, T9, qs53_in_aa(T249, X9))
qs53_in_aa(.(T131, T132), X275) → U7_aa(T131, T132, X275, part20_in_aaaa(T131, T132, X271, X272))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T112, [], [], []) → part20_out_aaaa(T112, [], [], [])
U7_aa(T131, T132, X275, part20_out_aaaa(T131, T132, X271, X272)) → qs53_out_aa(.(T131, T132), X275)
qs53_in_aa(.(T131, T132), X275) → U8_aa(T131, T132, X275, part20_in_aaaa(T131, T132, T136, T137))
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U9_aa(T131, T132, X275, qs53_in_aa(T136, X273))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T131, T132, X275, qs53_out_aa(T136, X273)) → qs53_out_aa(.(T131, T132), X275)
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U10_aa(T131, T132, X275, T137, qs53_in_aa(T136, T143))
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U11_aa(T131, T132, X275, qs53_in_aa(T137, X274))
U11_aa(T131, T132, X275, qs53_out_aa(T137, X274)) → qs53_out_aa(.(T131, T132), X275)
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U12_aa(T131, T132, X275, T143, qs53_in_aa(T137, T148))
U12_aa(T131, T132, X275, T143, qs53_out_aa(T137, T148)) → U13_aa(T131, T132, X275, app65_in_aaaa(T143, T131, T148, X275))
app65_in_aaaa(.(T171, T172), T173, T174, .(T171, X354)) → U14_aaaa(T171, T172, T173, T174, X354, app65_in_aaaa(T172, T173, T174, X354))
app65_in_aaaa([], T183, T184, .(T183, T184)) → app65_out_aaaa([], T183, T184, .(T183, T184))
U14_aaaa(T171, T172, T173, T174, X354, app65_out_aaaa(T172, T173, T174, X354)) → app65_out_aaaa(.(T171, T172), T173, T174, .(T171, X354))
U13_aa(T131, T132, X275, app65_out_aaaa(T143, T131, T148, X275)) → qs53_out_aa(.(T131, T132), X275)
U28_aa(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U29_aa(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_aa(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_aa(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
p52_in_aaaga(T45, X10, T115, T22, T9) → U16_aaaga(T45, X10, T115, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T115, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T115, T22, T9)
p52_in_aaaga(T45, T120, T115, T22, T9) → U17_aaaga(T45, T120, T115, T22, T9, qs53_in_aa(T45, T120))
U17_aaaga(T45, T120, T115, T22, T9, qs53_out_aa(T45, T120)) → U18_aaaga(T45, T120, T115, T22, T9, app54_in_agaa(T115, T22, T120, T9))
app54_in_agaa(.(T210, T211), T212, T213, .(T210, T215)) → U15_agaa(T210, T211, T212, T213, T215, app54_in_agaa(T211, T212, T213, T215))
app54_in_agaa([], T225, T226, .(T225, T226)) → app54_out_agaa([], T225, T226, .(T225, T226))
U15_agaa(T210, T211, T212, T213, T215, app54_out_agaa(T211, T212, T213, T215)) → app54_out_agaa(.(T210, T211), T212, T213, .(T210, T215))
U18_aaaga(T45, T120, T115, T22, T9, app54_out_agaa(T115, T22, T120, T9)) → p52_out_aaaga(T45, T120, T115, T22, T9)
U30_aa(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
qs1_in_aa(.(T265, []), T9) → U31_aa(T265, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T265, T9, qs99_out_a(X9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa(.(T265, []), T9) → U32_aa(T265, T9, qs99_in_a(T268))
U32_aa(T265, T9, qs99_out_a(T268)) → U33_aa(T265, T9, qs99_in_a(X10))
U33_aa(T265, T9, qs99_out_a(X10)) → qs1_out_aa(.(T265, []), T9)
U32_aa(T265, T9, qs99_out_a(T268)) → U34_aa(T265, T9, T268, qs99_in_a(T273))
U34_aa(T265, T9, T268, qs99_out_a(T273)) → U35_aa(T265, T9, app54_in_gaga(T268, T265, T273, T9))
app54_in_gaga(.(T210, T211), T212, T213, .(T210, T215)) → U15_gaga(T210, T211, T212, T213, T215, app54_in_gaga(T211, T212, T213, T215))
app54_in_gaga([], T225, T226, .(T225, T226)) → app54_out_gaga([], T225, T226, .(T225, T226))
U15_gaga(T210, T211, T212, T213, T215, app54_out_gaga(T211, T212, T213, T215)) → app54_out_gaga(.(T210, T211), T212, T213, .(T210, T215))
U35_aa(T265, T9, app54_out_gaga(T268, T265, T273, T9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T239, .(T240, T241)), T9) → U25_ga(T239, T240, T241, T9, le33_in_gg(T239, T240))
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U26_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, X437, X438))
U26_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, X437, X438)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U27_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, T249, T250))
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U28_ga(T239, T240, T241, T9, qs53_in_aa(T249, X9))
U28_ga(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U29_ga(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_ga(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_ga(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
U30_ga(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
qs1_in_ga(.(T265, []), T9) → U31_ga(T265, T9, qs99_in_a(X9))
U31_ga(T265, T9, qs99_out_a(X9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga(.(T265, []), T9) → U32_ga(T265, T9, qs99_in_a(T268))
U32_ga(T265, T9, qs99_out_a(T268)) → U33_ga(T265, T9, qs99_in_a(X10))
U33_ga(T265, T9, qs99_out_a(X10)) → qs1_out_ga(.(T265, []), T9)
U32_ga(T265, T9, qs99_out_a(T268)) → U34_ga(T265, T9, T268, qs99_in_a(T273))
U34_ga(T265, T9, T268, qs99_out_a(T273)) → U35_ga(T265, T9, app54_in_ggga(T268, T265, T273, T9))
app54_in_ggga(.(T210, T211), T212, T213, .(T210, T215)) → U15_ggga(T210, T211, T212, T213, T215, app54_in_ggga(T211, T212, T213, T215))
app54_in_ggga([], T225, T226, .(T225, T226)) → app54_out_ggga([], T225, T226, .(T225, T226))
U15_ggga(T210, T211, T212, T213, T215, app54_out_ggga(T211, T212, T213, T215)) → app54_out_ggga(.(T210, T211), T212, T213, .(T210, T215))
U35_ga(T265, T9, app54_out_ggga(T268, T265, T273, T9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
QS1_IN_GA(.(T22, .(T23, T24)), T9) → U19_GA(T22, T23, T24, T9, gt10_in_gg(T22, T23))
QS1_IN_GA(.(T22, .(T23, T24)), T9) → GT10_IN_GG(T22, T23)
GT10_IN_GG(s(T37), s(T38)) → U1_GG(T37, T38, gt10_in_gg(T37, T38))
GT10_IN_GG(s(T37), s(T38)) → GT10_IN_GG(T37, T38)
U19_GA(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_GA(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
U19_GA(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → PART20_IN_GGAA(T22, T24, X47, X48)
PART20_IN_GGAA(T61, .(T62, T63), .(T62, X119), X120) → U2_GGAA(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
PART20_IN_GGAA(T61, .(T62, T63), .(T62, X119), X120) → GT10_IN_GG(T61, T62)
U2_GGAA(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_GGAA(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
U2_GGAA(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → PART20_IN_GGAA(T61, T63, X119, X120)
PART20_IN_GGAA(T83, .(T84, T85), X170, .(T84, X171)) → U4_GGAA(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
PART20_IN_GGAA(T83, .(T84, T85), X170, .(T84, X171)) → LE33_IN_GG(T83, T84)
LE33_IN_GG(s(T98), s(T99)) → U6_GG(T98, T99, le33_in_gg(T98, T99))
LE33_IN_GG(s(T98), s(T99)) → LE33_IN_GG(T98, T99)
U4_GGAA(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_GGAA(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
U4_GGAA(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → PART20_IN_GGAA(T83, T85, X170, X171)
U19_GA(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_GA(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_GA(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_GA(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
U21_GA(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → QS1_IN_AA(.(T23, T44), X9)
QS1_IN_AA(.(T22, .(T23, T24)), T9) → U19_AA(T22, T23, T24, T9, gt10_in_aa(T22, T23))
QS1_IN_AA(.(T22, .(T23, T24)), T9) → GT10_IN_AA(T22, T23)
GT10_IN_AA(s(T37), s(T38)) → U1_AA(T37, T38, gt10_in_aa(T37, T38))
GT10_IN_AA(s(T37), s(T38)) → GT10_IN_AA(T37, T38)
U19_AA(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_AA(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
U19_AA(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → PART20_IN_GAAA(T22, T24, X47, X48)
PART20_IN_GAAA(T61, .(T62, T63), .(T62, X119), X120) → U2_GAAA(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
PART20_IN_GAAA(T61, .(T62, T63), .(T62, X119), X120) → GT10_IN_GA(T61, T62)
GT10_IN_GA(s(T37), s(T38)) → U1_GA(T37, T38, gt10_in_ga(T37, T38))
GT10_IN_GA(s(T37), s(T38)) → GT10_IN_GA(T37, T38)
U2_GAAA(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_GAAA(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U2_GAAA(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → PART20_IN_GAAA(T61, T63, X119, X120)
PART20_IN_GAAA(T83, .(T84, T85), X170, .(T84, X171)) → U4_GAAA(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
PART20_IN_GAAA(T83, .(T84, T85), X170, .(T84, X171)) → LE33_IN_GA(T83, T84)
LE33_IN_GA(s(T98), s(T99)) → U6_GA(T98, T99, le33_in_ga(T98, T99))
LE33_IN_GA(s(T98), s(T99)) → LE33_IN_GA(T98, T99)
U4_GAAA(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_GAAA(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U4_GAAA(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → PART20_IN_GAAA(T83, T85, X170, X171)
U19_AA(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_AA(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_AA(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_AA(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
U21_AA(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → QS1_IN_AA(.(T23, T44), X9)
QS1_IN_AA(.(T239, .(T240, T241)), T9) → U25_AA(T239, T240, T241, T9, le33_in_aa(T239, T240))
QS1_IN_AA(.(T239, .(T240, T241)), T9) → LE33_IN_AA(T239, T240)
LE33_IN_AA(s(T98), s(T99)) → U6_AA(T98, T99, le33_in_aa(T98, T99))
LE33_IN_AA(s(T98), s(T99)) → LE33_IN_AA(T98, T99)
U25_AA(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U26_AA(T239, T240, T241, T9, part20_in_gaaa(T239, T241, X437, X438))
U25_AA(T239, T240, T241, T9, le33_out_aa(T239, T240)) → PART20_IN_GAAA(T239, T241, X437, X438)
U25_AA(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U27_AA(T239, T240, T241, T9, part20_in_gaaa(T239, T241, T249, T250))
U27_AA(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U28_AA(T239, T240, T241, T9, qs53_in_aa(T249, X9))
U27_AA(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → QS53_IN_AA(T249, X9)
QS53_IN_AA(.(T131, T132), X275) → U7_AA(T131, T132, X275, part20_in_aaaa(T131, T132, X271, X272))
QS53_IN_AA(.(T131, T132), X275) → PART20_IN_AAAA(T131, T132, X271, X272)
PART20_IN_AAAA(T61, .(T62, T63), .(T62, X119), X120) → U2_AAAA(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
PART20_IN_AAAA(T61, .(T62, T63), .(T62, X119), X120) → GT10_IN_AA(T61, T62)
U2_AAAA(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_AAAA(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U2_AAAA(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → PART20_IN_GAAA(T61, T63, X119, X120)
PART20_IN_AAAA(T83, .(T84, T85), X170, .(T84, X171)) → U4_AAAA(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
PART20_IN_AAAA(T83, .(T84, T85), X170, .(T84, X171)) → LE33_IN_AA(T83, T84)
U4_AAAA(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_AAAA(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U4_AAAA(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → PART20_IN_GAAA(T83, T85, X170, X171)
QS53_IN_AA(.(T131, T132), X275) → U8_AA(T131, T132, X275, part20_in_aaaa(T131, T132, T136, T137))
U8_AA(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U9_AA(T131, T132, X275, qs53_in_aa(T136, X273))
U8_AA(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → QS53_IN_AA(T136, X273)
U8_AA(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U10_AA(T131, T132, X275, T137, qs53_in_aa(T136, T143))
U10_AA(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U11_AA(T131, T132, X275, qs53_in_aa(T137, X274))
U10_AA(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → QS53_IN_AA(T137, X274)
U10_AA(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U12_AA(T131, T132, X275, T143, qs53_in_aa(T137, T148))
U12_AA(T131, T132, X275, T143, qs53_out_aa(T137, T148)) → U13_AA(T131, T132, X275, app65_in_aaaa(T143, T131, T148, X275))
U12_AA(T131, T132, X275, T143, qs53_out_aa(T137, T148)) → APP65_IN_AAAA(T143, T131, T148, X275)
APP65_IN_AAAA(.(T171, T172), T173, T174, .(T171, X354)) → U14_AAAA(T171, T172, T173, T174, X354, app65_in_aaaa(T172, T173, T174, X354))
APP65_IN_AAAA(.(T171, T172), T173, T174, .(T171, X354)) → APP65_IN_AAAA(T172, T173, T174, X354)
U27_AA(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U29_AA(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_AA(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_AA(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
U29_AA(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → P52_IN_AAAGA(.(T240, T250), X10, T256, T239, T9)
P52_IN_AAAGA(T45, X10, T115, T22, T9) → U16_AAAGA(T45, X10, T115, T22, T9, qs53_in_aa(T45, X10))
P52_IN_AAAGA(T45, X10, T115, T22, T9) → QS53_IN_AA(T45, X10)
P52_IN_AAAGA(T45, T120, T115, T22, T9) → U17_AAAGA(T45, T120, T115, T22, T9, qs53_in_aa(T45, T120))
U17_AAAGA(T45, T120, T115, T22, T9, qs53_out_aa(T45, T120)) → U18_AAAGA(T45, T120, T115, T22, T9, app54_in_agaa(T115, T22, T120, T9))
U17_AAAGA(T45, T120, T115, T22, T9, qs53_out_aa(T45, T120)) → APP54_IN_AGAA(T115, T22, T120, T9)
APP54_IN_AGAA(.(T210, T211), T212, T213, .(T210, T215)) → U15_AGAA(T210, T211, T212, T213, T215, app54_in_agaa(T211, T212, T213, T215))
APP54_IN_AGAA(.(T210, T211), T212, T213, .(T210, T215)) → APP54_IN_AGAA(T211, T212, T213, T215)
QS1_IN_AA(.(T265, []), T9) → U31_AA(T265, T9, qs99_in_a(X9))
QS1_IN_AA(.(T265, []), T9) → QS99_IN_A(X9)
QS1_IN_AA(.(T265, []), T9) → U32_AA(T265, T9, qs99_in_a(T268))
U32_AA(T265, T9, qs99_out_a(T268)) → U33_AA(T265, T9, qs99_in_a(X10))
U32_AA(T265, T9, qs99_out_a(T268)) → QS99_IN_A(X10)
U32_AA(T265, T9, qs99_out_a(T268)) → U34_AA(T265, T9, T268, qs99_in_a(T273))
U34_AA(T265, T9, T268, qs99_out_a(T273)) → U35_AA(T265, T9, app54_in_gaga(T268, T265, T273, T9))
U34_AA(T265, T9, T268, qs99_out_a(T273)) → APP54_IN_GAGA(T268, T265, T273, T9)
APP54_IN_GAGA(.(T210, T211), T212, T213, .(T210, T215)) → U15_GAGA(T210, T211, T212, T213, T215, app54_in_gaga(T211, T212, T213, T215))
APP54_IN_GAGA(.(T210, T211), T212, T213, .(T210, T215)) → APP54_IN_GAGA(T211, T212, T213, T215)
U21_AA(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_AA(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_AA(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_AA(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U23_AA(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → P52_IN_AAAGA(T45, X10, T115, T22, T9)
U21_GA(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_GA(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_GA(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_GA(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U23_GA(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → P52_IN_AAAGA(T45, X10, T115, T22, T9)
QS1_IN_GA(.(T239, .(T240, T241)), T9) → U25_GA(T239, T240, T241, T9, le33_in_gg(T239, T240))
QS1_IN_GA(.(T239, .(T240, T241)), T9) → LE33_IN_GG(T239, T240)
U25_GA(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U26_GA(T239, T240, T241, T9, part20_in_ggaa(T239, T241, X437, X438))
U25_GA(T239, T240, T241, T9, le33_out_gg(T239, T240)) → PART20_IN_GGAA(T239, T241, X437, X438)
U25_GA(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U27_GA(T239, T240, T241, T9, part20_in_ggaa(T239, T241, T249, T250))
U27_GA(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U28_GA(T239, T240, T241, T9, qs53_in_aa(T249, X9))
U27_GA(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → QS53_IN_AA(T249, X9)
U27_GA(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U29_GA(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_GA(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_GA(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
U29_GA(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → P52_IN_AAAGA(.(T240, T250), X10, T256, T239, T9)
QS1_IN_GA(.(T265, []), T9) → U31_GA(T265, T9, qs99_in_a(X9))
QS1_IN_GA(.(T265, []), T9) → QS99_IN_A(X9)
QS1_IN_GA(.(T265, []), T9) → U32_GA(T265, T9, qs99_in_a(T268))
U32_GA(T265, T9, qs99_out_a(T268)) → U33_GA(T265, T9, qs99_in_a(X10))
U32_GA(T265, T9, qs99_out_a(T268)) → QS99_IN_A(X10)
U32_GA(T265, T9, qs99_out_a(T268)) → U34_GA(T265, T9, T268, qs99_in_a(T273))
U34_GA(T265, T9, T268, qs99_out_a(T273)) → U35_GA(T265, T9, app54_in_ggga(T268, T265, T273, T9))
U34_GA(T265, T9, T268, qs99_out_a(T273)) → APP54_IN_GGGA(T268, T265, T273, T9)
APP54_IN_GGGA(.(T210, T211), T212, T213, .(T210, T215)) → U15_GGGA(T210, T211, T212, T213, T215, app54_in_ggga(T211, T212, T213, T215))
APP54_IN_GGGA(.(T210, T211), T212, T213, .(T210, T215)) → APP54_IN_GGGA(T211, T212, T213, T215)
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(T106)) → le33_out_gg(0, s(T106))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T112, [], [], []) → part20_out_ggaa(T112, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(T106)) → le33_out_ga(0, s(T106))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T112, [], [], []) → part20_out_gaaa(T112, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T239, .(T240, T241)), T9) → U25_aa(T239, T240, T241, T9, le33_in_aa(T239, T240))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(T106)) → le33_out_aa(0, s(T106))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U26_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, X437, X438))
U26_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, X437, X438)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U27_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, T249, T250))
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U28_aa(T239, T240, T241, T9, qs53_in_aa(T249, X9))
qs53_in_aa(.(T131, T132), X275) → U7_aa(T131, T132, X275, part20_in_aaaa(T131, T132, X271, X272))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T112, [], [], []) → part20_out_aaaa(T112, [], [], [])
U7_aa(T131, T132, X275, part20_out_aaaa(T131, T132, X271, X272)) → qs53_out_aa(.(T131, T132), X275)
qs53_in_aa(.(T131, T132), X275) → U8_aa(T131, T132, X275, part20_in_aaaa(T131, T132, T136, T137))
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U9_aa(T131, T132, X275, qs53_in_aa(T136, X273))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T131, T132, X275, qs53_out_aa(T136, X273)) → qs53_out_aa(.(T131, T132), X275)
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U10_aa(T131, T132, X275, T137, qs53_in_aa(T136, T143))
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U11_aa(T131, T132, X275, qs53_in_aa(T137, X274))
U11_aa(T131, T132, X275, qs53_out_aa(T137, X274)) → qs53_out_aa(.(T131, T132), X275)
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U12_aa(T131, T132, X275, T143, qs53_in_aa(T137, T148))
U12_aa(T131, T132, X275, T143, qs53_out_aa(T137, T148)) → U13_aa(T131, T132, X275, app65_in_aaaa(T143, T131, T148, X275))
app65_in_aaaa(.(T171, T172), T173, T174, .(T171, X354)) → U14_aaaa(T171, T172, T173, T174, X354, app65_in_aaaa(T172, T173, T174, X354))
app65_in_aaaa([], T183, T184, .(T183, T184)) → app65_out_aaaa([], T183, T184, .(T183, T184))
U14_aaaa(T171, T172, T173, T174, X354, app65_out_aaaa(T172, T173, T174, X354)) → app65_out_aaaa(.(T171, T172), T173, T174, .(T171, X354))
U13_aa(T131, T132, X275, app65_out_aaaa(T143, T131, T148, X275)) → qs53_out_aa(.(T131, T132), X275)
U28_aa(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U29_aa(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_aa(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_aa(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
p52_in_aaaga(T45, X10, T115, T22, T9) → U16_aaaga(T45, X10, T115, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T115, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T115, T22, T9)
p52_in_aaaga(T45, T120, T115, T22, T9) → U17_aaaga(T45, T120, T115, T22, T9, qs53_in_aa(T45, T120))
U17_aaaga(T45, T120, T115, T22, T9, qs53_out_aa(T45, T120)) → U18_aaaga(T45, T120, T115, T22, T9, app54_in_agaa(T115, T22, T120, T9))
app54_in_agaa(.(T210, T211), T212, T213, .(T210, T215)) → U15_agaa(T210, T211, T212, T213, T215, app54_in_agaa(T211, T212, T213, T215))
app54_in_agaa([], T225, T226, .(T225, T226)) → app54_out_agaa([], T225, T226, .(T225, T226))
U15_agaa(T210, T211, T212, T213, T215, app54_out_agaa(T211, T212, T213, T215)) → app54_out_agaa(.(T210, T211), T212, T213, .(T210, T215))
U18_aaaga(T45, T120, T115, T22, T9, app54_out_agaa(T115, T22, T120, T9)) → p52_out_aaaga(T45, T120, T115, T22, T9)
U30_aa(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
qs1_in_aa(.(T265, []), T9) → U31_aa(T265, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T265, T9, qs99_out_a(X9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa(.(T265, []), T9) → U32_aa(T265, T9, qs99_in_a(T268))
U32_aa(T265, T9, qs99_out_a(T268)) → U33_aa(T265, T9, qs99_in_a(X10))
U33_aa(T265, T9, qs99_out_a(X10)) → qs1_out_aa(.(T265, []), T9)
U32_aa(T265, T9, qs99_out_a(T268)) → U34_aa(T265, T9, T268, qs99_in_a(T273))
U34_aa(T265, T9, T268, qs99_out_a(T273)) → U35_aa(T265, T9, app54_in_gaga(T268, T265, T273, T9))
app54_in_gaga(.(T210, T211), T212, T213, .(T210, T215)) → U15_gaga(T210, T211, T212, T213, T215, app54_in_gaga(T211, T212, T213, T215))
app54_in_gaga([], T225, T226, .(T225, T226)) → app54_out_gaga([], T225, T226, .(T225, T226))
U15_gaga(T210, T211, T212, T213, T215, app54_out_gaga(T211, T212, T213, T215)) → app54_out_gaga(.(T210, T211), T212, T213, .(T210, T215))
U35_aa(T265, T9, app54_out_gaga(T268, T265, T273, T9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T239, .(T240, T241)), T9) → U25_ga(T239, T240, T241, T9, le33_in_gg(T239, T240))
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U26_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, X437, X438))
U26_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, X437, X438)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U27_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, T249, T250))
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U28_ga(T239, T240, T241, T9, qs53_in_aa(T249, X9))
U28_ga(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U29_ga(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_ga(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_ga(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
U30_ga(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
qs1_in_ga(.(T265, []), T9) → U31_ga(T265, T9, qs99_in_a(X9))
U31_ga(T265, T9, qs99_out_a(X9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga(.(T265, []), T9) → U32_ga(T265, T9, qs99_in_a(T268))
U32_ga(T265, T9, qs99_out_a(T268)) → U33_ga(T265, T9, qs99_in_a(X10))
U33_ga(T265, T9, qs99_out_a(X10)) → qs1_out_ga(.(T265, []), T9)
U32_ga(T265, T9, qs99_out_a(T268)) → U34_ga(T265, T9, T268, qs99_in_a(T273))
U34_ga(T265, T9, T268, qs99_out_a(T273)) → U35_ga(T265, T9, app54_in_ggga(T268, T265, T273, T9))
app54_in_ggga(.(T210, T211), T212, T213, .(T210, T215)) → U15_ggga(T210, T211, T212, T213, T215, app54_in_ggga(T211, T212, T213, T215))
app54_in_ggga([], T225, T226, .(T225, T226)) → app54_out_ggga([], T225, T226, .(T225, T226))
U15_ggga(T210, T211, T212, T213, T215, app54_out_ggga(T211, T212, T213, T215)) → app54_out_ggga(.(T210, T211), T212, T213, .(T210, T215))
U35_ga(T265, T9, app54_out_ggga(T268, T265, T273, T9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
QS1_IN_GA(.(T22, .(T23, T24)), T9) → U19_GA(T22, T23, T24, T9, gt10_in_gg(T22, T23))
QS1_IN_GA(.(T22, .(T23, T24)), T9) → GT10_IN_GG(T22, T23)
GT10_IN_GG(s(T37), s(T38)) → U1_GG(T37, T38, gt10_in_gg(T37, T38))
GT10_IN_GG(s(T37), s(T38)) → GT10_IN_GG(T37, T38)
U19_GA(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_GA(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
U19_GA(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → PART20_IN_GGAA(T22, T24, X47, X48)
PART20_IN_GGAA(T61, .(T62, T63), .(T62, X119), X120) → U2_GGAA(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
PART20_IN_GGAA(T61, .(T62, T63), .(T62, X119), X120) → GT10_IN_GG(T61, T62)
U2_GGAA(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_GGAA(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
U2_GGAA(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → PART20_IN_GGAA(T61, T63, X119, X120)
PART20_IN_GGAA(T83, .(T84, T85), X170, .(T84, X171)) → U4_GGAA(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
PART20_IN_GGAA(T83, .(T84, T85), X170, .(T84, X171)) → LE33_IN_GG(T83, T84)
LE33_IN_GG(s(T98), s(T99)) → U6_GG(T98, T99, le33_in_gg(T98, T99))
LE33_IN_GG(s(T98), s(T99)) → LE33_IN_GG(T98, T99)
U4_GGAA(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_GGAA(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
U4_GGAA(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → PART20_IN_GGAA(T83, T85, X170, X171)
U19_GA(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_GA(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_GA(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_GA(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
U21_GA(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → QS1_IN_AA(.(T23, T44), X9)
QS1_IN_AA(.(T22, .(T23, T24)), T9) → U19_AA(T22, T23, T24, T9, gt10_in_aa(T22, T23))
QS1_IN_AA(.(T22, .(T23, T24)), T9) → GT10_IN_AA(T22, T23)
GT10_IN_AA(s(T37), s(T38)) → U1_AA(T37, T38, gt10_in_aa(T37, T38))
GT10_IN_AA(s(T37), s(T38)) → GT10_IN_AA(T37, T38)
U19_AA(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_AA(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
U19_AA(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → PART20_IN_GAAA(T22, T24, X47, X48)
PART20_IN_GAAA(T61, .(T62, T63), .(T62, X119), X120) → U2_GAAA(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
PART20_IN_GAAA(T61, .(T62, T63), .(T62, X119), X120) → GT10_IN_GA(T61, T62)
GT10_IN_GA(s(T37), s(T38)) → U1_GA(T37, T38, gt10_in_ga(T37, T38))
GT10_IN_GA(s(T37), s(T38)) → GT10_IN_GA(T37, T38)
U2_GAAA(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_GAAA(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U2_GAAA(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → PART20_IN_GAAA(T61, T63, X119, X120)
PART20_IN_GAAA(T83, .(T84, T85), X170, .(T84, X171)) → U4_GAAA(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
PART20_IN_GAAA(T83, .(T84, T85), X170, .(T84, X171)) → LE33_IN_GA(T83, T84)
LE33_IN_GA(s(T98), s(T99)) → U6_GA(T98, T99, le33_in_ga(T98, T99))
LE33_IN_GA(s(T98), s(T99)) → LE33_IN_GA(T98, T99)
U4_GAAA(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_GAAA(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U4_GAAA(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → PART20_IN_GAAA(T83, T85, X170, X171)
U19_AA(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_AA(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_AA(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_AA(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
U21_AA(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → QS1_IN_AA(.(T23, T44), X9)
QS1_IN_AA(.(T239, .(T240, T241)), T9) → U25_AA(T239, T240, T241, T9, le33_in_aa(T239, T240))
QS1_IN_AA(.(T239, .(T240, T241)), T9) → LE33_IN_AA(T239, T240)
LE33_IN_AA(s(T98), s(T99)) → U6_AA(T98, T99, le33_in_aa(T98, T99))
LE33_IN_AA(s(T98), s(T99)) → LE33_IN_AA(T98, T99)
U25_AA(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U26_AA(T239, T240, T241, T9, part20_in_gaaa(T239, T241, X437, X438))
U25_AA(T239, T240, T241, T9, le33_out_aa(T239, T240)) → PART20_IN_GAAA(T239, T241, X437, X438)
U25_AA(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U27_AA(T239, T240, T241, T9, part20_in_gaaa(T239, T241, T249, T250))
U27_AA(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U28_AA(T239, T240, T241, T9, qs53_in_aa(T249, X9))
U27_AA(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → QS53_IN_AA(T249, X9)
QS53_IN_AA(.(T131, T132), X275) → U7_AA(T131, T132, X275, part20_in_aaaa(T131, T132, X271, X272))
QS53_IN_AA(.(T131, T132), X275) → PART20_IN_AAAA(T131, T132, X271, X272)
PART20_IN_AAAA(T61, .(T62, T63), .(T62, X119), X120) → U2_AAAA(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
PART20_IN_AAAA(T61, .(T62, T63), .(T62, X119), X120) → GT10_IN_AA(T61, T62)
U2_AAAA(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_AAAA(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U2_AAAA(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → PART20_IN_GAAA(T61, T63, X119, X120)
PART20_IN_AAAA(T83, .(T84, T85), X170, .(T84, X171)) → U4_AAAA(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
PART20_IN_AAAA(T83, .(T84, T85), X170, .(T84, X171)) → LE33_IN_AA(T83, T84)
U4_AAAA(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_AAAA(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U4_AAAA(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → PART20_IN_GAAA(T83, T85, X170, X171)
QS53_IN_AA(.(T131, T132), X275) → U8_AA(T131, T132, X275, part20_in_aaaa(T131, T132, T136, T137))
U8_AA(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U9_AA(T131, T132, X275, qs53_in_aa(T136, X273))
U8_AA(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → QS53_IN_AA(T136, X273)
U8_AA(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U10_AA(T131, T132, X275, T137, qs53_in_aa(T136, T143))
U10_AA(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U11_AA(T131, T132, X275, qs53_in_aa(T137, X274))
U10_AA(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → QS53_IN_AA(T137, X274)
U10_AA(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U12_AA(T131, T132, X275, T143, qs53_in_aa(T137, T148))
U12_AA(T131, T132, X275, T143, qs53_out_aa(T137, T148)) → U13_AA(T131, T132, X275, app65_in_aaaa(T143, T131, T148, X275))
U12_AA(T131, T132, X275, T143, qs53_out_aa(T137, T148)) → APP65_IN_AAAA(T143, T131, T148, X275)
APP65_IN_AAAA(.(T171, T172), T173, T174, .(T171, X354)) → U14_AAAA(T171, T172, T173, T174, X354, app65_in_aaaa(T172, T173, T174, X354))
APP65_IN_AAAA(.(T171, T172), T173, T174, .(T171, X354)) → APP65_IN_AAAA(T172, T173, T174, X354)
U27_AA(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U29_AA(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_AA(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_AA(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
U29_AA(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → P52_IN_AAAGA(.(T240, T250), X10, T256, T239, T9)
P52_IN_AAAGA(T45, X10, T115, T22, T9) → U16_AAAGA(T45, X10, T115, T22, T9, qs53_in_aa(T45, X10))
P52_IN_AAAGA(T45, X10, T115, T22, T9) → QS53_IN_AA(T45, X10)
P52_IN_AAAGA(T45, T120, T115, T22, T9) → U17_AAAGA(T45, T120, T115, T22, T9, qs53_in_aa(T45, T120))
U17_AAAGA(T45, T120, T115, T22, T9, qs53_out_aa(T45, T120)) → U18_AAAGA(T45, T120, T115, T22, T9, app54_in_agaa(T115, T22, T120, T9))
U17_AAAGA(T45, T120, T115, T22, T9, qs53_out_aa(T45, T120)) → APP54_IN_AGAA(T115, T22, T120, T9)
APP54_IN_AGAA(.(T210, T211), T212, T213, .(T210, T215)) → U15_AGAA(T210, T211, T212, T213, T215, app54_in_agaa(T211, T212, T213, T215))
APP54_IN_AGAA(.(T210, T211), T212, T213, .(T210, T215)) → APP54_IN_AGAA(T211, T212, T213, T215)
QS1_IN_AA(.(T265, []), T9) → U31_AA(T265, T9, qs99_in_a(X9))
QS1_IN_AA(.(T265, []), T9) → QS99_IN_A(X9)
QS1_IN_AA(.(T265, []), T9) → U32_AA(T265, T9, qs99_in_a(T268))
U32_AA(T265, T9, qs99_out_a(T268)) → U33_AA(T265, T9, qs99_in_a(X10))
U32_AA(T265, T9, qs99_out_a(T268)) → QS99_IN_A(X10)
U32_AA(T265, T9, qs99_out_a(T268)) → U34_AA(T265, T9, T268, qs99_in_a(T273))
U34_AA(T265, T9, T268, qs99_out_a(T273)) → U35_AA(T265, T9, app54_in_gaga(T268, T265, T273, T9))
U34_AA(T265, T9, T268, qs99_out_a(T273)) → APP54_IN_GAGA(T268, T265, T273, T9)
APP54_IN_GAGA(.(T210, T211), T212, T213, .(T210, T215)) → U15_GAGA(T210, T211, T212, T213, T215, app54_in_gaga(T211, T212, T213, T215))
APP54_IN_GAGA(.(T210, T211), T212, T213, .(T210, T215)) → APP54_IN_GAGA(T211, T212, T213, T215)
U21_AA(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_AA(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_AA(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_AA(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U23_AA(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → P52_IN_AAAGA(T45, X10, T115, T22, T9)
U21_GA(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_GA(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_GA(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_GA(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U23_GA(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → P52_IN_AAAGA(T45, X10, T115, T22, T9)
QS1_IN_GA(.(T239, .(T240, T241)), T9) → U25_GA(T239, T240, T241, T9, le33_in_gg(T239, T240))
QS1_IN_GA(.(T239, .(T240, T241)), T9) → LE33_IN_GG(T239, T240)
U25_GA(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U26_GA(T239, T240, T241, T9, part20_in_ggaa(T239, T241, X437, X438))
U25_GA(T239, T240, T241, T9, le33_out_gg(T239, T240)) → PART20_IN_GGAA(T239, T241, X437, X438)
U25_GA(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U27_GA(T239, T240, T241, T9, part20_in_ggaa(T239, T241, T249, T250))
U27_GA(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U28_GA(T239, T240, T241, T9, qs53_in_aa(T249, X9))
U27_GA(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → QS53_IN_AA(T249, X9)
U27_GA(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U29_GA(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_GA(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_GA(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
U29_GA(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → P52_IN_AAAGA(.(T240, T250), X10, T256, T239, T9)
QS1_IN_GA(.(T265, []), T9) → U31_GA(T265, T9, qs99_in_a(X9))
QS1_IN_GA(.(T265, []), T9) → QS99_IN_A(X9)
QS1_IN_GA(.(T265, []), T9) → U32_GA(T265, T9, qs99_in_a(T268))
U32_GA(T265, T9, qs99_out_a(T268)) → U33_GA(T265, T9, qs99_in_a(X10))
U32_GA(T265, T9, qs99_out_a(T268)) → QS99_IN_A(X10)
U32_GA(T265, T9, qs99_out_a(T268)) → U34_GA(T265, T9, T268, qs99_in_a(T273))
U34_GA(T265, T9, T268, qs99_out_a(T273)) → U35_GA(T265, T9, app54_in_ggga(T268, T265, T273, T9))
U34_GA(T265, T9, T268, qs99_out_a(T273)) → APP54_IN_GGGA(T268, T265, T273, T9)
APP54_IN_GGGA(.(T210, T211), T212, T213, .(T210, T215)) → U15_GGGA(T210, T211, T212, T213, T215, app54_in_ggga(T211, T212, T213, T215))
APP54_IN_GGGA(.(T210, T211), T212, T213, .(T210, T215)) → APP54_IN_GGGA(T211, T212, T213, T215)
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(T106)) → le33_out_gg(0, s(T106))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T112, [], [], []) → part20_out_ggaa(T112, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(T106)) → le33_out_ga(0, s(T106))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T112, [], [], []) → part20_out_gaaa(T112, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T239, .(T240, T241)), T9) → U25_aa(T239, T240, T241, T9, le33_in_aa(T239, T240))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(T106)) → le33_out_aa(0, s(T106))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U26_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, X437, X438))
U26_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, X437, X438)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U27_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, T249, T250))
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U28_aa(T239, T240, T241, T9, qs53_in_aa(T249, X9))
qs53_in_aa(.(T131, T132), X275) → U7_aa(T131, T132, X275, part20_in_aaaa(T131, T132, X271, X272))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T112, [], [], []) → part20_out_aaaa(T112, [], [], [])
U7_aa(T131, T132, X275, part20_out_aaaa(T131, T132, X271, X272)) → qs53_out_aa(.(T131, T132), X275)
qs53_in_aa(.(T131, T132), X275) → U8_aa(T131, T132, X275, part20_in_aaaa(T131, T132, T136, T137))
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U9_aa(T131, T132, X275, qs53_in_aa(T136, X273))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T131, T132, X275, qs53_out_aa(T136, X273)) → qs53_out_aa(.(T131, T132), X275)
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U10_aa(T131, T132, X275, T137, qs53_in_aa(T136, T143))
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U11_aa(T131, T132, X275, qs53_in_aa(T137, X274))
U11_aa(T131, T132, X275, qs53_out_aa(T137, X274)) → qs53_out_aa(.(T131, T132), X275)
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U12_aa(T131, T132, X275, T143, qs53_in_aa(T137, T148))
U12_aa(T131, T132, X275, T143, qs53_out_aa(T137, T148)) → U13_aa(T131, T132, X275, app65_in_aaaa(T143, T131, T148, X275))
app65_in_aaaa(.(T171, T172), T173, T174, .(T171, X354)) → U14_aaaa(T171, T172, T173, T174, X354, app65_in_aaaa(T172, T173, T174, X354))
app65_in_aaaa([], T183, T184, .(T183, T184)) → app65_out_aaaa([], T183, T184, .(T183, T184))
U14_aaaa(T171, T172, T173, T174, X354, app65_out_aaaa(T172, T173, T174, X354)) → app65_out_aaaa(.(T171, T172), T173, T174, .(T171, X354))
U13_aa(T131, T132, X275, app65_out_aaaa(T143, T131, T148, X275)) → qs53_out_aa(.(T131, T132), X275)
U28_aa(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U29_aa(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_aa(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_aa(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
p52_in_aaaga(T45, X10, T115, T22, T9) → U16_aaaga(T45, X10, T115, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T115, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T115, T22, T9)
p52_in_aaaga(T45, T120, T115, T22, T9) → U17_aaaga(T45, T120, T115, T22, T9, qs53_in_aa(T45, T120))
U17_aaaga(T45, T120, T115, T22, T9, qs53_out_aa(T45, T120)) → U18_aaaga(T45, T120, T115, T22, T9, app54_in_agaa(T115, T22, T120, T9))
app54_in_agaa(.(T210, T211), T212, T213, .(T210, T215)) → U15_agaa(T210, T211, T212, T213, T215, app54_in_agaa(T211, T212, T213, T215))
app54_in_agaa([], T225, T226, .(T225, T226)) → app54_out_agaa([], T225, T226, .(T225, T226))
U15_agaa(T210, T211, T212, T213, T215, app54_out_agaa(T211, T212, T213, T215)) → app54_out_agaa(.(T210, T211), T212, T213, .(T210, T215))
U18_aaaga(T45, T120, T115, T22, T9, app54_out_agaa(T115, T22, T120, T9)) → p52_out_aaaga(T45, T120, T115, T22, T9)
U30_aa(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
qs1_in_aa(.(T265, []), T9) → U31_aa(T265, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T265, T9, qs99_out_a(X9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa(.(T265, []), T9) → U32_aa(T265, T9, qs99_in_a(T268))
U32_aa(T265, T9, qs99_out_a(T268)) → U33_aa(T265, T9, qs99_in_a(X10))
U33_aa(T265, T9, qs99_out_a(X10)) → qs1_out_aa(.(T265, []), T9)
U32_aa(T265, T9, qs99_out_a(T268)) → U34_aa(T265, T9, T268, qs99_in_a(T273))
U34_aa(T265, T9, T268, qs99_out_a(T273)) → U35_aa(T265, T9, app54_in_gaga(T268, T265, T273, T9))
app54_in_gaga(.(T210, T211), T212, T213, .(T210, T215)) → U15_gaga(T210, T211, T212, T213, T215, app54_in_gaga(T211, T212, T213, T215))
app54_in_gaga([], T225, T226, .(T225, T226)) → app54_out_gaga([], T225, T226, .(T225, T226))
U15_gaga(T210, T211, T212, T213, T215, app54_out_gaga(T211, T212, T213, T215)) → app54_out_gaga(.(T210, T211), T212, T213, .(T210, T215))
U35_aa(T265, T9, app54_out_gaga(T268, T265, T273, T9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T239, .(T240, T241)), T9) → U25_ga(T239, T240, T241, T9, le33_in_gg(T239, T240))
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U26_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, X437, X438))
U26_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, X437, X438)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U27_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, T249, T250))
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U28_ga(T239, T240, T241, T9, qs53_in_aa(T249, X9))
U28_ga(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U29_ga(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_ga(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_ga(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
U30_ga(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
qs1_in_ga(.(T265, []), T9) → U31_ga(T265, T9, qs99_in_a(X9))
U31_ga(T265, T9, qs99_out_a(X9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga(.(T265, []), T9) → U32_ga(T265, T9, qs99_in_a(T268))
U32_ga(T265, T9, qs99_out_a(T268)) → U33_ga(T265, T9, qs99_in_a(X10))
U33_ga(T265, T9, qs99_out_a(X10)) → qs1_out_ga(.(T265, []), T9)
U32_ga(T265, T9, qs99_out_a(T268)) → U34_ga(T265, T9, T268, qs99_in_a(T273))
U34_ga(T265, T9, T268, qs99_out_a(T273)) → U35_ga(T265, T9, app54_in_ggga(T268, T265, T273, T9))
app54_in_ggga(.(T210, T211), T212, T213, .(T210, T215)) → U15_ggga(T210, T211, T212, T213, T215, app54_in_ggga(T211, T212, T213, T215))
app54_in_ggga([], T225, T226, .(T225, T226)) → app54_out_ggga([], T225, T226, .(T225, T226))
U15_ggga(T210, T211, T212, T213, T215, app54_out_ggga(T211, T212, T213, T215)) → app54_out_ggga(.(T210, T211), T212, T213, .(T210, T215))
U35_ga(T265, T9, app54_out_ggga(T268, T265, T273, T9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
APP54_IN_GGGA(.(T210, T211), T212, T213, .(T210, T215)) → APP54_IN_GGGA(T211, T212, T213, T215)
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(T106)) → le33_out_gg(0, s(T106))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T112, [], [], []) → part20_out_ggaa(T112, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(T106)) → le33_out_ga(0, s(T106))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T112, [], [], []) → part20_out_gaaa(T112, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T239, .(T240, T241)), T9) → U25_aa(T239, T240, T241, T9, le33_in_aa(T239, T240))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(T106)) → le33_out_aa(0, s(T106))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U26_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, X437, X438))
U26_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, X437, X438)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U27_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, T249, T250))
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U28_aa(T239, T240, T241, T9, qs53_in_aa(T249, X9))
qs53_in_aa(.(T131, T132), X275) → U7_aa(T131, T132, X275, part20_in_aaaa(T131, T132, X271, X272))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T112, [], [], []) → part20_out_aaaa(T112, [], [], [])
U7_aa(T131, T132, X275, part20_out_aaaa(T131, T132, X271, X272)) → qs53_out_aa(.(T131, T132), X275)
qs53_in_aa(.(T131, T132), X275) → U8_aa(T131, T132, X275, part20_in_aaaa(T131, T132, T136, T137))
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U9_aa(T131, T132, X275, qs53_in_aa(T136, X273))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T131, T132, X275, qs53_out_aa(T136, X273)) → qs53_out_aa(.(T131, T132), X275)
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U10_aa(T131, T132, X275, T137, qs53_in_aa(T136, T143))
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U11_aa(T131, T132, X275, qs53_in_aa(T137, X274))
U11_aa(T131, T132, X275, qs53_out_aa(T137, X274)) → qs53_out_aa(.(T131, T132), X275)
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U12_aa(T131, T132, X275, T143, qs53_in_aa(T137, T148))
U12_aa(T131, T132, X275, T143, qs53_out_aa(T137, T148)) → U13_aa(T131, T132, X275, app65_in_aaaa(T143, T131, T148, X275))
app65_in_aaaa(.(T171, T172), T173, T174, .(T171, X354)) → U14_aaaa(T171, T172, T173, T174, X354, app65_in_aaaa(T172, T173, T174, X354))
app65_in_aaaa([], T183, T184, .(T183, T184)) → app65_out_aaaa([], T183, T184, .(T183, T184))
U14_aaaa(T171, T172, T173, T174, X354, app65_out_aaaa(T172, T173, T174, X354)) → app65_out_aaaa(.(T171, T172), T173, T174, .(T171, X354))
U13_aa(T131, T132, X275, app65_out_aaaa(T143, T131, T148, X275)) → qs53_out_aa(.(T131, T132), X275)
U28_aa(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U29_aa(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_aa(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_aa(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
p52_in_aaaga(T45, X10, T115, T22, T9) → U16_aaaga(T45, X10, T115, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T115, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T115, T22, T9)
p52_in_aaaga(T45, T120, T115, T22, T9) → U17_aaaga(T45, T120, T115, T22, T9, qs53_in_aa(T45, T120))
U17_aaaga(T45, T120, T115, T22, T9, qs53_out_aa(T45, T120)) → U18_aaaga(T45, T120, T115, T22, T9, app54_in_agaa(T115, T22, T120, T9))
app54_in_agaa(.(T210, T211), T212, T213, .(T210, T215)) → U15_agaa(T210, T211, T212, T213, T215, app54_in_agaa(T211, T212, T213, T215))
app54_in_agaa([], T225, T226, .(T225, T226)) → app54_out_agaa([], T225, T226, .(T225, T226))
U15_agaa(T210, T211, T212, T213, T215, app54_out_agaa(T211, T212, T213, T215)) → app54_out_agaa(.(T210, T211), T212, T213, .(T210, T215))
U18_aaaga(T45, T120, T115, T22, T9, app54_out_agaa(T115, T22, T120, T9)) → p52_out_aaaga(T45, T120, T115, T22, T9)
U30_aa(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
qs1_in_aa(.(T265, []), T9) → U31_aa(T265, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T265, T9, qs99_out_a(X9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa(.(T265, []), T9) → U32_aa(T265, T9, qs99_in_a(T268))
U32_aa(T265, T9, qs99_out_a(T268)) → U33_aa(T265, T9, qs99_in_a(X10))
U33_aa(T265, T9, qs99_out_a(X10)) → qs1_out_aa(.(T265, []), T9)
U32_aa(T265, T9, qs99_out_a(T268)) → U34_aa(T265, T9, T268, qs99_in_a(T273))
U34_aa(T265, T9, T268, qs99_out_a(T273)) → U35_aa(T265, T9, app54_in_gaga(T268, T265, T273, T9))
app54_in_gaga(.(T210, T211), T212, T213, .(T210, T215)) → U15_gaga(T210, T211, T212, T213, T215, app54_in_gaga(T211, T212, T213, T215))
app54_in_gaga([], T225, T226, .(T225, T226)) → app54_out_gaga([], T225, T226, .(T225, T226))
U15_gaga(T210, T211, T212, T213, T215, app54_out_gaga(T211, T212, T213, T215)) → app54_out_gaga(.(T210, T211), T212, T213, .(T210, T215))
U35_aa(T265, T9, app54_out_gaga(T268, T265, T273, T9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T239, .(T240, T241)), T9) → U25_ga(T239, T240, T241, T9, le33_in_gg(T239, T240))
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U26_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, X437, X438))
U26_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, X437, X438)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U27_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, T249, T250))
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U28_ga(T239, T240, T241, T9, qs53_in_aa(T249, X9))
U28_ga(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U29_ga(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_ga(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_ga(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
U30_ga(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
qs1_in_ga(.(T265, []), T9) → U31_ga(T265, T9, qs99_in_a(X9))
U31_ga(T265, T9, qs99_out_a(X9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga(.(T265, []), T9) → U32_ga(T265, T9, qs99_in_a(T268))
U32_ga(T265, T9, qs99_out_a(T268)) → U33_ga(T265, T9, qs99_in_a(X10))
U33_ga(T265, T9, qs99_out_a(X10)) → qs1_out_ga(.(T265, []), T9)
U32_ga(T265, T9, qs99_out_a(T268)) → U34_ga(T265, T9, T268, qs99_in_a(T273))
U34_ga(T265, T9, T268, qs99_out_a(T273)) → U35_ga(T265, T9, app54_in_ggga(T268, T265, T273, T9))
app54_in_ggga(.(T210, T211), T212, T213, .(T210, T215)) → U15_ggga(T210, T211, T212, T213, T215, app54_in_ggga(T211, T212, T213, T215))
app54_in_ggga([], T225, T226, .(T225, T226)) → app54_out_ggga([], T225, T226, .(T225, T226))
U15_ggga(T210, T211, T212, T213, T215, app54_out_ggga(T211, T212, T213, T215)) → app54_out_ggga(.(T210, T211), T212, T213, .(T210, T215))
U35_ga(T265, T9, app54_out_ggga(T268, T265, T273, T9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
APP54_IN_GGGA(.(T210, T211), T212, T213, .(T210, T215)) → APP54_IN_GGGA(T211, T212, T213, T215)
APP54_IN_GGGA(.(T210, T211), T212, T213) → APP54_IN_GGGA(T211, T212, T213)
From the DPs we obtained the following set of size-change graphs:
APP54_IN_GAGA(.(T210, T211), T212, T213, .(T210, T215)) → APP54_IN_GAGA(T211, T212, T213, T215)
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(T106)) → le33_out_gg(0, s(T106))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T112, [], [], []) → part20_out_ggaa(T112, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(T106)) → le33_out_ga(0, s(T106))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T112, [], [], []) → part20_out_gaaa(T112, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T239, .(T240, T241)), T9) → U25_aa(T239, T240, T241, T9, le33_in_aa(T239, T240))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(T106)) → le33_out_aa(0, s(T106))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U26_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, X437, X438))
U26_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, X437, X438)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U27_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, T249, T250))
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U28_aa(T239, T240, T241, T9, qs53_in_aa(T249, X9))
qs53_in_aa(.(T131, T132), X275) → U7_aa(T131, T132, X275, part20_in_aaaa(T131, T132, X271, X272))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T112, [], [], []) → part20_out_aaaa(T112, [], [], [])
U7_aa(T131, T132, X275, part20_out_aaaa(T131, T132, X271, X272)) → qs53_out_aa(.(T131, T132), X275)
qs53_in_aa(.(T131, T132), X275) → U8_aa(T131, T132, X275, part20_in_aaaa(T131, T132, T136, T137))
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U9_aa(T131, T132, X275, qs53_in_aa(T136, X273))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T131, T132, X275, qs53_out_aa(T136, X273)) → qs53_out_aa(.(T131, T132), X275)
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U10_aa(T131, T132, X275, T137, qs53_in_aa(T136, T143))
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U11_aa(T131, T132, X275, qs53_in_aa(T137, X274))
U11_aa(T131, T132, X275, qs53_out_aa(T137, X274)) → qs53_out_aa(.(T131, T132), X275)
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U12_aa(T131, T132, X275, T143, qs53_in_aa(T137, T148))
U12_aa(T131, T132, X275, T143, qs53_out_aa(T137, T148)) → U13_aa(T131, T132, X275, app65_in_aaaa(T143, T131, T148, X275))
app65_in_aaaa(.(T171, T172), T173, T174, .(T171, X354)) → U14_aaaa(T171, T172, T173, T174, X354, app65_in_aaaa(T172, T173, T174, X354))
app65_in_aaaa([], T183, T184, .(T183, T184)) → app65_out_aaaa([], T183, T184, .(T183, T184))
U14_aaaa(T171, T172, T173, T174, X354, app65_out_aaaa(T172, T173, T174, X354)) → app65_out_aaaa(.(T171, T172), T173, T174, .(T171, X354))
U13_aa(T131, T132, X275, app65_out_aaaa(T143, T131, T148, X275)) → qs53_out_aa(.(T131, T132), X275)
U28_aa(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U29_aa(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_aa(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_aa(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
p52_in_aaaga(T45, X10, T115, T22, T9) → U16_aaaga(T45, X10, T115, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T115, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T115, T22, T9)
p52_in_aaaga(T45, T120, T115, T22, T9) → U17_aaaga(T45, T120, T115, T22, T9, qs53_in_aa(T45, T120))
U17_aaaga(T45, T120, T115, T22, T9, qs53_out_aa(T45, T120)) → U18_aaaga(T45, T120, T115, T22, T9, app54_in_agaa(T115, T22, T120, T9))
app54_in_agaa(.(T210, T211), T212, T213, .(T210, T215)) → U15_agaa(T210, T211, T212, T213, T215, app54_in_agaa(T211, T212, T213, T215))
app54_in_agaa([], T225, T226, .(T225, T226)) → app54_out_agaa([], T225, T226, .(T225, T226))
U15_agaa(T210, T211, T212, T213, T215, app54_out_agaa(T211, T212, T213, T215)) → app54_out_agaa(.(T210, T211), T212, T213, .(T210, T215))
U18_aaaga(T45, T120, T115, T22, T9, app54_out_agaa(T115, T22, T120, T9)) → p52_out_aaaga(T45, T120, T115, T22, T9)
U30_aa(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
qs1_in_aa(.(T265, []), T9) → U31_aa(T265, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T265, T9, qs99_out_a(X9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa(.(T265, []), T9) → U32_aa(T265, T9, qs99_in_a(T268))
U32_aa(T265, T9, qs99_out_a(T268)) → U33_aa(T265, T9, qs99_in_a(X10))
U33_aa(T265, T9, qs99_out_a(X10)) → qs1_out_aa(.(T265, []), T9)
U32_aa(T265, T9, qs99_out_a(T268)) → U34_aa(T265, T9, T268, qs99_in_a(T273))
U34_aa(T265, T9, T268, qs99_out_a(T273)) → U35_aa(T265, T9, app54_in_gaga(T268, T265, T273, T9))
app54_in_gaga(.(T210, T211), T212, T213, .(T210, T215)) → U15_gaga(T210, T211, T212, T213, T215, app54_in_gaga(T211, T212, T213, T215))
app54_in_gaga([], T225, T226, .(T225, T226)) → app54_out_gaga([], T225, T226, .(T225, T226))
U15_gaga(T210, T211, T212, T213, T215, app54_out_gaga(T211, T212, T213, T215)) → app54_out_gaga(.(T210, T211), T212, T213, .(T210, T215))
U35_aa(T265, T9, app54_out_gaga(T268, T265, T273, T9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T239, .(T240, T241)), T9) → U25_ga(T239, T240, T241, T9, le33_in_gg(T239, T240))
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U26_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, X437, X438))
U26_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, X437, X438)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U27_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, T249, T250))
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U28_ga(T239, T240, T241, T9, qs53_in_aa(T249, X9))
U28_ga(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U29_ga(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_ga(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_ga(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
U30_ga(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
qs1_in_ga(.(T265, []), T9) → U31_ga(T265, T9, qs99_in_a(X9))
U31_ga(T265, T9, qs99_out_a(X9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga(.(T265, []), T9) → U32_ga(T265, T9, qs99_in_a(T268))
U32_ga(T265, T9, qs99_out_a(T268)) → U33_ga(T265, T9, qs99_in_a(X10))
U33_ga(T265, T9, qs99_out_a(X10)) → qs1_out_ga(.(T265, []), T9)
U32_ga(T265, T9, qs99_out_a(T268)) → U34_ga(T265, T9, T268, qs99_in_a(T273))
U34_ga(T265, T9, T268, qs99_out_a(T273)) → U35_ga(T265, T9, app54_in_ggga(T268, T265, T273, T9))
app54_in_ggga(.(T210, T211), T212, T213, .(T210, T215)) → U15_ggga(T210, T211, T212, T213, T215, app54_in_ggga(T211, T212, T213, T215))
app54_in_ggga([], T225, T226, .(T225, T226)) → app54_out_ggga([], T225, T226, .(T225, T226))
U15_ggga(T210, T211, T212, T213, T215, app54_out_ggga(T211, T212, T213, T215)) → app54_out_ggga(.(T210, T211), T212, T213, .(T210, T215))
U35_ga(T265, T9, app54_out_ggga(T268, T265, T273, T9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
APP54_IN_GAGA(.(T210, T211), T212, T213, .(T210, T215)) → APP54_IN_GAGA(T211, T212, T213, T215)
APP54_IN_GAGA(.(T210, T211), T213) → APP54_IN_GAGA(T211, T213)
From the DPs we obtained the following set of size-change graphs:
APP54_IN_AGAA(.(T210, T211), T212, T213, .(T210, T215)) → APP54_IN_AGAA(T211, T212, T213, T215)
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(T106)) → le33_out_gg(0, s(T106))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T112, [], [], []) → part20_out_ggaa(T112, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(T106)) → le33_out_ga(0, s(T106))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T112, [], [], []) → part20_out_gaaa(T112, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T239, .(T240, T241)), T9) → U25_aa(T239, T240, T241, T9, le33_in_aa(T239, T240))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(T106)) → le33_out_aa(0, s(T106))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U26_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, X437, X438))
U26_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, X437, X438)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U27_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, T249, T250))
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U28_aa(T239, T240, T241, T9, qs53_in_aa(T249, X9))
qs53_in_aa(.(T131, T132), X275) → U7_aa(T131, T132, X275, part20_in_aaaa(T131, T132, X271, X272))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T112, [], [], []) → part20_out_aaaa(T112, [], [], [])
U7_aa(T131, T132, X275, part20_out_aaaa(T131, T132, X271, X272)) → qs53_out_aa(.(T131, T132), X275)
qs53_in_aa(.(T131, T132), X275) → U8_aa(T131, T132, X275, part20_in_aaaa(T131, T132, T136, T137))
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U9_aa(T131, T132, X275, qs53_in_aa(T136, X273))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T131, T132, X275, qs53_out_aa(T136, X273)) → qs53_out_aa(.(T131, T132), X275)
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U10_aa(T131, T132, X275, T137, qs53_in_aa(T136, T143))
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U11_aa(T131, T132, X275, qs53_in_aa(T137, X274))
U11_aa(T131, T132, X275, qs53_out_aa(T137, X274)) → qs53_out_aa(.(T131, T132), X275)
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U12_aa(T131, T132, X275, T143, qs53_in_aa(T137, T148))
U12_aa(T131, T132, X275, T143, qs53_out_aa(T137, T148)) → U13_aa(T131, T132, X275, app65_in_aaaa(T143, T131, T148, X275))
app65_in_aaaa(.(T171, T172), T173, T174, .(T171, X354)) → U14_aaaa(T171, T172, T173, T174, X354, app65_in_aaaa(T172, T173, T174, X354))
app65_in_aaaa([], T183, T184, .(T183, T184)) → app65_out_aaaa([], T183, T184, .(T183, T184))
U14_aaaa(T171, T172, T173, T174, X354, app65_out_aaaa(T172, T173, T174, X354)) → app65_out_aaaa(.(T171, T172), T173, T174, .(T171, X354))
U13_aa(T131, T132, X275, app65_out_aaaa(T143, T131, T148, X275)) → qs53_out_aa(.(T131, T132), X275)
U28_aa(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U29_aa(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_aa(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_aa(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
p52_in_aaaga(T45, X10, T115, T22, T9) → U16_aaaga(T45, X10, T115, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T115, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T115, T22, T9)
p52_in_aaaga(T45, T120, T115, T22, T9) → U17_aaaga(T45, T120, T115, T22, T9, qs53_in_aa(T45, T120))
U17_aaaga(T45, T120, T115, T22, T9, qs53_out_aa(T45, T120)) → U18_aaaga(T45, T120, T115, T22, T9, app54_in_agaa(T115, T22, T120, T9))
app54_in_agaa(.(T210, T211), T212, T213, .(T210, T215)) → U15_agaa(T210, T211, T212, T213, T215, app54_in_agaa(T211, T212, T213, T215))
app54_in_agaa([], T225, T226, .(T225, T226)) → app54_out_agaa([], T225, T226, .(T225, T226))
U15_agaa(T210, T211, T212, T213, T215, app54_out_agaa(T211, T212, T213, T215)) → app54_out_agaa(.(T210, T211), T212, T213, .(T210, T215))
U18_aaaga(T45, T120, T115, T22, T9, app54_out_agaa(T115, T22, T120, T9)) → p52_out_aaaga(T45, T120, T115, T22, T9)
U30_aa(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
qs1_in_aa(.(T265, []), T9) → U31_aa(T265, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T265, T9, qs99_out_a(X9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa(.(T265, []), T9) → U32_aa(T265, T9, qs99_in_a(T268))
U32_aa(T265, T9, qs99_out_a(T268)) → U33_aa(T265, T9, qs99_in_a(X10))
U33_aa(T265, T9, qs99_out_a(X10)) → qs1_out_aa(.(T265, []), T9)
U32_aa(T265, T9, qs99_out_a(T268)) → U34_aa(T265, T9, T268, qs99_in_a(T273))
U34_aa(T265, T9, T268, qs99_out_a(T273)) → U35_aa(T265, T9, app54_in_gaga(T268, T265, T273, T9))
app54_in_gaga(.(T210, T211), T212, T213, .(T210, T215)) → U15_gaga(T210, T211, T212, T213, T215, app54_in_gaga(T211, T212, T213, T215))
app54_in_gaga([], T225, T226, .(T225, T226)) → app54_out_gaga([], T225, T226, .(T225, T226))
U15_gaga(T210, T211, T212, T213, T215, app54_out_gaga(T211, T212, T213, T215)) → app54_out_gaga(.(T210, T211), T212, T213, .(T210, T215))
U35_aa(T265, T9, app54_out_gaga(T268, T265, T273, T9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T239, .(T240, T241)), T9) → U25_ga(T239, T240, T241, T9, le33_in_gg(T239, T240))
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U26_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, X437, X438))
U26_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, X437, X438)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U27_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, T249, T250))
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U28_ga(T239, T240, T241, T9, qs53_in_aa(T249, X9))
U28_ga(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U29_ga(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_ga(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_ga(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
U30_ga(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
qs1_in_ga(.(T265, []), T9) → U31_ga(T265, T9, qs99_in_a(X9))
U31_ga(T265, T9, qs99_out_a(X9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga(.(T265, []), T9) → U32_ga(T265, T9, qs99_in_a(T268))
U32_ga(T265, T9, qs99_out_a(T268)) → U33_ga(T265, T9, qs99_in_a(X10))
U33_ga(T265, T9, qs99_out_a(X10)) → qs1_out_ga(.(T265, []), T9)
U32_ga(T265, T9, qs99_out_a(T268)) → U34_ga(T265, T9, T268, qs99_in_a(T273))
U34_ga(T265, T9, T268, qs99_out_a(T273)) → U35_ga(T265, T9, app54_in_ggga(T268, T265, T273, T9))
app54_in_ggga(.(T210, T211), T212, T213, .(T210, T215)) → U15_ggga(T210, T211, T212, T213, T215, app54_in_ggga(T211, T212, T213, T215))
app54_in_ggga([], T225, T226, .(T225, T226)) → app54_out_ggga([], T225, T226, .(T225, T226))
U15_ggga(T210, T211, T212, T213, T215, app54_out_ggga(T211, T212, T213, T215)) → app54_out_ggga(.(T210, T211), T212, T213, .(T210, T215))
U35_ga(T265, T9, app54_out_ggga(T268, T265, T273, T9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
APP54_IN_AGAA(.(T210, T211), T212, T213, .(T210, T215)) → APP54_IN_AGAA(T211, T212, T213, T215)
APP54_IN_AGAA(T212) → APP54_IN_AGAA(T212)
APP65_IN_AAAA(.(T171, T172), T173, T174, .(T171, X354)) → APP65_IN_AAAA(T172, T173, T174, X354)
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(T106)) → le33_out_gg(0, s(T106))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T112, [], [], []) → part20_out_ggaa(T112, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(T106)) → le33_out_ga(0, s(T106))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T112, [], [], []) → part20_out_gaaa(T112, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T239, .(T240, T241)), T9) → U25_aa(T239, T240, T241, T9, le33_in_aa(T239, T240))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(T106)) → le33_out_aa(0, s(T106))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U26_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, X437, X438))
U26_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, X437, X438)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U27_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, T249, T250))
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U28_aa(T239, T240, T241, T9, qs53_in_aa(T249, X9))
qs53_in_aa(.(T131, T132), X275) → U7_aa(T131, T132, X275, part20_in_aaaa(T131, T132, X271, X272))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T112, [], [], []) → part20_out_aaaa(T112, [], [], [])
U7_aa(T131, T132, X275, part20_out_aaaa(T131, T132, X271, X272)) → qs53_out_aa(.(T131, T132), X275)
qs53_in_aa(.(T131, T132), X275) → U8_aa(T131, T132, X275, part20_in_aaaa(T131, T132, T136, T137))
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U9_aa(T131, T132, X275, qs53_in_aa(T136, X273))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T131, T132, X275, qs53_out_aa(T136, X273)) → qs53_out_aa(.(T131, T132), X275)
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U10_aa(T131, T132, X275, T137, qs53_in_aa(T136, T143))
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U11_aa(T131, T132, X275, qs53_in_aa(T137, X274))
U11_aa(T131, T132, X275, qs53_out_aa(T137, X274)) → qs53_out_aa(.(T131, T132), X275)
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U12_aa(T131, T132, X275, T143, qs53_in_aa(T137, T148))
U12_aa(T131, T132, X275, T143, qs53_out_aa(T137, T148)) → U13_aa(T131, T132, X275, app65_in_aaaa(T143, T131, T148, X275))
app65_in_aaaa(.(T171, T172), T173, T174, .(T171, X354)) → U14_aaaa(T171, T172, T173, T174, X354, app65_in_aaaa(T172, T173, T174, X354))
app65_in_aaaa([], T183, T184, .(T183, T184)) → app65_out_aaaa([], T183, T184, .(T183, T184))
U14_aaaa(T171, T172, T173, T174, X354, app65_out_aaaa(T172, T173, T174, X354)) → app65_out_aaaa(.(T171, T172), T173, T174, .(T171, X354))
U13_aa(T131, T132, X275, app65_out_aaaa(T143, T131, T148, X275)) → qs53_out_aa(.(T131, T132), X275)
U28_aa(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U29_aa(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_aa(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_aa(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
p52_in_aaaga(T45, X10, T115, T22, T9) → U16_aaaga(T45, X10, T115, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T115, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T115, T22, T9)
p52_in_aaaga(T45, T120, T115, T22, T9) → U17_aaaga(T45, T120, T115, T22, T9, qs53_in_aa(T45, T120))
U17_aaaga(T45, T120, T115, T22, T9, qs53_out_aa(T45, T120)) → U18_aaaga(T45, T120, T115, T22, T9, app54_in_agaa(T115, T22, T120, T9))
app54_in_agaa(.(T210, T211), T212, T213, .(T210, T215)) → U15_agaa(T210, T211, T212, T213, T215, app54_in_agaa(T211, T212, T213, T215))
app54_in_agaa([], T225, T226, .(T225, T226)) → app54_out_agaa([], T225, T226, .(T225, T226))
U15_agaa(T210, T211, T212, T213, T215, app54_out_agaa(T211, T212, T213, T215)) → app54_out_agaa(.(T210, T211), T212, T213, .(T210, T215))
U18_aaaga(T45, T120, T115, T22, T9, app54_out_agaa(T115, T22, T120, T9)) → p52_out_aaaga(T45, T120, T115, T22, T9)
U30_aa(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
qs1_in_aa(.(T265, []), T9) → U31_aa(T265, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T265, T9, qs99_out_a(X9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa(.(T265, []), T9) → U32_aa(T265, T9, qs99_in_a(T268))
U32_aa(T265, T9, qs99_out_a(T268)) → U33_aa(T265, T9, qs99_in_a(X10))
U33_aa(T265, T9, qs99_out_a(X10)) → qs1_out_aa(.(T265, []), T9)
U32_aa(T265, T9, qs99_out_a(T268)) → U34_aa(T265, T9, T268, qs99_in_a(T273))
U34_aa(T265, T9, T268, qs99_out_a(T273)) → U35_aa(T265, T9, app54_in_gaga(T268, T265, T273, T9))
app54_in_gaga(.(T210, T211), T212, T213, .(T210, T215)) → U15_gaga(T210, T211, T212, T213, T215, app54_in_gaga(T211, T212, T213, T215))
app54_in_gaga([], T225, T226, .(T225, T226)) → app54_out_gaga([], T225, T226, .(T225, T226))
U15_gaga(T210, T211, T212, T213, T215, app54_out_gaga(T211, T212, T213, T215)) → app54_out_gaga(.(T210, T211), T212, T213, .(T210, T215))
U35_aa(T265, T9, app54_out_gaga(T268, T265, T273, T9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T239, .(T240, T241)), T9) → U25_ga(T239, T240, T241, T9, le33_in_gg(T239, T240))
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U26_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, X437, X438))
U26_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, X437, X438)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U27_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, T249, T250))
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U28_ga(T239, T240, T241, T9, qs53_in_aa(T249, X9))
U28_ga(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U29_ga(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_ga(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_ga(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
U30_ga(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
qs1_in_ga(.(T265, []), T9) → U31_ga(T265, T9, qs99_in_a(X9))
U31_ga(T265, T9, qs99_out_a(X9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga(.(T265, []), T9) → U32_ga(T265, T9, qs99_in_a(T268))
U32_ga(T265, T9, qs99_out_a(T268)) → U33_ga(T265, T9, qs99_in_a(X10))
U33_ga(T265, T9, qs99_out_a(X10)) → qs1_out_ga(.(T265, []), T9)
U32_ga(T265, T9, qs99_out_a(T268)) → U34_ga(T265, T9, T268, qs99_in_a(T273))
U34_ga(T265, T9, T268, qs99_out_a(T273)) → U35_ga(T265, T9, app54_in_ggga(T268, T265, T273, T9))
app54_in_ggga(.(T210, T211), T212, T213, .(T210, T215)) → U15_ggga(T210, T211, T212, T213, T215, app54_in_ggga(T211, T212, T213, T215))
app54_in_ggga([], T225, T226, .(T225, T226)) → app54_out_ggga([], T225, T226, .(T225, T226))
U15_ggga(T210, T211, T212, T213, T215, app54_out_ggga(T211, T212, T213, T215)) → app54_out_ggga(.(T210, T211), T212, T213, .(T210, T215))
U35_ga(T265, T9, app54_out_ggga(T268, T265, T273, T9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
APP65_IN_AAAA(.(T171, T172), T173, T174, .(T171, X354)) → APP65_IN_AAAA(T172, T173, T174, X354)
APP65_IN_AAAA → APP65_IN_AAAA
LE33_IN_AA(s(T98), s(T99)) → LE33_IN_AA(T98, T99)
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(T106)) → le33_out_gg(0, s(T106))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T112, [], [], []) → part20_out_ggaa(T112, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(T106)) → le33_out_ga(0, s(T106))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T112, [], [], []) → part20_out_gaaa(T112, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T239, .(T240, T241)), T9) → U25_aa(T239, T240, T241, T9, le33_in_aa(T239, T240))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(T106)) → le33_out_aa(0, s(T106))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U26_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, X437, X438))
U26_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, X437, X438)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U27_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, T249, T250))
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U28_aa(T239, T240, T241, T9, qs53_in_aa(T249, X9))
qs53_in_aa(.(T131, T132), X275) → U7_aa(T131, T132, X275, part20_in_aaaa(T131, T132, X271, X272))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T112, [], [], []) → part20_out_aaaa(T112, [], [], [])
U7_aa(T131, T132, X275, part20_out_aaaa(T131, T132, X271, X272)) → qs53_out_aa(.(T131, T132), X275)
qs53_in_aa(.(T131, T132), X275) → U8_aa(T131, T132, X275, part20_in_aaaa(T131, T132, T136, T137))
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U9_aa(T131, T132, X275, qs53_in_aa(T136, X273))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T131, T132, X275, qs53_out_aa(T136, X273)) → qs53_out_aa(.(T131, T132), X275)
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U10_aa(T131, T132, X275, T137, qs53_in_aa(T136, T143))
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U11_aa(T131, T132, X275, qs53_in_aa(T137, X274))
U11_aa(T131, T132, X275, qs53_out_aa(T137, X274)) → qs53_out_aa(.(T131, T132), X275)
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U12_aa(T131, T132, X275, T143, qs53_in_aa(T137, T148))
U12_aa(T131, T132, X275, T143, qs53_out_aa(T137, T148)) → U13_aa(T131, T132, X275, app65_in_aaaa(T143, T131, T148, X275))
app65_in_aaaa(.(T171, T172), T173, T174, .(T171, X354)) → U14_aaaa(T171, T172, T173, T174, X354, app65_in_aaaa(T172, T173, T174, X354))
app65_in_aaaa([], T183, T184, .(T183, T184)) → app65_out_aaaa([], T183, T184, .(T183, T184))
U14_aaaa(T171, T172, T173, T174, X354, app65_out_aaaa(T172, T173, T174, X354)) → app65_out_aaaa(.(T171, T172), T173, T174, .(T171, X354))
U13_aa(T131, T132, X275, app65_out_aaaa(T143, T131, T148, X275)) → qs53_out_aa(.(T131, T132), X275)
U28_aa(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U29_aa(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_aa(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_aa(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
p52_in_aaaga(T45, X10, T115, T22, T9) → U16_aaaga(T45, X10, T115, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T115, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T115, T22, T9)
p52_in_aaaga(T45, T120, T115, T22, T9) → U17_aaaga(T45, T120, T115, T22, T9, qs53_in_aa(T45, T120))
U17_aaaga(T45, T120, T115, T22, T9, qs53_out_aa(T45, T120)) → U18_aaaga(T45, T120, T115, T22, T9, app54_in_agaa(T115, T22, T120, T9))
app54_in_agaa(.(T210, T211), T212, T213, .(T210, T215)) → U15_agaa(T210, T211, T212, T213, T215, app54_in_agaa(T211, T212, T213, T215))
app54_in_agaa([], T225, T226, .(T225, T226)) → app54_out_agaa([], T225, T226, .(T225, T226))
U15_agaa(T210, T211, T212, T213, T215, app54_out_agaa(T211, T212, T213, T215)) → app54_out_agaa(.(T210, T211), T212, T213, .(T210, T215))
U18_aaaga(T45, T120, T115, T22, T9, app54_out_agaa(T115, T22, T120, T9)) → p52_out_aaaga(T45, T120, T115, T22, T9)
U30_aa(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
qs1_in_aa(.(T265, []), T9) → U31_aa(T265, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T265, T9, qs99_out_a(X9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa(.(T265, []), T9) → U32_aa(T265, T9, qs99_in_a(T268))
U32_aa(T265, T9, qs99_out_a(T268)) → U33_aa(T265, T9, qs99_in_a(X10))
U33_aa(T265, T9, qs99_out_a(X10)) → qs1_out_aa(.(T265, []), T9)
U32_aa(T265, T9, qs99_out_a(T268)) → U34_aa(T265, T9, T268, qs99_in_a(T273))
U34_aa(T265, T9, T268, qs99_out_a(T273)) → U35_aa(T265, T9, app54_in_gaga(T268, T265, T273, T9))
app54_in_gaga(.(T210, T211), T212, T213, .(T210, T215)) → U15_gaga(T210, T211, T212, T213, T215, app54_in_gaga(T211, T212, T213, T215))
app54_in_gaga([], T225, T226, .(T225, T226)) → app54_out_gaga([], T225, T226, .(T225, T226))
U15_gaga(T210, T211, T212, T213, T215, app54_out_gaga(T211, T212, T213, T215)) → app54_out_gaga(.(T210, T211), T212, T213, .(T210, T215))
U35_aa(T265, T9, app54_out_gaga(T268, T265, T273, T9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T239, .(T240, T241)), T9) → U25_ga(T239, T240, T241, T9, le33_in_gg(T239, T240))
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U26_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, X437, X438))
U26_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, X437, X438)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U27_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, T249, T250))
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U28_ga(T239, T240, T241, T9, qs53_in_aa(T249, X9))
U28_ga(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U29_ga(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_ga(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_ga(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
U30_ga(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
qs1_in_ga(.(T265, []), T9) → U31_ga(T265, T9, qs99_in_a(X9))
U31_ga(T265, T9, qs99_out_a(X9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga(.(T265, []), T9) → U32_ga(T265, T9, qs99_in_a(T268))
U32_ga(T265, T9, qs99_out_a(T268)) → U33_ga(T265, T9, qs99_in_a(X10))
U33_ga(T265, T9, qs99_out_a(X10)) → qs1_out_ga(.(T265, []), T9)
U32_ga(T265, T9, qs99_out_a(T268)) → U34_ga(T265, T9, T268, qs99_in_a(T273))
U34_ga(T265, T9, T268, qs99_out_a(T273)) → U35_ga(T265, T9, app54_in_ggga(T268, T265, T273, T9))
app54_in_ggga(.(T210, T211), T212, T213, .(T210, T215)) → U15_ggga(T210, T211, T212, T213, T215, app54_in_ggga(T211, T212, T213, T215))
app54_in_ggga([], T225, T226, .(T225, T226)) → app54_out_ggga([], T225, T226, .(T225, T226))
U15_ggga(T210, T211, T212, T213, T215, app54_out_ggga(T211, T212, T213, T215)) → app54_out_ggga(.(T210, T211), T212, T213, .(T210, T215))
U35_ga(T265, T9, app54_out_ggga(T268, T265, T273, T9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
LE33_IN_AA(s(T98), s(T99)) → LE33_IN_AA(T98, T99)
LE33_IN_AA → LE33_IN_AA
LE33_IN_GA(s(T98), s(T99)) → LE33_IN_GA(T98, T99)
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(T106)) → le33_out_gg(0, s(T106))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T112, [], [], []) → part20_out_ggaa(T112, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(T106)) → le33_out_ga(0, s(T106))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T112, [], [], []) → part20_out_gaaa(T112, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T239, .(T240, T241)), T9) → U25_aa(T239, T240, T241, T9, le33_in_aa(T239, T240))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(T106)) → le33_out_aa(0, s(T106))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U26_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, X437, X438))
U26_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, X437, X438)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U27_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, T249, T250))
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U28_aa(T239, T240, T241, T9, qs53_in_aa(T249, X9))
qs53_in_aa(.(T131, T132), X275) → U7_aa(T131, T132, X275, part20_in_aaaa(T131, T132, X271, X272))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T112, [], [], []) → part20_out_aaaa(T112, [], [], [])
U7_aa(T131, T132, X275, part20_out_aaaa(T131, T132, X271, X272)) → qs53_out_aa(.(T131, T132), X275)
qs53_in_aa(.(T131, T132), X275) → U8_aa(T131, T132, X275, part20_in_aaaa(T131, T132, T136, T137))
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U9_aa(T131, T132, X275, qs53_in_aa(T136, X273))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T131, T132, X275, qs53_out_aa(T136, X273)) → qs53_out_aa(.(T131, T132), X275)
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U10_aa(T131, T132, X275, T137, qs53_in_aa(T136, T143))
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U11_aa(T131, T132, X275, qs53_in_aa(T137, X274))
U11_aa(T131, T132, X275, qs53_out_aa(T137, X274)) → qs53_out_aa(.(T131, T132), X275)
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U12_aa(T131, T132, X275, T143, qs53_in_aa(T137, T148))
U12_aa(T131, T132, X275, T143, qs53_out_aa(T137, T148)) → U13_aa(T131, T132, X275, app65_in_aaaa(T143, T131, T148, X275))
app65_in_aaaa(.(T171, T172), T173, T174, .(T171, X354)) → U14_aaaa(T171, T172, T173, T174, X354, app65_in_aaaa(T172, T173, T174, X354))
app65_in_aaaa([], T183, T184, .(T183, T184)) → app65_out_aaaa([], T183, T184, .(T183, T184))
U14_aaaa(T171, T172, T173, T174, X354, app65_out_aaaa(T172, T173, T174, X354)) → app65_out_aaaa(.(T171, T172), T173, T174, .(T171, X354))
U13_aa(T131, T132, X275, app65_out_aaaa(T143, T131, T148, X275)) → qs53_out_aa(.(T131, T132), X275)
U28_aa(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U29_aa(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_aa(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_aa(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
p52_in_aaaga(T45, X10, T115, T22, T9) → U16_aaaga(T45, X10, T115, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T115, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T115, T22, T9)
p52_in_aaaga(T45, T120, T115, T22, T9) → U17_aaaga(T45, T120, T115, T22, T9, qs53_in_aa(T45, T120))
U17_aaaga(T45, T120, T115, T22, T9, qs53_out_aa(T45, T120)) → U18_aaaga(T45, T120, T115, T22, T9, app54_in_agaa(T115, T22, T120, T9))
app54_in_agaa(.(T210, T211), T212, T213, .(T210, T215)) → U15_agaa(T210, T211, T212, T213, T215, app54_in_agaa(T211, T212, T213, T215))
app54_in_agaa([], T225, T226, .(T225, T226)) → app54_out_agaa([], T225, T226, .(T225, T226))
U15_agaa(T210, T211, T212, T213, T215, app54_out_agaa(T211, T212, T213, T215)) → app54_out_agaa(.(T210, T211), T212, T213, .(T210, T215))
U18_aaaga(T45, T120, T115, T22, T9, app54_out_agaa(T115, T22, T120, T9)) → p52_out_aaaga(T45, T120, T115, T22, T9)
U30_aa(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
qs1_in_aa(.(T265, []), T9) → U31_aa(T265, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T265, T9, qs99_out_a(X9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa(.(T265, []), T9) → U32_aa(T265, T9, qs99_in_a(T268))
U32_aa(T265, T9, qs99_out_a(T268)) → U33_aa(T265, T9, qs99_in_a(X10))
U33_aa(T265, T9, qs99_out_a(X10)) → qs1_out_aa(.(T265, []), T9)
U32_aa(T265, T9, qs99_out_a(T268)) → U34_aa(T265, T9, T268, qs99_in_a(T273))
U34_aa(T265, T9, T268, qs99_out_a(T273)) → U35_aa(T265, T9, app54_in_gaga(T268, T265, T273, T9))
app54_in_gaga(.(T210, T211), T212, T213, .(T210, T215)) → U15_gaga(T210, T211, T212, T213, T215, app54_in_gaga(T211, T212, T213, T215))
app54_in_gaga([], T225, T226, .(T225, T226)) → app54_out_gaga([], T225, T226, .(T225, T226))
U15_gaga(T210, T211, T212, T213, T215, app54_out_gaga(T211, T212, T213, T215)) → app54_out_gaga(.(T210, T211), T212, T213, .(T210, T215))
U35_aa(T265, T9, app54_out_gaga(T268, T265, T273, T9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T239, .(T240, T241)), T9) → U25_ga(T239, T240, T241, T9, le33_in_gg(T239, T240))
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U26_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, X437, X438))
U26_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, X437, X438)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U27_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, T249, T250))
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U28_ga(T239, T240, T241, T9, qs53_in_aa(T249, X9))
U28_ga(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U29_ga(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_ga(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_ga(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
U30_ga(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
qs1_in_ga(.(T265, []), T9) → U31_ga(T265, T9, qs99_in_a(X9))
U31_ga(T265, T9, qs99_out_a(X9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga(.(T265, []), T9) → U32_ga(T265, T9, qs99_in_a(T268))
U32_ga(T265, T9, qs99_out_a(T268)) → U33_ga(T265, T9, qs99_in_a(X10))
U33_ga(T265, T9, qs99_out_a(X10)) → qs1_out_ga(.(T265, []), T9)
U32_ga(T265, T9, qs99_out_a(T268)) → U34_ga(T265, T9, T268, qs99_in_a(T273))
U34_ga(T265, T9, T268, qs99_out_a(T273)) → U35_ga(T265, T9, app54_in_ggga(T268, T265, T273, T9))
app54_in_ggga(.(T210, T211), T212, T213, .(T210, T215)) → U15_ggga(T210, T211, T212, T213, T215, app54_in_ggga(T211, T212, T213, T215))
app54_in_ggga([], T225, T226, .(T225, T226)) → app54_out_ggga([], T225, T226, .(T225, T226))
U15_ggga(T210, T211, T212, T213, T215, app54_out_ggga(T211, T212, T213, T215)) → app54_out_ggga(.(T210, T211), T212, T213, .(T210, T215))
U35_ga(T265, T9, app54_out_ggga(T268, T265, T273, T9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
LE33_IN_GA(s(T98), s(T99)) → LE33_IN_GA(T98, T99)
LE33_IN_GA(s(T98)) → LE33_IN_GA(T98)
From the DPs we obtained the following set of size-change graphs:
GT10_IN_GA(s(T37), s(T38)) → GT10_IN_GA(T37, T38)
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(T106)) → le33_out_gg(0, s(T106))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T112, [], [], []) → part20_out_ggaa(T112, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(T106)) → le33_out_ga(0, s(T106))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T112, [], [], []) → part20_out_gaaa(T112, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T239, .(T240, T241)), T9) → U25_aa(T239, T240, T241, T9, le33_in_aa(T239, T240))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(T106)) → le33_out_aa(0, s(T106))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U26_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, X437, X438))
U26_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, X437, X438)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U27_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, T249, T250))
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U28_aa(T239, T240, T241, T9, qs53_in_aa(T249, X9))
qs53_in_aa(.(T131, T132), X275) → U7_aa(T131, T132, X275, part20_in_aaaa(T131, T132, X271, X272))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T112, [], [], []) → part20_out_aaaa(T112, [], [], [])
U7_aa(T131, T132, X275, part20_out_aaaa(T131, T132, X271, X272)) → qs53_out_aa(.(T131, T132), X275)
qs53_in_aa(.(T131, T132), X275) → U8_aa(T131, T132, X275, part20_in_aaaa(T131, T132, T136, T137))
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U9_aa(T131, T132, X275, qs53_in_aa(T136, X273))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T131, T132, X275, qs53_out_aa(T136, X273)) → qs53_out_aa(.(T131, T132), X275)
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U10_aa(T131, T132, X275, T137, qs53_in_aa(T136, T143))
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U11_aa(T131, T132, X275, qs53_in_aa(T137, X274))
U11_aa(T131, T132, X275, qs53_out_aa(T137, X274)) → qs53_out_aa(.(T131, T132), X275)
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U12_aa(T131, T132, X275, T143, qs53_in_aa(T137, T148))
U12_aa(T131, T132, X275, T143, qs53_out_aa(T137, T148)) → U13_aa(T131, T132, X275, app65_in_aaaa(T143, T131, T148, X275))
app65_in_aaaa(.(T171, T172), T173, T174, .(T171, X354)) → U14_aaaa(T171, T172, T173, T174, X354, app65_in_aaaa(T172, T173, T174, X354))
app65_in_aaaa([], T183, T184, .(T183, T184)) → app65_out_aaaa([], T183, T184, .(T183, T184))
U14_aaaa(T171, T172, T173, T174, X354, app65_out_aaaa(T172, T173, T174, X354)) → app65_out_aaaa(.(T171, T172), T173, T174, .(T171, X354))
U13_aa(T131, T132, X275, app65_out_aaaa(T143, T131, T148, X275)) → qs53_out_aa(.(T131, T132), X275)
U28_aa(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U29_aa(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_aa(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_aa(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
p52_in_aaaga(T45, X10, T115, T22, T9) → U16_aaaga(T45, X10, T115, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T115, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T115, T22, T9)
p52_in_aaaga(T45, T120, T115, T22, T9) → U17_aaaga(T45, T120, T115, T22, T9, qs53_in_aa(T45, T120))
U17_aaaga(T45, T120, T115, T22, T9, qs53_out_aa(T45, T120)) → U18_aaaga(T45, T120, T115, T22, T9, app54_in_agaa(T115, T22, T120, T9))
app54_in_agaa(.(T210, T211), T212, T213, .(T210, T215)) → U15_agaa(T210, T211, T212, T213, T215, app54_in_agaa(T211, T212, T213, T215))
app54_in_agaa([], T225, T226, .(T225, T226)) → app54_out_agaa([], T225, T226, .(T225, T226))
U15_agaa(T210, T211, T212, T213, T215, app54_out_agaa(T211, T212, T213, T215)) → app54_out_agaa(.(T210, T211), T212, T213, .(T210, T215))
U18_aaaga(T45, T120, T115, T22, T9, app54_out_agaa(T115, T22, T120, T9)) → p52_out_aaaga(T45, T120, T115, T22, T9)
U30_aa(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
qs1_in_aa(.(T265, []), T9) → U31_aa(T265, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T265, T9, qs99_out_a(X9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa(.(T265, []), T9) → U32_aa(T265, T9, qs99_in_a(T268))
U32_aa(T265, T9, qs99_out_a(T268)) → U33_aa(T265, T9, qs99_in_a(X10))
U33_aa(T265, T9, qs99_out_a(X10)) → qs1_out_aa(.(T265, []), T9)
U32_aa(T265, T9, qs99_out_a(T268)) → U34_aa(T265, T9, T268, qs99_in_a(T273))
U34_aa(T265, T9, T268, qs99_out_a(T273)) → U35_aa(T265, T9, app54_in_gaga(T268, T265, T273, T9))
app54_in_gaga(.(T210, T211), T212, T213, .(T210, T215)) → U15_gaga(T210, T211, T212, T213, T215, app54_in_gaga(T211, T212, T213, T215))
app54_in_gaga([], T225, T226, .(T225, T226)) → app54_out_gaga([], T225, T226, .(T225, T226))
U15_gaga(T210, T211, T212, T213, T215, app54_out_gaga(T211, T212, T213, T215)) → app54_out_gaga(.(T210, T211), T212, T213, .(T210, T215))
U35_aa(T265, T9, app54_out_gaga(T268, T265, T273, T9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T239, .(T240, T241)), T9) → U25_ga(T239, T240, T241, T9, le33_in_gg(T239, T240))
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U26_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, X437, X438))
U26_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, X437, X438)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U27_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, T249, T250))
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U28_ga(T239, T240, T241, T9, qs53_in_aa(T249, X9))
U28_ga(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U29_ga(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_ga(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_ga(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
U30_ga(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
qs1_in_ga(.(T265, []), T9) → U31_ga(T265, T9, qs99_in_a(X9))
U31_ga(T265, T9, qs99_out_a(X9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga(.(T265, []), T9) → U32_ga(T265, T9, qs99_in_a(T268))
U32_ga(T265, T9, qs99_out_a(T268)) → U33_ga(T265, T9, qs99_in_a(X10))
U33_ga(T265, T9, qs99_out_a(X10)) → qs1_out_ga(.(T265, []), T9)
U32_ga(T265, T9, qs99_out_a(T268)) → U34_ga(T265, T9, T268, qs99_in_a(T273))
U34_ga(T265, T9, T268, qs99_out_a(T273)) → U35_ga(T265, T9, app54_in_ggga(T268, T265, T273, T9))
app54_in_ggga(.(T210, T211), T212, T213, .(T210, T215)) → U15_ggga(T210, T211, T212, T213, T215, app54_in_ggga(T211, T212, T213, T215))
app54_in_ggga([], T225, T226, .(T225, T226)) → app54_out_ggga([], T225, T226, .(T225, T226))
U15_ggga(T210, T211, T212, T213, T215, app54_out_ggga(T211, T212, T213, T215)) → app54_out_ggga(.(T210, T211), T212, T213, .(T210, T215))
U35_ga(T265, T9, app54_out_ggga(T268, T265, T273, T9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
GT10_IN_GA(s(T37), s(T38)) → GT10_IN_GA(T37, T38)
GT10_IN_GA(s(T37)) → GT10_IN_GA(T37)
From the DPs we obtained the following set of size-change graphs:
U2_GAAA(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → PART20_IN_GAAA(T61, T63, X119, X120)
PART20_IN_GAAA(T61, .(T62, T63), .(T62, X119), X120) → U2_GAAA(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
PART20_IN_GAAA(T83, .(T84, T85), X170, .(T84, X171)) → U4_GAAA(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
U4_GAAA(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → PART20_IN_GAAA(T83, T85, X170, X171)
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(T106)) → le33_out_gg(0, s(T106))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T112, [], [], []) → part20_out_ggaa(T112, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(T106)) → le33_out_ga(0, s(T106))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T112, [], [], []) → part20_out_gaaa(T112, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T239, .(T240, T241)), T9) → U25_aa(T239, T240, T241, T9, le33_in_aa(T239, T240))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(T106)) → le33_out_aa(0, s(T106))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U26_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, X437, X438))
U26_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, X437, X438)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U27_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, T249, T250))
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U28_aa(T239, T240, T241, T9, qs53_in_aa(T249, X9))
qs53_in_aa(.(T131, T132), X275) → U7_aa(T131, T132, X275, part20_in_aaaa(T131, T132, X271, X272))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T112, [], [], []) → part20_out_aaaa(T112, [], [], [])
U7_aa(T131, T132, X275, part20_out_aaaa(T131, T132, X271, X272)) → qs53_out_aa(.(T131, T132), X275)
qs53_in_aa(.(T131, T132), X275) → U8_aa(T131, T132, X275, part20_in_aaaa(T131, T132, T136, T137))
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U9_aa(T131, T132, X275, qs53_in_aa(T136, X273))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T131, T132, X275, qs53_out_aa(T136, X273)) → qs53_out_aa(.(T131, T132), X275)
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U10_aa(T131, T132, X275, T137, qs53_in_aa(T136, T143))
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U11_aa(T131, T132, X275, qs53_in_aa(T137, X274))
U11_aa(T131, T132, X275, qs53_out_aa(T137, X274)) → qs53_out_aa(.(T131, T132), X275)
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U12_aa(T131, T132, X275, T143, qs53_in_aa(T137, T148))
U12_aa(T131, T132, X275, T143, qs53_out_aa(T137, T148)) → U13_aa(T131, T132, X275, app65_in_aaaa(T143, T131, T148, X275))
app65_in_aaaa(.(T171, T172), T173, T174, .(T171, X354)) → U14_aaaa(T171, T172, T173, T174, X354, app65_in_aaaa(T172, T173, T174, X354))
app65_in_aaaa([], T183, T184, .(T183, T184)) → app65_out_aaaa([], T183, T184, .(T183, T184))
U14_aaaa(T171, T172, T173, T174, X354, app65_out_aaaa(T172, T173, T174, X354)) → app65_out_aaaa(.(T171, T172), T173, T174, .(T171, X354))
U13_aa(T131, T132, X275, app65_out_aaaa(T143, T131, T148, X275)) → qs53_out_aa(.(T131, T132), X275)
U28_aa(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U29_aa(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_aa(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_aa(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
p52_in_aaaga(T45, X10, T115, T22, T9) → U16_aaaga(T45, X10, T115, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T115, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T115, T22, T9)
p52_in_aaaga(T45, T120, T115, T22, T9) → U17_aaaga(T45, T120, T115, T22, T9, qs53_in_aa(T45, T120))
U17_aaaga(T45, T120, T115, T22, T9, qs53_out_aa(T45, T120)) → U18_aaaga(T45, T120, T115, T22, T9, app54_in_agaa(T115, T22, T120, T9))
app54_in_agaa(.(T210, T211), T212, T213, .(T210, T215)) → U15_agaa(T210, T211, T212, T213, T215, app54_in_agaa(T211, T212, T213, T215))
app54_in_agaa([], T225, T226, .(T225, T226)) → app54_out_agaa([], T225, T226, .(T225, T226))
U15_agaa(T210, T211, T212, T213, T215, app54_out_agaa(T211, T212, T213, T215)) → app54_out_agaa(.(T210, T211), T212, T213, .(T210, T215))
U18_aaaga(T45, T120, T115, T22, T9, app54_out_agaa(T115, T22, T120, T9)) → p52_out_aaaga(T45, T120, T115, T22, T9)
U30_aa(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
qs1_in_aa(.(T265, []), T9) → U31_aa(T265, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T265, T9, qs99_out_a(X9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa(.(T265, []), T9) → U32_aa(T265, T9, qs99_in_a(T268))
U32_aa(T265, T9, qs99_out_a(T268)) → U33_aa(T265, T9, qs99_in_a(X10))
U33_aa(T265, T9, qs99_out_a(X10)) → qs1_out_aa(.(T265, []), T9)
U32_aa(T265, T9, qs99_out_a(T268)) → U34_aa(T265, T9, T268, qs99_in_a(T273))
U34_aa(T265, T9, T268, qs99_out_a(T273)) → U35_aa(T265, T9, app54_in_gaga(T268, T265, T273, T9))
app54_in_gaga(.(T210, T211), T212, T213, .(T210, T215)) → U15_gaga(T210, T211, T212, T213, T215, app54_in_gaga(T211, T212, T213, T215))
app54_in_gaga([], T225, T226, .(T225, T226)) → app54_out_gaga([], T225, T226, .(T225, T226))
U15_gaga(T210, T211, T212, T213, T215, app54_out_gaga(T211, T212, T213, T215)) → app54_out_gaga(.(T210, T211), T212, T213, .(T210, T215))
U35_aa(T265, T9, app54_out_gaga(T268, T265, T273, T9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T239, .(T240, T241)), T9) → U25_ga(T239, T240, T241, T9, le33_in_gg(T239, T240))
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U26_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, X437, X438))
U26_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, X437, X438)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U27_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, T249, T250))
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U28_ga(T239, T240, T241, T9, qs53_in_aa(T249, X9))
U28_ga(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U29_ga(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_ga(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_ga(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
U30_ga(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
qs1_in_ga(.(T265, []), T9) → U31_ga(T265, T9, qs99_in_a(X9))
U31_ga(T265, T9, qs99_out_a(X9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga(.(T265, []), T9) → U32_ga(T265, T9, qs99_in_a(T268))
U32_ga(T265, T9, qs99_out_a(T268)) → U33_ga(T265, T9, qs99_in_a(X10))
U33_ga(T265, T9, qs99_out_a(X10)) → qs1_out_ga(.(T265, []), T9)
U32_ga(T265, T9, qs99_out_a(T268)) → U34_ga(T265, T9, T268, qs99_in_a(T273))
U34_ga(T265, T9, T268, qs99_out_a(T273)) → U35_ga(T265, T9, app54_in_ggga(T268, T265, T273, T9))
app54_in_ggga(.(T210, T211), T212, T213, .(T210, T215)) → U15_ggga(T210, T211, T212, T213, T215, app54_in_ggga(T211, T212, T213, T215))
app54_in_ggga([], T225, T226, .(T225, T226)) → app54_out_ggga([], T225, T226, .(T225, T226))
U15_ggga(T210, T211, T212, T213, T215, app54_out_ggga(T211, T212, T213, T215)) → app54_out_ggga(.(T210, T211), T212, T213, .(T210, T215))
U35_ga(T265, T9, app54_out_ggga(T268, T265, T273, T9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
U2_GAAA(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → PART20_IN_GAAA(T61, T63, X119, X120)
PART20_IN_GAAA(T61, .(T62, T63), .(T62, X119), X120) → U2_GAAA(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
PART20_IN_GAAA(T83, .(T84, T85), X170, .(T84, X171)) → U4_GAAA(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
U4_GAAA(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → PART20_IN_GAAA(T83, T85, X170, X171)
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(T106)) → le33_out_ga(0, s(T106))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U2_GAAA(T61, gt10_out_ga(T62)) → PART20_IN_GAAA(T61)
PART20_IN_GAAA(T61) → U2_GAAA(T61, gt10_in_ga(T61))
PART20_IN_GAAA(T83) → U4_GAAA(T83, le33_in_ga(T83))
U4_GAAA(T83, le33_out_ga) → PART20_IN_GAAA(T83)
gt10_in_ga(s(T37)) → U1_ga(gt10_in_ga(T37))
gt10_in_ga(s(0)) → gt10_out_ga(0)
le33_in_ga(s(T98)) → U6_ga(le33_in_ga(T98))
le33_in_ga(0) → le33_out_ga
U1_ga(gt10_out_ga(T38)) → gt10_out_ga(s(T38))
U6_ga(le33_out_ga) → le33_out_ga
gt10_in_ga(x0)
le33_in_ga(x0)
U1_ga(x0)
U6_ga(x0)
PART20_IN_GAAA(s(x0)) → U2_GAAA(s(x0), U1_ga(gt10_in_ga(x0)))
PART20_IN_GAAA(s(0)) → U2_GAAA(s(0), gt10_out_ga(0))
U2_GAAA(T61, gt10_out_ga(T62)) → PART20_IN_GAAA(T61)
PART20_IN_GAAA(T83) → U4_GAAA(T83, le33_in_ga(T83))
U4_GAAA(T83, le33_out_ga) → PART20_IN_GAAA(T83)
PART20_IN_GAAA(s(x0)) → U2_GAAA(s(x0), U1_ga(gt10_in_ga(x0)))
PART20_IN_GAAA(s(0)) → U2_GAAA(s(0), gt10_out_ga(0))
gt10_in_ga(s(T37)) → U1_ga(gt10_in_ga(T37))
gt10_in_ga(s(0)) → gt10_out_ga(0)
le33_in_ga(s(T98)) → U6_ga(le33_in_ga(T98))
le33_in_ga(0) → le33_out_ga
U1_ga(gt10_out_ga(T38)) → gt10_out_ga(s(T38))
U6_ga(le33_out_ga) → le33_out_ga
gt10_in_ga(x0)
le33_in_ga(x0)
U1_ga(x0)
U6_ga(x0)
PART20_IN_GAAA(s(x0)) → U4_GAAA(s(x0), U6_ga(le33_in_ga(x0)))
PART20_IN_GAAA(0) → U4_GAAA(0, le33_out_ga)
U2_GAAA(T61, gt10_out_ga(T62)) → PART20_IN_GAAA(T61)
U4_GAAA(T83, le33_out_ga) → PART20_IN_GAAA(T83)
PART20_IN_GAAA(s(x0)) → U2_GAAA(s(x0), U1_ga(gt10_in_ga(x0)))
PART20_IN_GAAA(s(0)) → U2_GAAA(s(0), gt10_out_ga(0))
PART20_IN_GAAA(s(x0)) → U4_GAAA(s(x0), U6_ga(le33_in_ga(x0)))
PART20_IN_GAAA(0) → U4_GAAA(0, le33_out_ga)
gt10_in_ga(s(T37)) → U1_ga(gt10_in_ga(T37))
gt10_in_ga(s(0)) → gt10_out_ga(0)
le33_in_ga(s(T98)) → U6_ga(le33_in_ga(T98))
le33_in_ga(0) → le33_out_ga
U1_ga(gt10_out_ga(T38)) → gt10_out_ga(s(T38))
U6_ga(le33_out_ga) → le33_out_ga
gt10_in_ga(x0)
le33_in_ga(x0)
U1_ga(x0)
U6_ga(x0)
U2_GAAA(s(z0), gt10_out_ga(x1)) → PART20_IN_GAAA(s(z0))
U2_GAAA(s(0), gt10_out_ga(0)) → PART20_IN_GAAA(s(0))
U4_GAAA(T83, le33_out_ga) → PART20_IN_GAAA(T83)
PART20_IN_GAAA(s(x0)) → U2_GAAA(s(x0), U1_ga(gt10_in_ga(x0)))
PART20_IN_GAAA(s(0)) → U2_GAAA(s(0), gt10_out_ga(0))
PART20_IN_GAAA(s(x0)) → U4_GAAA(s(x0), U6_ga(le33_in_ga(x0)))
PART20_IN_GAAA(0) → U4_GAAA(0, le33_out_ga)
U2_GAAA(s(z0), gt10_out_ga(x1)) → PART20_IN_GAAA(s(z0))
U2_GAAA(s(0), gt10_out_ga(0)) → PART20_IN_GAAA(s(0))
gt10_in_ga(s(T37)) → U1_ga(gt10_in_ga(T37))
gt10_in_ga(s(0)) → gt10_out_ga(0)
le33_in_ga(s(T98)) → U6_ga(le33_in_ga(T98))
le33_in_ga(0) → le33_out_ga
U1_ga(gt10_out_ga(T38)) → gt10_out_ga(s(T38))
U6_ga(le33_out_ga) → le33_out_ga
gt10_in_ga(x0)
le33_in_ga(x0)
U1_ga(x0)
U6_ga(x0)
U4_GAAA(s(z0), le33_out_ga) → PART20_IN_GAAA(s(z0))
U4_GAAA(0, le33_out_ga) → PART20_IN_GAAA(0)
PART20_IN_GAAA(s(x0)) → U2_GAAA(s(x0), U1_ga(gt10_in_ga(x0)))
PART20_IN_GAAA(s(0)) → U2_GAAA(s(0), gt10_out_ga(0))
PART20_IN_GAAA(s(x0)) → U4_GAAA(s(x0), U6_ga(le33_in_ga(x0)))
PART20_IN_GAAA(0) → U4_GAAA(0, le33_out_ga)
U2_GAAA(s(z0), gt10_out_ga(x1)) → PART20_IN_GAAA(s(z0))
U2_GAAA(s(0), gt10_out_ga(0)) → PART20_IN_GAAA(s(0))
U4_GAAA(s(z0), le33_out_ga) → PART20_IN_GAAA(s(z0))
U4_GAAA(0, le33_out_ga) → PART20_IN_GAAA(0)
gt10_in_ga(s(T37)) → U1_ga(gt10_in_ga(T37))
gt10_in_ga(s(0)) → gt10_out_ga(0)
le33_in_ga(s(T98)) → U6_ga(le33_in_ga(T98))
le33_in_ga(0) → le33_out_ga
U1_ga(gt10_out_ga(T38)) → gt10_out_ga(s(T38))
U6_ga(le33_out_ga) → le33_out_ga
gt10_in_ga(x0)
le33_in_ga(x0)
U1_ga(x0)
U6_ga(x0)
U4_GAAA(0, le33_out_ga) → PART20_IN_GAAA(0)
PART20_IN_GAAA(0) → U4_GAAA(0, le33_out_ga)
gt10_in_ga(s(T37)) → U1_ga(gt10_in_ga(T37))
gt10_in_ga(s(0)) → gt10_out_ga(0)
le33_in_ga(s(T98)) → U6_ga(le33_in_ga(T98))
le33_in_ga(0) → le33_out_ga
U1_ga(gt10_out_ga(T38)) → gt10_out_ga(s(T38))
U6_ga(le33_out_ga) → le33_out_ga
gt10_in_ga(x0)
le33_in_ga(x0)
U1_ga(x0)
U6_ga(x0)
U4_GAAA(0, le33_out_ga) → PART20_IN_GAAA(0)
PART20_IN_GAAA(0) → U4_GAAA(0, le33_out_ga)
gt10_in_ga(x0)
le33_in_ga(x0)
U1_ga(x0)
U6_ga(x0)
gt10_in_ga(x0)
le33_in_ga(x0)
U1_ga(x0)
U6_ga(x0)
U4_GAAA(0, le33_out_ga) → PART20_IN_GAAA(0)
PART20_IN_GAAA(0) → U4_GAAA(0, le33_out_ga)
U2_GAAA(s(z0), gt10_out_ga(x1)) → PART20_IN_GAAA(s(z0))
PART20_IN_GAAA(s(x0)) → U2_GAAA(s(x0), U1_ga(gt10_in_ga(x0)))
U2_GAAA(s(0), gt10_out_ga(0)) → PART20_IN_GAAA(s(0))
PART20_IN_GAAA(s(0)) → U2_GAAA(s(0), gt10_out_ga(0))
PART20_IN_GAAA(s(x0)) → U4_GAAA(s(x0), U6_ga(le33_in_ga(x0)))
U4_GAAA(s(z0), le33_out_ga) → PART20_IN_GAAA(s(z0))
gt10_in_ga(s(T37)) → U1_ga(gt10_in_ga(T37))
gt10_in_ga(s(0)) → gt10_out_ga(0)
le33_in_ga(s(T98)) → U6_ga(le33_in_ga(T98))
le33_in_ga(0) → le33_out_ga
U1_ga(gt10_out_ga(T38)) → gt10_out_ga(s(T38))
U6_ga(le33_out_ga) → le33_out_ga
gt10_in_ga(x0)
le33_in_ga(x0)
U1_ga(x0)
U6_ga(x0)
GT10_IN_AA(s(T37), s(T38)) → GT10_IN_AA(T37, T38)
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(T106)) → le33_out_gg(0, s(T106))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T112, [], [], []) → part20_out_ggaa(T112, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(T106)) → le33_out_ga(0, s(T106))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T112, [], [], []) → part20_out_gaaa(T112, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T239, .(T240, T241)), T9) → U25_aa(T239, T240, T241, T9, le33_in_aa(T239, T240))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(T106)) → le33_out_aa(0, s(T106))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U26_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, X437, X438))
U26_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, X437, X438)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U27_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, T249, T250))
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U28_aa(T239, T240, T241, T9, qs53_in_aa(T249, X9))
qs53_in_aa(.(T131, T132), X275) → U7_aa(T131, T132, X275, part20_in_aaaa(T131, T132, X271, X272))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T112, [], [], []) → part20_out_aaaa(T112, [], [], [])
U7_aa(T131, T132, X275, part20_out_aaaa(T131, T132, X271, X272)) → qs53_out_aa(.(T131, T132), X275)
qs53_in_aa(.(T131, T132), X275) → U8_aa(T131, T132, X275, part20_in_aaaa(T131, T132, T136, T137))
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U9_aa(T131, T132, X275, qs53_in_aa(T136, X273))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T131, T132, X275, qs53_out_aa(T136, X273)) → qs53_out_aa(.(T131, T132), X275)
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U10_aa(T131, T132, X275, T137, qs53_in_aa(T136, T143))
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U11_aa(T131, T132, X275, qs53_in_aa(T137, X274))
U11_aa(T131, T132, X275, qs53_out_aa(T137, X274)) → qs53_out_aa(.(T131, T132), X275)
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U12_aa(T131, T132, X275, T143, qs53_in_aa(T137, T148))
U12_aa(T131, T132, X275, T143, qs53_out_aa(T137, T148)) → U13_aa(T131, T132, X275, app65_in_aaaa(T143, T131, T148, X275))
app65_in_aaaa(.(T171, T172), T173, T174, .(T171, X354)) → U14_aaaa(T171, T172, T173, T174, X354, app65_in_aaaa(T172, T173, T174, X354))
app65_in_aaaa([], T183, T184, .(T183, T184)) → app65_out_aaaa([], T183, T184, .(T183, T184))
U14_aaaa(T171, T172, T173, T174, X354, app65_out_aaaa(T172, T173, T174, X354)) → app65_out_aaaa(.(T171, T172), T173, T174, .(T171, X354))
U13_aa(T131, T132, X275, app65_out_aaaa(T143, T131, T148, X275)) → qs53_out_aa(.(T131, T132), X275)
U28_aa(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U29_aa(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_aa(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_aa(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
p52_in_aaaga(T45, X10, T115, T22, T9) → U16_aaaga(T45, X10, T115, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T115, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T115, T22, T9)
p52_in_aaaga(T45, T120, T115, T22, T9) → U17_aaaga(T45, T120, T115, T22, T9, qs53_in_aa(T45, T120))
U17_aaaga(T45, T120, T115, T22, T9, qs53_out_aa(T45, T120)) → U18_aaaga(T45, T120, T115, T22, T9, app54_in_agaa(T115, T22, T120, T9))
app54_in_agaa(.(T210, T211), T212, T213, .(T210, T215)) → U15_agaa(T210, T211, T212, T213, T215, app54_in_agaa(T211, T212, T213, T215))
app54_in_agaa([], T225, T226, .(T225, T226)) → app54_out_agaa([], T225, T226, .(T225, T226))
U15_agaa(T210, T211, T212, T213, T215, app54_out_agaa(T211, T212, T213, T215)) → app54_out_agaa(.(T210, T211), T212, T213, .(T210, T215))
U18_aaaga(T45, T120, T115, T22, T9, app54_out_agaa(T115, T22, T120, T9)) → p52_out_aaaga(T45, T120, T115, T22, T9)
U30_aa(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
qs1_in_aa(.(T265, []), T9) → U31_aa(T265, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T265, T9, qs99_out_a(X9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa(.(T265, []), T9) → U32_aa(T265, T9, qs99_in_a(T268))
U32_aa(T265, T9, qs99_out_a(T268)) → U33_aa(T265, T9, qs99_in_a(X10))
U33_aa(T265, T9, qs99_out_a(X10)) → qs1_out_aa(.(T265, []), T9)
U32_aa(T265, T9, qs99_out_a(T268)) → U34_aa(T265, T9, T268, qs99_in_a(T273))
U34_aa(T265, T9, T268, qs99_out_a(T273)) → U35_aa(T265, T9, app54_in_gaga(T268, T265, T273, T9))
app54_in_gaga(.(T210, T211), T212, T213, .(T210, T215)) → U15_gaga(T210, T211, T212, T213, T215, app54_in_gaga(T211, T212, T213, T215))
app54_in_gaga([], T225, T226, .(T225, T226)) → app54_out_gaga([], T225, T226, .(T225, T226))
U15_gaga(T210, T211, T212, T213, T215, app54_out_gaga(T211, T212, T213, T215)) → app54_out_gaga(.(T210, T211), T212, T213, .(T210, T215))
U35_aa(T265, T9, app54_out_gaga(T268, T265, T273, T9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T239, .(T240, T241)), T9) → U25_ga(T239, T240, T241, T9, le33_in_gg(T239, T240))
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U26_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, X437, X438))
U26_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, X437, X438)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U27_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, T249, T250))
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U28_ga(T239, T240, T241, T9, qs53_in_aa(T249, X9))
U28_ga(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U29_ga(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_ga(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_ga(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
U30_ga(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
qs1_in_ga(.(T265, []), T9) → U31_ga(T265, T9, qs99_in_a(X9))
U31_ga(T265, T9, qs99_out_a(X9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga(.(T265, []), T9) → U32_ga(T265, T9, qs99_in_a(T268))
U32_ga(T265, T9, qs99_out_a(T268)) → U33_ga(T265, T9, qs99_in_a(X10))
U33_ga(T265, T9, qs99_out_a(X10)) → qs1_out_ga(.(T265, []), T9)
U32_ga(T265, T9, qs99_out_a(T268)) → U34_ga(T265, T9, T268, qs99_in_a(T273))
U34_ga(T265, T9, T268, qs99_out_a(T273)) → U35_ga(T265, T9, app54_in_ggga(T268, T265, T273, T9))
app54_in_ggga(.(T210, T211), T212, T213, .(T210, T215)) → U15_ggga(T210, T211, T212, T213, T215, app54_in_ggga(T211, T212, T213, T215))
app54_in_ggga([], T225, T226, .(T225, T226)) → app54_out_ggga([], T225, T226, .(T225, T226))
U15_ggga(T210, T211, T212, T213, T215, app54_out_ggga(T211, T212, T213, T215)) → app54_out_ggga(.(T210, T211), T212, T213, .(T210, T215))
U35_ga(T265, T9, app54_out_ggga(T268, T265, T273, T9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
GT10_IN_AA(s(T37), s(T38)) → GT10_IN_AA(T37, T38)
GT10_IN_AA → GT10_IN_AA
QS53_IN_AA(.(T131, T132), X275) → U8_AA(T131, T132, X275, part20_in_aaaa(T131, T132, T136, T137))
U8_AA(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → QS53_IN_AA(T136, X273)
U8_AA(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U10_AA(T131, T132, X275, T137, qs53_in_aa(T136, T143))
U10_AA(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → QS53_IN_AA(T137, X274)
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(T106)) → le33_out_gg(0, s(T106))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T112, [], [], []) → part20_out_ggaa(T112, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(T106)) → le33_out_ga(0, s(T106))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T112, [], [], []) → part20_out_gaaa(T112, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T239, .(T240, T241)), T9) → U25_aa(T239, T240, T241, T9, le33_in_aa(T239, T240))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(T106)) → le33_out_aa(0, s(T106))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U26_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, X437, X438))
U26_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, X437, X438)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U27_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, T249, T250))
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U28_aa(T239, T240, T241, T9, qs53_in_aa(T249, X9))
qs53_in_aa(.(T131, T132), X275) → U7_aa(T131, T132, X275, part20_in_aaaa(T131, T132, X271, X272))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T112, [], [], []) → part20_out_aaaa(T112, [], [], [])
U7_aa(T131, T132, X275, part20_out_aaaa(T131, T132, X271, X272)) → qs53_out_aa(.(T131, T132), X275)
qs53_in_aa(.(T131, T132), X275) → U8_aa(T131, T132, X275, part20_in_aaaa(T131, T132, T136, T137))
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U9_aa(T131, T132, X275, qs53_in_aa(T136, X273))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T131, T132, X275, qs53_out_aa(T136, X273)) → qs53_out_aa(.(T131, T132), X275)
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U10_aa(T131, T132, X275, T137, qs53_in_aa(T136, T143))
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U11_aa(T131, T132, X275, qs53_in_aa(T137, X274))
U11_aa(T131, T132, X275, qs53_out_aa(T137, X274)) → qs53_out_aa(.(T131, T132), X275)
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U12_aa(T131, T132, X275, T143, qs53_in_aa(T137, T148))
U12_aa(T131, T132, X275, T143, qs53_out_aa(T137, T148)) → U13_aa(T131, T132, X275, app65_in_aaaa(T143, T131, T148, X275))
app65_in_aaaa(.(T171, T172), T173, T174, .(T171, X354)) → U14_aaaa(T171, T172, T173, T174, X354, app65_in_aaaa(T172, T173, T174, X354))
app65_in_aaaa([], T183, T184, .(T183, T184)) → app65_out_aaaa([], T183, T184, .(T183, T184))
U14_aaaa(T171, T172, T173, T174, X354, app65_out_aaaa(T172, T173, T174, X354)) → app65_out_aaaa(.(T171, T172), T173, T174, .(T171, X354))
U13_aa(T131, T132, X275, app65_out_aaaa(T143, T131, T148, X275)) → qs53_out_aa(.(T131, T132), X275)
U28_aa(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U29_aa(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_aa(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_aa(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
p52_in_aaaga(T45, X10, T115, T22, T9) → U16_aaaga(T45, X10, T115, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T115, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T115, T22, T9)
p52_in_aaaga(T45, T120, T115, T22, T9) → U17_aaaga(T45, T120, T115, T22, T9, qs53_in_aa(T45, T120))
U17_aaaga(T45, T120, T115, T22, T9, qs53_out_aa(T45, T120)) → U18_aaaga(T45, T120, T115, T22, T9, app54_in_agaa(T115, T22, T120, T9))
app54_in_agaa(.(T210, T211), T212, T213, .(T210, T215)) → U15_agaa(T210, T211, T212, T213, T215, app54_in_agaa(T211, T212, T213, T215))
app54_in_agaa([], T225, T226, .(T225, T226)) → app54_out_agaa([], T225, T226, .(T225, T226))
U15_agaa(T210, T211, T212, T213, T215, app54_out_agaa(T211, T212, T213, T215)) → app54_out_agaa(.(T210, T211), T212, T213, .(T210, T215))
U18_aaaga(T45, T120, T115, T22, T9, app54_out_agaa(T115, T22, T120, T9)) → p52_out_aaaga(T45, T120, T115, T22, T9)
U30_aa(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
qs1_in_aa(.(T265, []), T9) → U31_aa(T265, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T265, T9, qs99_out_a(X9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa(.(T265, []), T9) → U32_aa(T265, T9, qs99_in_a(T268))
U32_aa(T265, T9, qs99_out_a(T268)) → U33_aa(T265, T9, qs99_in_a(X10))
U33_aa(T265, T9, qs99_out_a(X10)) → qs1_out_aa(.(T265, []), T9)
U32_aa(T265, T9, qs99_out_a(T268)) → U34_aa(T265, T9, T268, qs99_in_a(T273))
U34_aa(T265, T9, T268, qs99_out_a(T273)) → U35_aa(T265, T9, app54_in_gaga(T268, T265, T273, T9))
app54_in_gaga(.(T210, T211), T212, T213, .(T210, T215)) → U15_gaga(T210, T211, T212, T213, T215, app54_in_gaga(T211, T212, T213, T215))
app54_in_gaga([], T225, T226, .(T225, T226)) → app54_out_gaga([], T225, T226, .(T225, T226))
U15_gaga(T210, T211, T212, T213, T215, app54_out_gaga(T211, T212, T213, T215)) → app54_out_gaga(.(T210, T211), T212, T213, .(T210, T215))
U35_aa(T265, T9, app54_out_gaga(T268, T265, T273, T9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T239, .(T240, T241)), T9) → U25_ga(T239, T240, T241, T9, le33_in_gg(T239, T240))
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U26_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, X437, X438))
U26_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, X437, X438)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U27_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, T249, T250))
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U28_ga(T239, T240, T241, T9, qs53_in_aa(T249, X9))
U28_ga(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U29_ga(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_ga(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_ga(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
U30_ga(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
qs1_in_ga(.(T265, []), T9) → U31_ga(T265, T9, qs99_in_a(X9))
U31_ga(T265, T9, qs99_out_a(X9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga(.(T265, []), T9) → U32_ga(T265, T9, qs99_in_a(T268))
U32_ga(T265, T9, qs99_out_a(T268)) → U33_ga(T265, T9, qs99_in_a(X10))
U33_ga(T265, T9, qs99_out_a(X10)) → qs1_out_ga(.(T265, []), T9)
U32_ga(T265, T9, qs99_out_a(T268)) → U34_ga(T265, T9, T268, qs99_in_a(T273))
U34_ga(T265, T9, T268, qs99_out_a(T273)) → U35_ga(T265, T9, app54_in_ggga(T268, T265, T273, T9))
app54_in_ggga(.(T210, T211), T212, T213, .(T210, T215)) → U15_ggga(T210, T211, T212, T213, T215, app54_in_ggga(T211, T212, T213, T215))
app54_in_ggga([], T225, T226, .(T225, T226)) → app54_out_ggga([], T225, T226, .(T225, T226))
U15_ggga(T210, T211, T212, T213, T215, app54_out_ggga(T211, T212, T213, T215)) → app54_out_ggga(.(T210, T211), T212, T213, .(T210, T215))
U35_ga(T265, T9, app54_out_ggga(T268, T265, T273, T9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
QS53_IN_AA(.(T131, T132), X275) → U8_AA(T131, T132, X275, part20_in_aaaa(T131, T132, T136, T137))
U8_AA(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → QS53_IN_AA(T136, X273)
U8_AA(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U10_AA(T131, T132, X275, T137, qs53_in_aa(T136, T143))
U10_AA(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → QS53_IN_AA(T137, X274)
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
part20_in_aaaa(T112, [], [], []) → part20_out_aaaa(T112, [], [], [])
qs53_in_aa(.(T131, T132), X275) → U7_aa(T131, T132, X275, part20_in_aaaa(T131, T132, X271, X272))
qs53_in_aa(.(T131, T132), X275) → U8_aa(T131, T132, X275, part20_in_aaaa(T131, T132, T136, T137))
qs53_in_aa([], []) → qs53_out_aa([], [])
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U7_aa(T131, T132, X275, part20_out_aaaa(T131, T132, X271, X272)) → qs53_out_aa(.(T131, T132), X275)
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U9_aa(T131, T132, X275, qs53_in_aa(T136, X273))
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U10_aa(T131, T132, X275, T137, qs53_in_aa(T136, T143))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(T106)) → le33_out_aa(0, s(T106))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U9_aa(T131, T132, X275, qs53_out_aa(T136, X273)) → qs53_out_aa(.(T131, T132), X275)
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U11_aa(T131, T132, X275, qs53_in_aa(T137, X274))
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U12_aa(T131, T132, X275, T143, qs53_in_aa(T137, T148))
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
part20_in_gaaa(T112, [], [], []) → part20_out_gaaa(T112, [], [], [])
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U11_aa(T131, T132, X275, qs53_out_aa(T137, X274)) → qs53_out_aa(.(T131, T132), X275)
U12_aa(T131, T132, X275, T143, qs53_out_aa(T137, T148)) → U13_aa(T131, T132, X275, app65_in_aaaa(T143, T131, T148, X275))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U13_aa(T131, T132, X275, app65_out_aaaa(T143, T131, T148, X275)) → qs53_out_aa(.(T131, T132), X275)
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(T106)) → le33_out_ga(0, s(T106))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
app65_in_aaaa(.(T171, T172), T173, T174, .(T171, X354)) → U14_aaaa(T171, T172, T173, T174, X354, app65_in_aaaa(T172, T173, T174, X354))
app65_in_aaaa([], T183, T184, .(T183, T184)) → app65_out_aaaa([], T183, T184, .(T183, T184))
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U14_aaaa(T171, T172, T173, T174, X354, app65_out_aaaa(T172, T173, T174, X354)) → app65_out_aaaa(.(T171, T172), T173, T174, .(T171, X354))
QS53_IN_AA → U8_AA(part20_in_aaaa)
U8_AA(part20_out_aaaa) → QS53_IN_AA
U8_AA(part20_out_aaaa) → U10_AA(qs53_in_aa)
U10_AA(qs53_out_aa) → QS53_IN_AA
part20_in_aaaa → U2_aaaa(gt10_in_aa)
part20_in_aaaa → U4_aaaa(le33_in_aa)
part20_in_aaaa → part20_out_aaaa
qs53_in_aa → U7_aa(part20_in_aaaa)
qs53_in_aa → U8_aa(part20_in_aaaa)
qs53_in_aa → qs53_out_aa
U2_aaaa(gt10_out_aa(T61, T62)) → part20_out_aaaa
U2_aaaa(gt10_out_aa(T61, T62)) → U3_aaaa(part20_in_gaaa(T61))
U4_aaaa(le33_out_aa(T83)) → part20_out_aaaa
U4_aaaa(le33_out_aa(T83)) → U5_aaaa(part20_in_gaaa(T83))
U7_aa(part20_out_aaaa) → qs53_out_aa
U8_aa(part20_out_aaaa) → U9_aa(qs53_in_aa)
U8_aa(part20_out_aaaa) → U10_aa(qs53_in_aa)
gt10_in_aa → U1_aa(gt10_in_aa)
gt10_in_aa → gt10_out_aa(s(0), 0)
U3_aaaa(part20_out_gaaa) → part20_out_aaaa
le33_in_aa → U6_aa(le33_in_aa)
le33_in_aa → le33_out_aa(0)
U5_aaaa(part20_out_gaaa) → part20_out_aaaa
U9_aa(qs53_out_aa) → qs53_out_aa
U10_aa(qs53_out_aa) → U11_aa(qs53_in_aa)
U10_aa(qs53_out_aa) → U12_aa(qs53_in_aa)
U1_aa(gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
part20_in_gaaa(T61) → U2_gaaa(T61, gt10_in_ga(T61))
part20_in_gaaa(T83) → U4_gaaa(T83, le33_in_ga(T83))
part20_in_gaaa(T112) → part20_out_gaaa
U6_aa(le33_out_aa(T98)) → le33_out_aa(s(T98))
U11_aa(qs53_out_aa) → qs53_out_aa
U12_aa(qs53_out_aa) → U13_aa(app65_in_aaaa)
U2_gaaa(T61, gt10_out_ga(T62)) → part20_out_gaaa
U2_gaaa(T61, gt10_out_ga(T62)) → U3_gaaa(part20_in_gaaa(T61))
U4_gaaa(T83, le33_out_ga) → part20_out_gaaa
U4_gaaa(T83, le33_out_ga) → U5_gaaa(part20_in_gaaa(T83))
U13_aa(app65_out_aaaa) → qs53_out_aa
gt10_in_ga(s(T37)) → U1_ga(gt10_in_ga(T37))
gt10_in_ga(s(0)) → gt10_out_ga(0)
U3_gaaa(part20_out_gaaa) → part20_out_gaaa
le33_in_ga(s(T98)) → U6_ga(le33_in_ga(T98))
le33_in_ga(0) → le33_out_ga
U5_gaaa(part20_out_gaaa) → part20_out_gaaa
app65_in_aaaa → U14_aaaa(app65_in_aaaa)
app65_in_aaaa → app65_out_aaaa
U1_ga(gt10_out_ga(T38)) → gt10_out_ga(s(T38))
U6_ga(le33_out_ga) → le33_out_ga
U14_aaaa(app65_out_aaaa) → app65_out_aaaa
part20_in_aaaa
qs53_in_aa
U2_aaaa(x0)
U4_aaaa(x0)
U7_aa(x0)
U8_aa(x0)
gt10_in_aa
U3_aaaa(x0)
le33_in_aa
U5_aaaa(x0)
U9_aa(x0)
U10_aa(x0)
U1_aa(x0)
part20_in_gaaa(x0)
U6_aa(x0)
U11_aa(x0)
U12_aa(x0)
U2_gaaa(x0, x1)
U4_gaaa(x0, x1)
U13_aa(x0)
gt10_in_ga(x0)
U3_gaaa(x0)
le33_in_ga(x0)
U5_gaaa(x0)
app65_in_aaaa
U1_ga(x0)
U6_ga(x0)
U14_aaaa(x0)
QS53_IN_AA → U8_AA(U2_aaaa(gt10_in_aa))
QS53_IN_AA → U8_AA(U4_aaaa(le33_in_aa))
QS53_IN_AA → U8_AA(part20_out_aaaa)
U8_AA(part20_out_aaaa) → QS53_IN_AA
U8_AA(part20_out_aaaa) → U10_AA(qs53_in_aa)
U10_AA(qs53_out_aa) → QS53_IN_AA
QS53_IN_AA → U8_AA(U2_aaaa(gt10_in_aa))
QS53_IN_AA → U8_AA(U4_aaaa(le33_in_aa))
QS53_IN_AA → U8_AA(part20_out_aaaa)
part20_in_aaaa → U2_aaaa(gt10_in_aa)
part20_in_aaaa → U4_aaaa(le33_in_aa)
part20_in_aaaa → part20_out_aaaa
qs53_in_aa → U7_aa(part20_in_aaaa)
qs53_in_aa → U8_aa(part20_in_aaaa)
qs53_in_aa → qs53_out_aa
U2_aaaa(gt10_out_aa(T61, T62)) → part20_out_aaaa
U2_aaaa(gt10_out_aa(T61, T62)) → U3_aaaa(part20_in_gaaa(T61))
U4_aaaa(le33_out_aa(T83)) → part20_out_aaaa
U4_aaaa(le33_out_aa(T83)) → U5_aaaa(part20_in_gaaa(T83))
U7_aa(part20_out_aaaa) → qs53_out_aa
U8_aa(part20_out_aaaa) → U9_aa(qs53_in_aa)
U8_aa(part20_out_aaaa) → U10_aa(qs53_in_aa)
gt10_in_aa → U1_aa(gt10_in_aa)
gt10_in_aa → gt10_out_aa(s(0), 0)
U3_aaaa(part20_out_gaaa) → part20_out_aaaa
le33_in_aa → U6_aa(le33_in_aa)
le33_in_aa → le33_out_aa(0)
U5_aaaa(part20_out_gaaa) → part20_out_aaaa
U9_aa(qs53_out_aa) → qs53_out_aa
U10_aa(qs53_out_aa) → U11_aa(qs53_in_aa)
U10_aa(qs53_out_aa) → U12_aa(qs53_in_aa)
U1_aa(gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
part20_in_gaaa(T61) → U2_gaaa(T61, gt10_in_ga(T61))
part20_in_gaaa(T83) → U4_gaaa(T83, le33_in_ga(T83))
part20_in_gaaa(T112) → part20_out_gaaa
U6_aa(le33_out_aa(T98)) → le33_out_aa(s(T98))
U11_aa(qs53_out_aa) → qs53_out_aa
U12_aa(qs53_out_aa) → U13_aa(app65_in_aaaa)
U2_gaaa(T61, gt10_out_ga(T62)) → part20_out_gaaa
U2_gaaa(T61, gt10_out_ga(T62)) → U3_gaaa(part20_in_gaaa(T61))
U4_gaaa(T83, le33_out_ga) → part20_out_gaaa
U4_gaaa(T83, le33_out_ga) → U5_gaaa(part20_in_gaaa(T83))
U13_aa(app65_out_aaaa) → qs53_out_aa
gt10_in_ga(s(T37)) → U1_ga(gt10_in_ga(T37))
gt10_in_ga(s(0)) → gt10_out_ga(0)
U3_gaaa(part20_out_gaaa) → part20_out_gaaa
le33_in_ga(s(T98)) → U6_ga(le33_in_ga(T98))
le33_in_ga(0) → le33_out_ga
U5_gaaa(part20_out_gaaa) → part20_out_gaaa
app65_in_aaaa → U14_aaaa(app65_in_aaaa)
app65_in_aaaa → app65_out_aaaa
U1_ga(gt10_out_ga(T38)) → gt10_out_ga(s(T38))
U6_ga(le33_out_ga) → le33_out_ga
U14_aaaa(app65_out_aaaa) → app65_out_aaaa
part20_in_aaaa
qs53_in_aa
U2_aaaa(x0)
U4_aaaa(x0)
U7_aa(x0)
U8_aa(x0)
gt10_in_aa
U3_aaaa(x0)
le33_in_aa
U5_aaaa(x0)
U9_aa(x0)
U10_aa(x0)
U1_aa(x0)
part20_in_gaaa(x0)
U6_aa(x0)
U11_aa(x0)
U12_aa(x0)
U2_gaaa(x0, x1)
U4_gaaa(x0, x1)
U13_aa(x0)
gt10_in_ga(x0)
U3_gaaa(x0)
le33_in_ga(x0)
U5_gaaa(x0)
app65_in_aaaa
U1_ga(x0)
U6_ga(x0)
U14_aaaa(x0)
U8_AA(part20_out_aaaa) → U10_AA(U7_aa(part20_in_aaaa))
U8_AA(part20_out_aaaa) → U10_AA(U8_aa(part20_in_aaaa))
U8_AA(part20_out_aaaa) → U10_AA(qs53_out_aa)
U8_AA(part20_out_aaaa) → QS53_IN_AA
U10_AA(qs53_out_aa) → QS53_IN_AA
QS53_IN_AA → U8_AA(U2_aaaa(gt10_in_aa))
QS53_IN_AA → U8_AA(U4_aaaa(le33_in_aa))
QS53_IN_AA → U8_AA(part20_out_aaaa)
U8_AA(part20_out_aaaa) → U10_AA(U7_aa(part20_in_aaaa))
U8_AA(part20_out_aaaa) → U10_AA(U8_aa(part20_in_aaaa))
U8_AA(part20_out_aaaa) → U10_AA(qs53_out_aa)
part20_in_aaaa → U2_aaaa(gt10_in_aa)
part20_in_aaaa → U4_aaaa(le33_in_aa)
part20_in_aaaa → part20_out_aaaa
qs53_in_aa → U7_aa(part20_in_aaaa)
qs53_in_aa → U8_aa(part20_in_aaaa)
qs53_in_aa → qs53_out_aa
U2_aaaa(gt10_out_aa(T61, T62)) → part20_out_aaaa
U2_aaaa(gt10_out_aa(T61, T62)) → U3_aaaa(part20_in_gaaa(T61))
U4_aaaa(le33_out_aa(T83)) → part20_out_aaaa
U4_aaaa(le33_out_aa(T83)) → U5_aaaa(part20_in_gaaa(T83))
U7_aa(part20_out_aaaa) → qs53_out_aa
U8_aa(part20_out_aaaa) → U9_aa(qs53_in_aa)
U8_aa(part20_out_aaaa) → U10_aa(qs53_in_aa)
gt10_in_aa → U1_aa(gt10_in_aa)
gt10_in_aa → gt10_out_aa(s(0), 0)
U3_aaaa(part20_out_gaaa) → part20_out_aaaa
le33_in_aa → U6_aa(le33_in_aa)
le33_in_aa → le33_out_aa(0)
U5_aaaa(part20_out_gaaa) → part20_out_aaaa
U9_aa(qs53_out_aa) → qs53_out_aa
U10_aa(qs53_out_aa) → U11_aa(qs53_in_aa)
U10_aa(qs53_out_aa) → U12_aa(qs53_in_aa)
U1_aa(gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
part20_in_gaaa(T61) → U2_gaaa(T61, gt10_in_ga(T61))
part20_in_gaaa(T83) → U4_gaaa(T83, le33_in_ga(T83))
part20_in_gaaa(T112) → part20_out_gaaa
U6_aa(le33_out_aa(T98)) → le33_out_aa(s(T98))
U11_aa(qs53_out_aa) → qs53_out_aa
U12_aa(qs53_out_aa) → U13_aa(app65_in_aaaa)
U2_gaaa(T61, gt10_out_ga(T62)) → part20_out_gaaa
U2_gaaa(T61, gt10_out_ga(T62)) → U3_gaaa(part20_in_gaaa(T61))
U4_gaaa(T83, le33_out_ga) → part20_out_gaaa
U4_gaaa(T83, le33_out_ga) → U5_gaaa(part20_in_gaaa(T83))
U13_aa(app65_out_aaaa) → qs53_out_aa
gt10_in_ga(s(T37)) → U1_ga(gt10_in_ga(T37))
gt10_in_ga(s(0)) → gt10_out_ga(0)
U3_gaaa(part20_out_gaaa) → part20_out_gaaa
le33_in_ga(s(T98)) → U6_ga(le33_in_ga(T98))
le33_in_ga(0) → le33_out_ga
U5_gaaa(part20_out_gaaa) → part20_out_gaaa
app65_in_aaaa → U14_aaaa(app65_in_aaaa)
app65_in_aaaa → app65_out_aaaa
U1_ga(gt10_out_ga(T38)) → gt10_out_ga(s(T38))
U6_ga(le33_out_ga) → le33_out_ga
U14_aaaa(app65_out_aaaa) → app65_out_aaaa
part20_in_aaaa
qs53_in_aa
U2_aaaa(x0)
U4_aaaa(x0)
U7_aa(x0)
U8_aa(x0)
gt10_in_aa
U3_aaaa(x0)
le33_in_aa
U5_aaaa(x0)
U9_aa(x0)
U10_aa(x0)
U1_aa(x0)
part20_in_gaaa(x0)
U6_aa(x0)
U11_aa(x0)
U12_aa(x0)
U2_gaaa(x0, x1)
U4_gaaa(x0, x1)
U13_aa(x0)
gt10_in_ga(x0)
U3_gaaa(x0)
le33_in_ga(x0)
U5_gaaa(x0)
app65_in_aaaa
U1_ga(x0)
U6_ga(x0)
U14_aaaa(x0)
U19_AA(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_AA(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_AA(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → QS1_IN_AA(.(T23, T44), X9)
QS1_IN_AA(.(T22, .(T23, T24)), T9) → U19_AA(T22, T23, T24, T9, gt10_in_aa(T22, T23))
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(T106)) → le33_out_gg(0, s(T106))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T112, [], [], []) → part20_out_ggaa(T112, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(T106)) → le33_out_ga(0, s(T106))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T112, [], [], []) → part20_out_gaaa(T112, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T239, .(T240, T241)), T9) → U25_aa(T239, T240, T241, T9, le33_in_aa(T239, T240))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(T106)) → le33_out_aa(0, s(T106))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U26_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, X437, X438))
U26_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, X437, X438)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U27_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, T249, T250))
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U28_aa(T239, T240, T241, T9, qs53_in_aa(T249, X9))
qs53_in_aa(.(T131, T132), X275) → U7_aa(T131, T132, X275, part20_in_aaaa(T131, T132, X271, X272))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T112, [], [], []) → part20_out_aaaa(T112, [], [], [])
U7_aa(T131, T132, X275, part20_out_aaaa(T131, T132, X271, X272)) → qs53_out_aa(.(T131, T132), X275)
qs53_in_aa(.(T131, T132), X275) → U8_aa(T131, T132, X275, part20_in_aaaa(T131, T132, T136, T137))
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U9_aa(T131, T132, X275, qs53_in_aa(T136, X273))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T131, T132, X275, qs53_out_aa(T136, X273)) → qs53_out_aa(.(T131, T132), X275)
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U10_aa(T131, T132, X275, T137, qs53_in_aa(T136, T143))
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U11_aa(T131, T132, X275, qs53_in_aa(T137, X274))
U11_aa(T131, T132, X275, qs53_out_aa(T137, X274)) → qs53_out_aa(.(T131, T132), X275)
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U12_aa(T131, T132, X275, T143, qs53_in_aa(T137, T148))
U12_aa(T131, T132, X275, T143, qs53_out_aa(T137, T148)) → U13_aa(T131, T132, X275, app65_in_aaaa(T143, T131, T148, X275))
app65_in_aaaa(.(T171, T172), T173, T174, .(T171, X354)) → U14_aaaa(T171, T172, T173, T174, X354, app65_in_aaaa(T172, T173, T174, X354))
app65_in_aaaa([], T183, T184, .(T183, T184)) → app65_out_aaaa([], T183, T184, .(T183, T184))
U14_aaaa(T171, T172, T173, T174, X354, app65_out_aaaa(T172, T173, T174, X354)) → app65_out_aaaa(.(T171, T172), T173, T174, .(T171, X354))
U13_aa(T131, T132, X275, app65_out_aaaa(T143, T131, T148, X275)) → qs53_out_aa(.(T131, T132), X275)
U28_aa(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U29_aa(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_aa(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_aa(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
p52_in_aaaga(T45, X10, T115, T22, T9) → U16_aaaga(T45, X10, T115, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T115, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T115, T22, T9)
p52_in_aaaga(T45, T120, T115, T22, T9) → U17_aaaga(T45, T120, T115, T22, T9, qs53_in_aa(T45, T120))
U17_aaaga(T45, T120, T115, T22, T9, qs53_out_aa(T45, T120)) → U18_aaaga(T45, T120, T115, T22, T9, app54_in_agaa(T115, T22, T120, T9))
app54_in_agaa(.(T210, T211), T212, T213, .(T210, T215)) → U15_agaa(T210, T211, T212, T213, T215, app54_in_agaa(T211, T212, T213, T215))
app54_in_agaa([], T225, T226, .(T225, T226)) → app54_out_agaa([], T225, T226, .(T225, T226))
U15_agaa(T210, T211, T212, T213, T215, app54_out_agaa(T211, T212, T213, T215)) → app54_out_agaa(.(T210, T211), T212, T213, .(T210, T215))
U18_aaaga(T45, T120, T115, T22, T9, app54_out_agaa(T115, T22, T120, T9)) → p52_out_aaaga(T45, T120, T115, T22, T9)
U30_aa(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
qs1_in_aa(.(T265, []), T9) → U31_aa(T265, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T265, T9, qs99_out_a(X9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa(.(T265, []), T9) → U32_aa(T265, T9, qs99_in_a(T268))
U32_aa(T265, T9, qs99_out_a(T268)) → U33_aa(T265, T9, qs99_in_a(X10))
U33_aa(T265, T9, qs99_out_a(X10)) → qs1_out_aa(.(T265, []), T9)
U32_aa(T265, T9, qs99_out_a(T268)) → U34_aa(T265, T9, T268, qs99_in_a(T273))
U34_aa(T265, T9, T268, qs99_out_a(T273)) → U35_aa(T265, T9, app54_in_gaga(T268, T265, T273, T9))
app54_in_gaga(.(T210, T211), T212, T213, .(T210, T215)) → U15_gaga(T210, T211, T212, T213, T215, app54_in_gaga(T211, T212, T213, T215))
app54_in_gaga([], T225, T226, .(T225, T226)) → app54_out_gaga([], T225, T226, .(T225, T226))
U15_gaga(T210, T211, T212, T213, T215, app54_out_gaga(T211, T212, T213, T215)) → app54_out_gaga(.(T210, T211), T212, T213, .(T210, T215))
U35_aa(T265, T9, app54_out_gaga(T268, T265, T273, T9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T239, .(T240, T241)), T9) → U25_ga(T239, T240, T241, T9, le33_in_gg(T239, T240))
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U26_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, X437, X438))
U26_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, X437, X438)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U27_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, T249, T250))
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U28_ga(T239, T240, T241, T9, qs53_in_aa(T249, X9))
U28_ga(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U29_ga(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_ga(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_ga(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
U30_ga(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
qs1_in_ga(.(T265, []), T9) → U31_ga(T265, T9, qs99_in_a(X9))
U31_ga(T265, T9, qs99_out_a(X9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga(.(T265, []), T9) → U32_ga(T265, T9, qs99_in_a(T268))
U32_ga(T265, T9, qs99_out_a(T268)) → U33_ga(T265, T9, qs99_in_a(X10))
U33_ga(T265, T9, qs99_out_a(X10)) → qs1_out_ga(.(T265, []), T9)
U32_ga(T265, T9, qs99_out_a(T268)) → U34_ga(T265, T9, T268, qs99_in_a(T273))
U34_ga(T265, T9, T268, qs99_out_a(T273)) → U35_ga(T265, T9, app54_in_ggga(T268, T265, T273, T9))
app54_in_ggga(.(T210, T211), T212, T213, .(T210, T215)) → U15_ggga(T210, T211, T212, T213, T215, app54_in_ggga(T211, T212, T213, T215))
app54_in_ggga([], T225, T226, .(T225, T226)) → app54_out_ggga([], T225, T226, .(T225, T226))
U15_ggga(T210, T211, T212, T213, T215, app54_out_ggga(T211, T212, T213, T215)) → app54_out_ggga(.(T210, T211), T212, T213, .(T210, T215))
U35_ga(T265, T9, app54_out_ggga(T268, T265, T273, T9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
U19_AA(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_AA(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_AA(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → QS1_IN_AA(.(T23, T44), X9)
QS1_IN_AA(.(T22, .(T23, T24)), T9) → U19_AA(T22, T23, T24, T9, gt10_in_aa(T22, T23))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
part20_in_gaaa(T112, [], [], []) → part20_out_gaaa(T112, [], [], [])
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(T106)) → le33_out_ga(0, s(T106))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U19_AA(gt10_out_aa(T22, T23)) → U21_AA(T22, part20_in_gaaa(T22))
U21_AA(T22, part20_out_gaaa) → QS1_IN_AA
QS1_IN_AA → U19_AA(gt10_in_aa)
part20_in_gaaa(T61) → U2_gaaa(T61, gt10_in_ga(T61))
part20_in_gaaa(T83) → U4_gaaa(T83, le33_in_ga(T83))
part20_in_gaaa(T112) → part20_out_gaaa
gt10_in_aa → U1_aa(gt10_in_aa)
gt10_in_aa → gt10_out_aa(s(0), 0)
U2_gaaa(T61, gt10_out_ga(T62)) → part20_out_gaaa
U2_gaaa(T61, gt10_out_ga(T62)) → U3_gaaa(part20_in_gaaa(T61))
U4_gaaa(T83, le33_out_ga) → part20_out_gaaa
U4_gaaa(T83, le33_out_ga) → U5_gaaa(part20_in_gaaa(T83))
U1_aa(gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
gt10_in_ga(s(T37)) → U1_ga(gt10_in_ga(T37))
gt10_in_ga(s(0)) → gt10_out_ga(0)
U3_gaaa(part20_out_gaaa) → part20_out_gaaa
le33_in_ga(s(T98)) → U6_ga(le33_in_ga(T98))
le33_in_ga(0) → le33_out_ga
U5_gaaa(part20_out_gaaa) → part20_out_gaaa
U1_ga(gt10_out_ga(T38)) → gt10_out_ga(s(T38))
U6_ga(le33_out_ga) → le33_out_ga
part20_in_gaaa(x0)
gt10_in_aa
U2_gaaa(x0, x1)
U4_gaaa(x0, x1)
U1_aa(x0)
gt10_in_ga(x0)
U3_gaaa(x0)
le33_in_ga(x0)
U5_gaaa(x0)
U1_ga(x0)
U6_ga(x0)
U19_AA(gt10_out_aa(x0, y1)) → U21_AA(x0, U2_gaaa(x0, gt10_in_ga(x0)))
U19_AA(gt10_out_aa(x0, y1)) → U21_AA(x0, U4_gaaa(x0, le33_in_ga(x0)))
U19_AA(gt10_out_aa(x0, y1)) → U21_AA(x0, part20_out_gaaa)
U21_AA(T22, part20_out_gaaa) → QS1_IN_AA
QS1_IN_AA → U19_AA(gt10_in_aa)
U19_AA(gt10_out_aa(x0, y1)) → U21_AA(x0, U2_gaaa(x0, gt10_in_ga(x0)))
U19_AA(gt10_out_aa(x0, y1)) → U21_AA(x0, U4_gaaa(x0, le33_in_ga(x0)))
U19_AA(gt10_out_aa(x0, y1)) → U21_AA(x0, part20_out_gaaa)
part20_in_gaaa(T61) → U2_gaaa(T61, gt10_in_ga(T61))
part20_in_gaaa(T83) → U4_gaaa(T83, le33_in_ga(T83))
part20_in_gaaa(T112) → part20_out_gaaa
gt10_in_aa → U1_aa(gt10_in_aa)
gt10_in_aa → gt10_out_aa(s(0), 0)
U2_gaaa(T61, gt10_out_ga(T62)) → part20_out_gaaa
U2_gaaa(T61, gt10_out_ga(T62)) → U3_gaaa(part20_in_gaaa(T61))
U4_gaaa(T83, le33_out_ga) → part20_out_gaaa
U4_gaaa(T83, le33_out_ga) → U5_gaaa(part20_in_gaaa(T83))
U1_aa(gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
gt10_in_ga(s(T37)) → U1_ga(gt10_in_ga(T37))
gt10_in_ga(s(0)) → gt10_out_ga(0)
U3_gaaa(part20_out_gaaa) → part20_out_gaaa
le33_in_ga(s(T98)) → U6_ga(le33_in_ga(T98))
le33_in_ga(0) → le33_out_ga
U5_gaaa(part20_out_gaaa) → part20_out_gaaa
U1_ga(gt10_out_ga(T38)) → gt10_out_ga(s(T38))
U6_ga(le33_out_ga) → le33_out_ga
part20_in_gaaa(x0)
gt10_in_aa
U2_gaaa(x0, x1)
U4_gaaa(x0, x1)
U1_aa(x0)
gt10_in_ga(x0)
U3_gaaa(x0)
le33_in_ga(x0)
U5_gaaa(x0)
U1_ga(x0)
U6_ga(x0)
QS1_IN_AA → U19_AA(U1_aa(gt10_in_aa))
QS1_IN_AA → U19_AA(gt10_out_aa(s(0), 0))
U21_AA(T22, part20_out_gaaa) → QS1_IN_AA
U19_AA(gt10_out_aa(x0, y1)) → U21_AA(x0, U2_gaaa(x0, gt10_in_ga(x0)))
U19_AA(gt10_out_aa(x0, y1)) → U21_AA(x0, U4_gaaa(x0, le33_in_ga(x0)))
U19_AA(gt10_out_aa(x0, y1)) → U21_AA(x0, part20_out_gaaa)
QS1_IN_AA → U19_AA(U1_aa(gt10_in_aa))
QS1_IN_AA → U19_AA(gt10_out_aa(s(0), 0))
part20_in_gaaa(T61) → U2_gaaa(T61, gt10_in_ga(T61))
part20_in_gaaa(T83) → U4_gaaa(T83, le33_in_ga(T83))
part20_in_gaaa(T112) → part20_out_gaaa
gt10_in_aa → U1_aa(gt10_in_aa)
gt10_in_aa → gt10_out_aa(s(0), 0)
U2_gaaa(T61, gt10_out_ga(T62)) → part20_out_gaaa
U2_gaaa(T61, gt10_out_ga(T62)) → U3_gaaa(part20_in_gaaa(T61))
U4_gaaa(T83, le33_out_ga) → part20_out_gaaa
U4_gaaa(T83, le33_out_ga) → U5_gaaa(part20_in_gaaa(T83))
U1_aa(gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
gt10_in_ga(s(T37)) → U1_ga(gt10_in_ga(T37))
gt10_in_ga(s(0)) → gt10_out_ga(0)
U3_gaaa(part20_out_gaaa) → part20_out_gaaa
le33_in_ga(s(T98)) → U6_ga(le33_in_ga(T98))
le33_in_ga(0) → le33_out_ga
U5_gaaa(part20_out_gaaa) → part20_out_gaaa
U1_ga(gt10_out_ga(T38)) → gt10_out_ga(s(T38))
U6_ga(le33_out_ga) → le33_out_ga
part20_in_gaaa(x0)
gt10_in_aa
U2_gaaa(x0, x1)
U4_gaaa(x0, x1)
U1_aa(x0)
gt10_in_ga(x0)
U3_gaaa(x0)
le33_in_ga(x0)
U5_gaaa(x0)
U1_ga(x0)
U6_ga(x0)
LE33_IN_GG(s(T98), s(T99)) → LE33_IN_GG(T98, T99)
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(T106)) → le33_out_gg(0, s(T106))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T112, [], [], []) → part20_out_ggaa(T112, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(T106)) → le33_out_ga(0, s(T106))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T112, [], [], []) → part20_out_gaaa(T112, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T239, .(T240, T241)), T9) → U25_aa(T239, T240, T241, T9, le33_in_aa(T239, T240))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(T106)) → le33_out_aa(0, s(T106))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U26_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, X437, X438))
U26_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, X437, X438)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U27_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, T249, T250))
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U28_aa(T239, T240, T241, T9, qs53_in_aa(T249, X9))
qs53_in_aa(.(T131, T132), X275) → U7_aa(T131, T132, X275, part20_in_aaaa(T131, T132, X271, X272))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T112, [], [], []) → part20_out_aaaa(T112, [], [], [])
U7_aa(T131, T132, X275, part20_out_aaaa(T131, T132, X271, X272)) → qs53_out_aa(.(T131, T132), X275)
qs53_in_aa(.(T131, T132), X275) → U8_aa(T131, T132, X275, part20_in_aaaa(T131, T132, T136, T137))
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U9_aa(T131, T132, X275, qs53_in_aa(T136, X273))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T131, T132, X275, qs53_out_aa(T136, X273)) → qs53_out_aa(.(T131, T132), X275)
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U10_aa(T131, T132, X275, T137, qs53_in_aa(T136, T143))
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U11_aa(T131, T132, X275, qs53_in_aa(T137, X274))
U11_aa(T131, T132, X275, qs53_out_aa(T137, X274)) → qs53_out_aa(.(T131, T132), X275)
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U12_aa(T131, T132, X275, T143, qs53_in_aa(T137, T148))
U12_aa(T131, T132, X275, T143, qs53_out_aa(T137, T148)) → U13_aa(T131, T132, X275, app65_in_aaaa(T143, T131, T148, X275))
app65_in_aaaa(.(T171, T172), T173, T174, .(T171, X354)) → U14_aaaa(T171, T172, T173, T174, X354, app65_in_aaaa(T172, T173, T174, X354))
app65_in_aaaa([], T183, T184, .(T183, T184)) → app65_out_aaaa([], T183, T184, .(T183, T184))
U14_aaaa(T171, T172, T173, T174, X354, app65_out_aaaa(T172, T173, T174, X354)) → app65_out_aaaa(.(T171, T172), T173, T174, .(T171, X354))
U13_aa(T131, T132, X275, app65_out_aaaa(T143, T131, T148, X275)) → qs53_out_aa(.(T131, T132), X275)
U28_aa(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U29_aa(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_aa(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_aa(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
p52_in_aaaga(T45, X10, T115, T22, T9) → U16_aaaga(T45, X10, T115, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T115, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T115, T22, T9)
p52_in_aaaga(T45, T120, T115, T22, T9) → U17_aaaga(T45, T120, T115, T22, T9, qs53_in_aa(T45, T120))
U17_aaaga(T45, T120, T115, T22, T9, qs53_out_aa(T45, T120)) → U18_aaaga(T45, T120, T115, T22, T9, app54_in_agaa(T115, T22, T120, T9))
app54_in_agaa(.(T210, T211), T212, T213, .(T210, T215)) → U15_agaa(T210, T211, T212, T213, T215, app54_in_agaa(T211, T212, T213, T215))
app54_in_agaa([], T225, T226, .(T225, T226)) → app54_out_agaa([], T225, T226, .(T225, T226))
U15_agaa(T210, T211, T212, T213, T215, app54_out_agaa(T211, T212, T213, T215)) → app54_out_agaa(.(T210, T211), T212, T213, .(T210, T215))
U18_aaaga(T45, T120, T115, T22, T9, app54_out_agaa(T115, T22, T120, T9)) → p52_out_aaaga(T45, T120, T115, T22, T9)
U30_aa(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
qs1_in_aa(.(T265, []), T9) → U31_aa(T265, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T265, T9, qs99_out_a(X9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa(.(T265, []), T9) → U32_aa(T265, T9, qs99_in_a(T268))
U32_aa(T265, T9, qs99_out_a(T268)) → U33_aa(T265, T9, qs99_in_a(X10))
U33_aa(T265, T9, qs99_out_a(X10)) → qs1_out_aa(.(T265, []), T9)
U32_aa(T265, T9, qs99_out_a(T268)) → U34_aa(T265, T9, T268, qs99_in_a(T273))
U34_aa(T265, T9, T268, qs99_out_a(T273)) → U35_aa(T265, T9, app54_in_gaga(T268, T265, T273, T9))
app54_in_gaga(.(T210, T211), T212, T213, .(T210, T215)) → U15_gaga(T210, T211, T212, T213, T215, app54_in_gaga(T211, T212, T213, T215))
app54_in_gaga([], T225, T226, .(T225, T226)) → app54_out_gaga([], T225, T226, .(T225, T226))
U15_gaga(T210, T211, T212, T213, T215, app54_out_gaga(T211, T212, T213, T215)) → app54_out_gaga(.(T210, T211), T212, T213, .(T210, T215))
U35_aa(T265, T9, app54_out_gaga(T268, T265, T273, T9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T239, .(T240, T241)), T9) → U25_ga(T239, T240, T241, T9, le33_in_gg(T239, T240))
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U26_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, X437, X438))
U26_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, X437, X438)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U27_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, T249, T250))
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U28_ga(T239, T240, T241, T9, qs53_in_aa(T249, X9))
U28_ga(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U29_ga(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_ga(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_ga(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
U30_ga(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
qs1_in_ga(.(T265, []), T9) → U31_ga(T265, T9, qs99_in_a(X9))
U31_ga(T265, T9, qs99_out_a(X9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga(.(T265, []), T9) → U32_ga(T265, T9, qs99_in_a(T268))
U32_ga(T265, T9, qs99_out_a(T268)) → U33_ga(T265, T9, qs99_in_a(X10))
U33_ga(T265, T9, qs99_out_a(X10)) → qs1_out_ga(.(T265, []), T9)
U32_ga(T265, T9, qs99_out_a(T268)) → U34_ga(T265, T9, T268, qs99_in_a(T273))
U34_ga(T265, T9, T268, qs99_out_a(T273)) → U35_ga(T265, T9, app54_in_ggga(T268, T265, T273, T9))
app54_in_ggga(.(T210, T211), T212, T213, .(T210, T215)) → U15_ggga(T210, T211, T212, T213, T215, app54_in_ggga(T211, T212, T213, T215))
app54_in_ggga([], T225, T226, .(T225, T226)) → app54_out_ggga([], T225, T226, .(T225, T226))
U15_ggga(T210, T211, T212, T213, T215, app54_out_ggga(T211, T212, T213, T215)) → app54_out_ggga(.(T210, T211), T212, T213, .(T210, T215))
U35_ga(T265, T9, app54_out_ggga(T268, T265, T273, T9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
LE33_IN_GG(s(T98), s(T99)) → LE33_IN_GG(T98, T99)
LE33_IN_GG(s(T98), s(T99)) → LE33_IN_GG(T98, T99)
From the DPs we obtained the following set of size-change graphs:
GT10_IN_GG(s(T37), s(T38)) → GT10_IN_GG(T37, T38)
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(T106)) → le33_out_gg(0, s(T106))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T112, [], [], []) → part20_out_ggaa(T112, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(T106)) → le33_out_ga(0, s(T106))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T112, [], [], []) → part20_out_gaaa(T112, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T239, .(T240, T241)), T9) → U25_aa(T239, T240, T241, T9, le33_in_aa(T239, T240))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(T106)) → le33_out_aa(0, s(T106))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U26_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, X437, X438))
U26_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, X437, X438)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U27_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, T249, T250))
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U28_aa(T239, T240, T241, T9, qs53_in_aa(T249, X9))
qs53_in_aa(.(T131, T132), X275) → U7_aa(T131, T132, X275, part20_in_aaaa(T131, T132, X271, X272))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T112, [], [], []) → part20_out_aaaa(T112, [], [], [])
U7_aa(T131, T132, X275, part20_out_aaaa(T131, T132, X271, X272)) → qs53_out_aa(.(T131, T132), X275)
qs53_in_aa(.(T131, T132), X275) → U8_aa(T131, T132, X275, part20_in_aaaa(T131, T132, T136, T137))
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U9_aa(T131, T132, X275, qs53_in_aa(T136, X273))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T131, T132, X275, qs53_out_aa(T136, X273)) → qs53_out_aa(.(T131, T132), X275)
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U10_aa(T131, T132, X275, T137, qs53_in_aa(T136, T143))
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U11_aa(T131, T132, X275, qs53_in_aa(T137, X274))
U11_aa(T131, T132, X275, qs53_out_aa(T137, X274)) → qs53_out_aa(.(T131, T132), X275)
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U12_aa(T131, T132, X275, T143, qs53_in_aa(T137, T148))
U12_aa(T131, T132, X275, T143, qs53_out_aa(T137, T148)) → U13_aa(T131, T132, X275, app65_in_aaaa(T143, T131, T148, X275))
app65_in_aaaa(.(T171, T172), T173, T174, .(T171, X354)) → U14_aaaa(T171, T172, T173, T174, X354, app65_in_aaaa(T172, T173, T174, X354))
app65_in_aaaa([], T183, T184, .(T183, T184)) → app65_out_aaaa([], T183, T184, .(T183, T184))
U14_aaaa(T171, T172, T173, T174, X354, app65_out_aaaa(T172, T173, T174, X354)) → app65_out_aaaa(.(T171, T172), T173, T174, .(T171, X354))
U13_aa(T131, T132, X275, app65_out_aaaa(T143, T131, T148, X275)) → qs53_out_aa(.(T131, T132), X275)
U28_aa(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U29_aa(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_aa(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_aa(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
p52_in_aaaga(T45, X10, T115, T22, T9) → U16_aaaga(T45, X10, T115, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T115, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T115, T22, T9)
p52_in_aaaga(T45, T120, T115, T22, T9) → U17_aaaga(T45, T120, T115, T22, T9, qs53_in_aa(T45, T120))
U17_aaaga(T45, T120, T115, T22, T9, qs53_out_aa(T45, T120)) → U18_aaaga(T45, T120, T115, T22, T9, app54_in_agaa(T115, T22, T120, T9))
app54_in_agaa(.(T210, T211), T212, T213, .(T210, T215)) → U15_agaa(T210, T211, T212, T213, T215, app54_in_agaa(T211, T212, T213, T215))
app54_in_agaa([], T225, T226, .(T225, T226)) → app54_out_agaa([], T225, T226, .(T225, T226))
U15_agaa(T210, T211, T212, T213, T215, app54_out_agaa(T211, T212, T213, T215)) → app54_out_agaa(.(T210, T211), T212, T213, .(T210, T215))
U18_aaaga(T45, T120, T115, T22, T9, app54_out_agaa(T115, T22, T120, T9)) → p52_out_aaaga(T45, T120, T115, T22, T9)
U30_aa(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
qs1_in_aa(.(T265, []), T9) → U31_aa(T265, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T265, T9, qs99_out_a(X9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa(.(T265, []), T9) → U32_aa(T265, T9, qs99_in_a(T268))
U32_aa(T265, T9, qs99_out_a(T268)) → U33_aa(T265, T9, qs99_in_a(X10))
U33_aa(T265, T9, qs99_out_a(X10)) → qs1_out_aa(.(T265, []), T9)
U32_aa(T265, T9, qs99_out_a(T268)) → U34_aa(T265, T9, T268, qs99_in_a(T273))
U34_aa(T265, T9, T268, qs99_out_a(T273)) → U35_aa(T265, T9, app54_in_gaga(T268, T265, T273, T9))
app54_in_gaga(.(T210, T211), T212, T213, .(T210, T215)) → U15_gaga(T210, T211, T212, T213, T215, app54_in_gaga(T211, T212, T213, T215))
app54_in_gaga([], T225, T226, .(T225, T226)) → app54_out_gaga([], T225, T226, .(T225, T226))
U15_gaga(T210, T211, T212, T213, T215, app54_out_gaga(T211, T212, T213, T215)) → app54_out_gaga(.(T210, T211), T212, T213, .(T210, T215))
U35_aa(T265, T9, app54_out_gaga(T268, T265, T273, T9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T239, .(T240, T241)), T9) → U25_ga(T239, T240, T241, T9, le33_in_gg(T239, T240))
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U26_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, X437, X438))
U26_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, X437, X438)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U27_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, T249, T250))
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U28_ga(T239, T240, T241, T9, qs53_in_aa(T249, X9))
U28_ga(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U29_ga(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_ga(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_ga(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
U30_ga(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
qs1_in_ga(.(T265, []), T9) → U31_ga(T265, T9, qs99_in_a(X9))
U31_ga(T265, T9, qs99_out_a(X9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga(.(T265, []), T9) → U32_ga(T265, T9, qs99_in_a(T268))
U32_ga(T265, T9, qs99_out_a(T268)) → U33_ga(T265, T9, qs99_in_a(X10))
U33_ga(T265, T9, qs99_out_a(X10)) → qs1_out_ga(.(T265, []), T9)
U32_ga(T265, T9, qs99_out_a(T268)) → U34_ga(T265, T9, T268, qs99_in_a(T273))
U34_ga(T265, T9, T268, qs99_out_a(T273)) → U35_ga(T265, T9, app54_in_ggga(T268, T265, T273, T9))
app54_in_ggga(.(T210, T211), T212, T213, .(T210, T215)) → U15_ggga(T210, T211, T212, T213, T215, app54_in_ggga(T211, T212, T213, T215))
app54_in_ggga([], T225, T226, .(T225, T226)) → app54_out_ggga([], T225, T226, .(T225, T226))
U15_ggga(T210, T211, T212, T213, T215, app54_out_ggga(T211, T212, T213, T215)) → app54_out_ggga(.(T210, T211), T212, T213, .(T210, T215))
U35_ga(T265, T9, app54_out_ggga(T268, T265, T273, T9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
GT10_IN_GG(s(T37), s(T38)) → GT10_IN_GG(T37, T38)
GT10_IN_GG(s(T37), s(T38)) → GT10_IN_GG(T37, T38)
From the DPs we obtained the following set of size-change graphs:
PART20_IN_GGAA(T61, .(T62, T63), .(T62, X119), X120) → U2_GGAA(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_GGAA(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → PART20_IN_GGAA(T61, T63, X119, X120)
PART20_IN_GGAA(T83, .(T84, T85), X170, .(T84, X171)) → U4_GGAA(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
U4_GGAA(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → PART20_IN_GGAA(T83, T85, X170, X171)
qs1_in_ga(.(T22, .(T23, T24)), T9) → U19_ga(T22, T23, T24, T9, gt10_in_gg(T22, T23))
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U20_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, X47, X48))
part20_in_ggaa(T61, .(T62, T63), .(T62, X119), X120) → U2_ggaa(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U2_ggaa(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → U3_ggaa(T61, T62, T63, X119, X120, part20_in_ggaa(T61, T63, X119, X120))
part20_in_ggaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_ggaa(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(T106)) → le33_out_gg(0, s(T106))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U4_ggaa(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → U5_ggaa(T83, T84, T85, X170, X171, part20_in_ggaa(T83, T85, X170, X171))
part20_in_ggaa(T112, [], [], []) → part20_out_ggaa(T112, [], [], [])
U5_ggaa(T83, T84, T85, X170, X171, part20_out_ggaa(T83, T85, X170, X171)) → part20_out_ggaa(T83, .(T84, T85), X170, .(T84, X171))
U3_ggaa(T61, T62, T63, X119, X120, part20_out_ggaa(T61, T63, X119, X120)) → part20_out_ggaa(T61, .(T62, T63), .(T62, X119), X120)
U20_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, X47, X48)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U19_ga(T22, T23, T24, T9, gt10_out_gg(T22, T23)) → U21_ga(T22, T23, T24, T9, part20_in_ggaa(T22, T24, T44, T45))
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U22_ga(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T22, .(T23, T24)), T9) → U19_aa(T22, T23, T24, T9, gt10_in_aa(T22, T23))
gt10_in_aa(s(T37), s(T38)) → U1_aa(T37, T38, gt10_in_aa(T37, T38))
gt10_in_aa(s(0), 0) → gt10_out_aa(s(0), 0)
U1_aa(T37, T38, gt10_out_aa(T37, T38)) → gt10_out_aa(s(T37), s(T38))
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U20_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, X47, X48))
part20_in_gaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_gaaa(T61, T62, T63, X119, X120, gt10_in_ga(T61, T62))
gt10_in_ga(s(T37), s(T38)) → U1_ga(T37, T38, gt10_in_ga(T37, T38))
gt10_in_ga(s(0), 0) → gt10_out_ga(s(0), 0)
U1_ga(T37, T38, gt10_out_ga(T37, T38)) → gt10_out_ga(s(T37), s(T38))
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_gaaa(T61, T62, T63, X119, X120, gt10_out_ga(T61, T62)) → U3_gaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
part20_in_gaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_gaaa(T83, T84, T85, X170, X171, le33_in_ga(T83, T84))
le33_in_ga(s(T98), s(T99)) → U6_ga(T98, T99, le33_in_ga(T98, T99))
le33_in_ga(0, s(T106)) → le33_out_ga(0, s(T106))
le33_in_ga(0, 0) → le33_out_ga(0, 0)
U6_ga(T98, T99, le33_out_ga(T98, T99)) → le33_out_ga(s(T98), s(T99))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_gaaa(T83, T84, T85, X170, X171, le33_out_ga(T83, T84)) → U5_gaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
part20_in_gaaa(T112, [], [], []) → part20_out_gaaa(T112, [], [], [])
U5_gaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_gaaa(T83, .(T84, T85), X170, .(T84, X171))
U3_gaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_gaaa(T61, .(T62, T63), .(T62, X119), X120)
U20_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, X47, X48)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U19_aa(T22, T23, T24, T9, gt10_out_aa(T22, T23)) → U21_aa(T22, T23, T24, T9, part20_in_gaaa(T22, T24, T44, T45))
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U22_aa(T22, T23, T24, T9, qs1_in_aa(.(T23, T44), X9))
qs1_in_aa(.(T239, .(T240, T241)), T9) → U25_aa(T239, T240, T241, T9, le33_in_aa(T239, T240))
le33_in_aa(s(T98), s(T99)) → U6_aa(T98, T99, le33_in_aa(T98, T99))
le33_in_aa(0, s(T106)) → le33_out_aa(0, s(T106))
le33_in_aa(0, 0) → le33_out_aa(0, 0)
U6_aa(T98, T99, le33_out_aa(T98, T99)) → le33_out_aa(s(T98), s(T99))
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U26_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, X437, X438))
U26_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, X437, X438)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U25_aa(T239, T240, T241, T9, le33_out_aa(T239, T240)) → U27_aa(T239, T240, T241, T9, part20_in_gaaa(T239, T241, T249, T250))
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U28_aa(T239, T240, T241, T9, qs53_in_aa(T249, X9))
qs53_in_aa(.(T131, T132), X275) → U7_aa(T131, T132, X275, part20_in_aaaa(T131, T132, X271, X272))
part20_in_aaaa(T61, .(T62, T63), .(T62, X119), X120) → U2_aaaa(T61, T62, T63, X119, X120, gt10_in_aa(T61, T62))
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
U2_aaaa(T61, T62, T63, X119, X120, gt10_out_aa(T61, T62)) → U3_aaaa(T61, T62, T63, X119, X120, part20_in_gaaa(T61, T63, X119, X120))
U3_aaaa(T61, T62, T63, X119, X120, part20_out_gaaa(T61, T63, X119, X120)) → part20_out_aaaa(T61, .(T62, T63), .(T62, X119), X120)
part20_in_aaaa(T83, .(T84, T85), X170, .(T84, X171)) → U4_aaaa(T83, T84, T85, X170, X171, le33_in_aa(T83, T84))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
U4_aaaa(T83, T84, T85, X170, X171, le33_out_aa(T83, T84)) → U5_aaaa(T83, T84, T85, X170, X171, part20_in_gaaa(T83, T85, X170, X171))
U5_aaaa(T83, T84, T85, X170, X171, part20_out_gaaa(T83, T85, X170, X171)) → part20_out_aaaa(T83, .(T84, T85), X170, .(T84, X171))
part20_in_aaaa(T112, [], [], []) → part20_out_aaaa(T112, [], [], [])
U7_aa(T131, T132, X275, part20_out_aaaa(T131, T132, X271, X272)) → qs53_out_aa(.(T131, T132), X275)
qs53_in_aa(.(T131, T132), X275) → U8_aa(T131, T132, X275, part20_in_aaaa(T131, T132, T136, T137))
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U9_aa(T131, T132, X275, qs53_in_aa(T136, X273))
qs53_in_aa([], []) → qs53_out_aa([], [])
U9_aa(T131, T132, X275, qs53_out_aa(T136, X273)) → qs53_out_aa(.(T131, T132), X275)
U8_aa(T131, T132, X275, part20_out_aaaa(T131, T132, T136, T137)) → U10_aa(T131, T132, X275, T137, qs53_in_aa(T136, T143))
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U11_aa(T131, T132, X275, qs53_in_aa(T137, X274))
U11_aa(T131, T132, X275, qs53_out_aa(T137, X274)) → qs53_out_aa(.(T131, T132), X275)
U10_aa(T131, T132, X275, T137, qs53_out_aa(T136, T143)) → U12_aa(T131, T132, X275, T143, qs53_in_aa(T137, T148))
U12_aa(T131, T132, X275, T143, qs53_out_aa(T137, T148)) → U13_aa(T131, T132, X275, app65_in_aaaa(T143, T131, T148, X275))
app65_in_aaaa(.(T171, T172), T173, T174, .(T171, X354)) → U14_aaaa(T171, T172, T173, T174, X354, app65_in_aaaa(T172, T173, T174, X354))
app65_in_aaaa([], T183, T184, .(T183, T184)) → app65_out_aaaa([], T183, T184, .(T183, T184))
U14_aaaa(T171, T172, T173, T174, X354, app65_out_aaaa(T172, T173, T174, X354)) → app65_out_aaaa(.(T171, T172), T173, T174, .(T171, X354))
U13_aa(T131, T132, X275, app65_out_aaaa(T143, T131, T148, X275)) → qs53_out_aa(.(T131, T132), X275)
U28_aa(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
U27_aa(T239, T240, T241, T9, part20_out_gaaa(T239, T241, T249, T250)) → U29_aa(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_aa(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_aa(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
p52_in_aaaga(T45, X10, T115, T22, T9) → U16_aaaga(T45, X10, T115, T22, T9, qs53_in_aa(T45, X10))
U16_aaaga(T45, X10, T115, T22, T9, qs53_out_aa(T45, X10)) → p52_out_aaaga(T45, X10, T115, T22, T9)
p52_in_aaaga(T45, T120, T115, T22, T9) → U17_aaaga(T45, T120, T115, T22, T9, qs53_in_aa(T45, T120))
U17_aaaga(T45, T120, T115, T22, T9, qs53_out_aa(T45, T120)) → U18_aaaga(T45, T120, T115, T22, T9, app54_in_agaa(T115, T22, T120, T9))
app54_in_agaa(.(T210, T211), T212, T213, .(T210, T215)) → U15_agaa(T210, T211, T212, T213, T215, app54_in_agaa(T211, T212, T213, T215))
app54_in_agaa([], T225, T226, .(T225, T226)) → app54_out_agaa([], T225, T226, .(T225, T226))
U15_agaa(T210, T211, T212, T213, T215, app54_out_agaa(T211, T212, T213, T215)) → app54_out_agaa(.(T210, T211), T212, T213, .(T210, T215))
U18_aaaga(T45, T120, T115, T22, T9, app54_out_agaa(T115, T22, T120, T9)) → p52_out_aaaga(T45, T120, T115, T22, T9)
U30_aa(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_aa(.(T239, .(T240, T241)), T9)
qs1_in_aa(.(T265, []), T9) → U31_aa(T265, T9, qs99_in_a(X9))
qs99_in_a([]) → qs99_out_a([])
U31_aa(T265, T9, qs99_out_a(X9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa(.(T265, []), T9) → U32_aa(T265, T9, qs99_in_a(T268))
U32_aa(T265, T9, qs99_out_a(T268)) → U33_aa(T265, T9, qs99_in_a(X10))
U33_aa(T265, T9, qs99_out_a(X10)) → qs1_out_aa(.(T265, []), T9)
U32_aa(T265, T9, qs99_out_a(T268)) → U34_aa(T265, T9, T268, qs99_in_a(T273))
U34_aa(T265, T9, T268, qs99_out_a(T273)) → U35_aa(T265, T9, app54_in_gaga(T268, T265, T273, T9))
app54_in_gaga(.(T210, T211), T212, T213, .(T210, T215)) → U15_gaga(T210, T211, T212, T213, T215, app54_in_gaga(T211, T212, T213, T215))
app54_in_gaga([], T225, T226, .(T225, T226)) → app54_out_gaga([], T225, T226, .(T225, T226))
U15_gaga(T210, T211, T212, T213, T215, app54_out_gaga(T211, T212, T213, T215)) → app54_out_gaga(.(T210, T211), T212, T213, .(T210, T215))
U35_aa(T265, T9, app54_out_gaga(T268, T265, T273, T9)) → qs1_out_aa(.(T265, []), T9)
qs1_in_aa([], []) → qs1_out_aa([], [])
U22_aa(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U21_aa(T22, T23, T24, T9, part20_out_gaaa(T22, T24, T44, T45)) → U23_aa(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_aa(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_aa(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_aa(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_aa(.(T22, .(T23, T24)), T9)
U22_ga(T22, T23, T24, T9, qs1_out_aa(.(T23, T44), X9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
U21_ga(T22, T23, T24, T9, part20_out_ggaa(T22, T24, T44, T45)) → U23_ga(T22, T23, T24, T9, T45, qs1_in_aa(.(T23, T44), T115))
U23_ga(T22, T23, T24, T9, T45, qs1_out_aa(.(T23, T44), T115)) → U24_ga(T22, T23, T24, T9, p52_in_aaaga(T45, X10, T115, T22, T9))
U24_ga(T22, T23, T24, T9, p52_out_aaaga(T45, X10, T115, T22, T9)) → qs1_out_ga(.(T22, .(T23, T24)), T9)
qs1_in_ga(.(T239, .(T240, T241)), T9) → U25_ga(T239, T240, T241, T9, le33_in_gg(T239, T240))
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U26_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, X437, X438))
U26_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, X437, X438)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U25_ga(T239, T240, T241, T9, le33_out_gg(T239, T240)) → U27_ga(T239, T240, T241, T9, part20_in_ggaa(T239, T241, T249, T250))
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U28_ga(T239, T240, T241, T9, qs53_in_aa(T249, X9))
U28_ga(T239, T240, T241, T9, qs53_out_aa(T249, X9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
U27_ga(T239, T240, T241, T9, part20_out_ggaa(T239, T241, T249, T250)) → U29_ga(T239, T240, T241, T9, T250, qs53_in_aa(T249, T256))
U29_ga(T239, T240, T241, T9, T250, qs53_out_aa(T249, T256)) → U30_ga(T239, T240, T241, T9, p52_in_aaaga(.(T240, T250), X10, T256, T239, T9))
U30_ga(T239, T240, T241, T9, p52_out_aaaga(.(T240, T250), X10, T256, T239, T9)) → qs1_out_ga(.(T239, .(T240, T241)), T9)
qs1_in_ga(.(T265, []), T9) → U31_ga(T265, T9, qs99_in_a(X9))
U31_ga(T265, T9, qs99_out_a(X9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga(.(T265, []), T9) → U32_ga(T265, T9, qs99_in_a(T268))
U32_ga(T265, T9, qs99_out_a(T268)) → U33_ga(T265, T9, qs99_in_a(X10))
U33_ga(T265, T9, qs99_out_a(X10)) → qs1_out_ga(.(T265, []), T9)
U32_ga(T265, T9, qs99_out_a(T268)) → U34_ga(T265, T9, T268, qs99_in_a(T273))
U34_ga(T265, T9, T268, qs99_out_a(T273)) → U35_ga(T265, T9, app54_in_ggga(T268, T265, T273, T9))
app54_in_ggga(.(T210, T211), T212, T213, .(T210, T215)) → U15_ggga(T210, T211, T212, T213, T215, app54_in_ggga(T211, T212, T213, T215))
app54_in_ggga([], T225, T226, .(T225, T226)) → app54_out_ggga([], T225, T226, .(T225, T226))
U15_ggga(T210, T211, T212, T213, T215, app54_out_ggga(T211, T212, T213, T215)) → app54_out_ggga(.(T210, T211), T212, T213, .(T210, T215))
U35_ga(T265, T9, app54_out_ggga(T268, T265, T273, T9)) → qs1_out_ga(.(T265, []), T9)
qs1_in_ga([], []) → qs1_out_ga([], [])
PART20_IN_GGAA(T61, .(T62, T63), .(T62, X119), X120) → U2_GGAA(T61, T62, T63, X119, X120, gt10_in_gg(T61, T62))
U2_GGAA(T61, T62, T63, X119, X120, gt10_out_gg(T61, T62)) → PART20_IN_GGAA(T61, T63, X119, X120)
PART20_IN_GGAA(T83, .(T84, T85), X170, .(T84, X171)) → U4_GGAA(T83, T84, T85, X170, X171, le33_in_gg(T83, T84))
U4_GGAA(T83, T84, T85, X170, X171, le33_out_gg(T83, T84)) → PART20_IN_GGAA(T83, T85, X170, X171)
gt10_in_gg(s(T37), s(T38)) → U1_gg(T37, T38, gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg(s(0), 0)
le33_in_gg(s(T98), s(T99)) → U6_gg(T98, T99, le33_in_gg(T98, T99))
le33_in_gg(0, s(T106)) → le33_out_gg(0, s(T106))
le33_in_gg(0, 0) → le33_out_gg(0, 0)
U1_gg(T37, T38, gt10_out_gg(T37, T38)) → gt10_out_gg(s(T37), s(T38))
U6_gg(T98, T99, le33_out_gg(T98, T99)) → le33_out_gg(s(T98), s(T99))
PART20_IN_GGAA(T61, .(T62, T63)) → U2_GGAA(T61, T63, gt10_in_gg(T61, T62))
U2_GGAA(T61, T63, gt10_out_gg) → PART20_IN_GGAA(T61, T63)
PART20_IN_GGAA(T83, .(T84, T85)) → U4_GGAA(T83, T85, le33_in_gg(T83, T84))
U4_GGAA(T83, T85, le33_out_gg) → PART20_IN_GGAA(T83, T85)
gt10_in_gg(s(T37), s(T38)) → U1_gg(gt10_in_gg(T37, T38))
gt10_in_gg(s(0), 0) → gt10_out_gg
le33_in_gg(s(T98), s(T99)) → U6_gg(le33_in_gg(T98, T99))
le33_in_gg(0, s(T106)) → le33_out_gg
le33_in_gg(0, 0) → le33_out_gg
U1_gg(gt10_out_gg) → gt10_out_gg
U6_gg(le33_out_gg) → le33_out_gg
gt10_in_gg(x0, x1)
le33_in_gg(x0, x1)
U1_gg(x0)
U6_gg(x0)
From the DPs we obtained the following set of size-change graphs: