from bidict import bidict

moveable_map_revealer = 0
alfred_the_alpaca = 1300
amazon_archer = 850
amazon_warrior = 825
arambai = 1126
arbalester = 492
archer = 4
bactrian_camel = 1237
ballista_elephant = 1120
bandit = 299
battering_ram = 1258
battle_elephant = 1132
berserk = 692
bombard_cannon = 36
boyar = 876
builder = 118
camel = 897
camel_archer = 1007
camel_rider = 329
cannon_galleon = 420
canoe = 778
capped_ram = 422
caravel = 1004
cart = 1338
cataphract = 40
cavalier = 283
cavalry_archer = 39
centurion = 275
champion = 567
chu_ko_nu = 73
cobra_car = 748
condottiero = 882
conquistador = 771
cow_a = 705
cow_b = 1596
cow_c = 1598
cow_d = 1600
crossbowman = 24
demolition_raft = 1104
demolition_ship = 527
donkey = 846
dragon_ship = 1302
eagle_scout = 751
eagle_warrior = 753
eastern_swordsman = 894
elephant_archer = 873
elite_arambai = 1128
elite_ballista_elephant = 1122
elite_battle_elephant = 1134
elite_berserk = 694
elite_boyar = 878
elite_camel_archer = 1009
elite_cannon_galleon = 691
elite_caravel = 1006
elite_cataphract = 553
elite_chu_ko_nu = 559
elite_conquistador = 773
elite_eagle_warrior = 752
elite_elephant_archer = 875
elite_gbeto = 1015
elite_genitour = 1012
elite_genoese_crossbowman = 868
elite_huskarl = 555
elite_jaguar_warrior = 726
elite_janissary = 557
elite_kamayuk = 881
elite_karambit_warrior = 1125
elite_keshik = 1230
elite_kipchak = 1233
elite_konnik = 1227
elite_konnik_dismounted = 1253
elite_leitis = 1236
elite_longboat = 533
elite_longbowman = 530
elite_magyar_huszar = 871
elite_mameluke = 556
elite_mangudai = 561
elite_organ_gun = 1003
elite_plumed_archer = 765
elite_rattan_archer = 1131
elite_samurai = 560
elite_shotel_warrior = 1018
elite_skirmisher = 6
elite_steppe_lancer = 1372
elite_tarkan = 757
elite_teutonic_knight = 554
elite_throwing_axeman = 531
elite_turtle_ship = 832
elite_war_elephant = 558
elite_war_wagon = 829
elite_woad_raider = 534
farmer = 259
fast_fire_ship = 532
fire_galley = 1103
fire_ship = 529
fisherman = 56
fishing_ship = 13
flamethrower = 188
flaming_camel = 1263
forager = 120
furious_the_monkey_boy = 860
galleon = 442
galley = 539
gbeto = 1013
genitour = 1010
genoese_crossbowman = 866
goat = 1060
gold_miner = 579
goose = 1243
halberdier = 359
hand_cannoneer = 5
heavy_camel_rider = 330
heavy_cavalry_archer = 474
heavy_crossbowman = 493
heavy_demolition_ship = 528
heavy_pikeman = 892
heavy_scorpion = 542
horse_a = 814
horse_b = 1356
horse_c = 1602
horse_d = 1604
horse_e = 1606
hunter = 122
huskarl = 41
hussar = 441
imperial_camel_rider = 207
imperial_skirmisher = 1155
invisible_object = 1291
iroquois_warrior = 1374
jaguar_warrior = 725
janissary = 46
junk = 15
kamayuk = 879
karambit_warrior = 1123
keshik = 1228
khan = 1275
king = 434
kipchak = 1231
knight = 38
konnik = 1225
konnik_dismounted = 1252
legionary = 1
leitis = 1234
light_cavalry = 546
llama = 305
long_swordsman = 77
longboat = 250
longbowman = 8
lumberjack = 123
magyar_huszar = 869
mameluke = 282
man_at_arms = 75
mangonel = 280
mangudai = 11
merchant = 1572
militia = 74
missionary = 775
monk = 125
monk_with_relic = 286
ninja = 1145
norse_warrior = 361
onager = 550
organ_gun = 1001
ox_cart = 1271
ox_wagon = 1273
paladin = 569
penguin = 639
petard = 440
photonman = 1577
pig = 1245
pikeman = 358
plumed_archer = 763
priest = 1023
priest_with_relic = 1400
queen = 1292
rattan_archer = 1129
relic_cart = 1304
repairer = 156
royal_janissary = 52
samurai = 291
scorpion = 279
scout_cavalry = 448
sharkatzor = 1222
sheep = 594
shepherd = 592
shotel_warrior = 1016
siege_onager = 588
siege_ram = 548
siege_tower = 1105
skirmisher = 7
slinger = 185
spearman = 93
steppe_lancer = 1370
stone_miner = 124
tarkan = 755
teutonic_knight = 25
throwing_axeman = 281
torch_a_convertable = 854
torch_b_convertable = 1377
trade_cart_empty = 128
trade_cart_full = 204
trade_cog = 17
transport_ship = 545
trebuchet = 42
trebuchet_packed = 331
turkey = 833
turtle_ship = 831
two_handed_swordsman = 473
villager_female = 293
villager_male = 83
war_elephant = 239
war_galley = 21
war_wagon = 827
water_buffalo = 1142
woad_raider = 232
xolotl_warrior = 1570


unit_names = bidict({
    0: "moveable_map_revealer",
    1: "legionary",
    4: "archer",
    5: "hand_cannoneer",
    6: "elite_skirmisher",
    7: "skirmisher",
    8: "longbowman",
    11: "mangudai",
    13: "fishing_ship",
    15: "junk",
    17: "trade_cog",
    21: "war_galley",
    24: "crossbowman",
    25: "teutonic_knight",
    36: "bombard_cannon",
    38: "knight",
    39: "cavalry_archer",
    40: "cataphract",
    41: "huskarl",
    42: "trebuchet",
    46: "janissary",
    52: "royal_janissary",
    56: "fisherman",
    73: "chu_ko_nu",
    74: "militia",
    75: "man_at_arms",
    77: "long_swordsman",
    83: "villager_male",
    93: "spearman",
    118: "builder",
    120: "forager",
    122: "hunter",
    123: "lumberjack",
    124: "stone_miner",
    125: "monk",
    128: "trade_cart_empty",
    156: "repairer",
    185: "slinger",
    188: "flamethrower",
    204: "trade_cart_full",
    207: "imperial_camel_rider",
    232: "woad_raider",
    239: "war_elephant",
    250: "longboat",
    259: "farmer",
    275: "centurion",
    279: "scorpion",
    280: "mangonel",
    281: "throwing_axeman",
    282: "mameluke",
    283: "cavalier",
    286: "monk_with_relic",
    291: "samurai",
    293: "villager_female",
    299: "bandit",
    305: "llama",
    329: "camel_rider",
    330: "heavy_camel_rider",
    331: "trebuchet_packed",
    358: "pikeman",
    359: "halberdier",
    361: "norse_warrior",
    420: "cannon_galleon",
    422: "capped_ram",
    434: "king",
    440: "petard",
    441: "hussar",
    442: "galleon",
    448: "scout_cavalry",
    473: "two_handed_swordsman",
    474: "heavy_cavalry_archer",
    492: "arbalester",
    493: "heavy_crossbowman",
    527: "demolition_ship",
    528: "heavy_demolition_ship",
    529: "fire_ship",
    530: "elite_longbowman",
    531: "elite_throwing_axeman",
    532: "fast_fire_ship",
    533: "elite_longboat",
    534: "elite_woad_raider",
    539: "galley",
    542: "heavy_scorpion",
    545: "transport_ship",
    546: "light_cavalry",
    548: "siege_ram",
    550: "onager",
    553: "elite_cataphract",
    554: "elite_teutonic_knight",
    555: "elite_huskarl",
    556: "elite_mameluke",
    557: "elite_janissary",
    558: "elite_war_elephant",
    559: "elite_chu_ko_nu",
    560: "elite_samurai",
    561: "elite_mangudai",
    567: "champion",
    569: "paladin",
    579: "gold_miner",
    588: "siege_onager",
    592: "shepherd",
    594: "sheep",
    639: "penguin",
    691: "elite_cannon_galleon",
    692: "berserk",
    694: "elite_berserk",
    705: "cow_a",
    725: "jaguar_warrior",
    726: "elite_jaguar_warrior",
    748: "cobra_car",
    751: "eagle_scout",
    752: "elite_eagle_warrior",
    753: "eagle_warrior",
    755: "tarkan",
    757: "elite_tarkan",
    763: "plumed_archer",
    765: "elite_plumed_archer",
    771: "conquistador",
    773: "elite_conquistador",
    775: "missionary",
    778: "canoe",
    814: "horse_a",
    825: "amazon_warrior",
    827: "war_wagon",
    829: "elite_war_wagon",
    831: "turtle_ship",
    832: "elite_turtle_ship",
    833: "turkey",
    846: "donkey",
    850: "amazon_archer",
    854: "torch_a_convertable",
    860: "furious_the_monkey_boy",
    866: "genoese_crossbowman",
    868: "elite_genoese_crossbowman",
    869: "magyar_huszar",
    871: "elite_magyar_huszar",
    873: "elephant_archer",
    875: "elite_elephant_archer",
    876: "boyar",
    878: "elite_boyar",
    879: "kamayuk",
    881: "elite_kamayuk",
    882: "condottiero",
    892: "heavy_pikeman",
    894: "eastern_swordsman",
    897: "camel",
    1001: "organ_gun",
    1003: "elite_organ_gun",
    1004: "caravel",
    1006: "elite_caravel",
    1007: "camel_archer",
    1009: "elite_camel_archer",
    1010: "genitour",
    1012: "elite_genitour",
    1013: "gbeto",
    1015: "elite_gbeto",
    1016: "shotel_warrior",
    1018: "elite_shotel_warrior",
    1023: "priest",
    1060: "goat",
    1103: "fire_galley",
    1104: "demolition_raft",
    1105: "siege_tower",
    1120: "ballista_elephant",
    1122: "elite_ballista_elephant",
    1123: "karambit_warrior",
    1125: "elite_karambit_warrior",
    1126: "arambai",
    1128: "elite_arambai",
    1129: "rattan_archer",
    1131: "elite_rattan_archer",
    1132: "battle_elephant",
    1134: "elite_battle_elephant",
    1142: "water_buffalo",
    1145: "ninja",
    1155: "imperial_skirmisher",
    1222: "sharkatzor",
    1225: "konnik",
    1227: "elite_konnik",
    1228: "keshik",
    1230: "elite_keshik",
    1231: "kipchak",
    1233: "elite_kipchak",
    1234: "leitis",
    1236: "elite_leitis",
    1237: "bactrian_camel",
    1243: "goose",
    1245: "pig",
    1252: "konnik_dismounted",
    1253: "elite_konnik_dismounted",
    1258: "battering_ram",
    1263: "flaming_camel",
    1271: "ox_cart",
    1273: "ox_wagon",
    1275: "khan",
    1291: "invisible_object",
    1292: "queen",
    1300: "alfred_the_alpaca",
    1302: "dragon_ship",
    1304: "relic_cart",
    1338: "cart",
    1356: "horse_b",
    1370: "steppe_lancer",
    1372: "elite_steppe_lancer",
    1374: "iroquois_warrior",
    1377: "torch_b_convertable",
    1400: "priest_with_relic",
    1570: "xolotl_warrior",
    1572: "merchant",
    1577: "photonman",
    1596: "cow_b",
    1598: "cow_c",
    1600: "cow_d",
    1602: "horse_c",
    1604: "horse_d",
    1606: "horse_e",
})
