# cost = 14
# n_nodes = 59578
# version = 1.0
# time = 22.770

# n=10, i=3, cost=14: no comparisons done
find_1(a,b,c,d,e,f,g,h,i,j) =
  if a > b
  then find_2(a,b,c,d,e,f,g,h,i,j)
  else find_2(b,a,c,d,e,f,g,h,i,j)
# n=10, i=3, cost=13: a>b
find_2(a,b,c,d,e,f,g,h,i,j) =
  if a > c
  then find_3(a,b,c,d,e,f,g,h,i,j)
  else find_4(c,a,b,d,e,f,g,h,i,j)
# n=10, i=3, cost=12: a>b,a>c,b>c
find_4(a,b,c,d,e,f,g,h,i,j) =
  if a > d
  then find_5(a,b,c,d,e,f,g,h,i,j)
  else find_6(d,a,b,e,f,g,h,i,j)
# n=9, i=3, cost=10: a>b,a>c,b>c
find_6(a,b,c,d,e,f,g,h,i) =
  if a > d
  then find_7(a,b,c,d,e,f,g,h,i)
  else find_8(d,a,b,e,f,g,h,i)
# n=8, i=3, cost=9: a>b,a>c,b>c
find_8(a,b,c,d,e,f,g,h) =
  if a > d
  then find_9(a,b,c,d,e,f,g,h)
  else find_10(d,a,b,e,f,g,h)
# n=7, i=3, cost=7: a>b,a>c,b>c
find_10(a,b,c,d,e,f,g) =
  if d > e
  then find_11(a,b,d,c,e,f,g)
  else find_11(a,b,e,c,d,f,g)
# n=7, i=3, cost=6: a>b,a>d,b>d,c>e
find_11(a,b,c,d,e,f,g) =
  if a > c
  then find_12(a,b,c,d,e,f,g)
  else find_13(c,a,b,e,f,g)
# n=6, i=3, cost=5: a>b,a>c,a>d,b>c
find_13(a,b,c,d,e,f) =
  if b > d
  then find_14(a,b,c,d,e,f)
  else find_15(a,d,b,e,f)
# n=5, i=3, cost=4: a>b,a>c,b>c
find_15(a,b,c,d,e) =
  if a > d
  then find_16(b,c,d,e)
  else find_17(a,b,e)
# n=3, i=2, cost=2: a>b
find_17(a,b,c) =
  if a > c
  then find_18(b,c)
  else a
# n=2, i=1, cost=1: no comparisons done
find_18(a,b) =
  if a > b
  then a
  else b
# n=4, i=2, cost=3: a>b
find_16(a,b,c,d) =
  if c > d
  then find_19(a,c,b,d)
  else find_19(a,d,b,c)
# n=4, i=2, cost=2: a>c,b>d
find_19(a,b,c,d) =
  if a > b
  then find_18(b,c)
  else find_18(a,d)
# n=6, i=3, cost=4: a>b,a>c,a>d,b>c,b>d
find_14(a,b,c,d,e,f) =
  if e > f
  then find_20(a,b,e,d,c,f)
  else find_20(a,b,f,d,c,e)
# n=6, i=3, cost=3: a>b,a>d,a>e,b>d,b>e,c>f
find_20(a,b,c,d,e,f) =
  if b > c
  then find_21(c,d,e)
  else find_17(a,b,f)
# n=3, i=1, cost=2: no comparisons done
find_21(a,b,c) =
  if a > b
  then find_18(a,c)
  else find_18(b,c)
# n=7, i=3, cost=5: a>b,a>c,a>d,a>e,b>d,c>e
find_12(a,b,c,d,e,f,g) =
  if b > c
  then find_14(a,b,c,d,f,g)
  else find_14(a,c,b,e,f,g)
# n=8, i=3, cost=8: a>b,a>c,a>d,b>c
find_9(a,b,c,d,e,f,g,h) =
  if b > d
  then find_22(a,b,c,d,e,f,g,h)
  else find_10(a,d,b,e,f,g,h)
# n=8, i=3, cost=7: a>b,a>c,a>d,b>c,b>d
find_22(a,b,c,d,e,f,g,h) =
  if e > f
  then find_23(a,b,e,d,c,f,g,h)
  else find_23(a,b,f,d,c,e,g,h)
# n=8, i=3, cost=6: a>b,a>d,a>e,b>d,b>e,c>f
find_23(a,b,c,d,e,f,g,h) =
  if g > h
  then find_24(a,b,c,g,e,d,f,h)
  else find_24(a,b,c,h,e,d,f,g)
# n=8, i=3, cost=5: a>b,a>e,a>f,b>e,b>f,c>g,d>h
find_24(a,b,c,d,e,f,g,h) =
  if c > d
  then find_25(a,c,b,d,e,f,h,g)
  else find_25(a,d,b,c,e,f,g,h)
# n=8, i=3, cost=4: a>c,a>e,a>f,b>d,b>g,b>h,c>e,c>f,d>g
find_25(a,b,c,d,e,f,g,h) =
  if c > d
  then find_20(a,c,b,e,f,h)
  else find_26(d,a,g,h)
# n=4, i=2, cost=3: a>c
find_26(a,b,c,d) =
  if b > d
  then find_19(a,b,c,d)
  else find_19(a,d,c,b)
# n=9, i=3, cost=9: a>b,a>c,a>d,b>c
find_7(a,b,c,d,e,f,g,h,i) =
  if e > f
  then find_27(a,b,e,c,d,f,g,h,i)
  else find_27(a,b,f,c,d,e,g,h,i)
# n=9, i=3, cost=8: a>b,a>d,a>e,b>d,c>f
find_27(a,b,c,d,e,f,g,h,i) =
  if g > h
  then find_28(a,b,c,g,d,e,f,h,i)
  else find_28(a,b,c,h,d,e,f,g,i)
# n=9, i=3, cost=7: a>b,a>e,a>f,b>e,c>g,d>h
find_28(a,b,c,d,e,f,g,h,i) =
  if c > d
  then find_29(a,c,b,d,e,h,f,g,i)
  else find_29(a,d,b,c,e,g,f,h,i)
# n=9, i=3, cost=6: a>c,a>e,a>g,b>d,b>f,b>h,c>e,d>f
find_29(a,b,c,d,e,f,g,h,i) =
  if a > b
  then find_30(b,d,c,h,e,g,i)
  else find_30(a,c,d,g,f,h,i)
# n=7, i=2, cost=5: a>b,a>d,c>e
find_30(a,b,c,d,e,f,g) =
  if f > g
  then find_31(a,c,f,d,b,e,g)
  else find_31(a,c,g,d,b,e,f)
# n=7, i=2, cost=4: a>d,a>e,b>f,c>g
find_31(a,b,c,d,e,f,g) =
  if b > c
  then find_32(b,a,c,f,e,d)
  else find_32(c,a,b,g,e,d)
# n=6, i=2, cost=3: a>c,a>d,b>e,b>f
find_32(a,b,c,d,e,f) =
  if a > b
  then find_21(b,c,d)
  else find_21(a,e,f)
# n=10, i=3, cost=11: a>b,a>c,a>d,b>c
find_5(a,b,c,d,e,f,g,h,i,j) =
  if a > e
  then find_33(a,b,c,d,e,f,g,h,i,j)
  else find_34(e,a,b,d,f,g,h,i,j)
# n=9, i=3, cost=9: a>b,a>c,a>d,b>c,b>d
find_34(a,b,c,d,e,f,g,h,i) =
  if a > e
  then find_35(a,b,c,d,e,f,g,h,i)
  else find_10(e,a,b,f,g,h,i)
# n=9, i=3, cost=8: a>b,a>c,a>d,a>e,b>c,b>d
find_35(a,b,c,d,e,f,g,h,i) =
  if b > f
  then find_36(a,b,c,d,f,e,g,h,i)
  else find_37(a,f,b,e,g,h,i)
# n=7, i=3, cost=7: a>c,a>d,b>c
find_37(a,b,c,d,e,f,g) =
  if e > f
  then find_38(a,b,e,c,d,f,g)
  else find_38(a,b,f,c,d,e,g)
# n=7, i=3, cost=6: a>d,a>e,b>d,c>f
find_38(a,b,c,d,e,f,g) =
  if a > c
  then find_39(a,c,b,f,d,e,g)
  else find_40(c,a,b,e,f,g)
# n=6, i=3, cost=5: a>b,a>d,a>e,b>d
find_40(a,b,c,d,e,f) =
  if b > c
  then find_41(b,c,d,e,f)
  else find_42(a,c,b,e,f)
# n=5, i=3, cost=4: a>c,a>d,b>c
find_42(a,b,c,d,e) =
  if a > b
  then find_16(b,c,d,e)
  else find_43(a,c,d,e)
# n=4, i=2, cost=3: a>b,a>c
find_43(a,b,c,d) =
  if a > d
  then find_21(b,c,d)
  else a
# n=5, i=2, cost=4: a>b,a>c
find_41(a,b,c,d,e) =
  if b > c
  then find_16(a,b,d,e)
  else find_16(a,c,d,e)
# n=7, i=3, cost=5: a>b,a>d,a>e,a>f,b>d,c>e
find_39(a,b,c,d,e,f,g) =
  if b > g
  then find_44(b,c,d,g,e,f)
  else find_45(a,g,b,c,e,f)
# n=6, i=3, cost=4: a>c,a>e,a>f,b>c,d>e
find_45(a,b,c,d,e,f) =
  if b > d
  then find_46(b,a,d,c,f)
  else find_46(d,a,b,e,f)
# n=5, i=3, cost=3: a>c,a>d,b>d,b>e
find_46(a,b,c,d,e) =
  if c > d
  then find_47(a,b,c,e)
  else find_17(a,d,e)
# n=4, i=3, cost=2: a>c,b>d
find_47(a,b,c,d) =
  if c > d
  then find_48(c,b)
  else find_48(d,a)
# n=2, i=2, cost=1: no comparisons done
find_48(a,b) =
  if a > b
  then b
  else a
# n=6, i=2, cost=4: a>c,a>d,b>e
find_44(a,b,c,d,e,f) =
  if b > f
  then find_32(a,b,c,d,e,f)
  else find_49(f,a,b,d,c)
# n=5, i=2, cost=3: a>c,b>d,b>e
find_49(a,b,c,d,e) =
  if a > b
  then find_18(b,c)
  else find_21(a,d,e)
# n=9, i=3, cost=7: a>b,a>c,a>d,a>e,a>f,b>c,b>d,b>e
find_36(a,b,c,d,e,f,g,h,i) =
  if f > g
  then find_50(a,b,f,d,e,c,g,h,i)
  else find_51(a,b,g,d,e,c,f,h,i)
# n=9, i=3, cost=6: a>b,a>d,a>e,a>f,a>g,b>d,b>e,b>f,c>g
find_51(a,b,c,d,e,f,g,h,i) =
  if h > i
  then find_52(a,b,c,h,e,f,d,g,i)
  else find_52(a,b,c,i,e,f,d,g,h)
# n=9, i=3, cost=5: a>b,a>e,a>f,a>g,a>h,b>e,b>f,b>g,c>h,d>i
find_52(a,b,c,d,e,f,g,h,i) =
  if c > d
  then find_53(a,b,c,d,e,f,g,h,i)
  else find_54(a,b,d,c,e,f,g,i)
# n=8, i=3, cost=4: a>b,a>e,a>f,a>g,b>e,b>f,b>g,c>d,c>h
find_54(a,b,c,d,e,f,g,h) =
  if b > c
  then find_55(c,e,f,g)
  else find_16(a,b,d,h)
# n=4, i=1, cost=3: no comparisons done
find_55(a,b,c,d) =
  if a > b
  then find_21(a,c,d)
  else find_21(b,c,d)
# n=9, i=3, cost=4: a>b,a>e,a>f,a>g,a>h,b>e,b>f,b>g,c>d,c>h,c>i,d>i
find_53(a,b,c,d,e,f,g,h,i) =
  if b > c
  then find_55(c,e,f,g)
  else find_56(a,b,d,h,i)
# n=5, i=2, cost=3: a>b,a>d,c>e
find_56(a,b,c,d,e) =
  if a > c
  then find_21(c,b,d)
  else find_18(a,e)
# n=9, i=3, cost=6: a>b,a>c,a>d,a>e,a>f,a>g,b>d,b>e,b>f,c>g
find_50(a,b,c,d,e,f,g,h,i) =
  if c > h
  then find_57(b,c,d,e,f,g,h,i)
  else find_58(a,b,h,c,e,f,d,i)
# n=8, i=3, cost=5: a>b,a>d,a>e,a>f,a>g,b>e,b>f,b>g,c>d
find_58(a,b,c,d,e,f,g,h) =
  if c > h
  then find_59(a,b,c,e,f,g,d,h)
  else find_60(a,b,h,c,f,g,e)
# n=7, i=3, cost=4: a>b,a>e,a>f,a>g,b>e,b>f,b>g,c>d
find_60(a,b,c,d,e,f,g) =
  if b > c
  then find_55(c,e,f,g)
  else find_17(a,b,d)
# n=8, i=3, cost=4: a>b,a>d,a>e,a>f,a>g,b>d,b>e,b>f,c>g,c>h
find_59(a,b,c,d,e,f,g,h) =
  if b > c
  then find_55(c,d,e,f)
  else find_43(a,b,g,h)
# n=8, i=2, cost=5: a>c,a>d,a>e,b>f,b>g
find_57(a,b,c,d,e,f,g,h) =
  if b > h
  then find_61(a,b,c,d,e,f,g,h)
  else find_62(h,a,b,d,e,c)
# n=6, i=2, cost=4: a>c,b>d,b>e,b>f
find_62(a,b,c,d,e,f) =
  if a > b
  then find_18(b,c)
  else find_55(a,d,e,f)
# n=8, i=2, cost=4: a>c,a>d,a>e,b>f,b>g,b>h
find_61(a,b,c,d,e,f,g,h) =
  if a > b
  then find_55(b,c,d,e)
  else find_55(a,f,g,h)
# n=10, i=3, cost=10: a>b,a>c,a>d,a>e,b>c
find_33(a,b,c,d,e,f,g,h,i,j) =
  if b > f
  then find_63(a,b,c,f,e,d,g,h,i,j)
  else find_64(a,f,b,e,d,g,h,i,j)
# n=9, i=3, cost=9: a>c,a>d,a>e,b>c
find_64(a,b,c,d,e,f,g,h,i) =
  if f > g
  then find_65(a,b,f,c,e,d,g,h,i)
  else find_65(a,b,g,c,e,d,f,h,i)
# n=9, i=3, cost=8: a>d,a>e,a>f,b>d,c>g
find_65(a,b,c,d,e,f,g,h,i) =
  if h > i
  then find_66(a,b,c,h,d,f,e,g,i)
  else find_66(a,b,c,i,d,f,e,g,h)
# n=9, i=3, cost=7: a>e,a>f,a>g,b>e,c>h,d>i
find_66(a,b,c,d,e,f,g,h,i) =
  if c > d
  then find_67(c,a,d,b,i,e,h,f,g)
  else find_67(d,a,c,b,h,e,i,f,g)
# n=9, i=3, cost=6: a>c,a>e,a>g,b>f,b>h,b>i,c>e,d>f
find_67(a,b,c,d,e,f,g,h,i) =
  if a > b
  then find_68(b,c,d,h,i,e,g)
  else find_30(a,c,d,g,f,h,i)
# n=7, i=2, cost=5: a>d,a>e,b>f
find_68(a,b,c,d,e,f,g) =
  if c > g
  then find_31(a,b,c,d,e,f,g)
  else find_31(a,b,g,e,d,f,c)
# n=10, i=3, cost=9: a>b,a>c,a>d,a>e,a>f,b>c,b>d
find_63(a,b,c,d,e,f,g,h,i,j) =
  if b > g
  then find_69(a,b,c,d,g,f,e,h,i,j)
  else find_70(a,g,b,f,e,h,i,j)
# n=8, i=3, cost=8: a>c,a>d,a>e,b>c
find_70(a,b,c,d,e,f,g,h) =
  if d > e
  then find_71(a,d,b,e,c,f,g,h)
  else find_71(a,e,b,d,c,f,g,h)
# n=8, i=3, cost=7: a>b,a>d,a>e,b>d,c>e
find_71(a,b,c,d,e,f,g,h) =
  if f > g
  then find_72(a,b,c,f,d,e,g,h)
  else find_72(a,b,c,g,d,e,f,h)
# n=8, i=3, cost=6: a>b,a>e,a>f,b>e,c>f,d>g
find_72(a,b,c,d,e,f,g,h) =
  if a > d
  then find_73(a,b,d,c,e,g,f,h)
  else find_74(d,a,b,c,g,h)
# n=6, i=3, cost=5: a>b,a>c,a>e,b>c
find_74(a,b,c,d,e,f) =
  if b > d
  then find_41(b,c,d,e,f)
  else find_42(a,d,b,e,f)
# n=8, i=3, cost=5: a>b,a>c,a>e,a>f,a>g,b>e,c>f,d>g
find_73(a,b,c,d,e,f,g,h) =
  if b > h
  then find_31(b,c,d,e,h,f,g)
  else find_75(a,h,b,c,d,f,g)
# n=7, i=3, cost=4: a>c,a>d,a>f,a>g,b>c,d>f,e>g
find_75(a,b,c,d,e,f,g) =
  if b > e
  then find_76(a,b,d,e,c,f)
  else find_76(a,e,d,b,g,f)
# n=6, i=3, cost=3: a>c,a>e,a>f,b>d,b>e,c>f
find_76(a,b,c,d,e,f) =
  if c > d
  then find_19(c,b,f,e)
  else find_77(a,d,e)
# n=3, i=2, cost=2: a>c
find_77(a,b,c) =
  if a > b
  then find_18(b,c)
  else a
# n=10, i=3, cost=8: a>b,a>c,a>d,a>e,a>f,a>g,b>c,b>d,b>e
find_69(a,b,c,d,e,f,g,h,i,j) =
  if f > g
  then find_78(a,b,f,d,e,c,g,h,i,j)
  else find_78(a,b,g,d,e,c,f,h,i,j)
# n=10, i=3, cost=7: a>b,a>c,a>d,a>e,a>f,a>g,b>d,b>e,b>f,c>g
find_78(a,b,c,d,e,f,g,h,i,j) =
  if c > h
  then find_79(a,b,c,d,e,f,g,h,i,j)
  else find_80(a,b,h,c,e,f,d,i,j)
# n=9, i=3, cost=6: a>b,a>d,a>e,a>f,a>g,b>e,b>f,b>g,c>d
find_80(a,b,c,d,e,f,g,h,i) =
  if h > i
  then find_52(a,b,c,h,f,g,e,d,i)
  else find_52(a,b,c,i,f,g,e,d,h)
# n=10, i=3, cost=6: a>b,a>c,a>d,a>e,a>f,a>g,a>h,b>d,b>e,b>f,c>g,c>h
find_79(a,b,c,d,e,f,g,h,i,j) =
  if i > j
  then find_81(a,b,c,i,e,f,d,h,g,j)
  else find_81(a,b,c,j,e,f,d,h,g,i)
# n=10, i=3, cost=5: a>b,a>c,a>e,a>f,a>g,a>h,a>i,b>e,b>f,b>g,c>h,c>i,d>j
find_81(a,b,c,d,e,f,g,h,i,j) =
  if c > d
  then find_61(c,b,d,h,i,g,e,f)
  else find_82(a,d,b,c,e,f,g,j)
# n=8, i=3, cost=4: a>c,a>d,a>e,a>f,a>g,b>d,b>h,c>e,c>f,c>g
find_82(a,b,c,d,e,f,g,h) =
  if b > c
  then find_43(a,c,d,h)
  else find_55(b,e,f,g)
# n=10, i=3, cost=12: a>b,a>c
find_3(a,b,c,d,e,f,g,h,i,j) =
  if d > e
  then find_83(a,d,c,b,e,f,g,h,i,j)
  else find_83(a,e,c,b,d,f,g,h,i,j)
# n=10, i=3, cost=11: a>c,a>d,b>e
find_83(a,b,c,d,e,f,g,h,i,j) =
  if a > b
  then find_33(a,b,e,d,c,f,g,h,i,j)
  else find_84(b,a,c,d,e,f,g,h,i,j)
# n=10, i=3, cost=10: a>b,a>c,a>d,a>e,b>c,b>d
find_84(a,b,c,d,e,f,g,h,i,j) =
  if a > f
  then find_63(a,b,c,d,e,f,g,h,i,j)
  else find_22(f,a,b,e,g,h,i,j)
