readin = [[4,8,-16,2,-18,20,-26,22,-6,24,14,10,-12],
[4,8,-16,2,-18,24,-20,22,-6,-12,26,10,14],
[4,8,-16,2,-18,24,-26,22,-6,-12,14,10,-20],
[4,8,-16,2,-24,20,-26,22,-6,10,14,-18,-12],
[4,10,-14,20,2,-22,-26,8,24,6,16,-12,18],
[6,8,-16,2,18,-20,26,-22,-4,-24,-14,-10,12],
[6,8,-16,2,18,-24,20,-22,-4,12,-26,-10,-14],
[6,8,-16,2,18,-24,26,-22,-4,12,-14,-10,20],
[6,8,16,2,22,-18,20,4,-26,-24,14,10,-12],
[6,8,16,2,22,-18,24,4,-26,-12,14,10,20],
[6,8,16,2,22,-24,20,4,-26,10,14,18,-12],
[6,8,-16,2,24,-20,26,-22,-4,-10,-14,18,12],
[6,-8,-16,18,-4,-20,26,-22,-2,-24,-14,-10,12],
[6,-8,-16,18,-4,-24,20,-22,-2,12,-26,-10,-14],
[6,-8,-16,18,-4,-24,26,-22,-2,12,-14,-10,20],
[6,-8,18,-16,-4,20,-26,22,2,24,14,10,-12],
[6,-8,18,-16,-4,24,-20,22,2,-12,26,10,14],
[6,-8,18,-16,-4,24,-26,22,2,-12,14,10,-20],
[6,-8,20,-18,-4,-16,26,22,-24,2,14,-10,12],
[6,-8,20,-18,-4,22,26,10,-24,2,14,-16,12],
[6,-8,20,-18,-4,-24,26,22,12,2,14,-10,16],
[6,-10,-14,-20,-16,-4,24,-2,-22,-26,-8,12,-18],
[6,10,-16,-22,2,-24,-20,26,-4,-12,-14,-8,-18],
[6,-10,18,-16,24,-4,20,22,2,26,14,8,12],
[6,-10,18,-22,-16,-4,20,24,2,26,14,-8,12],
[6,-16,18,-22,2,-4,20,24,10,26,14,-8,12]]

ident13 = open('13cr_errorident.txt','w')
rec = open('13cr_errorrec.txt','w')
ident13b = open('13cr_errorident_b.txt','w')

for i in range(0,len(readin)):
  coder = readin[i]
  print(str(i)+'  '+str(coder))
  K = Link('DT:'+str(coder))
  E = K.exterior()
  ID = E.identify()
  ident13.write(str(ID)+'  '+str(coder)+'\n')
  ident13b.write(str(coder)+'  '+str(ID)+'\n')

print('done.')

ident13.close()
rec.close()
ident13b.close()
