# cost = 19
# n_nodes = 6225564
# version = 1.1
# time = 12500.710
# hash_table_size = 11234742
# n_solved = 173177
# n_unsolved = 2980919
# n_hits = 287303600
# n_misses = 3157905
# n_stores = 3157905
# avg_priority = 1631.490
# avg_cost = 5.798

# n=12, i=5, cost=19: no comparisons done
find_1(a,b,c,d,e,f,g,h,i,j,k,l) =
  if a > b
  then find_2(a,c,d,e,f,g,h,i,j,k,l,b)
  else find_2(b,c,d,e,f,g,h,i,j,k,l,a)
# n=12, i=5, cost=18: a>l
find_2(a,b,c,d,e,f,g,h,i,j,k,l) =
  if b > c
  then find_3(a,b,d,e,f,g,h,i,j,k,c,l)
  else find_3(a,c,d,e,f,g,h,i,j,k,b,l)
# n=12, i=5, cost=17: a>l,b>k
find_3(a,b,c,d,e,f,g,h,i,j,k,l) =
  if a > b
  then find_4(a,b,c,d,e,f,g,h,i,j,l,k)
  else find_4(b,a,c,d,e,f,g,h,i,j,k,l)
# n=12, i=5, cost=16: a>b,a>k,a>l,b>l
find_4(a,b,c,d,e,f,g,h,i,j,k,l) =
  if c > d
  then find_5(a,c,b,e,f,g,h,i,j,k,d,l)
  else find_5(a,d,b,e,f,g,h,i,j,k,c,l)
# n=12, i=5, cost=15: a>c,a>j,a>l,b>k,c>l
find_5(a,b,c,d,e,f,g,h,i,j,k,l) =
  if d > e
  then find_6(a,b,d,c,f,g,h,i,j,e,k,l)
  else find_6(a,b,e,c,f,g,h,i,j,d,k,l)
# n=12, i=5, cost=14: a>d,a>i,a>l,b>k,c>j,d>l
find_6(a,b,c,d,e,f,g,h,i,j,k,l) =
  if b > c
  then find_7(a,b,d,c,e,f,g,h,i,k,l,j)
  else find_7(a,c,d,b,e,f,g,h,i,j,l,k)
# n=12, i=5, cost=13: a>c,a>i,a>k,b>d,b>j,b>l,c>k,d>l
find_7(a,b,c,d,e,f,g,h,i,j,k,l) =
  if c > d
  then find_8(a,b,c,d,e,f,g,h,i,j,k,l)
  else find_8(b,a,d,c,e,f,g,h,j,i,l,k)
# n=12, i=5, cost=12: a>c,a>d,a>i,a>k,a>l,b>d,b>j,b>l,c>d,c>k,c>l,d>l
find_8(a,b,c,d,e,f,g,h,i,j,k,l) =
  if e > f
  then find_9(a,b,c,e,d,g,h,i,j,f,k,l)
  else find_9(a,b,c,f,d,g,h,i,j,e,k,l)
# n=12, i=5, cost=11: a>c,a>e,a>h,a>k,a>l,b>e,b>i,b>l,c>e,c>k,c>l,d>j,e>l
find_9(a,b,c,d,e,f,g,h,i,j,k,l) =
  if c > d
  then find_10(a,c,b,d,e,f,g,h,i,k,j,l)
  else find_11(a,d,b,c,f,g,h,j,i,k,e)
# n=11, i=5, cost=10: a>d,a>g,a>j,a>k,b>d,b>h,b>j,b>k,c>i,c>k,d>j,d>k
find_11(a,b,c,d,e,f,g,h,i,j,k) =
  if d > e
  then find_12(a,b,d,c,f,g,h,i,e,j,k)
  else find_13(a,b,e,c,d,f,g,h,i,j)
# n=10, i=5, cost=9: a>e,a>g,a>j,b>e,b>h,b>j,c>e,c>j,d>i,e>j
find_13(a,b,c,d,e,f,g,h,i,j) =
  if g > h
  then find_14(a,b,c,d,g,e,f,i,h,j)
  else find_14(b,a,c,d,h,e,f,i,g,j)
# n=10, i=5, cost=8: a>e,a>f,a>i,a>j,b>f,b>i,b>j,c>f,c>j,d>h,e>i,f>j
find_14(a,b,c,d,e,f,g,h,i,j) =
  if b > d
  then find_15(b,a,c,d,e,f,g,h,i,j)
  else find_16(d,a,b,c,e,g,h,i,f)
# n=9, i=5, cost=7: a>c,a>g,a>h,a>i,b>e,b>h,b>i,c>h,c>i,d>i,e>h
find_16(a,b,c,d,e,f,g,h,i) =
  if c > d
  then find_17(b,c,e,d,f,g,i,h)
  else find_18(a,d,b,c,f,g,e,i)
# n=8, i=5, cost=6: a>d,a>f,a>h,b>d,b>h,c>g,c>h,d>h
find_18(a,b,c,d,e,f,g,h) =
  if d > g
  then find_19(b,c,d,e,f,g,h)
  else find_20(c,a,b,g,e,f,d)
# n=7, i=5, cost=5: a>d,a>g,b>f,b>g,c>g,d>g
find_20(a,b,c,d,e,f,g) =
  if c > e
  then find_21(a,b,c,d,f,e,g)
  else find_22(a,b,e,d,c,f)
# n=6, i=5, cost=4: a>d,b>f,c>e
find_22(a,b,c,d,e,f) =
  if d > e
  then find_23(c,d,b,f,e)
  else find_23(a,e,b,f,d)
# n=5, i=4, cost=3: a>e,b>e,c>d
find_23(a,b,c,d,e) =
  if a > b
  then find_24(b,c,e,d)
  else find_24(a,c,e,d)
# n=4, i=3, cost=2: a>c,b>d
find_24(a,b,c,d) =
  if c > d
  then find_25(b,c)
  else find_25(a,d)
# n=2, i=2, cost=1: no comparisons done
find_25(a,b) =
  if a > b
  then b
  else a
# n=7, i=5, cost=4: a>d,a>g,b>e,b>g,c>f,c>g,d>g
find_21(a,b,c,d,e,f,g) =
  if e > f
  then find_26(a,c,e,d,f,g)
  else find_26(a,b,f,d,e,g)
# n=6, i=4, cost=3: a>d,a>f,b>e,b>f,c>e,d>f
find_26(a,b,c,d,e,f) =
  if c > d
  then find_24(a,b,d,e)
  else find_27(b,c,f)
# n=3, i=2, cost=2: a>c
find_27(a,b,c) =
  if a > b
  then find_28(b,c)
  else a
# n=2, i=1, cost=1: no comparisons done
find_28(a,b) =
  if a > b
  then a
  else b
# n=7, i=4, cost=5: a>c,a>f,a>g,b>f,b>g,c>f,c>g
find_19(a,b,c,d,e,f,g) =
  if d > e
  then find_29(a,b,c,d,e,f,g)
  else find_29(a,b,c,e,d,f,g)
# n=7, i=4, cost=4: a>c,a>f,a>g,b>f,b>g,c>f,c>g,d>e
find_29(a,b,c,d,e,f,g) =
  if b > d
  then find_30(a,c,d,e,f,g)
  else find_31(a,b,e,c)
# n=4, i=3, cost=3: a>d
find_31(a,b,c,d) =
  if b > c
  then find_24(a,b,d,c)
  else find_24(a,c,d,b)
# n=6, i=3, cost=3: a>b,a>e,a>f,b>e,b>f,c>d
find_30(a,b,c,d,e,f) =
  if b > c
  then find_32(c,e,f)
  else find_27(a,d,b)
# n=3, i=1, cost=2: no comparisons done
find_32(a,b,c) =
  if a > b
  then find_28(a,c)
  else find_28(b,c)
# n=8, i=4, cost=6: a>c,a>g,a>h,b>d,b>g,b>h,c>h,d>g
find_17(a,b,c,d,e,f,g,h) =
  if c > d
  then find_19(a,b,c,e,f,d,h)
  else find_19(b,a,d,e,f,c,g)
# n=10, i=5, cost=7: a>d,a>f,a>h,a>i,a>j,b>e,b>f,b>i,b>j,c>f,c>j,d>h,e>i,f>j
find_15(a,b,c,d,e,f,g,h,i,j) =
  if e > g
  then find_33(b,a,c,e,d,f,g,h,i,j)
  else find_34(a,b,c,g,d,e,f,h,j,i)
# n=10, i=5, cost=6: a>e,a>g,a>h,a>i,a>j,b>f,b>g,b>i,b>j,c>g,c>i,d>f,d>j,e>h,f>j,g>i
find_34(a,b,c,d,e,f,g,h,i,j) =
  if c > d
  then find_35(c,a,b,d,e,g,h,f,i)
  else find_36(d,a,b,c,e,f,h,j,g)
# n=9, i=5, cost=5: a>d,a>f,a>h,a>i,b>e,b>g,b>h,b>i,c>f,c>h,c>i,d>i,e>g,f>h
find_36(a,b,c,d,e,f,g,h,i) =
  if d > e
  then find_37(b,d,c,f,e,i,g,h)
  else find_38(a,c,e,f,g,d,h)
# n=7, i=4, cost=4: a>d,a>f,a>g,b>d,b>g,c>e,c>f,d>g
find_38(a,b,c,d,e,f,g) =
  if d > e
  then find_39(b,c,d,f,g)
  else find_31(a,b,e,f)
# n=5, i=3, cost=3: a>c,a>e,b>d,c>e
find_39(a,b,c,d,e) =
  if a > b
  then find_40(b,c,d,e)
  else find_27(a,d,c)
# n=4, i=2, cost=2: a>c,b>d
find_40(a,b,c,d) =
  if a > b
  then find_28(b,c)
  else find_28(a,d)
# n=8, i=4, cost=4: a>e,a>f,a>g,a>h,b>e,b>f,b>g,c>d,c>f,c>h,d>h,e>g
find_37(a,b,c,d,e,f,g,h) =
  if a > b
  then find_41(b,c,e,d,f,g,h)
  else find_42(a,c,e,d,f,g)
# n=6, i=3, cost=3: a>c,a>e,a>f,b>d,b>e,c>f
find_42(a,b,c,d,e,f) =
  if c > d
  then find_40(b,c,e,f)
  else find_27(a,d,e)
# n=7, i=3, cost=3: a>c,a>e,a>f,b>d,b>e,b>g,c>f,d>g
find_41(a,b,c,d,e,f,g) =
  if c > d
  then find_40(b,c,e,f)
  else find_40(a,d,e,g)
# n=9, i=5, cost=5: a>d,a>f,a>h,a>i,b>e,b>f,b>g,b>i,c>f,c>h,c>i,d>h,e>g,f>i
find_35(a,b,c,d,e,f,g,h,i) =
  if c > e
  then find_43(a,b,d,e,f,h,g,i)
  else find_44(a,c,g,d,f)
# n=5, i=3, cost=4: a>d,a>e,b>e
find_44(a,b,c,d,e) =
  if a > b
  then find_45(b,c,d,e)
  else find_46(a,c,d,e)
# n=4, i=2, cost=3: a>c,a>d
find_46(a,b,c,d) =
  if a > b
  then find_32(b,c,d)
  else a
# n=4, i=2, cost=3: a>d
find_45(a,b,c,d) =
  if b > c
  then find_40(a,b,d,c)
  else find_40(a,c,d,b)
# n=8, i=4, cost=4: a>c,a>e,a>f,a>h,b>d,b>e,b>g,b>h,c>f,d>g,e>h
find_43(a,b,c,d,e,f,g,h) =
  if c > d
  then find_42(b,c,e,f,d,h)
  else find_42(a,d,e,g,c,h)
# n=10, i=5, cost=6: a>d,a>f,a>g,a>i,a>j,b>e,b>f,b>h,b>i,b>j,c>f,c>j,d>g,d>i,e>h,f>j
find_33(a,b,c,d,e,f,g,h,i,j) =
  if c > e
  then find_47(a,b,c,d,e,f,g,i,h,j)
  else find_48(a,e,d,c,h,g,i,f)
# n=8, i=4, cost=5: a>c,a>f,a>g,a>h,b>d,b>e,b>h,c>f,c>g,d>h
find_48(a,b,c,d,e,f,g,h) =
  if c > d
  then find_49(c,b,f,g,e,d)
  else find_50(a,d,e,c,h)
# n=5, i=3, cost=4: a>d,a>e,b>d,b>e
find_50(a,b,c,d,e) =
  if a > b
  then find_46(b,c,d,e)
  else find_46(a,c,d,e)
# n=6, i=3, cost=4: a>c,a>d,a>f,b>e,b>f
find_49(a,b,c,d,e,f) =
  if c > d
  then find_42(a,b,c,e,f,d)
  else find_42(a,b,d,e,f,c)
# n=10, i=5, cost=5: a>d,a>f,a>g,a>h,a>j,b>e,b>f,b>h,b>i,b>j,c>e,c>f,c>i,c>j,d>g,d>h,e>i,f>j
find_47(a,b,c,d,e,f,g,h,i,j) =
  if e > g
  then find_43(a,c,d,e,f,h,i,j)
  else find_38(b,c,d,f,g,h,j)
# n=11, i=5, cost=9: a>c,a>f,a>i,a>j,a>k,b>c,b>g,b>i,b>j,b>k,c>i,c>j,c>k,d>h,d>k
find_12(a,b,c,d,e,f,g,h,i,j,k) =
  if c > d
  then find_51(c,d,e,f,g,i,j,h,k)
  else find_52(a,b,d,c,e,f,g,h,i,j,k)
# n=11, i=5, cost=8: a>d,a>f,a>i,a>j,a>k,b>d,b>g,b>i,b>j,b>k,c>d,c>h,c>i,c>j,c>k,d>i,d>j,d>k
find_52(a,b,c,d,e,f,g,h,i,j,k) =
  if d > e
  then find_53(a,b,c,d,f,g,h,e,i,j,k)
  else find_54(a,b,c,e,f,g,h,d)
# n=8, i=5, cost=7: a>e,a>h,b>f,b>h,c>g,c>h,d>h
find_54(a,b,c,d,e,f,g,h) =
  if a > b
  then find_55(b,c,d,e,f,g,h)
  else find_55(a,c,d,f,e,g,h)
# n=7, i=4, cost=6: a>e,a>g,b>f,b>g,c>g
find_55(a,b,c,d,e,f,g) =
  if c > d
  then find_56(a,b,c,e,d,f,g)
  else find_57(a,b,d,e,c,f)
# n=6, i=4, cost=5: a>d,b>f,c>e
find_57(a,b,c,d,e,f) =
  if a > b
  then find_58(b,c,d,f,e)
  else find_58(a,c,f,d,e)
# n=5, i=3, cost=4: a>d,b>e
find_58(a,b,c,d,e) =
  if a > b
  then find_45(b,c,d,e)
  else find_45(a,c,e,d)
# n=7, i=4, cost=5: a>d,a>g,b>f,b>g,c>e,c>g
find_56(a,b,c,d,e,f,g) =
  if d > e
  then find_59(a,c,b,d,f,g,e)
  else find_59(c,a,b,e,f,g,d)
# n=7, i=4, cost=4: a>d,a>f,a>g,b>f,b>g,c>e,c>f,d>g
find_59(a,b,c,d,e,f,g) =
  if d > e
  then find_60(b,c,d,f,g,e)
  else find_61(a,b,e,f,d)
# n=5, i=3, cost=3: a>d,a>e,b>d,c>e
find_61(a,b,c,d,e) =
  if a > b
  then find_40(b,c,d,e)
  else find_27(a,c,d)
# n=6, i=3, cost=3: a>d,a>e,b>d,b>f,c>e,c>f
find_60(a,b,c,d,e,f) =
  if a > b
  then find_40(b,c,d,e)
  else find_40(a,c,d,f)
# n=11, i=5, cost=7: a>d,a>e,a>h,a>i,a>j,a>k,b>d,b>f,b>h,b>i,b>j,b>k,c>d,c>g,c>h,c>i,c>j,c>k,d>h,d>i,d>j,d>k
find_53(a,b,c,d,e,f,g,h,i,j,k) =
  if e > f
  then find_62(b,c,d,e,g,f,h,i,j,k)
  else find_62(a,c,d,f,g,e,h,i,j,k)
# n=10, i=4, cost=6: a>c,a>f,a>g,a>h,a>i,a>j,b>c,b>e,b>g,b>h,b>i,b>j,c>g,c>h,c>i,c>j,d>f
find_62(a,b,c,d,e,f,g,h,i,j) =
  if d > e
  then find_63(a,b,c,d,f,e,g,h,i,j)
  else find_64(a,c,e,d,g,h,i,j)
# n=8, i=3, cost=5: a>b,a>e,a>f,a>g,a>h,b>e,b>f,b>g,b>h,c>d
find_64(a,b,c,d,e,f,g,h) =
  if b > c
  then find_65(c,e,f,g,h)
  else find_27(a,d,b)
# n=5, i=1, cost=4: no comparisons done
find_65(a,b,c,d,e) =
  if a > b
  then find_66(a,c,d,e)
  else find_66(b,c,d,e)
# n=4, i=1, cost=3: no comparisons done
find_66(a,b,c,d) =
  if a > b
  then find_32(a,c,d)
  else find_32(b,c,d)
# n=10, i=4, cost=5: a>c,a>e,a>g,a>h,a>i,a>j,b>c,b>f,b>g,b>h,b>i,b>j,c>g,c>h,c>i,c>j,d>e,d>f
find_63(a,b,c,d,e,f,g,h,i,j) =
  if c > d
  then find_65(d,g,h,i,j)
  else find_67(a,b,e,f,c)
# n=5, i=3, cost=3: a>c,a>e,b>d,b>e
find_67(a,b,c,d,e) =
  if c > d
  then find_27(b,c,e)
  else find_27(a,d,e)
# n=9, i=3, cost=8: a>b,a>f,a>g,a>h,a>i,b>h,b>i
find_51(a,b,c,d,e,f,g,h,i) =
  if b > c
  then find_68(a,b,d,e,f,g,c,h,i)
  else find_69(a,c,d,e,f,g,b)
# n=7, i=3, cost=7: a>e,a>f,a>g,b>g
find_69(a,b,c,d,e,f,g) =
  if a > b
  then find_70(a,b,c,d,e,f,g)
  else find_71(b,a,c,d,e,f,g)
# n=7, i=3, cost=5: a>b,a>e,a>f,a>g,b>e,b>f,b>g
find_71(a,b,c,d,e,f,g) =
  if c > d
  then find_72(a,b,c,d,e,f,g)
  else find_72(a,b,d,c,e,f,g)
# n=7, i=3, cost=4: a>b,a>e,a>f,a>g,b>e,b>f,b>g,c>d
find_72(a,b,c,d,e,f,g) =
  if b > c
  then find_66(c,e,f,g)
  else find_27(a,d,b)
# n=7, i=3, cost=6: a>b,a>e,a>f,a>g,b>g
find_70(a,b,c,d,e,f,g) =
  if b > c
  then find_73(b,d,e,f,c,g)
  else find_74(a,c,d,e,f,b)
# n=6, i=3, cost=5: a>d,a>e,a>f,b>f
find_74(a,b,c,d,e,f) =
  if b > c
  then find_49(a,b,d,e,c,f)
  else find_75(a,c,d,e,b)
# n=5, i=3, cost=4: a>c,a>d,b>e
find_75(a,b,c,d,e) =
  if a > b
  then find_45(b,c,d,e)
  else find_46(a,e,d,c)
# n=6, i=2, cost=5: a>e,a>f
find_73(a,b,c,d,e,f) =
  if b > c
  then find_76(a,b,d,e,f,c)
  else find_76(a,c,d,e,f,b)
# n=6, i=2, cost=4: a>d,a>e,b>f
find_76(a,b,c,d,e,f) =
  if b > c
  then find_77(a,b,d,e,c,f)
  else find_78(a,c,d,e,b)
# n=5, i=2, cost=3: a>c,a>d,b>e
find_78(a,b,c,d,e) =
  if a > b
  then find_32(b,c,d)
  else find_28(a,e)
# n=6, i=2, cost=3: a>c,a>d,b>e,b>f
find_77(a,b,c,d,e,f) =
  if a > b
  then find_32(b,c,d)
  else find_32(a,e,f)
# n=9, i=3, cost=7: a>b,a>e,a>f,a>g,a>h,a>i,b>g,b>h,b>i
find_68(a,b,c,d,e,f,g,h,i) =
  if c > d
  then find_79(a,b,c,e,f,d,g,h,i)
  else find_79(a,b,d,e,f,c,g,h,i)
# n=9, i=3, cost=6: a>b,a>d,a>e,a>g,a>h,a>i,b>g,b>h,b>i,c>f
find_79(a,b,c,d,e,f,g,h,i) =
  if d > e
  then find_80(a,b,c,d,f,g,h,i,e)
  else find_80(a,b,c,e,f,g,h,i,d)
# n=9, i=3, cost=5: a>b,a>d,a>f,a>g,a>h,a>i,b>f,b>g,b>h,c>e,d>i
find_80(a,b,c,d,e,f,g,h,i) =
  if c > d
  then find_81(a,b,c,e,f,g,h,d)
  else find_82(b,d,f,g,h,c,i)
# n=7, i=2, cost=4: a>c,a>d,a>e,b>f,b>g
find_82(a,b,c,d,e,f,g) =
  if a > b
  then find_66(b,c,d,e)
  else find_32(a,f,g)
# n=8, i=3, cost=4: a>b,a>e,a>f,a>g,a>h,b>e,b>f,b>g,c>d,c>h
find_81(a,b,c,d,e,f,g,h) =
  if b > c
  then find_66(c,e,f,g)
  else find_46(a,d,b,h)
# n=12, i=5, cost=10: a>b,a>d,a>e,a>h,a>j,a>k,a>l,b>d,b>e,b>j,b>k,b>l,c>e,c>i,c>l,d>k,e>l
find_10(a,b,c,d,e,f,g,h,i,j,k,l) =
  if d > h
  then find_83(a,b,c,d,e,f,g,i,j,h,k,l)
  else find_84(a,b,c,h,e,d,g,f,i,j,k,l)
# n=12, i=5, cost=9: a>b,a>d,a>e,a>f,a>j,a>k,a>l,b>e,b>f,b>j,b>k,b>l,c>e,c>i,c>l,d>f,d>k,e>l,f>k
find_84(a,b,c,d,e,f,g,h,i,j,k,l) =
  if g > h
  then find_85(a,b,c,d,g,e,f,i,h,j,l,k)
  else find_85(a,b,c,d,h,e,f,i,g,j,l,k)
# n=12, i=5, cost=8: a>b,a>d,a>f,a>g,a>j,a>k,a>l,b>f,b>g,b>j,b>k,b>l,c>f,c>h,c>k,d>g,d>l,e>i,f>k,g>l
find_85(a,b,c,d,e,f,g,h,i,j,k,l) =
  if d > e
  then find_86(b,d,c,e,g,f,j,h,i,l,k)
  else find_87(a,b,c,e,d,f,i,h,j,k,g)
# n=11, i=5, cost=7: a>b,a>e,a>f,a>i,a>j,a>k,b>f,b>i,b>j,b>k,c>f,c>h,c>j,d>e,d>g,d>k,e>k,f>j
find_87(a,b,c,d,e,f,g,h,i,j,k) =
  if h > i
  then find_88(a,c,b,d,h,e,f,g,j,i,k)
  else find_89(b,c,d,i,e,f,g,j,h,k)
# n=10, i=4, cost=6: a>d,a>f,a>h,a>i,a>j,b>f,b>h,b>i,c>e,c>g,c>j,d>i,e>j,f>h
find_89(a,b,c,d,e,f,g,h,i,j) =
  if d > g
  then find_90(a,b,c,d,e,f,g,i,h,j)
  else find_91(c,a,b,e,g,f,j,d,h)
# n=9, i=4, cost=5: a>d,a>e,a>g,a>h,b>f,b>g,b>h,b>i,c>f,c>i,d>g,e>h,f>i
find_91(a,b,c,d,e,f,g,h,i) =
  if d > e
  then find_92(a,b,c,d,f,e,g,i)
  else find_92(a,b,c,e,f,d,h,i)
# n=8, i=4, cost=4: a>d,a>f,a>g,b>e,b>g,b>h,c>e,c>h,d>f,d>g,e>h
find_92(a,b,c,d,e,f,g,h) =
  if b > d
  then find_93(a,c,d,e,f,g,h)
  else find_45(b,c,f,g)
# n=7, i=3, cost=3: a>c,a>e,a>f,b>d,b>g,c>e,c>f,d>g
find_93(a,b,c,d,e,f,g) =
  if b > c
  then find_40(a,d,c,g)
  else find_32(b,e,f)
# n=10, i=4, cost=5: a>d,a>f,a>g,a>h,a>i,a>j,b>f,b>h,b>i,c>e,c>g,c>j,d>g,d>h,e>j,f>i
find_90(a,b,c,d,e,f,g,h,i,j) =
  if b > c
  then find_94(a,c,d,f,e,h,i)
  else find_95(a,b,e,d,f,g,j)
# n=7, i=3, cost=4: a>d,a>e,a>f,a>g,b>e,c>g,d>f
find_95(a,b,c,d,e,f,g) =
  if b > c
  then find_42(a,b,d,c,e,f)
  else find_42(a,c,d,b,g,f)
# n=7, i=3, cost=4: a>c,a>d,a>f,a>g,b>e,c>f,d>g
find_94(a,b,c,d,e,f,g) =
  if b > c
  then find_42(a,b,d,e,c,g)
  else find_78(c,d,b,f,g)
# n=11, i=5, cost=6: a>c,a>f,a>g,a>i,a>j,a>k,b>e,b>g,b>i,b>j,c>g,c>i,c>j,c>k,d>f,d>h,d>k,e>j,f>k,g>i
find_88(a,b,c,d,e,f,g,h,i,j,k) =
  if e > f
  then find_96(a,b,c,d,e,g,h,j,i,f)
  else find_97(d,c,b,f,g,h,k,e,i)
# n=9, i=4, cost=5: a>d,a>f,a>g,a>h,b>e,b>g,b>i,c>e,c>h,c>i,d>g,d>h,e>i
find_97(a,b,c,d,e,f,g,h,i) =
  if b > c
  then find_98(b,a,c,d,e,f,g,i)
  else find_98(c,a,b,d,e,f,h,i)
# n=8, i=4, cost=4: a>c,a>e,a>g,a>h,b>d,b>f,b>g,c>e,c>h,d>g,e>h
find_98(a,b,c,d,e,f,g,h) =
  if c > f
  then find_41(b,c,d,e,f,g,h)
  else find_61(a,d,f,g,c)
# n=10, i=5, cost=5: a>c,a>f,a>h,a>i,a>j,b>e,b>f,b>h,b>i,b>j,c>f,c>h,c>i,d>g,d>j,e>h,e>j,f>i
find_96(a,b,c,d,e,f,g,h,i,j) =
  if c > d
  then find_94(b,d,e,f,g,h,i)
  else find_99(a,b,c,e,g,f,j)
# n=7, i=4, cost=4: a>c,a>f,a>g,b>d,b>f,b>g,c>f,d>g
find_99(a,b,c,d,e,f,g) =
  if c > e
  then find_42(b,c,d,e,f,g)
  else find_26(b,a,e,d,c,g)
# n=11, i=4, cost=7: a>e,a>f,a>g,a>j,a>k,b>d,b>e,b>i,b>j,c>f,c>h,c>k,d>i,e>j,f>k
find_86(a,b,c,d,e,f,g,h,i,j,k) =
  if c > e
  then find_100(a,c,b,d,f,g,h,i,e,k)
  else find_101(a,e,d,g,i,c,j)
# n=7, i=3, cost=5: a>b,a>d,a>f,a>g,b>f,b>g,c>e
find_101(a,b,c,d,e,f,g) =
  if a > c
  then find_76(b,c,d,f,g,e)
  else find_46(a,e,d,b)
# n=10, i=4, cost=6: a>e,a>f,a>i,a>j,b>e,b>g,b>i,b>j,c>d,c>h,c>i,d>h,e>j
find_100(a,b,c,d,e,f,g,h,i,j) =
  if f > g
  then find_102(a,b,c,f,d,e,h,i,j,g)
  else find_102(b,a,c,g,d,e,h,i,j,f)
# n=10, i=4, cost=5: a>d,a>f,a>h,a>i,a>j,b>f,b>h,b>i,b>j,c>e,c>g,c>h,d>j,e>g,f>i
find_102(a,b,c,d,e,f,g,h,i,j) =
  if d > e
  then find_103(b,c,d,f,h,j,i,e)
  else find_104(c,a,b,e,f,g,h,d,i)
# n=9, i=4, cost=4: a>d,a>f,a>g,a>h,b>e,b>g,b>h,b>i,c>e,c>g,c>i,d>f,d>h,e>i
find_104(a,b,c,d,e,f,g,h,i) =
  if c > d
  then find_41(a,b,d,e,g,f,i)
  else find_45(b,c,f,h)
# n=8, i=3, cost=4: a>d,a>e,a>f,a>g,b>e,b>h,c>f,c>h,d>g
find_103(a,b,c,d,e,f,g,h) =
  if b > c
  then find_41(a,b,d,c,e,g,h)
  else find_41(a,c,d,b,f,g,h)
# n=12, i=5, cost=9: a>b,a>d,a>e,a>i,a>j,a>k,a>l,b>d,b>e,b>i,b>j,b>k,b>l,c>e,c>h,c>l,d>j,d>k,e>l
find_83(a,b,c,d,e,f,g,h,i,j,k,l) =
  if c > d
  then find_105(a,c,b,d,e,f,g,h,i,j,k,l)
  else find_51(d,c,f,g,i,j,k,h,e)
# n=12, i=5, cost=8: a>c,a>d,a>e,a>i,a>j,a>k,a>l,b>d,b>e,b>h,b>j,b>k,b>l,c>d,c>e,c>i,c>j,c>k,c>l,d>j,d>k,e>l
find_105(a,b,c,d,e,f,g,h,i,j,k,l) =
  if d > f
  then find_106(b,c,d,e,g,h,i,f,j,k,l)
  else find_107(a,b,c,f,e,g,h,i,l,d)
# n=10, i=5, cost=7: a>c,a>e,a>h,a>i,a>j,b>e,b>g,b>i,b>j,c>e,c>h,c>i,c>j,d>j,e>i
find_107(a,b,c,d,e,f,g,h,i,j) =
  if g > h
  then find_108(a,b,c,d,g,e,f,i,h,j)
  else find_109(c,b,d,h,e,f,i,g,j)
# n=9, i=4, cost=6: a>d,a>e,a>g,a>h,a>i,b>e,b>g,b>h,b>i,c>i,d>h,e>g
find_109(a,b,c,d,e,f,g,h,i) =
  if c > f
  then find_110(a,b,c,d,e,f,i,g,h)
  else find_111(a,b,f,d,e,c,g,h)
# n=8, i=4, cost=5: a>d,a>e,a>g,a>h,b>e,b>g,b>h,c>f,d>h,e>g
find_111(a,b,c,d,e,f,g,h) =
  if b > c
  then find_94(a,c,d,e,f,h,g)
  else find_44(a,b,f,d,e)
# n=9, i=4, cost=5: a>d,a>e,a>g,a>h,a>i,b>e,b>g,b>h,b>i,c>f,c>g,d>i,e>h
find_110(a,b,c,d,e,f,g,h,i) =
  if d > f
  then find_103(b,c,d,e,g,i,h,f)
  else find_37(a,b,c,f,e,g,h,d)
# n=10, i=5, cost=6: a>c,a>f,a>h,a>i,a>j,b>e,b>f,b>h,b>i,b>j,c>f,c>h,c>i,c>j,d>j,e>i,f>h
find_108(a,b,c,d,e,f,g,h,i,j) =
  if e > g
  then find_112(a,c,e,d,f,g,i,h,j)
  else find_113(a,b,c,d,g,f,e,h,j)
# n=9, i=5, cost=5: a>c,a>f,a>h,a>i,b>f,b>g,b>h,b>i,c>f,c>h,c>i,d>i,e>g,f>h
find_113(a,b,c,d,e,f,g,h,i) =
  if c > e
  then find_95(b,d,e,f,i,h,g)
  else find_114(a,b,c,d,g,f)
# n=6, i=4, cost=4: a>c,a>f,b>e,b>f,c>f
find_114(a,b,c,d,e,f) =
  if c > d
  then find_67(b,c,e,d,f)
  else find_23(a,d,b,e,c)
# n=9, i=4, cost=5: a>b,a>e,a>g,a>h,a>i,b>e,b>g,b>h,b>i,c>f,c>g,d>i,e>h
find_112(a,b,c,d,e,f,g,h,i) =
  if b > c
  then find_115(c,d,e,f,g,h,i)
  else find_116(a,b,d,f,e,g)
# n=6, i=3, cost=4: a>b,a>e,a>f,b>e,b>f
find_116(a,b,c,d,e,f) =
  if c > d
  then find_30(a,b,c,d,e,f)
  else find_30(a,b,d,c,e,f)
# n=7, i=2, cost=4: a>d,a>e,b>g,c>f
find_115(a,b,c,d,e,f,g) =
  if b > c
  then find_77(a,b,d,e,c,g)
  else find_77(a,c,d,e,b,f)
# n=11, i=4, cost=7: a>c,a>d,a>f,a>h,a>i,a>j,a>k,b>c,b>d,b>g,b>h,b>i,b>j,b>k,c>h,c>i,c>j,d>k
find_106(a,b,c,d,e,f,g,h,i,j,k) =
  if d > e
  then find_117(c,d,f,g,h,i,j,e,k)
  else find_118(a,b,c,e,f,g,h,i,j,d)
# n=10, i=4, cost=6: a>c,a>e,a>g,a>h,a>i,a>j,b>c,b>f,b>g,b>h,b>i,b>j,c>g,c>h,c>i,d>j
find_118(a,b,c,d,e,f,g,h,i,j) =
  if e > f
  then find_119(b,c,d,e,g,h,i,j,f)
  else find_119(a,c,d,f,g,h,i,j,e)
# n=9, i=3, cost=5: a>b,a>e,a>f,a>g,a>h,a>i,b>e,b>f,b>g,c>h,d>i
find_119(a,b,c,d,e,f,g,h,i) =
  if c > d
  then find_81(a,b,c,d,e,f,g,h)
  else find_81(a,b,d,c,e,f,g,i)
# n=9, i=2, cost=6: a>e,a>f,a>g,b>h,b>i
find_117(a,b,c,d,e,f,g,h,i) =
  if c > d
  then find_120(a,b,c,e,f,g,h,i,d)
  else find_120(a,b,d,e,f,g,h,i,c)
# n=9, i=2, cost=5: a>d,a>e,a>f,b>g,b>h,c>i
find_120(a,b,c,d,e,f,g,h,i) =
  if b > c
  then find_121(a,b,d,e,f,c,g,h)
  else find_82(a,c,d,e,f,b,i)
# n=8, i=2, cost=4: a>c,a>d,a>e,b>f,b>g,b>h
find_121(a,b,c,d,e,f,g,h) =
  if a > b
  then find_66(b,c,d,e)
  else find_66(a,f,g,h)
