ship_list = ['IIQM2657568TIGW', 'HGP6764648PULAUXSYA', 'Q97193432QEPTKMJM', 'J26914IWVFHVPJ', 'KNG7KVSDWDMOS', 'AP643TRPUOC', 'CYDK38842792LNTFPLAK', 'TIQ6674MKXPDI', 'JEJ11972347XBDQNG', 'AYF9955136WG', 'ISHV223D', 'NBQJ786IFD', 'OLR6836USVEGYKNU', 'QJZ2WGNY', 'JU5794837HCYWBLKLJ', 'YU6184TZYHKD', 'HI2NLW', 'UT68LQ', 'L6744WTL', 'AO558562FFL', 'ZOC117753NYGRNI', 'NZJ291178IXYDWO', 'N8374HHUC', 'E971RDNDN', 'JTI131963T', 'L648HEHHIWQIY', 'G9115BNGELJVW', 'OYO2342OUXL', 'R25XSVEWR', 'P549498PPDIS', 'NHLJ87385YMJPKJZSW', 'ZDV458QMFTDN', 'VID3597661TATSTOAE', 'AV73742WGZF', 'ZP36719XTAK', 'M83UAOXBJD', 'C21827493COKAOH', 'UKT6844RMFK', 'MOMR3MX', 'B4OILTYETLD', 'BIR77FH', 'CZJO79455B', 'YH9ENWQ', 'S87FOTNR', 'OVVE54981481FM', 'E6966163FJVAA', 'JSQL253255WLAWRYHY', 'NWCY9258JDPYGKC', 'VBY7245579XS', 'T379BSSFFY', 'WRL25965HRW', 'PSZ1ZMJTBP', 'J93826J', 'G5666XYUMKEROO', 'DNE9943WPRKIR', 'H411992WJLMKCMQH', 'ED875565EBOSE', 'Q12714141LNILMT', 'WZLT6224882EXKDUOUT', 'WDW88PAAXYSAL', 'H15731965KLXPPVGRW', 'ULV2455821VBUHXOBJ', 'W75831UOYNBO', 'LIUH8BMFHK', 'Y16MXKZ', 'KZ9557JYB', 'JTMX33896CTQRXNKI', 'Q1543MQZD', 'HH46CKQ', 'JLT3491VNIAUCY', 'R8163394IEKX', 'L2733IERQAH', 'GKH6319759Y', 'RV39811533FOXHJNXDA', 'MP21924WS', 'FK5928348GJBUB', 'DBA95452GOIQ', 'WJFQ73953NBFYHN', 'FW3762654O', 'EH5339174NM', 'NQR9BEYUCCS', 'CTM675I', 'VKIM35582517VKLB', 'RW4772916OKMVQORD', 'B967CYQXHTFY', 'G2EUWDATKY', 'NLB12439YLOMWMNI', 'Q82371169BHNY', 'YWCI6DOBRRSRM', 'LR92QT', 'LDNK5137451XY', 'O47275952WMCC', 'UJP5459727HCC', 'CG9138218MXRFW', 'CCDU7PCKBRFCK', 'NL93278642CTSM', 'PRA831Z', 'F673SPKMZ', 'F6D', 'QANZ349AYNXQFEKF', 'B47685889JUQIN', 'HA18133KX', 'QHHV4596892KXNXMLHHV', 'LWD456263NPQEMQWUY', 'DBDO38TGTYESXT', 'NDSZ3583KRDVPLK', 'L54ETHHTFPVF', 'EXNP7695CZYFSDK', 'F38MEZGOA', 'K2LTXSA', 'N781325AZQCXBE', 'JQ511713JODTYEALK', 'BE4412EPEW', 'SQ46881JEZFLBK', 'A6Q', 'KP16XSEW', 'XWQ33365775TOGWE', 'LLNF842OK', 'C7971RK', 'ASJ6279688YAZX', 'C1424TNLET', 'NH93192CWKG', 'MYQF753DHI', 'GLH872AMDY', 'GQZ4466551XBONRU']
print(ship_list)
dep = []
ser = []
dest = []
code = ""
deps = ""
bode = ""
for lists in ship_list:
index = 0
for stuff in lists:
if stuff.isalpha():
index += 1
continue
elif stuff.isdigit():
code = lists[0:index]
lists = lists[index:]
dep.append(code)
break
index = 0
for stuff in lists:
if stuff.isdigit():
index += 1
continue
elif stuff.isalpha():
bode = lists[0:index]
deps = lists[index:]
ser.append(bode)
dest.append(deps)
break
index = 0
print("departure codes: ", dep)
print("serial numbers :", ser)
print("destination code :", dest)