Dataset Viewer
Auto-converted to Parquet
blob_id
stringlengths
40
40
formatted
stringlengths
15
1.74M
input_ids
listlengths
7
1.19M
tokens
listlengths
7
1.19M
rows
listlengths
7
1.19M
cols
listlengths
7
1.19M
aff1a9263e183610f403a4d6a7f27b45eacb7ff2
name = "valentina " print(name * 1000)
[ 444, 299, 332, 718, 323, 5245, 332, 222, 1243, 45, 444, 338, 244, 54, 53, 53, 53, 46, 222 ]
[ "name", "Ġ=", "Ġ\"", "val", "ent", "ina", "Ġ\"", "Ċ", "print", "(", "name", "Ġ*", "Ġ", "1", "0", "0", "0", ")", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ]
[ 1, 5, 7, 9, 12, 15, 18, 20, 1, 6, 7, 11, 13, 14, 15, 16, 17, 18, 19 ]
eabf06481509962652812af67ad59da5cfe30fae
"""mupub module.""" __all__ = ( "__title__", "__summary__", "__version__", "__author__", "__license__", "__copyright__", ) __title__ = "mupub" __summary__ = "Musical score publishing utility for the Mutopia Project" """Versioning: This utility follows a MAJOR . MINOR . EDIT format. Upon a major release, the MAJOR number is incremented and the MINOR is zeroed. During development of an upcoming release, the MINOR number may be incremented. """ __version__ = "1.0.8" __author__ = "Glen Larsen, Chris Sawer" __author_email__ = "[email protected]" __uri__ = "http://mutopiaproject.org/" __license__ = "MIT" __copyright__ = "Copyright 2018 The Mutopia Project" from .assets import collect_assets from .commands.build import build from .commands.check import check from .commands.init import init from .commands.tag import tag from .commands.clean import clean from .config import CONFIG_DICT, CONFIG_DIR, getDBPath from .config import test_config, saveConfig from .core import MUTOPIA_BASE, FTP_BASE, URL_BASE from .core import id_from_footer from .exceptions import BadConfiguration, IncompleteBuild, TagProcessException from .header import Loader, LYLoader, VersionLoader from .header import RawLoader, Header, REQUIRED_FIELDS from .header import find_header from .lily import LyLocator, LyVersion from .validate import Validator, DBValidator, in_repository from .tagedit import tag_header, tag_file from .rdfu import NS, MuRDF from .utils import resolve_input, resolve_lysfile
[ 3012, 114, 436, 375, 2313, 7128, 222, 222, 523, 483, 523, 299, 327, 303, 9609, 1333, 41451, 303, 9609, 1386, 41451, 303, 9609, 1687, 41451, 303, 9609, 2133, 41451, 303, 9609, 2094, 41451, 303, 9609, 11793, 41451, 222, 46, 499, 222, 523, 1333, 523, 299, 332, 114, 436, 375, 39, 222, 523, 1386, 523, 299, 332, 82, 371, 1599, 6842, 27552, 15479, 456, 341, 23360, 539, 923, 5426, 39, 222, 222, 3012, 2080, 318, 63, 222, 2287, 15479, 11629, 331, 13083, 22854, 657, 14369, 776, 657, 18805, 2224, 51, 2791, 286, 331, 12372, 222, 3794, 49, 341, 13083, 22854, 1470, 458, 11902, 337, 480, 341, 14369, 776, 458, 5953, 337, 51, 222, 29807, 8230, 451, 619, 40290, 3636, 49, 341, 14369, 776, 1470, 1648, 545, 222, 12128, 337, 51, 222, 222, 3012, 222, 523, 1687, 523, 299, 332, 54, 51, 53, 51, 61, 39, 222, 222, 523, 2133, 523, 299, 332, 76, 1688, 517, 4207, 291, 49, 39636, 377, 831, 284, 39, 222, 523, 2133, 100, 1951, 523, 299, 332, 108, 1688, 113, 51, 1861, 125, 69, 7265, 51, 527, 39, 222, 523, 3469, 523, 299, 332, 544, 574, 2294, 28403, 16650, 51, 1107, 5694, 222, 222, 523, 2094, 523, 299, 332, 6688, 39, 222, 523, 11793, 523, 299, 332, 10585, 244, 55, 53, 54, 61, 906, 23360, 539, 923, 5426, 39, 222, 222, 1097, 657, 3527, 1220, 7922, 100, 3527, 222, 1097, 657, 7626, 51, 1848, 1220, 1984, 222, 1097, 657, 7626, 51, 1571, 1220, 1524, 222, 1097, 657, 7626, 51, 1683, 1220, 3238, 222, 1097, 657, 7626, 51, 2159, 1220, 2621, 222, 1097, 657, 7626, 51, 6064, 1220, 5084, 222, 1097, 657, 1180, 1220, 12263, 100, 29870, 49, 12263, 100, 3217, 49, 640, 2015, 1233, 222, 1097, 657, 1180, 1220, 913, 100, 1180, 49, 4166, 1081, 222, 1097, 657, 1284, 1220, 507, 7054, 1182, 70, 100, 6185, 49, 35127, 100, 6185, 49, 3846, 100, 6185, 222, 1097, 657, 1284, 1220, 828, 100, 1097, 100, 4813, 222, 1097, 657, 11453, 1220, 11074, 2339, 49, 719, 5916, 3328, 49, 9147, 2877, 1002, 222, 1097, 657, 2127, 1220, 12400, 49, 517, 94, 4903, 49, 3050, 4903, 222, 1097, 657, 2127, 1220, 16297, 4903, 49, 10275, 49, 38463, 100, 29042, 222, 1097, 657, 2127, 1220, 2309, 100, 2127, 222, 1097, 657, 113, 2820, 1220, 517, 126, 16455, 49, 517, 126, 2080, 222, 1097, 657, 4647, 1220, 19510, 49, 4594, 7069, 49, 347, 100, 6335, 222, 1097, 657, 121, 4854, 302, 1220, 2621, 100, 2127, 49, 2621, 100, 781, 222, 1097, 657, 18700, 122, 1220, 5234, 49, 42179, 32650, 222, 1097, 657, 2324, 1220, 5895, 100, 1151, 49, 5895, 100, 651, 120, 781, 222 ]
[ "\"\"\"", "m", "up", "ub", "Ġmodule", ".\"\"\"", "Ċ", "Ċ", "__", "all", "__", "Ġ=", "Ġ(", "ĊĠĠĠ", "Ġ\"__", "title", "__\",", "ĊĠĠĠ", "Ġ\"__", "summary", "__\",", "ĊĠĠĠ", "Ġ\"__", "version", "__\",", "ĊĠĠĠ", "Ġ\"__", "author", "__\",", "ĊĠĠĠ", "Ġ\"__", "license", "__\",", "ĊĠĠĠ", "Ġ\"__", "copyright", "__\",", "Ċ", ")", "ĊĊ", "Ċ", "__", "title", "__", "Ġ=", "Ġ\"", "m", "up", "ub", "\"", "Ċ", "__", "summary", "__", "Ġ=", "Ġ\"", "M", "us", "ical", "Ġscore", "Ġpublishing", "Ġutility", "Ġfor", "Ġthe", "ĠMut", "op", "ia", "ĠProject", "\"", "Ċ", "Ċ", "\"\"\"", "Version", "ing", ":", "Ċ", "This", "Ġutility", "Ġfollows", "Ġa", "ĠMA", "JOR", "Ġ.", "ĠMIN", "OR", "Ġ.", "ĠEDIT", "Ġformat", ".", "ĠUp", "on", "Ġa", "Ġmajor", "Ċ", "release", ",", "Ġthe", "ĠMA", "JOR", "Ġnumber", "Ġis", "Ġincrement", "ed", "Ġand", "Ġthe", "ĠMIN", "OR", "Ġis", "Ġzero", "ed", ".", "Ċ", "During", "Ġdevelopment", "Ġof", "Ġan", "Ġupcoming", "Ġrelease", ",", "Ġthe", "ĠMIN", "OR", "Ġnumber", "Ġmay", "Ġbe", "Ċ", "increment", "ed", ".", "Ċ", "Ċ", "\"\"\"", "Ċ", "__", "version", "__", "Ġ=", "Ġ\"", "1", ".", "0", ".", "8", "\"", "Ċ", "Ċ", "__", "author", "__", "Ġ=", "Ġ\"", "G", "len", "ĠL", "ars", "en", ",", "ĠChris", "ĠS", "aw", "er", "\"", "Ċ", "__", "author", "_", "email", "__", "Ġ=", "Ġ\"", "g", "len", "l", ".", "gl", "x", "@", "gmail", ".", "com", "\"", "Ċ", "__", "uri", "__", "Ġ=", "Ġ\"", "http", "://", "mut", "opi", "aproject", ".", "org", "/\"", "Ċ", "Ċ", "__", "license", "__", "Ġ=", "Ġ\"", "MIT", "\"", "Ċ", "__", "copyright", "__", "Ġ=", "Ġ\"", "Copyright", "Ġ", "2", "0", "1", "8", "ĠThe", "ĠMut", "op", "ia", "ĠProject", "\"", "Ċ", "Ċ", "from", "Ġ.", "assets", "Ġimport", "Ġcollect", "_", "assets", "Ċ", "from", "Ġ.", "commands", ".", "build", "Ġimport", "Ġbuild", "Ċ", "from", "Ġ.", "commands", ".", "check", "Ġimport", "Ġcheck", "Ċ", "from", "Ġ.", "commands", ".", "init", "Ġimport", "Ġinit", "Ċ", "from", "Ġ.", "commands", ".", "tag", "Ġimport", "Ġtag", "Ċ", "from", "Ġ.", "commands", ".", "clean", "Ġimport", "Ġclean", "Ċ", "from", "Ġ.", "config", "Ġimport", "ĠCONFIG", "_", "DICT", ",", "ĠCONFIG", "_", "DIR", ",", "Ġget", "DB", "Path", "Ċ", "from", "Ġ.", "config", "Ġimport", "Ġtest", "_", "config", ",", "Ġsave", "Config", "Ċ", "from", "Ġ.", "core", "Ġimport", "ĠM", "UTO", "PI", "A", "_", "BASE", ",", "ĠFTP", "_", "BASE", ",", "ĠURL", "_", "BASE", "Ċ", "from", "Ġ.", "core", "Ġimport", "Ġid", "_", "from", "_", "footer", "Ċ", "from", "Ġ.", "exceptions", "Ġimport", "ĠBad", "Configuration", ",", "ĠIn", "complete", "Build", ",", "ĠTag", "Process", "Exception", "Ċ", "from", "Ġ.", "header", "Ġimport", "ĠLoader", ",", "ĠL", "Y", "Loader", ",", "ĠVersion", "Loader", "Ċ", "from", "Ġ.", "header", "Ġimport", "ĠRaw", "Loader", ",", "ĠHeader", ",", "ĠREQUIRED", "_", "FIELDS", "Ċ", "from", "Ġ.", "header", "Ġimport", "Ġfind", "_", "header", "Ċ", "from", "Ġ.", "l", "ily", "Ġimport", "ĠL", "y", "Locator", ",", "ĠL", "y", "Version", "Ċ", "from", "Ġ.", "validate", "Ġimport", "ĠValidator", ",", "ĠDB", "Validator", ",", "Ġin", "_", "repository", "Ċ", "from", "Ġ.", "t", "aged", "it", "Ġimport", "Ġtag", "_", "header", ",", "Ġtag", "_", "file", "Ċ", "from", "Ġ.", "rdf", "u", "Ġimport", "ĠNS", ",", "ĠMu", "RDF", "Ċ", "from", "Ġ.", "utils", "Ġimport", "Ġresolve", "_", "input", ",", "Ġresolve", "_", "ly", "s", "file", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 10, 10, 12, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 16, 16, 16, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 20, 20, 20, 20, 21, 22, 22, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 24, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 28, 29, 29, 29, 29, 29, 29, 29, 29, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 31, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 33, 33, 34, 34, 34, 34, 34, 34, 34, 34, 35, 35, 35, 35, 35, 35, 35, 35, 36, 36, 36, 36, 36, 36, 36, 36, 37, 37, 37, 37, 37, 37, 37, 37, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 43, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 45, 45, 45, 45, 45, 45, 45, 45, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 48, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50 ]
[ 1, 4, 5, 7, 9, 16, 20, 1, 1, 3, 6, 8, 10, 12, 4, 8, 13, 17, 4, 8, 15, 19, 4, 8, 15, 19, 4, 8, 14, 18, 4, 8, 15, 19, 4, 8, 17, 21, 1, 2, 1, 1, 3, 8, 10, 12, 14, 15, 17, 19, 20, 1, 3, 10, 12, 14, 16, 17, 19, 23, 29, 40, 48, 52, 56, 60, 62, 64, 72, 73, 1, 1, 4, 11, 14, 15, 1, 5, 13, 21, 23, 26, 29, 31, 35, 37, 39, 44, 51, 52, 55, 57, 59, 65, 1, 8, 9, 13, 16, 19, 26, 29, 39, 41, 45, 49, 53, 55, 58, 63, 65, 66, 1, 7, 19, 22, 25, 34, 42, 43, 47, 51, 53, 60, 64, 67, 1, 10, 12, 13, 1, 1, 4, 1, 3, 10, 12, 14, 16, 17, 18, 19, 20, 21, 22, 1, 1, 3, 9, 11, 13, 15, 16, 19, 21, 24, 26, 27, 33, 35, 37, 39, 40, 1, 3, 9, 10, 15, 17, 19, 21, 22, 25, 26, 27, 29, 30, 31, 36, 37, 40, 41, 1, 3, 6, 8, 10, 12, 16, 19, 22, 25, 33, 34, 37, 39, 1, 1, 3, 10, 12, 14, 16, 19, 20, 1, 3, 12, 14, 16, 18, 27, 28, 29, 30, 31, 32, 36, 40, 42, 44, 52, 53, 1, 1, 5, 7, 13, 20, 28, 29, 35, 1, 5, 7, 15, 16, 21, 28, 34, 1, 5, 7, 15, 16, 21, 28, 34, 1, 5, 7, 15, 16, 20, 27, 32, 1, 5, 7, 15, 16, 19, 26, 30, 1, 5, 7, 15, 16, 21, 28, 34, 1, 5, 7, 13, 20, 27, 28, 32, 33, 40, 41, 44, 45, 49, 51, 55, 1, 5, 7, 13, 20, 25, 26, 32, 33, 38, 44, 1, 5, 7, 11, 18, 20, 23, 25, 26, 27, 31, 32, 36, 37, 41, 42, 46, 47, 51, 1, 5, 7, 11, 18, 21, 22, 26, 27, 33, 1, 5, 7, 17, 24, 28, 41, 42, 45, 53, 58, 59, 63, 70, 79, 1, 5, 7, 13, 20, 27, 28, 30, 31, 37, 38, 46, 52, 1, 5, 7, 13, 20, 24, 30, 31, 38, 39, 48, 49, 55, 1, 5, 7, 13, 20, 25, 26, 32, 1, 5, 7, 8, 11, 18, 20, 21, 28, 29, 31, 32, 39, 1, 5, 7, 15, 22, 32, 33, 36, 45, 46, 49, 50, 60, 1, 5, 7, 8, 12, 14, 21, 25, 26, 32, 33, 37, 38, 42, 1, 5, 7, 10, 11, 18, 21, 22, 25, 28, 1, 5, 7, 12, 19, 27, 28, 33, 34, 42, 43, 45, 46, 50 ]
54f0ed5f705d5ada28721301f297b2b0058773ad
"""Module for the bot""" from copy import deepcopy from time import sleep import mcpi.minecraft as minecraft from mcpi.vec3 import Vec3 import mcpi.block as block from search import SearchProblem, astar, bfs from singleton import singleton _AIR = block.AIR.id _WATER = block.WATER.id _LAVA = block.LAVA.id _BEDROCK = block.BEDROCK.id _DROP = 2 # It can drop at most this many _DROP_PLUS_1 = _DROP + 1 _DELAY = 1 class _Vec3(Vec3): """A Vec3 that is hashable. Everything in this program should use this class.""" def __hash__(self): """Return the hash.""" return hash((self.x, self.y, self.z)) def clone(self): """Return a clone.""" return _Vec3(self.x, self.y, self.z) class _GenericBot: """A generic bot.""" def __init__(self, pos, inventory=None): """Initialize with an empty inventory. inventory is a dictionary. If None, an empty one will be used.""" if inventory is None: self._inventory = {} else: self._inventory = deepcopy(inventory) self._pos = deepcopy(pos) def take_action(self, action): """Take the action (acquired from _get_legal_actions).""" getattr(self, action["func"])(*action.get("args", ()), **action.get("kwargs", {})) def take_actions(self, actions, seconds=None): """Take these actions. If seconds is not None, sleep 'seconds' seconds. """ if not actions: return self.take_action(actions[0]) for action in actions[1:]: if seconds is not None: sleep(seconds) self.take_action(action) def get_pos(self): """Return the position.""" return deepcopy(self._pos) def get_legal_actions(self, block_=None): """Return a list of legal actions. If block_ is None, return all legal actions. Otherwise, return all legal actions that don't involve placing the block.""" return self._get_move_actions(block_) + self._get_mine_actions() + self._get_placement_actions(block_) def contains(self, block_): """Return whether or not the bot contains the block id.""" return block_ in self._inventory def _get_block(self, pos): """Get the block at the position.""" raise NotImplementedError def _place(self, loc, exclude=None, block_=None): """Place a block from the inventory only. If exclude is not None, place a block that is not 'exclude'. If block is not None, place that block only. """ if not self._inventory: raise Exception("Inventory empty") if block_ is None: for key in self._inventory: if key != exclude: block_ = key break else: raise Exception(("You requested not to place %s, but it is the only block in the inventory." % exclude)) if block_ not in self._inventory: raise Exception("Block %s is not in the inventory" % block_) if self._inventory[block_] == 1: del self._inventory[block_] else: self._inventory[block_] -= 1 self._set_block(loc, block_) def _move_down(self): """Move and mine the block below.""" new_pos = self._pos + _Vec3(0, -1, 0) block_ = self._get_block(new_pos) if block_ != _WATER: self._add_to_inv(block_) self._move(new_pos) def _add_to_inv(self, block_): """Add the block to the inventory.""" if block_ in self._inventory: self._inventory[block_] += 1 else: self._inventory[block_] = 1 def _move_up(self, exclude=None): """Move and place a block below. If exclude is not None, place a block that is not 'exclude'. """ self._move(self._pos + _Vec3(0, 1, 0)) self._place(self._pos + _Vec3(0, -1, 0), exclude) def _mine(self, loc): """Mine the block.""" block_ = self._get_block(loc) self._add_to_inv(block_) self._set_block(loc, _AIR) def _get_move_actions(self, exclude=None): """Return a list of legal movement actions. exclude is the block to exclude. """ rtn = [] # Check for moving up can_move_up = self._get_block(self._pos + _Vec3(0, 2, 0)) in {_AIR, _WATER} if can_move_up: if self._surrounded(): rtn.append({"func": "_move", "args": (self._pos + _Vec3(0, 1, 0),)}) else: rtn.append({"func": "_move_up", "args": (exclude,)}) # Check for moving down hidden_block = self._get_block(self._pos + _Vec3(0, -2, 0)) if hidden_block == _WATER or hidden_block not in {_AIR, _LAVA}: rtn.append({"func": "_move_down"}) # Check for side moves for dir_ in _adj_dirs(): rtn.extend(self._side_moves(dir_, can_move_up)) return rtn def _side_moves(self, dir_, can_move_up): """Return the list of side moves. dir_ is an adjacent direction. can_move_up is a boolean for whether or not the bot can move up. """ rtn = [] base_pos = self._pos + dir_ base_block = self._get_block(base_pos) empty_blocks = {_AIR, _WATER} # Check if it can move up if can_move_up and base_block not in {_AIR, _LAVA, _WATER}: for vert_dir in [_Vec3(0, 1, 0), _Vec3(0, 2, 0)]: if self._get_block(base_pos + vert_dir) not in empty_blocks: break else: rtn.append({"func": "_move", "args": (base_pos + _Vec3(0, 1, 0),)}) # Check if it can move in that direction for vert_dir in [_Vec3(), _Vec3(0, 1, 0)]: if self._get_block(base_pos + vert_dir) not in empty_blocks: break # Fall else: pos = base_pos + _Vec3(0, -1, 0) for _ in xrange(_DROP_PLUS_1): block_ = self._get_block(pos) if block_ != _AIR: if block_ != _LAVA: rtn.append({"func": "_move", "args": (pos + _Vec3(0, 1, 0),)}) break pos.y -= 1 def _surrounded(self): """Return whether or not the bot is surrounded by water.""" for dir_ in _adj_dirs(): if self._get_block(self._pos + dir_) != _WATER: return False return True def _get_mine_actions(self): """Return a list of legal mining actions (that only involve mining and not moving).""" rtn = [] dont_mine = {_AIR, _WATER, _LAVA} # Mine above. pos_above = self._pos + _Vec3(0, 2, 0) if self._get_block(pos_above) not in dont_mine: rtn.append({"func": "_mine", "args": (pos_above,)}) for dir_ in _adj_dirs(): pos = self._pos + dir_ for _ in xrange(2): if self._get_block(pos) not in dont_mine: rtn.append({"func": "_mine", "args": (pos,)}) pos = pos + _Vec3(0, 1, 0) return rtn def _get_placement_actions(self, exclude=None): """Return a list of legal actions that only involve placing a block from the inventory. exclude is a block id. It is the block that should not be placed. If None, any block can be placed.""" if not self._has_blocks_to_place(exclude=exclude): return [] dirs = [_Vec3(0, 2, 0)] for dir_ in _adj_dirs(): dirs.extend([dir_, dir_ + _Vec3(0, 1, 0)]) if self._get_block(self._pos + dir_) in [_AIR, _WATER]: dirs.append(dir_ + _Vec3(0, -1, 0)) rtn = [] for dir_ in dirs: pos = self._pos + dir_ if self._can_place(pos): rtn.append({"func": "_place", "args": (pos,), "kwargs": {"exclude": exclude}}) return rtn def _can_place(self, loc): """Return whether or not the bot can place a block at that location independent of what it has in its inventory.""" non_blocks = [_AIR, _WATER, _LAVA] player = [self._pos, self._pos + _Vec3(0, 1, 0)] for dir_ in _adj_dirs + [_Vec3(0, 1, 0), _Vec3(0, -1, 0)]: new_loc = loc + dir_ if new_loc not in player and self._get_block(new_loc) not in non_blocks: return True return False def _has_blocks_to_place(self, exclude=None): """Return whether or not the bot can place a block from the inventory. If exclude is None, any block can be placed.""" for block_ in self._inventory: if block_ != exclude: return True return False def _set_block(self, pos, block_): """Set a block. block_ is the block id.""" raise NotImplementedError def _move(self, pos): """Move there only.""" self._pos = deepcopy(pos) class _ImaginaryBot(_GenericBot): """A bot used for finding paths that doesn't actually change blocks in the world.""" def __init__(self, pos, inventory=None): """Create a new bot.""" _GenericBot.__init__(self, pos, inventory) self._changes = {} # Changes to the world def _set_block(self, pos, block_): """Set a block. block_ is the block id.""" self._changes[deepcopy(pos)] = block def _get_block(self, pos): """Get the block at the position.""" if pos in self._changes: return self._changes[pos] else: return _get_mc().getBlock(pos) def get_block(self, pos): """The public version.""" return self._get_block(pos) def __hash__(self): """Return the hash.""" return hash(frozenset([self._pos] + _key_vals(self._inventory) + _key_vals(self._changes))) class Bot(_GenericBot): """The real bot. All vector arguments are Vec3s.""" _BOT_BLOCK = block.IRON_BLOCK.id def __init__(self): """Create a bot next to the player.""" pos = _get_mc().player.getTilePos() + Vec3(2, 0, 0) pos = _Vec3(pos.x, pos.y, pos.z) _GenericBot.__init__(self, pos) self._pos = pos self._move(self._pos) @staticmethod def destroy_all(): """Destroy all bots within a small distance (in case I forget to destroy one).""" player_loc = _player_loc() minec = _get_mc() rad = 10 for x in xrange(player_loc.x - rad, player_loc.x + rad): for y in xrange(player_loc.y - rad, player_loc.y + rad): for z in xrange(player_loc.z - rad, player_loc.z + rad): if minec.getBlock(x, y, z) == Bot._BOT_BLOCK: minec.setBlock(x, y, z, _AIR) def destroy(self): """Set itself to air.""" self._set_block(self._pos, _AIR) self._set_block(self._pos + _Vec3(0, 1, 0), _AIR) def fetch(self, block_name): """Mine and return a block to the player.""" imag_bot = _ImaginaryBot(self._pos, self._inventory) block_id = getattr(block, block_name).id block_loc = self._get_block_loc(block_id) mine_prob = _MineProblem(imag_bot, block_loc, block_id) mine_actions = astar(mine_prob, _mine_heuristic) self.take_actions(mine_actions, _DELAY) imag_bot = _ImaginaryBot(self._pos, self._inventory) player_loc = _player_loc() return_prob = _ReturnProblem(imag_bot, block_id, player_loc) return_actions = astar(return_prob, _return_heuristic) imag_bot.take_actions(return_actions) return_actions.append({"func": "_place", "args": (imag_bot.get_pos() + player_loc) / 2, "kwargs": {"block": block_id}}) self.take_actions(return_actions, _DELAY) def _get_block_loc(self, block_id): """Return the location of the block.""" find_prob = FindProblem(self._pos, block_id) dirs = bfs(find_prob) return self._pos + sum(dirs) def _set_block(self, pos, block_): """Place an actual block in the world. block is a block id.""" _get_mc().setBlock(pos, block_) def _get_block(self, pos): """Get the block at the position.""" return _get_mc().getBlock(pos) def _move(self, pos): """Move there, and set the appropriate blocks.""" self._set_block(self._pos, _AIR) self._set_block(self._pos + _Vec3(0, 1, 0), _AIR) self._set_block(pos, self._BOT_BLOCK) self._set_block(pos + _Vec3(0, 1, 0), self._BOT_BLOCK) self._pos = pos class FindProblem(SearchProblem): """Problem for finding the location of a block in the world. A state in this problem is a location. """ def __init__(self, start_loc, block_id): """Initialize.""" self._start_loc = deepcopy(start_loc) self._block_id = block_id def getStartState(self): """Return the starting location.""" return self._start_loc def isGoalState(self, state): return _get_mc().getBlock(state) == self._block_id def getSuccessors(self, state): """Return the successors.""" rtn = [] for dir_ in _all_dirs(): successor = state + dir_ if successor.y <= _get_mc().getHeight(successor.x, successor.z) and _get_mc().getBlock(successor) != _BEDROCK: rtn.append((successor, dir_, 1)) return rtn class _MineProblem(SearchProblem): """The problem of finding the block and mining it (not returning it).""" def __init__(self, imag_bot, block_loc, block_id): """Initialize the problem with an _ImaginaryBot. block_loc is a Vec3. """ self._bot = imag_bot self._block_loc = deepcopy(block_loc) self._block_id = block_id def get_block_loc(self): """Return the block location.""" return deepcopy(self._block_loc) def get_block_id(self): """Return the block it's trying to mine.""" return self._block_id def getStartState(self): """Return the bot passed in.""" return self._bot def isGoalState(self, state): """Return whether or not the bot has the block.""" return state.contains(self._block_id) def getSuccessors(self, state): """Return the successors.""" rtn = [] for action in state.get_legal_actions(): successor = deepcopy(state) successor.take_action(action) rtn.append((successor, action, 1)) return rtn class _ReturnProblem(SearchProblem): """The problem of returning to the player. This does not place the block next to the player.""" def __init__(self, imag_bot, block_, player_loc): """Initialized the problem with an _ImaginaryBot. block is a block id.""" self._bot = imag_bot self._block = block_ self._player_loc = player_loc def get_player_loc(self): """Return the player location.""" return deepcopy(self._player_loc) def getStartState(self): """Return the bot passed in.""" return self._bot def isGoalState(self, state): """Return whether or not the bot is next to the player.""" diff = state.get_pos() - self._player_loc return ( diff.y == 0 and (diff.x == 0 or diff.z == 0) and abs(diff.x) + abs(diff.z) == 2 and state.get_block(self._player_loc + diff / 2 + _Vec3(0, -1, 0)) not in (_AIR, _LAVA, _WATER) ) def getSuccessors(self, state): """Return the successors.""" rtn = [] for action in state.get_legal_actions(self._block): successor = deepcopy(state) successor.take_action(action) rtn.append((successor, action, 1)) return rtn def _mine_heuristic(bot, problem): """Return the mining heuristic. bot is an _ImaginaryBot. """ if bot.contains(problem.get_block_id()): return 0 bot_pos = bot.get_pos() dest_pos = problem.get_block_loc() # If man == dy: return man + 1 # If man > dy: return man # If man < dy: return dy? man_dist = _manhattan((bot_pos.x, bot_pos.z), (dest_pos.x, dest_pos.z)) y_diff = bot_pos.y - dest_pos.y if y_diff < 0: y_diff += 1 if y_diff == 0: return man_dist # Transform so that it's only dropping drop = _DROP if y_diff > 0 else 1 y_diff = abs(y_diff) drops = _drops(y_diff, drop) if man_dist > drops: return man_dist if man_dist == drops: return man_dist + 1 if drop == 1: return drops if y_diff % drop == 1: return drops return drops + 1 def _drops(dist, drop): """Return the number of times it takes to drop a distance dist. drop is the length of one drop. Both are assumed positive.""" rtn = dist / drop if dist % drop != 0: rtn += 1 return rtn def _return_heuristic(bot, problem): """Return the return heuristic. bot is an _ImaginaryBot. """ bot_pos = bot.get_pos() player_pos = problem.get_player_loc() bot_plane_pos = (bot.x, bot.z) y_diff = bot_pos.y - player_pos.y drop = _DROP if y_diff > 0 else 1 y_diff = abs(y_diff) drops = _drops(y_diff, drop) min_man = float("inf") for dir_ in _adj_dirs(): loc = player_pos + 2 * dir_ man_dist = _manhattan(bot_plane_pos, (loc.x, loc.z)) if man_dist < min_man: min_man = man_dist if man_dist < drops: return drops return min_man def _to_my_vec3(vec): """Return the _Vec3 alternative of the Vec3.""" return _Vec3(vec.x, vec.y, vec.z) def _player_loc(): """Return the player's location.""" return _to_my_vec3(_get_mc().player.getTilePos()) def _adj_dirs(): """Return the adjacent directions.""" return [_Vec3(1, 0, 0), _Vec3(-1, 0, 0), _Vec3(0, 0, 1), _Vec3(0, 0, -1)] def _all_dirs(): """Return all adjacent directions.""" return _adj_dirs() + [_Vec3(0, 1, 0), _Vec3(0, -1, 0)] def _manhattan(pos1, pos2): """Return the manhattan distance. pos1 and pos2 should be iterable.""" return sum(abs(val1 - val2) for val1, val2 in zip(pos1, pos2)) @singleton def _get_mc(): """Return the Minecraft instance.""" return minecraft.Minecraft.create() def _key_vals(dict_): """Return a list of key-val tuples.""" return [(key, val) for key, val in dict_.iteritems()]
[ 3012, 2478, 456, 341, 7369, 3012, 222, 222, 1097, 1948, 1220, 29281, 222, 1097, 1153, 1220, 9375, 222, 222, 485, 16544, 1314, 51, 8654, 641, 364, 19469, 222, 1097, 16544, 1314, 51, 3160, 56, 1220, 7485, 56, 222, 485, 16544, 1314, 51, 1540, 641, 2181, 222, 222, 1097, 3252, 1220, 7438, 14780, 49, 331, 6469, 49, 342, 2569, 222, 1097, 25118, 1220, 25118, 222, 222, 100, 39608, 299, 2181, 51, 39608, 51, 333, 222, 100, 47744, 299, 2181, 51, 47744, 51, 333, 222, 100, 81, 14473, 299, 2181, 51, 81, 14473, 51, 333, 222, 100, 71, 1363, 1030, 2196, 299, 2181, 51, 71, 1363, 1030, 2196, 51, 333, 222, 222, 100, 12472, 299, 244, 55, 244, 607, 2048, 902, 6310, 840, 4665, 477, 5110, 222, 100, 12472, 100, 24643, 100, 54, 299, 634, 12472, 494, 244, 54, 222, 100, 21382, 299, 244, 54, 499, 222, 842, 634, 5985, 56, 45, 5985, 56, 731, 303, 1547, 70, 7485, 56, 708, 458, 3696, 463, 51, 35863, 347, 477, 3477, 1414, 813, 477, 303, 462, 7128, 465, 684, 1176, 2905, 3232, 803, 731, 310, 1547, 2907, 341, 3696, 7128, 310, 461, 3696, 1181, 803, 51, 125, 49, 649, 51, 126, 49, 649, 51, 127, 509, 465, 684, 7905, 45, 803, 731, 310, 1547, 2907, 331, 7905, 7128, 310, 461, 634, 5985, 56, 45, 803, 51, 125, 49, 649, 51, 126, 49, 649, 51, 127, 46, 499, 222, 842, 634, 4020, 9037, 63, 303, 1547, 70, 10151, 7369, 7128, 465, 684, 1176, 1683, 3232, 803, 49, 3423, 49, 17045, 66, 2545, 731, 310, 1547, 9968, 642, 619, 3517, 17045, 51, 603, 17045, 458, 331, 9575, 51, 1691, 1686, 49, 619, 3517, 1611, 1118, 545, 1674, 7128, 310, 434, 17045, 458, 1686, 63, 343, 649, 1132, 12944, 299, 2172, 310, 832, 63, 343, 649, 1132, 12944, 299, 29281, 45, 12944, 46, 310, 649, 1132, 985, 299, 29281, 45, 985, 46, 465, 684, 4843, 100, 1160, 45, 803, 49, 2146, 731, 310, 1547, 18305, 341, 2146, 327, 22240, 105, 664, 634, 390, 100, 5744, 100, 3564, 566, 3012, 310, 18628, 45, 803, 49, 2146, 1388, 1316, 6957, 2761, 1160, 51, 390, 459, 1150, 411, 1423, 490, 1137, 1160, 51, 390, 459, 5350, 411, 2172, 509, 465, 684, 4843, 100, 3564, 45, 803, 49, 6905, 49, 6810, 66, 2545, 731, 310, 1547, 18305, 3301, 6905, 51, 1691, 6810, 458, 666, 1686, 49, 9375, 349, 6373, 44, 310, 6810, 51, 310, 1547, 310, 434, 666, 6905, 63, 343, 461, 603, 649, 51, 11845, 100, 1160, 45, 3564, 96, 53, 1156, 310, 456, 2146, 347, 6905, 96, 54, 63, 2805, 343, 434, 6810, 458, 666, 1686, 63, 419, 9375, 45, 6373, 46, 343, 649, 51, 11845, 100, 1160, 45, 1160, 46, 465, 684, 640, 100, 985, 45, 803, 731, 310, 1547, 2907, 341, 2764, 7128, 310, 461, 29281, 45, 803, 1132, 985, 46, 465, 684, 640, 100, 5744, 100, 3564, 45, 803, 49, 2181, 37772, 2545, 731, 310, 1547, 2907, 331, 1168, 451, 23451, 6905, 51, 603, 1691, 2181, 100, 458, 1686, 49, 461, 1187, 23451, 6905, 51, 12783, 49, 461, 1187, 310, 23451, 6905, 708, 2818, 1348, 43116, 1302, 4275, 341, 2181, 7128, 310, 461, 649, 1132, 390, 100, 1518, 100, 3564, 45, 1540, 7943, 494, 649, 1132, 390, 100, 6758, 100, 3564, 365, 494, 649, 1132, 390, 100, 7450, 100, 3564, 45, 1540, 7943, 465, 684, 4326, 45, 803, 49, 2181, 100, 731, 310, 1547, 2907, 4962, 575, 666, 341, 7369, 4326, 341, 2181, 828, 7128, 310, 461, 2181, 100, 347, 649, 1132, 12944, 465, 684, 634, 390, 100, 1540, 45, 803, 49, 3423, 731, 310, 1547, 953, 341, 2181, 840, 341, 2764, 7128, 310, 3655, 22222, 465, 684, 634, 1878, 45, 803, 49, 2600, 49, 11270, 66, 2545, 49, 2181, 37772, 2545, 731, 310, 1547, 9194, 331, 2181, 664, 341, 17045, 1773, 51, 603, 1691, 11270, 458, 666, 1686, 49, 3687, 331, 2181, 708, 458, 666, 349, 10463, 2503, 310, 1691, 2181, 458, 666, 1686, 49, 3687, 708, 2181, 1773, 51, 310, 1547, 310, 434, 666, 649, 1132, 12944, 63, 343, 3655, 3284, 459, 12420, 3517, 678, 603, 434, 2181, 100, 458, 1686, 63, 343, 456, 1221, 347, 649, 1132, 12944, 63, 419, 434, 1221, 882, 11270, 63, 547, 2181, 100, 299, 1221, 547, 1644, 343, 832, 63, 419, 3655, 3284, 26117, 4296, 8844, 666, 391, 3687, 925, 120, 49, 1294, 580, 458, 341, 1773, 2181, 347, 341, 17045, 3128, 925, 11270, 509, 603, 434, 2181, 100, 666, 347, 649, 1132, 12944, 63, 343, 3655, 3284, 459, 2246, 925, 120, 458, 666, 347, 341, 17045, 39, 925, 2181, 7943, 603, 434, 649, 1132, 12944, 96, 1540, 43774, 630, 244, 54, 63, 343, 3579, 649, 1132, 12944, 96, 1540, 43774, 310, 832, 63, 343, 649, 1132, 12944, 96, 1540, 43774, 5928, 244, 54, 603, 649, 1132, 489, 100, 1540, 45, 901, 49, 2181, 7943, 465, 684, 634, 1518, 100, 1772, 45, 803, 731, 310, 1547, 5785, 480, 29089, 341, 2181, 4834, 7128, 310, 556, 100, 985, 299, 649, 1132, 985, 494, 634, 5985, 56, 45, 53, 49, 449, 54, 49, 244, 53, 46, 310, 2181, 100, 299, 649, 1132, 390, 100, 1540, 45, 909, 100, 985, 46, 310, 434, 2181, 100, 882, 634, 47744, 63, 343, 649, 1132, 688, 100, 471, 100, 5834, 45, 1540, 7943, 310, 649, 1132, 1518, 45, 909, 100, 985, 46, 465, 684, 634, 688, 100, 471, 100, 5834, 45, 803, 49, 2181, 100, 731, 310, 1547, 1121, 341, 2181, 391, 341, 17045, 7128, 310, 434, 2181, 100, 347, 649, 1132, 12944, 63, 343, 649, 1132, 12944, 96, 1540, 43774, 1475, 244, 54, 310, 832, 63, 343, 649, 1132, 12944, 96, 1540, 43774, 299, 244, 54, 465, 684, 634, 1518, 100, 436, 45, 803, 49, 11270, 66, 2545, 731, 310, 1547, 5785, 480, 3687, 331, 2181, 4834, 51, 603, 1691, 11270, 458, 666, 1686, 49, 3687, 331, 2181, 708, 458, 666, 349, 10463, 2503, 310, 1547, 310, 649, 1132, 1518, 45, 803, 1132, 985, 494, 634, 5985, 56, 45, 53, 49, 244, 54, 49, 244, 53, 509, 310, 649, 1132, 1878, 45, 803, 1132, 985, 494, 634, 5985, 56, 45, 53, 49, 449, 54, 49, 244, 53, 490, 11270, 46, 465, 684, 634, 6758, 45, 803, 49, 2600, 731, 310, 1547, 36301, 341, 2181, 7128, 310, 2181, 100, 299, 649, 1132, 390, 100, 1540, 45, 901, 46, 310, 649, 1132, 688, 100, 471, 100, 5834, 45, 1540, 7943, 310, 649, 1132, 489, 100, 1540, 45, 901, 49, 634, 39608, 46, 465, 684, 634, 390, 100, 1518, 100, 3564, 45, 803, 49, 11270, 66, 2545, 731, 310, 1547, 2907, 331, 1168, 451, 23451, 22075, 6905, 51, 603, 11270, 458, 341, 2181, 391, 11270, 51, 310, 1547, 310, 559, 1544, 299, 1627, 603, 607, 3471, 456, 14104, 992, 310, 902, 100, 1518, 100, 436, 299, 649, 1132, 390, 100, 1540, 45, 803, 1132, 985, 494, 634, 5985, 56, 45, 53, 49, 244, 55, 49, 244, 53, 509, 347, 29566, 39608, 49, 634, 47744, 130, 310, 434, 902, 100, 1518, 100, 436, 63, 343, 434, 649, 1132, 8863, 19016, 2284, 419, 559, 1544, 51, 1713, 15540, 1316, 582, 7302, 1518, 411, 332, 1150, 582, 327, 803, 1132, 985, 494, 634, 5985, 56, 45, 53, 49, 244, 54, 49, 244, 53, 490, 26263, 343, 832, 63, 419, 559, 1544, 51, 1713, 15540, 1316, 582, 7302, 1518, 100, 436, 411, 332, 1150, 582, 327, 10463, 21772, 1770, 603, 607, 3471, 456, 14104, 2850, 310, 6862, 100, 1540, 299, 649, 1132, 390, 100, 1540, 45, 803, 1132, 985, 494, 634, 5985, 56, 45, 53, 49, 449, 55, 49, 244, 53, 509, 310, 434, 6862, 100, 1540, 630, 634, 47744, 575, 6862, 100, 1540, 666, 347, 29566, 39608, 49, 634, 81, 14473, 10714, 343, 559, 1544, 51, 1713, 15540, 1316, 582, 7302, 1518, 100, 1772, 15147, 603, 607, 3471, 456, 5226, 18078, 310, 456, 4937, 100, 347, 634, 16431, 100, 15617, 2284, 343, 559, 1544, 51, 8258, 45, 803, 1132, 2691, 100, 21315, 45, 1537, 3754, 902, 100, 1518, 100, 436, 509, 603, 461, 559, 1544, 465, 684, 634, 2691, 100, 21315, 45, 803, 49, 4937, 3754, 902, 100, 1518, 100, 436, 731, 310, 1547, 2907, 341, 1168, 451, 5226, 18078, 51, 603, 4937, 100, 458, 619, 31745, 6999, 51, 310, 902, 100, 1518, 100, 436, 458, 331, 1922, 456, 4962, 575, 666, 341, 7369, 902, 5187, 992, 51, 310, 1547, 310, 559, 1544, 299, 1627, 310, 1712, 100, 985, 299, 649, 1132, 985, 494, 4937, 100, 310, 1712, 100, 1540, 299, 649, 1132, 390, 100, 1540, 45, 1460, 100, 985, 46, 310, 3517, 100, 8597, 299, 29566, 39608, 49, 634, 47744, 130, 603, 607, 3471, 434, 580, 902, 5187, 992, 310, 434, 902, 100, 1518, 100, 436, 480, 1712, 100, 1540, 666, 347, 29566, 39608, 49, 634, 81, 14473, 49, 634, 47744, 10714, 343, 456, 4674, 100, 1537, 347, 20290, 5985, 56, 45, 53, 49, 244, 54, 49, 244, 53, 490, 634, 5985, 56, 45, 53, 49, 244, 55, 49, 244, 53, 2201, 63, 419, 434, 649, 1132, 390, 100, 1540, 45, 1460, 100, 985, 494, 4674, 100, 1537, 46, 666, 347, 3517, 100, 8597, 63, 547, 1644, 343, 832, 63, 419, 559, 1544, 51, 1713, 15540, 1316, 582, 7302, 1518, 411, 332, 1150, 582, 327, 1460, 100, 985, 494, 634, 5985, 56, 45, 53, 49, 244, 54, 49, 244, 53, 490, 26263, 603, 607, 3471, 434, 580, 902, 5187, 347, 708, 6999, 310, 456, 4674, 100, 1537, 347, 20290, 5985, 56, 1046, 634, 5985, 56, 45, 53, 49, 244, 54, 49, 244, 53, 2201, 63, 343, 434, 649, 1132, 390, 100, 1540, 45, 1460, 100, 985, 494, 4674, 100, 1537, 46, 666, 347, 3517, 100, 8597, 63, 419, 1644, 603, 607, 36845, 310, 832, 63, 343, 3423, 299, 1712, 100, 985, 494, 634, 5985, 56, 45, 53, 49, 449, 54, 49, 244, 53, 46, 343, 456, 634, 347, 35255, 2191, 12472, 100, 24643, 100, 54, 731, 419, 2181, 100, 299, 649, 1132, 390, 100, 1540, 45, 985, 46, 419, 434, 2181, 100, 882, 634, 39608, 63, 547, 434, 2181, 100, 882, 634, 81, 14473, 63, 733, 559, 1544, 51, 1713, 15540, 1316, 582, 7302, 1518, 411, 332, 1150, 582, 327, 985, 494, 634, 5985, 56, 45, 53, 49, 244, 54, 49, 244, 53, 490, 26263, 547, 1644, 419, 3423, 51, 126, 5928, 244, 54, 465, 684, 634, 8863, 19016, 45, 803, 731, 310, 1547, 2907, 4962, 575, 666, 341, 7369, 458, 6197, 19016, 829, 13461, 7128, 310, 456, 4937, 100, 347, 634, 16431, 100, 15617, 2284, 343, 434, 649, 1132, 390, 100, 1540, 45, 803, 1132, 985, 494, 4937, 7943, 882, 634, 47744, 63, 419, 461, 3208, 310, 461, 2969, 465, 684, 634, 390, 100, 6758, 100, 3564, 45, 803, 731, 310, 1547, 2907, 331, 1168, 451, 23451, 42440, 6905, 327, 6942, 1773, 43116, 42440, 310, 480, 666, 14104, 566, 3012, 310, 559, 1544, 299, 1627, 310, 21560, 100, 6758, 299, 29566, 39608, 49, 634, 47744, 49, 634, 81, 14473, 130, 310, 607, 507, 501, 3713, 51, 310, 3423, 100, 23883, 299, 649, 1132, 985, 494, 634, 5985, 56, 45, 53, 49, 244, 55, 49, 244, 53, 46, 310, 434, 649, 1132, 390, 100, 1540, 45, 985, 100, 23883, 46, 666, 347, 21560, 100, 6758, 63, 343, 559, 1544, 51, 1713, 15540, 1316, 582, 7302, 6758, 411, 332, 1150, 582, 327, 985, 100, 23883, 21772, 1770, 603, 456, 4937, 100, 347, 634, 16431, 100, 15617, 2284, 343, 3423, 299, 649, 1132, 985, 494, 4937, 100, 343, 456, 634, 347, 35255, 45, 55, 731, 419, 434, 649, 1132, 390, 100, 1540, 45, 985, 46, 666, 347, 21560, 100, 6758, 63, 547, 559, 1544, 51, 1713, 15540, 1316, 582, 7302, 6758, 411, 332, 1150, 582, 327, 985, 21772, 1770, 419, 3423, 299, 3423, 494, 634, 5985, 56, 45, 53, 49, 244, 54, 49, 244, 53, 46, 603, 461, 559, 1544, 465, 684, 634, 390, 100, 7450, 100, 3564, 45, 803, 49, 11270, 66, 2545, 731, 310, 1547, 2907, 331, 1168, 451, 23451, 6905, 708, 1773, 43116, 1302, 4275, 331, 2181, 310, 664, 341, 17045, 51, 603, 11270, 458, 331, 2181, 828, 51, 2048, 458, 341, 2181, 708, 1414, 666, 545, 17180, 51, 1691, 1686, 49, 310, 1364, 2181, 902, 545, 17180, 7128, 310, 434, 666, 649, 1132, 2057, 100, 8597, 100, 471, 100, 1878, 45, 10463, 66, 10463, 731, 343, 461, 1627, 603, 29178, 299, 20290, 5985, 56, 45, 53, 49, 244, 55, 49, 244, 53, 2201, 310, 456, 4937, 100, 347, 634, 16431, 100, 15617, 2284, 343, 29178, 51, 8258, 2034, 1537, 3754, 4937, 100, 494, 634, 5985, 56, 45, 53, 49, 244, 54, 49, 244, 53, 14935, 343, 434, 649, 1132, 390, 100, 1540, 45, 803, 1132, 985, 494, 4937, 7943, 347, 20290, 39608, 49, 634, 47744, 2805, 419, 29178, 51, 1713, 45, 1537, 100, 494, 634, 5985, 56, 45, 53, 49, 449, 54, 49, 244, 53, 509, 603, 559, 1544, 299, 1627, 310, 456, 4937, 100, 347, 29178, 63, 343, 3423, 299, 649, 1132, 985, 494, 4937, 100, 343, 434, 649, 1132, 3389, 100, 1878, 45, 985, 731, 419, 559, 1544, 51, 1713, 15540, 1316, 582, 7302, 1878, 411, 332, 1150, 582, 327, 985, 28345, 332, 5350, 582, 3479, 10463, 582, 11270, 24522, 603, 461, 559, 1544, 465, 684, 634, 3389, 100, 1878, 45, 803, 49, 2600, 731, 310, 1547, 2907, 4962, 575, 666, 341, 7369, 902, 3687, 331, 2181, 840, 708, 3913, 310, 16403, 451, 2794, 580, 1421, 347, 2840, 17045, 7128, 310, 3000, 100, 8597, 299, 20290, 39608, 49, 634, 47744, 49, 634, 81, 14473, 98, 310, 4376, 299, 447, 803, 1132, 985, 49, 649, 1132, 985, 494, 634, 5985, 56, 45, 53, 49, 244, 54, 49, 244, 53, 2201, 310, 456, 4937, 100, 347, 634, 16431, 100, 15617, 494, 20290, 5985, 56, 45, 53, 49, 244, 54, 49, 244, 53, 490, 634, 5985, 56, 45, 53, 49, 449, 54, 49, 244, 53, 2201, 63, 343, 556, 100, 901, 299, 2600, 494, 4937, 100, 343, 434, 556, 100, 901, 666, 347, 4376, 480, 649, 1132, 390, 100, 1540, 45, 909, 100, 901, 46, 666, 347, 3000, 100, 8597, 63, 419, 461, 2969, 310, 461, 3208, 465, 684, 634, 2057, 100, 8597, 100, 471, 100, 1878, 45, 803, 49, 11270, 66, 2545, 731, 310, 1547, 2907, 4962, 575, 666, 341, 7369, 902, 3687, 331, 2181, 664, 341, 310, 17045, 51, 1691, 11270, 458, 1686, 49, 1364, 2181, 902, 545, 17180, 7128, 310, 456, 2181, 100, 347, 649, 1132, 12944, 63, 343, 434, 2181, 100, 882, 11270, 63, 419, 461, 2969, 310, 461, 3208, 465, 684, 634, 489, 100, 1540, 45, 803, 49, 3423, 49, 2181, 100, 731, 310, 1547, 903, 331, 2181, 51, 2181, 100, 458, 341, 2181, 828, 7128, 310, 3655, 22222, 465, 684, 634, 1518, 45, 803, 49, 3423, 731, 310, 1547, 5785, 2038, 1773, 7128, 310, 649, 1132, 985, 299, 29281, 45, 985, 46, 499, 222, 842, 634, 42332, 3190, 9037, 2191, 4020, 9037, 731, 303, 1547, 70, 7369, 1674, 456, 17368, 7854, 708, 4183, 1348, 6750, 1557, 9072, 303, 347, 341, 5810, 7128, 465, 684, 1176, 1683, 3232, 803, 49, 3423, 49, 17045, 66, 2545, 731, 310, 1547, 1940, 331, 556, 7369, 7128, 310, 634, 4020, 9037, 3688, 1683, 3232, 803, 49, 3423, 49, 17045, 46, 310, 649, 1132, 12780, 299, 2172, 244, 607, 14015, 391, 341, 5810, 465, 684, 634, 489, 100, 1540, 45, 803, 49, 3423, 49, 2181, 100, 731, 310, 1547, 903, 331, 2181, 51, 2181, 100, 458, 341, 2181, 828, 7128, 310, 649, 1132, 12780, 96, 34163, 45, 985, 2201, 299, 2181, 465, 684, 634, 390, 100, 1540, 45, 803, 49, 3423, 731, 310, 1547, 953, 341, 2181, 840, 341, 2764, 7128, 310, 434, 3423, 347, 649, 1132, 12780, 63, 343, 461, 649, 1132, 12780, 96, 985, 98, 310, 832, 63, 343, 461, 634, 390, 100, 6070, 941, 25641, 45, 985, 46, 465, 684, 640, 100, 1540, 45, 803, 49, 3423, 731, 310, 1547, 1338, 581, 1522, 7128, 310, 461, 649, 1132, 390, 100, 1540, 45, 985, 46, 465, 684, 1176, 2905, 3232, 803, 731, 310, 1547, 2907, 341, 3696, 7128, 310, 461, 3696, 45, 30562, 489, 2034, 803, 1132, 985, 98, 494, 634, 697, 100, 9437, 45, 803, 1132, 12944, 46, 494, 634, 697, 100, 9437, 45, 803, 1132, 12780, 2636, 499, 222, 842, 17099, 2191, 4020, 9037, 731, 303, 1547, 1338, 4033, 7369, 51, 465, 3381, 4065, 4228, 904, 7485, 56, 120, 7128, 465, 634, 10826, 100, 10326, 299, 2181, 51, 31493, 100, 10326, 51, 333, 465, 684, 1176, 1683, 3232, 803, 731, 310, 1547, 1940, 331, 7369, 2371, 391, 341, 4376, 7128, 310, 3423, 299, 634, 390, 100, 6070, 941, 3857, 51, 390, 8079, 3010, 365, 494, 7485, 56, 45, 55, 49, 244, 53, 49, 244, 53, 46, 310, 3423, 299, 634, 5985, 56, 45, 985, 51, 125, 49, 3423, 51, 126, 49, 3423, 51, 127, 46, 310, 634, 4020, 9037, 3688, 1683, 3232, 803, 49, 3423, 46, 310, 649, 1132, 985, 299, 3423, 310, 649, 1132, 1518, 45, 803, 1132, 985, 46, 465, 496, 16130, 303, 684, 10088, 100, 483, 2284, 310, 1547, 9413, 1187, 48572, 4824, 331, 5562, 7336, 327, 285, 1152, 457, 23272, 391, 310, 10088, 1611, 566, 3012, 310, 4376, 100, 901, 299, 634, 3857, 100, 901, 365, 310, 29089, 104, 299, 634, 390, 100, 6070, 365, 310, 5902, 299, 244, 54, 53, 310, 456, 837, 347, 35255, 45, 3857, 100, 901, 51, 125, 449, 5902, 49, 4376, 100, 901, 51, 125, 494, 5902, 731, 343, 456, 553, 347, 35255, 45, 3857, 100, 901, 51, 126, 449, 5902, 49, 4376, 100, 901, 51, 126, 494, 5902, 731, 419, 456, 1308, 347, 35255, 45, 3857, 100, 901, 51, 127, 449, 5902, 49, 4376, 100, 901, 51, 127, 494, 5902, 731, 547, 434, 29089, 104, 51, 25641, 45, 125, 49, 553, 49, 1308, 46, 630, 17099, 1132, 10826, 100, 10326, 63, 733, 29089, 104, 51, 489, 2246, 45, 125, 49, 553, 49, 1308, 49, 634, 39608, 46, 465, 684, 10088, 45, 803, 731, 310, 1547, 903, 8032, 391, 15320, 7128, 310, 649, 1132, 489, 100, 1540, 45, 803, 1132, 985, 49, 634, 39608, 46, 310, 649, 1132, 489, 100, 1540, 45, 803, 1132, 985, 494, 634, 5985, 56, 45, 53, 49, 244, 54, 49, 244, 53, 490, 634, 39608, 46, 465, 684, 5644, 45, 803, 49, 2181, 100, 444, 731, 310, 1547, 36301, 480, 461, 331, 2181, 391, 341, 4376, 7128, 310, 17496, 100, 2213, 299, 634, 42332, 3190, 9037, 45, 803, 1132, 985, 49, 649, 1132, 12944, 46, 310, 2181, 100, 333, 299, 18628, 45, 1540, 49, 2181, 100, 444, 566, 333, 310, 2181, 100, 901, 299, 649, 1132, 390, 100, 1540, 100, 901, 45, 1540, 100, 333, 46, 310, 29089, 100, 7242, 299, 634, 36301, 14780, 45, 17802, 100, 2213, 49, 2181, 100, 901, 49, 2181, 100, 333, 46, 310, 29089, 100, 3564, 299, 331, 6469, 45, 6758, 100, 7242, 49, 634, 6758, 100, 311, 31064, 46, 310, 649, 51, 11845, 100, 3564, 45, 6758, 100, 3564, 49, 634, 21382, 46, 310, 17496, 100, 2213, 299, 634, 42332, 3190, 9037, 45, 803, 1132, 985, 49, 649, 1132, 12944, 46, 310, 4376, 100, 901, 299, 634, 3857, 100, 901, 365, 310, 461, 100, 7242, 299, 634, 2907, 14780, 45, 17802, 100, 2213, 49, 2181, 100, 333, 49, 4376, 100, 901, 46, 310, 461, 100, 3564, 299, 331, 6469, 45, 620, 100, 7242, 49, 634, 620, 100, 311, 31064, 46, 310, 17496, 100, 2213, 51, 11845, 100, 3564, 45, 620, 100, 3564, 46, 310, 461, 100, 3564, 51, 1713, 15540, 1316, 582, 7302, 1878, 411, 332, 1150, 582, 327, 17802, 100, 2213, 51, 390, 100, 985, 365, 494, 4376, 100, 901, 46, 536, 244, 55, 49, 332, 5350, 582, 3479, 1540, 582, 2181, 100, 333, 24522, 310, 649, 51, 11845, 100, 3564, 45, 620, 100, 3564, 49, 634, 21382, 46, 465, 684, 634, 390, 100, 1540, 100, 901, 45, 803, 49, 2181, 100, 333, 731, 310, 1547, 2907, 341, 3913, 451, 341, 2181, 7128, 310, 2309, 100, 7242, 299, 7499, 14780, 45, 803, 1132, 985, 49, 2181, 100, 333, 46, 310, 29178, 299, 342, 2569, 45, 1828, 100, 7242, 46, 310, 461, 649, 1132, 985, 494, 3668, 45, 15617, 46, 465, 684, 634, 489, 100, 1540, 45, 803, 49, 3423, 49, 2181, 100, 731, 310, 1547, 9194, 619, 4668, 2181, 347, 341, 5810, 51, 603, 2181, 458, 331, 2181, 828, 7128, 310, 634, 390, 100, 6070, 941, 489, 2246, 45, 985, 49, 2181, 7943, 465, 684, 634, 390, 100, 1540, 45, 803, 49, 3423, 731, 310, 1547, 953, 341, 2181, 840, 341, 2764, 7128, 310, 461, 634, 390, 100, 6070, 941, 25641, 45, 985, 46, 465, 684, 634, 1518, 45, 803, 49, 3423, 731, 310, 1547, 5785, 2038, 49, 480, 758, 341, 9150, 9072, 7128, 310, 649, 1132, 489, 100, 1540, 45, 803, 1132, 985, 49, 634, 39608, 46, 310, 649, 1132, 489, 100, 1540, 45, 803, 1132, 985, 494, 634, 5985, 56, 45, 53, 49, 244, 54, 49, 244, 53, 490, 634, 39608, 46, 310, 649, 1132, 489, 100, 1540, 45, 985, 49, 649, 1132, 10826, 100, 10326, 46, 310, 649, 1132, 489, 100, 1540, 45, 985, 494, 634, 5985, 56, 45, 53, 49, 244, 54, 49, 244, 53, 490, 649, 1132, 10826, 100, 10326, 46, 310, 649, 1132, 985, 299, 3423, 499, 222, 842, 7499, 14780, 45, 3209, 14780, 731, 303, 1547, 14780, 456, 17368, 341, 3913, 451, 331, 2181, 347, 341, 5810, 51, 465, 418, 1621, 347, 477, 3732, 458, 331, 3913, 51, 303, 1547, 465, 684, 1176, 1683, 3232, 803, 49, 1496, 100, 901, 49, 2181, 100, 333, 731, 310, 1547, 9968, 7128, 310, 649, 1132, 1384, 100, 901, 299, 29281, 45, 1384, 100, 901, 46, 310, 649, 1132, 1540, 100, 333, 299, 2181, 100, 333, 465, 684, 640, 2148, 1095, 45, 803, 731, 310, 1547, 2907, 341, 8074, 3913, 7128, 310, 461, 649, 1132, 1384, 100, 901, 465, 684, 458, 17350, 1095, 45, 803, 49, 1621, 731, 310, 461, 634, 390, 100, 6070, 941, 25641, 45, 1311, 46, 630, 649, 1132, 1540, 100, 333, 465, 684, 640, 4424, 1758, 45, 803, 49, 1621, 731, 310, 1547, 2907, 341, 3136, 1758, 7128, 310, 559, 1544, 299, 1627, 310, 456, 4937, 100, 347, 634, 483, 100, 15617, 2284, 343, 3136, 290, 299, 1621, 494, 4937, 100, 343, 434, 3136, 290, 51, 126, 2527, 634, 390, 100, 6070, 941, 22361, 45, 3146, 290, 51, 125, 49, 3136, 290, 51, 127, 46, 480, 634, 390, 100, 6070, 941, 25641, 45, 3146, 290, 46, 882, 634, 71, 1363, 1030, 2196, 63, 419, 559, 1544, 51, 1713, 1181, 3146, 290, 49, 4937, 3754, 244, 54, 509, 310, 461, 559, 1544, 499, 222, 842, 634, 36301, 14780, 45, 3209, 14780, 731, 303, 1547, 1338, 3732, 451, 17368, 341, 2181, 480, 42440, 580, 327, 1226, 14122, 303, 580, 566, 3012, 465, 684, 1176, 1683, 3232, 803, 49, 17496, 100, 2213, 49, 2181, 100, 901, 49, 2181, 100, 333, 731, 310, 1547, 9968, 341, 3732, 642, 619, 634, 42332, 3190, 9037, 51, 603, 2181, 100, 901, 458, 331, 7485, 56, 51, 310, 1547, 310, 649, 1132, 2213, 299, 17496, 100, 2213, 310, 649, 1132, 1540, 100, 901, 299, 29281, 45, 1540, 100, 901, 46, 310, 649, 1132, 1540, 100, 333, 299, 2181, 100, 333, 465, 684, 640, 100, 1540, 100, 901, 45, 803, 731, 310, 1547, 2907, 341, 2181, 3913, 7128, 310, 461, 29281, 45, 803, 1132, 1540, 100, 901, 46, 465, 684, 640, 100, 1540, 100, 333, 45, 803, 731, 310, 1547, 2907, 341, 2181, 580, 1200, 7687, 391, 29089, 7128, 310, 461, 649, 1132, 1540, 100, 333, 465, 684, 640, 2148, 1095, 45, 803, 731, 310, 1547, 2907, 341, 7369, 5424, 347, 7128, 310, 461, 649, 1132, 2213, 465, 684, 458, 17350, 1095, 45, 803, 49, 1621, 731, 310, 1547, 2907, 4962, 575, 666, 341, 7369, 1421, 341, 2181, 7128, 310, 461, 1621, 51, 4766, 45, 803, 1132, 1540, 100, 333, 46, 465, 684, 640, 4424, 1758, 45, 803, 49, 1621, 731, 310, 1547, 2907, 341, 3136, 1758, 7128, 310, 559, 1544, 299, 1627, 310, 456, 2146, 347, 1621, 51, 390, 100, 5744, 100, 3564, 2284, 343, 3136, 290, 299, 29281, 45, 1311, 46, 343, 3136, 290, 51, 11845, 100, 1160, 45, 1160, 46, 343, 559, 1544, 51, 1713, 1181, 3146, 290, 49, 2146, 49, 244, 54, 509, 310, 461, 559, 1544, 499, 222, 842, 634, 2907, 14780, 45, 3209, 14780, 731, 303, 1547, 1338, 3732, 451, 14122, 391, 341, 4376, 51, 1369, 1976, 666, 3687, 341, 2181, 303, 2371, 391, 341, 4376, 7128, 465, 684, 1176, 1683, 3232, 803, 49, 17496, 100, 2213, 49, 2181, 3754, 4376, 100, 901, 731, 310, 1547, 13743, 341, 3732, 642, 619, 634, 42332, 3190, 9037, 51, 603, 2181, 458, 331, 2181, 828, 7128, 310, 649, 1132, 2213, 299, 17496, 100, 2213, 310, 649, 1132, 1540, 299, 2181, 100, 310, 649, 1132, 3857, 100, 901, 299, 4376, 100, 901, 465, 684, 640, 100, 3857, 100, 901, 45, 803, 731, 310, 1547, 2907, 341, 4376, 3913, 7128, 310, 461, 29281, 45, 803, 1132, 3857, 100, 901, 46, 465, 684, 640, 2148, 1095, 45, 803, 731, 310, 1547, 2907, 341, 7369, 5424, 347, 7128, 310, 461, 649, 1132, 2213, 465, 684, 458, 17350, 1095, 45, 803, 49, 1621, 731, 310, 1547, 2907, 4962, 575, 666, 341, 7369, 458, 2371, 391, 341, 4376, 7128, 310, 5861, 299, 1621, 51, 390, 100, 985, 365, 449, 649, 1132, 3857, 100, 901, 310, 461, 327, 343, 5861, 51, 126, 630, 244, 53, 343, 480, 327, 4927, 51, 125, 630, 244, 53, 575, 5861, 51, 127, 630, 244, 53, 46, 343, 480, 11397, 45, 4927, 51, 125, 46, 494, 11397, 45, 4927, 51, 127, 46, 630, 244, 55, 343, 480, 1621, 51, 390, 100, 1540, 45, 803, 1132, 3857, 100, 901, 494, 5861, 536, 244, 55, 494, 634, 5985, 56, 45, 53, 49, 449, 54, 49, 244, 53, 509, 666, 347, 4648, 39608, 49, 634, 81, 14473, 49, 634, 47744, 46, 310, 848, 465, 684, 640, 4424, 1758, 45, 803, 49, 1621, 731, 310, 1547, 2907, 341, 3136, 1758, 7128, 310, 559, 1544, 299, 1627, 310, 456, 2146, 347, 1621, 51, 390, 100, 5744, 100, 3564, 45, 803, 1132, 1540, 731, 343, 3136, 290, 299, 29281, 45, 1311, 46, 343, 3136, 290, 51, 11845, 100, 1160, 45, 1160, 46, 343, 559, 1544, 51, 1713, 1181, 3146, 290, 49, 2146, 49, 244, 54, 509, 310, 461, 559, 1544, 499, 222, 610, 634, 6758, 100, 311, 31064, 45, 2213, 49, 3732, 731, 303, 1547, 2907, 341, 42440, 957, 31064, 51, 465, 7369, 458, 619, 634, 42332, 3190, 9037, 51, 303, 1547, 303, 434, 7369, 51, 4766, 45, 14239, 51, 390, 100, 1540, 100, 333, 22942, 310, 461, 244, 53, 465, 7369, 100, 985, 299, 7369, 51, 390, 100, 985, 365, 303, 3481, 100, 985, 299, 3732, 51, 390, 100, 1540, 100, 901, 365, 465, 607, 1691, 2351, 630, 13211, 63, 461, 2351, 494, 244, 54, 303, 607, 1691, 2351, 868, 13211, 63, 461, 2351, 303, 607, 1691, 2351, 350, 13211, 63, 461, 13211, 68, 303, 2351, 100, 2481, 299, 634, 1607, 109, 3150, 297, 1181, 2213, 100, 985, 51, 125, 49, 7369, 100, 985, 51, 127, 490, 327, 3332, 100, 985, 51, 125, 49, 3481, 100, 985, 51, 127, 509, 303, 553, 100, 4927, 299, 7369, 100, 985, 51, 126, 449, 3481, 100, 985, 51, 126, 303, 434, 553, 100, 4927, 350, 244, 53, 63, 310, 553, 100, 4927, 1475, 244, 54, 465, 434, 553, 100, 4927, 630, 244, 53, 63, 310, 461, 2351, 100, 2481, 465, 607, 11685, 1278, 708, 580, 1200, 1773, 43969, 303, 6310, 299, 634, 12472, 434, 553, 100, 4927, 868, 244, 53, 832, 244, 54, 303, 553, 100, 4927, 299, 11397, 45, 126, 100, 4927, 46, 465, 43746, 299, 634, 17493, 1088, 45, 126, 100, 4927, 49, 6310, 46, 465, 434, 2351, 100, 2481, 868, 43746, 63, 310, 461, 2351, 100, 2481, 303, 434, 2351, 100, 2481, 630, 43746, 63, 310, 461, 2351, 100, 2481, 494, 244, 54, 303, 434, 6310, 630, 244, 54, 63, 310, 461, 43746, 303, 434, 553, 100, 4927, 925, 6310, 630, 244, 54, 63, 310, 461, 43746, 303, 461, 43746, 494, 244, 54, 499, 222, 610, 634, 17493, 1088, 45, 2481, 49, 6310, 731, 303, 1547, 2907, 341, 1470, 451, 6524, 580, 8756, 391, 6310, 331, 7336, 1694, 51, 6310, 458, 341, 303, 3124, 451, 1611, 6310, 51, 23739, 904, 20985, 11659, 7128, 303, 559, 1544, 299, 1694, 536, 6310, 303, 434, 1694, 925, 6310, 882, 244, 53, 63, 310, 559, 1544, 1475, 244, 54, 303, 461, 559, 1544, 499, 222, 610, 634, 620, 100, 311, 31064, 45, 2213, 49, 3732, 731, 303, 1547, 2907, 341, 461, 957, 31064, 51, 465, 7369, 458, 619, 634, 42332, 3190, 9037, 51, 303, 1547, 303, 7369, 100, 985, 299, 7369, 51, 390, 100, 985, 365, 303, 4376, 100, 985, 299, 3732, 51, 390, 100, 3857, 100, 901, 365, 303, 7369, 100, 14374, 100, 985, 299, 327, 2213, 51, 125, 49, 7369, 51, 127, 46, 465, 553, 100, 4927, 299, 7369, 100, 985, 51, 126, 449, 4376, 100, 985, 51, 126, 465, 6310, 299, 634, 12472, 434, 553, 100, 4927, 868, 244, 53, 832, 244, 54, 303, 553, 100, 4927, 299, 11397, 45, 126, 100, 4927, 46, 303, 43746, 299, 634, 17493, 1088, 45, 126, 100, 4927, 49, 6310, 46, 303, 1865, 100, 1607, 299, 1916, 459, 5290, 678, 303, 456, 4937, 100, 347, 634, 16431, 100, 15617, 2284, 310, 2600, 299, 4376, 100, 985, 494, 244, 55, 338, 4937, 100, 310, 2351, 100, 2481, 299, 634, 1607, 109, 3150, 297, 45, 2213, 100, 14374, 100, 985, 49, 327, 901, 51, 125, 49, 2600, 51, 127, 509, 310, 434, 2351, 100, 2481, 350, 1865, 100, 1607, 63, 343, 1865, 100, 1607, 299, 2351, 100, 2481, 310, 434, 2351, 100, 2481, 350, 43746, 63, 343, 461, 43746, 303, 461, 1865, 100, 1607, 499, 222, 610, 634, 471, 100, 1791, 100, 3160, 56, 45, 3160, 731, 303, 1547, 2907, 341, 634, 5985, 56, 15541, 451, 341, 7485, 56, 7128, 303, 461, 634, 5985, 56, 45, 3160, 51, 125, 49, 4724, 51, 126, 49, 4724, 51, 127, 46, 499, 222, 610, 634, 3857, 100, 901, 2284, 303, 1547, 2907, 341, 4376, 1200, 3913, 7128, 303, 461, 634, 471, 100, 1791, 100, 3160, 56, 2191, 390, 100, 6070, 941, 3857, 51, 390, 8079, 3010, 1177, 499, 222, 610, 634, 16431, 100, 15617, 2284, 303, 1547, 2907, 341, 31745, 29118, 7128, 303, 461, 20290, 5985, 56, 45, 54, 49, 244, 53, 49, 244, 53, 490, 634, 5985, 56, 3766, 54, 49, 244, 53, 49, 244, 53, 490, 634, 5985, 56, 45, 53, 49, 244, 53, 49, 244, 54, 490, 634, 5985, 56, 45, 53, 49, 244, 53, 49, 449, 54, 2201, 499, 222, 610, 634, 483, 100, 15617, 2284, 303, 1547, 2907, 1187, 31745, 29118, 7128, 303, 461, 634, 16431, 100, 15617, 365, 494, 20290, 5985, 56, 45, 53, 49, 244, 54, 49, 244, 53, 490, 634, 5985, 56, 45, 53, 49, 449, 54, 49, 244, 53, 2201, 499, 222, 610, 634, 1607, 109, 3150, 297, 45, 985, 54, 49, 3423, 55, 731, 303, 1547, 2907, 341, 2351, 109, 3150, 297, 7336, 51, 3423, 54, 480, 3423, 55, 1414, 545, 27433, 7128, 303, 461, 3668, 45, 3615, 45, 718, 54, 449, 928, 55, 46, 456, 928, 54, 49, 928, 55, 347, 8617, 45, 985, 54, 49, 3423, 55, 509, 499, 222, 69, 17142, 222, 610, 634, 390, 100, 6070, 2284, 303, 1547, 2907, 341, 35022, 1998, 7128, 303, 461, 364, 19469, 51, 33186, 51, 1315, 365, 499, 222, 610, 634, 697, 100, 9437, 45, 2734, 100, 731, 303, 1547, 2907, 331, 1168, 451, 1221, 50, 718, 24572, 7128, 303, 461, 10474, 697, 49, 928, 46, 456, 1221, 49, 928, 347, 5473, 3148, 41128, 7688, 222 ]
[ "\"\"\"", "Module", "Ġfor", "Ġthe", "Ġbot", "\"\"\"", "Ċ", "Ċ", "from", "Ġcopy", "Ġimport", "Ġdeepcopy", "Ċ", "from", "Ġtime", "Ġimport", "Ġsleep", "Ċ", "Ċ", "import", "Ġmc", "pi", ".", "minecraft", "Ġas", "Ġm", "inecraft", "Ċ", "from", "Ġmc", "pi", ".", "vec", "3", "Ġimport", "ĠVec", "3", "Ċ", "import", "Ġmc", "pi", ".", "block", "Ġas", "Ġblock", "Ċ", "Ċ", "from", "Ġsearch", "Ġimport", "ĠSearch", "Problem", ",", "Ġa", "star", ",", "Ġb", "fs", "Ċ", "from", "Ġsingleton", "Ġimport", "Ġsingleton", "Ċ", "Ċ", "_", "AIR", "Ġ=", "Ġblock", ".", "AIR", ".", "id", "Ċ", "_", "WATER", "Ġ=", "Ġblock", ".", "WATER", ".", "id", "Ċ", "_", "L", "AVA", "Ġ=", "Ġblock", ".", "L", "AVA", ".", "id", "Ċ", "_", "B", "ED", "RO", "CK", "Ġ=", "Ġblock", ".", "B", "ED", "RO", "CK", ".", "id", "Ċ", "Ċ", "_", "DROP", "Ġ=", "Ġ", "2", "Ġ", "Ġ#", "ĠIt", "Ġcan", "Ġdrop", "Ġat", "Ġmost", "Ġthis", "Ġmany", "Ċ", "_", "DROP", "_", "PLUS", "_", "1", "Ġ=", "Ġ_", "DROP", "Ġ+", "Ġ", "1", "Ċ", "_", "DELAY", "Ġ=", "Ġ", "1", "ĊĊ", "Ċ", "class", "Ġ_", "Vec", "3", "(", "Vec", "3", "):", "ĊĠĠĠ", "Ġ\"\"\"", "A", "ĠVec", "3", "Ġthat", "Ġis", "Ġhash", "able", ".", "ĠEverything", "Ġin", "Ġthis", "Ġprogram", "Ġshould", "Ġuse", "Ġthis", "ĊĠĠĠ", "Ġclass", ".\"\"\"", "ĊĊĠĠĠ", "Ġdef", "Ġ__", "hash", "__(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Return", "Ġthe", "Ġhash", ".\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġhash", "((", "self", ".", "x", ",", "Ġself", ".", "y", ",", "Ġself", ".", "z", "))", "ĊĊĠĠĠ", "Ġdef", "Ġclone", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Return", "Ġa", "Ġclone", ".\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġ_", "Vec", "3", "(", "self", ".", "x", ",", "Ġself", ".", "y", ",", "Ġself", ".", "z", ")", "ĊĊ", "Ċ", "class", "Ġ_", "Generic", "Bot", ":", "ĊĠĠĠ", "Ġ\"\"\"", "A", "Ġgeneric", "Ġbot", ".\"\"\"", "ĊĊĠĠĠ", "Ġdef", "Ġ__", "init", "__(", "self", ",", "Ġpos", ",", "Ġinventory", "=", "None", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Initialize", "Ġwith", "Ġan", "Ġempty", "Ġinventory", ".", "ĊĊĠĠĠĠĠĠĠ", "Ġinventory", "Ġis", "Ġa", "Ġdictionary", ".", "ĠIf", "ĠNone", ",", "Ġan", "Ġempty", "Ġone", "Ġwill", "Ġbe", "Ġused", ".\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġinventory", "Ġis", "ĠNone", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", "._", "inventory", "Ġ=", "Ġ{}", "ĊĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", "._", "inventory", "Ġ=", "Ġdeepcopy", "(", "inventory", ")", "ĊĠĠĠĠĠĠĠ", "Ġself", "._", "pos", "Ġ=", "Ġdeepcopy", "(", "pos", ")", "ĊĊĠĠĠ", "Ġdef", "Ġtake", "_", "action", "(", "self", ",", "Ġaction", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Take", "Ġthe", "Ġaction", "Ġ(", "acquire", "d", "Ġfrom", "Ġ_", "get", "_", "legal", "_", "actions", ").", "\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġgetattr", "(", "self", ",", "Ġaction", "[\"", "func", "\"])", "(*", "action", ".", "get", "(\"", "args", "\",", "Ġ()", "),", "Ġ**", "action", ".", "get", "(\"", "kwargs", "\",", "Ġ{}", "))", "ĊĊĠĠĠ", "Ġdef", "Ġtake", "_", "actions", "(", "self", ",", "Ġactions", ",", "Ġseconds", "=", "None", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Take", "Ġthese", "Ġactions", ".", "ĠIf", "Ġseconds", "Ġis", "Ġnot", "ĠNone", ",", "Ġsleep", "Ġ'", "seconds", "'", "ĊĠĠĠĠĠĠĠ", "Ġseconds", ".", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġnot", "Ġactions", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "ĊĊĠĠĠĠĠĠĠ", "Ġself", ".", "take", "_", "action", "(", "actions", "[", "0", "])", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġaction", "Ġin", "Ġactions", "[", "1", ":", "]:", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġseconds", "Ġis", "Ġnot", "ĠNone", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġsleep", "(", "seconds", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", ".", "take", "_", "action", "(", "action", ")", "ĊĊĠĠĠ", "Ġdef", "Ġget", "_", "pos", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Return", "Ġthe", "Ġposition", ".\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġdeepcopy", "(", "self", "._", "pos", ")", "ĊĊĠĠĠ", "Ġdef", "Ġget", "_", "legal", "_", "actions", "(", "self", ",", "Ġblock", "_=", "None", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Return", "Ġa", "Ġlist", "Ġof", "Ġlegal", "Ġactions", ".", "ĊĊĠĠĠĠĠĠĠ", "ĠIf", "Ġblock", "_", "Ġis", "ĠNone", ",", "Ġreturn", "Ġall", "Ġlegal", "Ġactions", ".", "ĠOtherwise", ",", "Ġreturn", "Ġall", "ĊĠĠĠĠĠĠĠ", "Ġlegal", "Ġactions", "Ġthat", "Ġdon", "'t", "Ġinvolve", "Ġpl", "acing", "Ġthe", "Ġblock", ".\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġself", "._", "get", "_", "move", "_", "actions", "(", "block", "_)", "Ġ+", "Ġself", "._", "get", "_", "mine", "_", "actions", "()", "Ġ+", "Ġself", "._", "get", "_", "placement", "_", "actions", "(", "block", "_)", "ĊĊĠĠĠ", "Ġdef", "Ġcontains", "(", "self", ",", "Ġblock", "_", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Return", "Ġwhether", "Ġor", "Ġnot", "Ġthe", "Ġbot", "Ġcontains", "Ġthe", "Ġblock", "Ġid", ".\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġblock", "_", "Ġin", "Ġself", "._", "inventory", "ĊĊĠĠĠ", "Ġdef", "Ġ_", "get", "_", "block", "(", "self", ",", "Ġpos", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Get", "Ġthe", "Ġblock", "Ġat", "Ġthe", "Ġposition", ".\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġraise", "ĠNotImplementedError", "ĊĊĠĠĠ", "Ġdef", "Ġ_", "place", "(", "self", ",", "Ġloc", ",", "Ġexclude", "=", "None", ",", "Ġblock", "_=", "None", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Place", "Ġa", "Ġblock", "Ġfrom", "Ġthe", "Ġinventory", "Ġonly", ".", "ĊĊĠĠĠĠĠĠĠ", "ĠIf", "Ġexclude", "Ġis", "Ġnot", "ĠNone", ",", "Ġplace", "Ġa", "Ġblock", "Ġthat", "Ġis", "Ġnot", "Ġ'", "exclude", "'.", "ĊĠĠĠĠĠĠĠ", "ĠIf", "Ġblock", "Ġis", "Ġnot", "ĠNone", ",", "Ġplace", "Ġthat", "Ġblock", "Ġonly", ".", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġnot", "Ġself", "._", "inventory", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġraise", "ĠException", "(\"", "Inventory", "Ġempty", "\")", "ĊĊĠĠĠĠĠĠĠ", "Ġif", "Ġblock", "_", "Ġis", "ĠNone", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġfor", "Ġkey", "Ġin", "Ġself", "._", "inventory", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġkey", "Ġ!=", "Ġexclude", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġblock", "_", "Ġ=", "Ġkey", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġbreak", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġraise", "ĠException", "((\"", "You", "Ġrequested", "Ġnot", "Ġto", "Ġplace", "Ġ%", "s", ",", "Ġbut", "Ġit", "Ġis", "Ġthe", "Ġonly", "Ġblock", "Ġin", "Ġthe", "Ġinventory", ".\"", "Ġ%", "Ġexclude", "))", "ĊĊĠĠĠĠĠĠĠ", "Ġif", "Ġblock", "_", "Ġnot", "Ġin", "Ġself", "._", "inventory", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġraise", "ĠException", "(\"", "Block", "Ġ%", "s", "Ġis", "Ġnot", "Ġin", "Ġthe", "Ġinventory", "\"", "Ġ%", "Ġblock", "_)", "ĊĊĠĠĠĠĠĠĠ", "Ġif", "Ġself", "._", "inventory", "[", "block", "_]", "Ġ==", "Ġ", "1", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdel", "Ġself", "._", "inventory", "[", "block", "_]", "ĊĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", "._", "inventory", "[", "block", "_]", "Ġ-=", "Ġ", "1", "ĊĊĠĠĠĠĠĠĠ", "Ġself", "._", "set", "_", "block", "(", "loc", ",", "Ġblock", "_)", "ĊĊĠĠĠ", "Ġdef", "Ġ_", "move", "_", "down", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Move", "Ġand", "Ġmine", "Ġthe", "Ġblock", "Ġbelow", ".\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġnew", "_", "pos", "Ġ=", "Ġself", "._", "pos", "Ġ+", "Ġ_", "Vec", "3", "(", "0", ",", "Ġ-", "1", ",", "Ġ", "0", ")", "ĊĠĠĠĠĠĠĠ", "Ġblock", "_", "Ġ=", "Ġself", "._", "get", "_", "block", "(", "new", "_", "pos", ")", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġblock", "_", "Ġ!=", "Ġ_", "WATER", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", "._", "add", "_", "to", "_", "inv", "(", "block", "_)", "ĊĠĠĠĠĠĠĠ", "Ġself", "._", "move", "(", "new", "_", "pos", ")", "ĊĊĠĠĠ", "Ġdef", "Ġ_", "add", "_", "to", "_", "inv", "(", "self", ",", "Ġblock", "_", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Add", "Ġthe", "Ġblock", "Ġto", "Ġthe", "Ġinventory", ".\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġblock", "_", "Ġin", "Ġself", "._", "inventory", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", "._", "inventory", "[", "block", "_]", "Ġ+=", "Ġ", "1", "ĊĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġself", "._", "inventory", "[", "block", "_]", "Ġ=", "Ġ", "1", "ĊĊĠĠĠ", "Ġdef", "Ġ_", "move", "_", "up", "(", "self", ",", "Ġexclude", "=", "None", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Move", "Ġand", "Ġplace", "Ġa", "Ġblock", "Ġbelow", ".", "ĊĊĠĠĠĠĠĠĠ", "ĠIf", "Ġexclude", "Ġis", "Ġnot", "ĠNone", ",", "Ġplace", "Ġa", "Ġblock", "Ġthat", "Ġis", "Ġnot", "Ġ'", "exclude", "'.", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġself", "._", "move", "(", "self", "._", "pos", "Ġ+", "Ġ_", "Vec", "3", "(", "0", ",", "Ġ", "1", ",", "Ġ", "0", "))", "ĊĠĠĠĠĠĠĠ", "Ġself", "._", "place", "(", "self", "._", "pos", "Ġ+", "Ġ_", "Vec", "3", "(", "0", ",", "Ġ-", "1", ",", "Ġ", "0", "),", "Ġexclude", ")", "ĊĊĠĠĠ", "Ġdef", "Ġ_", "mine", "(", "self", ",", "Ġloc", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Mine", "Ġthe", "Ġblock", ".\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġblock", "_", "Ġ=", "Ġself", "._", "get", "_", "block", "(", "loc", ")", "ĊĠĠĠĠĠĠĠ", "Ġself", "._", "add", "_", "to", "_", "inv", "(", "block", "_)", "ĊĠĠĠĠĠĠĠ", "Ġself", "._", "set", "_", "block", "(", "loc", ",", "Ġ_", "AIR", ")", "ĊĊĠĠĠ", "Ġdef", "Ġ_", "get", "_", "move", "_", "actions", "(", "self", ",", "Ġexclude", "=", "None", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Return", "Ġa", "Ġlist", "Ġof", "Ġlegal", "Ġmovement", "Ġactions", ".", "ĊĊĠĠĠĠĠĠĠ", "Ġexclude", "Ġis", "Ġthe", "Ġblock", "Ġto", "Ġexclude", ".", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġr", "tn", "Ġ=", "Ġ[]", "ĊĊĠĠĠĠĠĠĠ", "Ġ#", "ĠCheck", "Ġfor", "Ġmoving", "Ġup", "ĊĠĠĠĠĠĠĠ", "Ġcan", "_", "move", "_", "up", "Ġ=", "Ġself", "._", "get", "_", "block", "(", "self", "._", "pos", "Ġ+", "Ġ_", "Vec", "3", "(", "0", ",", "Ġ", "2", ",", "Ġ", "0", "))", "Ġin", "Ġ{_", "AIR", ",", "Ġ_", "WATER", "}", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġcan", "_", "move", "_", "up", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġself", "._", "sur", "rounded", "():", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġr", "tn", ".", "append", "({\"", "func", "\":", "Ġ\"_", "move", "\",", "Ġ\"", "args", "\":", "Ġ(", "self", "._", "pos", "Ġ+", "Ġ_", "Vec", "3", "(", "0", ",", "Ġ", "1", ",", "Ġ", "0", "),", ")})", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġr", "tn", ".", "append", "({\"", "func", "\":", "Ġ\"_", "move", "_", "up", "\",", "Ġ\"", "args", "\":", "Ġ(", "exclude", ",)", "})", "ĊĊĠĠĠĠĠĠĠ", "Ġ#", "ĠCheck", "Ġfor", "Ġmoving", "Ġdown", "ĊĠĠĠĠĠĠĠ", "Ġhidden", "_", "block", "Ġ=", "Ġself", "._", "get", "_", "block", "(", "self", "._", "pos", "Ġ+", "Ġ_", "Vec", "3", "(", "0", ",", "Ġ-", "2", ",", "Ġ", "0", "))", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġhidden", "_", "block", "Ġ==", "Ġ_", "WATER", "Ġor", "Ġhidden", "_", "block", "Ġnot", "Ġin", "Ġ{_", "AIR", ",", "Ġ_", "L", "AVA", "}:", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġr", "tn", ".", "append", "({\"", "func", "\":", "Ġ\"_", "move", "_", "down", "\"})", "ĊĊĠĠĠĠĠĠĠ", "Ġ#", "ĠCheck", "Ġfor", "Ġside", "Ġmoves", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġdir", "_", "Ġin", "Ġ_", "adj", "_", "dirs", "():", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġr", "tn", ".", "extend", "(", "self", "._", "side", "_", "moves", "(", "dir", "_,", "Ġcan", "_", "move", "_", "up", "))", "ĊĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġr", "tn", "ĊĊĠĠĠ", "Ġdef", "Ġ_", "side", "_", "moves", "(", "self", ",", "Ġdir", "_,", "Ġcan", "_", "move", "_", "up", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Return", "Ġthe", "Ġlist", "Ġof", "Ġside", "Ġmoves", ".", "ĊĊĠĠĠĠĠĠĠ", "Ġdir", "_", "Ġis", "Ġan", "Ġadjacent", "Ġdirection", ".", "ĊĠĠĠĠĠĠĠ", "Ġcan", "_", "move", "_", "up", "Ġis", "Ġa", "Ġboolean", "Ġfor", "Ġwhether", "Ġor", "Ġnot", "Ġthe", "Ġbot", "Ġcan", "Ġmove", "Ġup", ".", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġr", "tn", "Ġ=", "Ġ[]", "ĊĠĠĠĠĠĠĠ", "Ġbase", "_", "pos", "Ġ=", "Ġself", "._", "pos", "Ġ+", "Ġdir", "_", "ĊĠĠĠĠĠĠĠ", "Ġbase", "_", "block", "Ġ=", "Ġself", "._", "get", "_", "block", "(", "base", "_", "pos", ")", "ĊĠĠĠĠĠĠĠ", "Ġempty", "_", "blocks", "Ġ=", "Ġ{_", "AIR", ",", "Ġ_", "WATER", "}", "ĊĊĠĠĠĠĠĠĠ", "Ġ#", "ĠCheck", "Ġif", "Ġit", "Ġcan", "Ġmove", "Ġup", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġcan", "_", "move", "_", "up", "Ġand", "Ġbase", "_", "block", "Ġnot", "Ġin", "Ġ{_", "AIR", ",", "Ġ_", "L", "AVA", ",", "Ġ_", "WATER", "}:", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġfor", "Ġvert", "_", "dir", "Ġin", "Ġ[_", "Vec", "3", "(", "0", ",", "Ġ", "1", ",", "Ġ", "0", "),", "Ġ_", "Vec", "3", "(", "0", ",", "Ġ", "2", ",", "Ġ", "0", ")]", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġself", "._", "get", "_", "block", "(", "base", "_", "pos", "Ġ+", "Ġvert", "_", "dir", ")", "Ġnot", "Ġin", "Ġempty", "_", "blocks", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġbreak", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġr", "tn", ".", "append", "({\"", "func", "\":", "Ġ\"_", "move", "\",", "Ġ\"", "args", "\":", "Ġ(", "base", "_", "pos", "Ġ+", "Ġ_", "Vec", "3", "(", "0", ",", "Ġ", "1", ",", "Ġ", "0", "),", ")})", "ĊĊĠĠĠĠĠĠĠ", "Ġ#", "ĠCheck", "Ġif", "Ġit", "Ġcan", "Ġmove", "Ġin", "Ġthat", "Ġdirection", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġvert", "_", "dir", "Ġin", "Ġ[_", "Vec", "3", "(),", "Ġ_", "Vec", "3", "(", "0", ",", "Ġ", "1", ",", "Ġ", "0", ")]", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġself", "._", "get", "_", "block", "(", "base", "_", "pos", "Ġ+", "Ġvert", "_", "dir", ")", "Ġnot", "Ġin", "Ġempty", "_", "blocks", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġbreak", "ĊĊĠĠĠĠĠĠĠ", "Ġ#", "ĠFall", "ĊĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġpos", "Ġ=", "Ġbase", "_", "pos", "Ġ+", "Ġ_", "Vec", "3", "(", "0", ",", "Ġ-", "1", ",", "Ġ", "0", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġfor", "Ġ_", "Ġin", "Ġxrange", "(_", "DROP", "_", "PLUS", "_", "1", "):", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġblock", "_", "Ġ=", "Ġself", "._", "get", "_", "block", "(", "pos", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġblock", "_", "Ġ!=", "Ġ_", "AIR", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġblock", "_", "Ġ!=", "Ġ_", "L", "AVA", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġr", "tn", ".", "append", "({\"", "func", "\":", "Ġ\"_", "move", "\",", "Ġ\"", "args", "\":", "Ġ(", "pos", "Ġ+", "Ġ_", "Vec", "3", "(", "0", ",", "Ġ", "1", ",", "Ġ", "0", "),", ")})", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġbreak", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġpos", ".", "y", "Ġ-=", "Ġ", "1", "ĊĊĠĠĠ", "Ġdef", "Ġ_", "sur", "rounded", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Return", "Ġwhether", "Ġor", "Ġnot", "Ġthe", "Ġbot", "Ġis", "Ġsur", "rounded", "Ġby", "Ġwater", ".\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġdir", "_", "Ġin", "Ġ_", "adj", "_", "dirs", "():", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġself", "._", "get", "_", "block", "(", "self", "._", "pos", "Ġ+", "Ġdir", "_)", "Ġ!=", "Ġ_", "WATER", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "ĠFalse", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "ĠTrue", "ĊĊĠĠĠ", "Ġdef", "Ġ_", "get", "_", "mine", "_", "actions", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Return", "Ġa", "Ġlist", "Ġof", "Ġlegal", "Ġmining", "Ġactions", "Ġ(", "that", "Ġonly", "Ġinvolve", "Ġmining", "ĊĠĠĠĠĠĠĠ", "Ġand", "Ġnot", "Ġmoving", ").", "\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġr", "tn", "Ġ=", "Ġ[]", "ĊĠĠĠĠĠĠĠ", "Ġdont", "_", "mine", "Ġ=", "Ġ{_", "AIR", ",", "Ġ_", "WATER", ",", "Ġ_", "L", "AVA", "}", "ĊĠĠĠĠĠĠĠ", "Ġ#", "ĠM", "ine", "Ġabove", ".", "ĊĠĠĠĠĠĠĠ", "Ġpos", "_", "above", "Ġ=", "Ġself", "._", "pos", "Ġ+", "Ġ_", "Vec", "3", "(", "0", ",", "Ġ", "2", ",", "Ġ", "0", ")", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġself", "._", "get", "_", "block", "(", "pos", "_", "above", ")", "Ġnot", "Ġin", "Ġdont", "_", "mine", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġr", "tn", ".", "append", "({\"", "func", "\":", "Ġ\"_", "mine", "\",", "Ġ\"", "args", "\":", "Ġ(", "pos", "_", "above", ",)", "})", "ĊĊĠĠĠĠĠĠĠ", "Ġfor", "Ġdir", "_", "Ġin", "Ġ_", "adj", "_", "dirs", "():", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġpos", "Ġ=", "Ġself", "._", "pos", "Ġ+", "Ġdir", "_", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġfor", "Ġ_", "Ġin", "Ġxrange", "(", "2", "):", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġself", "._", "get", "_", "block", "(", "pos", ")", "Ġnot", "Ġin", "Ġdont", "_", "mine", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġr", "tn", ".", "append", "({\"", "func", "\":", "Ġ\"_", "mine", "\",", "Ġ\"", "args", "\":", "Ġ(", "pos", ",)", "})", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġpos", "Ġ=", "Ġpos", "Ġ+", "Ġ_", "Vec", "3", "(", "0", ",", "Ġ", "1", ",", "Ġ", "0", ")", "ĊĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġr", "tn", "ĊĊĠĠĠ", "Ġdef", "Ġ_", "get", "_", "placement", "_", "actions", "(", "self", ",", "Ġexclude", "=", "None", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Return", "Ġa", "Ġlist", "Ġof", "Ġlegal", "Ġactions", "Ġthat", "Ġonly", "Ġinvolve", "Ġpl", "acing", "Ġa", "Ġblock", "ĊĠĠĠĠĠĠĠ", "Ġfrom", "Ġthe", "Ġinventory", ".", "ĊĊĠĠĠĠĠĠĠ", "Ġexclude", "Ġis", "Ġa", "Ġblock", "Ġid", ".", "ĠIt", "Ġis", "Ġthe", "Ġblock", "Ġthat", "Ġshould", "Ġnot", "Ġbe", "Ġplaced", ".", "ĠIf", "ĠNone", ",", "ĊĠĠĠĠĠĠĠ", "Ġany", "Ġblock", "Ġcan", "Ġbe", "Ġplaced", ".\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġnot", "Ġself", "._", "has", "_", "blocks", "_", "to", "_", "place", "(", "exclude", "=", "exclude", "):", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġ[]", "ĊĊĠĠĠĠĠĠĠ", "Ġdirs", "Ġ=", "Ġ[_", "Vec", "3", "(", "0", ",", "Ġ", "2", ",", "Ġ", "0", ")]", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġdir", "_", "Ġin", "Ġ_", "adj", "_", "dirs", "():", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdirs", ".", "extend", "([", "dir", "_,", "Ġdir", "_", "Ġ+", "Ġ_", "Vec", "3", "(", "0", ",", "Ġ", "1", ",", "Ġ", "0", ")])", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġself", "._", "get", "_", "block", "(", "self", "._", "pos", "Ġ+", "Ġdir", "_)", "Ġin", "Ġ[_", "AIR", ",", "Ġ_", "WATER", "]:", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġdirs", ".", "append", "(", "dir", "_", "Ġ+", "Ġ_", "Vec", "3", "(", "0", ",", "Ġ-", "1", ",", "Ġ", "0", "))", "ĊĊĠĠĠĠĠĠĠ", "Ġr", "tn", "Ġ=", "Ġ[]", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġdir", "_", "Ġin", "Ġdirs", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġpos", "Ġ=", "Ġself", "._", "pos", "Ġ+", "Ġdir", "_", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġself", "._", "can", "_", "place", "(", "pos", "):", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġr", "tn", ".", "append", "({\"", "func", "\":", "Ġ\"_", "place", "\",", "Ġ\"", "args", "\":", "Ġ(", "pos", ",),", "Ġ\"", "kwargs", "\":", "Ġ{\"", "exclude", "\":", "Ġexclude", "}})", "ĊĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġr", "tn", "ĊĊĠĠĠ", "Ġdef", "Ġ_", "can", "_", "place", "(", "self", ",", "Ġloc", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Return", "Ġwhether", "Ġor", "Ġnot", "Ġthe", "Ġbot", "Ġcan", "Ġplace", "Ġa", "Ġblock", "Ġat", "Ġthat", "Ġlocation", "ĊĠĠĠĠĠĠĠ", "Ġindependent", "Ġof", "Ġwhat", "Ġit", "Ġhas", "Ġin", "Ġits", "Ġinventory", ".\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġnon", "_", "blocks", "Ġ=", "Ġ[_", "AIR", ",", "Ġ_", "WATER", ",", "Ġ_", "L", "AVA", "]", "ĊĠĠĠĠĠĠĠ", "Ġplayer", "Ġ=", "Ġ[", "self", "._", "pos", ",", "Ġself", "._", "pos", "Ġ+", "Ġ_", "Vec", "3", "(", "0", ",", "Ġ", "1", ",", "Ġ", "0", ")]", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġdir", "_", "Ġin", "Ġ_", "adj", "_", "dirs", "Ġ+", "Ġ[_", "Vec", "3", "(", "0", ",", "Ġ", "1", ",", "Ġ", "0", "),", "Ġ_", "Vec", "3", "(", "0", ",", "Ġ-", "1", ",", "Ġ", "0", ")]", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġnew", "_", "loc", "Ġ=", "Ġloc", "Ġ+", "Ġdir", "_", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġnew", "_", "loc", "Ġnot", "Ġin", "Ġplayer", "Ġand", "Ġself", "._", "get", "_", "block", "(", "new", "_", "loc", ")", "Ġnot", "Ġin", "Ġnon", "_", "blocks", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "ĠTrue", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "ĠFalse", "ĊĊĠĠĠ", "Ġdef", "Ġ_", "has", "_", "blocks", "_", "to", "_", "place", "(", "self", ",", "Ġexclude", "=", "None", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Return", "Ġwhether", "Ġor", "Ġnot", "Ġthe", "Ġbot", "Ġcan", "Ġplace", "Ġa", "Ġblock", "Ġfrom", "Ġthe", "ĊĠĠĠĠĠĠĠ", "Ġinventory", ".", "ĠIf", "Ġexclude", "Ġis", "ĠNone", ",", "Ġany", "Ġblock", "Ġcan", "Ġbe", "Ġplaced", ".\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġblock", "_", "Ġin", "Ġself", "._", "inventory", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġblock", "_", "Ġ!=", "Ġexclude", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "ĠTrue", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "ĠFalse", "ĊĊĠĠĠ", "Ġdef", "Ġ_", "set", "_", "block", "(", "self", ",", "Ġpos", ",", "Ġblock", "_", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Set", "Ġa", "Ġblock", ".", "Ġblock", "_", "Ġis", "Ġthe", "Ġblock", "Ġid", ".\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġraise", "ĠNotImplementedError", "ĊĊĠĠĠ", "Ġdef", "Ġ_", "move", "(", "self", ",", "Ġpos", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Move", "Ġthere", "Ġonly", ".\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġself", "._", "pos", "Ġ=", "Ġdeepcopy", "(", "pos", ")", "ĊĊ", "Ċ", "class", "Ġ_", "Imag", "inary", "Bot", "(_", "Generic", "Bot", "):", "ĊĠĠĠ", "Ġ\"\"\"", "A", "Ġbot", "Ġused", "Ġfor", "Ġfinding", "Ġpaths", "Ġthat", "Ġdoesn", "'t", "Ġactually", "Ġchange", "Ġblocks", "ĊĠĠĠ", "Ġin", "Ġthe", "Ġworld", ".\"\"\"", "ĊĊĠĠĠ", "Ġdef", "Ġ__", "init", "__(", "self", ",", "Ġpos", ",", "Ġinventory", "=", "None", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Create", "Ġa", "Ġnew", "Ġbot", ".\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġ_", "Generic", "Bot", ".__", "init", "__(", "self", ",", "Ġpos", ",", "Ġinventory", ")", "ĊĠĠĠĠĠĠĠ", "Ġself", "._", "changes", "Ġ=", "Ġ{}", "Ġ", "Ġ#", "ĠChanges", "Ġto", "Ġthe", "Ġworld", "ĊĊĠĠĠ", "Ġdef", "Ġ_", "set", "_", "block", "(", "self", ",", "Ġpos", ",", "Ġblock", "_", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Set", "Ġa", "Ġblock", ".", "Ġblock", "_", "Ġis", "Ġthe", "Ġblock", "Ġid", ".\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġself", "._", "changes", "[", "deepcopy", "(", "pos", ")]", "Ġ=", "Ġblock", "ĊĊĠĠĠ", "Ġdef", "Ġ_", "get", "_", "block", "(", "self", ",", "Ġpos", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Get", "Ġthe", "Ġblock", "Ġat", "Ġthe", "Ġposition", ".\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġpos", "Ġin", "Ġself", "._", "changes", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġself", "._", "changes", "[", "pos", "]", "ĊĠĠĠĠĠĠĠ", "Ġelse", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġ_", "get", "_", "mc", "().", "getBlock", "(", "pos", ")", "ĊĊĠĠĠ", "Ġdef", "Ġget", "_", "block", "(", "self", ",", "Ġpos", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "The", "Ġpublic", "Ġversion", ".\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġself", "._", "get", "_", "block", "(", "pos", ")", "ĊĊĠĠĠ", "Ġdef", "Ġ__", "hash", "__(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Return", "Ġthe", "Ġhash", ".\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġhash", "(", "frozen", "set", "([", "self", "._", "pos", "]", "Ġ+", "Ġ_", "key", "_", "vals", "(", "self", "._", "inventory", ")", "Ġ+", "Ġ_", "key", "_", "vals", "(", "self", "._", "changes", ")))", "ĊĊ", "Ċ", "class", "ĠBot", "(_", "Generic", "Bot", "):", "ĊĠĠĠ", "Ġ\"\"\"", "The", "Ġreal", "Ġbot", ".", "ĊĊĠĠĠ", "ĠAll", "Ġvector", "Ġarguments", "Ġare", "ĠVec", "3", "s", ".\"\"\"", "ĊĊĠĠĠ", "Ġ_", "BOT", "_", "BLOCK", "Ġ=", "Ġblock", ".", "IRON", "_", "BLOCK", ".", "id", "ĊĊĠĠĠ", "Ġdef", "Ġ__", "init", "__(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Create", "Ġa", "Ġbot", "Ġnext", "Ġto", "Ġthe", "Ġplayer", ".\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġpos", "Ġ=", "Ġ_", "get", "_", "mc", "().", "player", ".", "get", "Tile", "Pos", "()", "Ġ+", "ĠVec", "3", "(", "2", ",", "Ġ", "0", ",", "Ġ", "0", ")", "ĊĠĠĠĠĠĠĠ", "Ġpos", "Ġ=", "Ġ_", "Vec", "3", "(", "pos", ".", "x", ",", "Ġpos", ".", "y", ",", "Ġpos", ".", "z", ")", "ĊĠĠĠĠĠĠĠ", "Ġ_", "Generic", "Bot", ".__", "init", "__(", "self", ",", "Ġpos", ")", "ĊĠĠĠĠĠĠĠ", "Ġself", "._", "pos", "Ġ=", "Ġpos", "ĊĠĠĠĠĠĠĠ", "Ġself", "._", "move", "(", "self", "._", "pos", ")", "ĊĊĠĠĠ", "Ġ@", "staticmethod", "ĊĠĠĠ", "Ġdef", "Ġdestroy", "_", "all", "():", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Destroy", "Ġall", "Ġbots", "Ġwithin", "Ġa", "Ġsmall", "Ġdistance", "Ġ(", "in", "Ġcase", "ĠI", "Ġforget", "Ġto", "ĊĠĠĠĠĠĠĠ", "Ġdestroy", "Ġone", ").", "\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġplayer", "_", "loc", "Ġ=", "Ġ_", "player", "_", "loc", "()", "ĊĠĠĠĠĠĠĠ", "Ġmine", "c", "Ġ=", "Ġ_", "get", "_", "mc", "()", "ĊĠĠĠĠĠĠĠ", "Ġrad", "Ġ=", "Ġ", "1", "0", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġx", "Ġin", "Ġxrange", "(", "player", "_", "loc", ".", "x", "Ġ-", "Ġrad", ",", "Ġplayer", "_", "loc", ".", "x", "Ġ+", "Ġrad", "):", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġfor", "Ġy", "Ġin", "Ġxrange", "(", "player", "_", "loc", ".", "y", "Ġ-", "Ġrad", ",", "Ġplayer", "_", "loc", ".", "y", "Ġ+", "Ġrad", "):", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġfor", "Ġz", "Ġin", "Ġxrange", "(", "player", "_", "loc", ".", "z", "Ġ-", "Ġrad", ",", "Ġplayer", "_", "loc", ".", "z", "Ġ+", "Ġrad", "):", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġmine", "c", ".", "getBlock", "(", "x", ",", "Ġy", ",", "Ġz", ")", "Ġ==", "ĠBot", "._", "BOT", "_", "BLOCK", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġmine", "c", ".", "set", "Block", "(", "x", ",", "Ġy", ",", "Ġz", ",", "Ġ_", "AIR", ")", "ĊĊĠĠĠ", "Ġdef", "Ġdestroy", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Set", "Ġitself", "Ġto", "Ġair", ".\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġself", "._", "set", "_", "block", "(", "self", "._", "pos", ",", "Ġ_", "AIR", ")", "ĊĠĠĠĠĠĠĠ", "Ġself", "._", "set", "_", "block", "(", "self", "._", "pos", "Ġ+", "Ġ_", "Vec", "3", "(", "0", ",", "Ġ", "1", ",", "Ġ", "0", "),", "Ġ_", "AIR", ")", "ĊĊĠĠĠ", "Ġdef", "Ġfetch", "(", "self", ",", "Ġblock", "_", "name", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Mine", "Ġand", "Ġreturn", "Ġa", "Ġblock", "Ġto", "Ġthe", "Ġplayer", ".\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġimag", "_", "bot", "Ġ=", "Ġ_", "Imag", "inary", "Bot", "(", "self", "._", "pos", ",", "Ġself", "._", "inventory", ")", "ĊĠĠĠĠĠĠĠ", "Ġblock", "_", "id", "Ġ=", "Ġgetattr", "(", "block", ",", "Ġblock", "_", "name", ").", "id", "ĊĠĠĠĠĠĠĠ", "Ġblock", "_", "loc", "Ġ=", "Ġself", "._", "get", "_", "block", "_", "loc", "(", "block", "_", "id", ")", "ĊĠĠĠĠĠĠĠ", "Ġmine", "_", "prob", "Ġ=", "Ġ_", "Mine", "Problem", "(", "imag", "_", "bot", ",", "Ġblock", "_", "loc", ",", "Ġblock", "_", "id", ")", "ĊĠĠĠĠĠĠĠ", "Ġmine", "_", "actions", "Ġ=", "Ġa", "star", "(", "mine", "_", "prob", ",", "Ġ_", "mine", "_", "he", "uristic", ")", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "take", "_", "actions", "(", "mine", "_", "actions", ",", "Ġ_", "DELAY", ")", "ĊĠĠĠĠĠĠĠ", "Ġimag", "_", "bot", "Ġ=", "Ġ_", "Imag", "inary", "Bot", "(", "self", "._", "pos", ",", "Ġself", "._", "inventory", ")", "ĊĠĠĠĠĠĠĠ", "Ġplayer", "_", "loc", "Ġ=", "Ġ_", "player", "_", "loc", "()", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "_", "prob", "Ġ=", "Ġ_", "Return", "Problem", "(", "imag", "_", "bot", ",", "Ġblock", "_", "id", ",", "Ġplayer", "_", "loc", ")", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "_", "actions", "Ġ=", "Ġa", "star", "(", "return", "_", "prob", ",", "Ġ_", "return", "_", "he", "uristic", ")", "ĊĠĠĠĠĠĠĠ", "Ġimag", "_", "bot", ".", "take", "_", "actions", "(", "return", "_", "actions", ")", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "_", "actions", ".", "append", "({\"", "func", "\":", "Ġ\"_", "place", "\",", "Ġ\"", "args", "\":", "Ġ(", "imag", "_", "bot", ".", "get", "_", "pos", "()", "Ġ+", "Ġplayer", "_", "loc", ")", "Ġ/", "Ġ", "2", ",", "Ġ\"", "kwargs", "\":", "Ġ{\"", "block", "\":", "Ġblock", "_", "id", "}})", "ĊĠĠĠĠĠĠĠ", "Ġself", ".", "take", "_", "actions", "(", "return", "_", "actions", ",", "Ġ_", "DELAY", ")", "ĊĊĠĠĠ", "Ġdef", "Ġ_", "get", "_", "block", "_", "loc", "(", "self", ",", "Ġblock", "_", "id", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Return", "Ġthe", "Ġlocation", "Ġof", "Ġthe", "Ġblock", ".\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġfind", "_", "prob", "Ġ=", "ĠFind", "Problem", "(", "self", "._", "pos", ",", "Ġblock", "_", "id", ")", "ĊĠĠĠĠĠĠĠ", "Ġdirs", "Ġ=", "Ġb", "fs", "(", "find", "_", "prob", ")", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġself", "._", "pos", "Ġ+", "Ġsum", "(", "dirs", ")", "ĊĊĠĠĠ", "Ġdef", "Ġ_", "set", "_", "block", "(", "self", ",", "Ġpos", ",", "Ġblock", "_", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Place", "Ġan", "Ġactual", "Ġblock", "Ġin", "Ġthe", "Ġworld", ".", "ĊĊĠĠĠĠĠĠĠ", "Ġblock", "Ġis", "Ġa", "Ġblock", "Ġid", ".\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġ_", "get", "_", "mc", "().", "set", "Block", "(", "pos", ",", "Ġblock", "_)", "ĊĊĠĠĠ", "Ġdef", "Ġ_", "get", "_", "block", "(", "self", ",", "Ġpos", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Get", "Ġthe", "Ġblock", "Ġat", "Ġthe", "Ġposition", ".\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġ_", "get", "_", "mc", "().", "getBlock", "(", "pos", ")", "ĊĊĠĠĠ", "Ġdef", "Ġ_", "move", "(", "self", ",", "Ġpos", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Move", "Ġthere", ",", "Ġand", "Ġset", "Ġthe", "Ġappropriate", "Ġblocks", ".\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġself", "._", "set", "_", "block", "(", "self", "._", "pos", ",", "Ġ_", "AIR", ")", "ĊĠĠĠĠĠĠĠ", "Ġself", "._", "set", "_", "block", "(", "self", "._", "pos", "Ġ+", "Ġ_", "Vec", "3", "(", "0", ",", "Ġ", "1", ",", "Ġ", "0", "),", "Ġ_", "AIR", ")", "ĊĠĠĠĠĠĠĠ", "Ġself", "._", "set", "_", "block", "(", "pos", ",", "Ġself", "._", "BOT", "_", "BLOCK", ")", "ĊĠĠĠĠĠĠĠ", "Ġself", "._", "set", "_", "block", "(", "pos", "Ġ+", "Ġ_", "Vec", "3", "(", "0", ",", "Ġ", "1", ",", "Ġ", "0", "),", "Ġself", "._", "BOT", "_", "BLOCK", ")", "ĊĠĠĠĠĠĠĠ", "Ġself", "._", "pos", "Ġ=", "Ġpos", "ĊĊ", "Ċ", "class", "ĠFind", "Problem", "(", "Search", "Problem", "):", "ĊĠĠĠ", "Ġ\"\"\"", "Problem", "Ġfor", "Ġfinding", "Ġthe", "Ġlocation", "Ġof", "Ġa", "Ġblock", "Ġin", "Ġthe", "Ġworld", ".", "ĊĊĠĠĠ", "ĠA", "Ġstate", "Ġin", "Ġthis", "Ġproblem", "Ġis", "Ġa", "Ġlocation", ".", "ĊĠĠĠ", "Ġ\"\"\"", "ĊĊĠĠĠ", "Ġdef", "Ġ__", "init", "__(", "self", ",", "Ġstart", "_", "loc", ",", "Ġblock", "_", "id", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Initialize", ".\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġself", "._", "start", "_", "loc", "Ġ=", "Ġdeepcopy", "(", "start", "_", "loc", ")", "ĊĠĠĠĠĠĠĠ", "Ġself", "._", "block", "_", "id", "Ġ=", "Ġblock", "_", "id", "ĊĊĠĠĠ", "Ġdef", "Ġget", "Start", "State", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Return", "Ġthe", "Ġstarting", "Ġlocation", ".\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġself", "._", "start", "_", "loc", "ĊĊĠĠĠ", "Ġdef", "Ġis", "Goal", "State", "(", "self", ",", "Ġstate", "):", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġ_", "get", "_", "mc", "().", "getBlock", "(", "state", ")", "Ġ==", "Ġself", "._", "block", "_", "id", "ĊĊĠĠĠ", "Ġdef", "Ġget", "Success", "ors", "(", "self", ",", "Ġstate", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Return", "Ġthe", "Ġsuccess", "ors", ".\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġr", "tn", "Ġ=", "Ġ[]", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġdir", "_", "Ġin", "Ġ_", "all", "_", "dirs", "():", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġsuccess", "or", "Ġ=", "Ġstate", "Ġ+", "Ġdir", "_", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġif", "Ġsuccess", "or", ".", "y", "Ġ<=", "Ġ_", "get", "_", "mc", "().", "getHeight", "(", "success", "or", ".", "x", ",", "Ġsuccess", "or", ".", "z", ")", "Ġand", "Ġ_", "get", "_", "mc", "().", "getBlock", "(", "success", "or", ")", "Ġ!=", "Ġ_", "B", "ED", "RO", "CK", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġr", "tn", ".", "append", "((", "success", "or", ",", "Ġdir", "_,", "Ġ", "1", "))", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġr", "tn", "ĊĊ", "Ċ", "class", "Ġ_", "Mine", "Problem", "(", "Search", "Problem", "):", "ĊĠĠĠ", "Ġ\"\"\"", "The", "Ġproblem", "Ġof", "Ġfinding", "Ġthe", "Ġblock", "Ġand", "Ġmining", "Ġit", "Ġ(", "not", "Ġreturning", "ĊĠĠĠ", "Ġit", ").", "\"\"\"", "ĊĊĠĠĠ", "Ġdef", "Ġ__", "init", "__(", "self", ",", "Ġimag", "_", "bot", ",", "Ġblock", "_", "loc", ",", "Ġblock", "_", "id", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Initialize", "Ġthe", "Ġproblem", "Ġwith", "Ġan", "Ġ_", "Imag", "inary", "Bot", ".", "ĊĊĠĠĠĠĠĠĠ", "Ġblock", "_", "loc", "Ġis", "Ġa", "ĠVec", "3", ".", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġself", "._", "bot", "Ġ=", "Ġimag", "_", "bot", "ĊĠĠĠĠĠĠĠ", "Ġself", "._", "block", "_", "loc", "Ġ=", "Ġdeepcopy", "(", "block", "_", "loc", ")", "ĊĠĠĠĠĠĠĠ", "Ġself", "._", "block", "_", "id", "Ġ=", "Ġblock", "_", "id", "ĊĊĠĠĠ", "Ġdef", "Ġget", "_", "block", "_", "loc", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Return", "Ġthe", "Ġblock", "Ġlocation", ".\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġdeepcopy", "(", "self", "._", "block", "_", "loc", ")", "ĊĊĠĠĠ", "Ġdef", "Ġget", "_", "block", "_", "id", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Return", "Ġthe", "Ġblock", "Ġit", "'s", "Ġtrying", "Ġto", "Ġmine", ".\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġself", "._", "block", "_", "id", "ĊĊĠĠĠ", "Ġdef", "Ġget", "Start", "State", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Return", "Ġthe", "Ġbot", "Ġpassed", "Ġin", ".\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġself", "._", "bot", "ĊĊĠĠĠ", "Ġdef", "Ġis", "Goal", "State", "(", "self", ",", "Ġstate", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Return", "Ġwhether", "Ġor", "Ġnot", "Ġthe", "Ġbot", "Ġhas", "Ġthe", "Ġblock", ".\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġstate", ".", "contains", "(", "self", "._", "block", "_", "id", ")", "ĊĊĠĠĠ", "Ġdef", "Ġget", "Success", "ors", "(", "self", ",", "Ġstate", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Return", "Ġthe", "Ġsuccess", "ors", ".\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġr", "tn", "Ġ=", "Ġ[]", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġaction", "Ġin", "Ġstate", ".", "get", "_", "legal", "_", "actions", "():", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġsuccess", "or", "Ġ=", "Ġdeepcopy", "(", "state", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġsuccess", "or", ".", "take", "_", "action", "(", "action", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġr", "tn", ".", "append", "((", "success", "or", ",", "Ġaction", ",", "Ġ", "1", "))", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġr", "tn", "ĊĊ", "Ċ", "class", "Ġ_", "Return", "Problem", "(", "Search", "Problem", "):", "ĊĠĠĠ", "Ġ\"\"\"", "The", "Ġproblem", "Ġof", "Ġreturning", "Ġto", "Ġthe", "Ġplayer", ".", "ĠThis", "Ġdoes", "Ġnot", "Ġplace", "Ġthe", "Ġblock", "ĊĠĠĠ", "Ġnext", "Ġto", "Ġthe", "Ġplayer", ".\"\"\"", "ĊĊĠĠĠ", "Ġdef", "Ġ__", "init", "__(", "self", ",", "Ġimag", "_", "bot", ",", "Ġblock", "_,", "Ġplayer", "_", "loc", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Initialized", "Ġthe", "Ġproblem", "Ġwith", "Ġan", "Ġ_", "Imag", "inary", "Bot", ".", "ĊĊĠĠĠĠĠĠĠ", "Ġblock", "Ġis", "Ġa", "Ġblock", "Ġid", ".\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġself", "._", "bot", "Ġ=", "Ġimag", "_", "bot", "ĊĠĠĠĠĠĠĠ", "Ġself", "._", "block", "Ġ=", "Ġblock", "_", "ĊĠĠĠĠĠĠĠ", "Ġself", "._", "player", "_", "loc", "Ġ=", "Ġplayer", "_", "loc", "ĊĊĠĠĠ", "Ġdef", "Ġget", "_", "player", "_", "loc", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Return", "Ġthe", "Ġplayer", "Ġlocation", ".\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġdeepcopy", "(", "self", "._", "player", "_", "loc", ")", "ĊĊĠĠĠ", "Ġdef", "Ġget", "Start", "State", "(", "self", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Return", "Ġthe", "Ġbot", "Ġpassed", "Ġin", ".\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġself", "._", "bot", "ĊĊĠĠĠ", "Ġdef", "Ġis", "Goal", "State", "(", "self", ",", "Ġstate", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Return", "Ġwhether", "Ġor", "Ġnot", "Ġthe", "Ġbot", "Ġis", "Ġnext", "Ġto", "Ġthe", "Ġplayer", ".\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġdiff", "Ġ=", "Ġstate", ".", "get", "_", "pos", "()", "Ġ-", "Ġself", "._", "player", "_", "loc", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġ(", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġdiff", ".", "y", "Ġ==", "Ġ", "0", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġand", "Ġ(", "diff", ".", "x", "Ġ==", "Ġ", "0", "Ġor", "Ġdiff", ".", "z", "Ġ==", "Ġ", "0", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġand", "Ġabs", "(", "diff", ".", "x", ")", "Ġ+", "Ġabs", "(", "diff", ".", "z", ")", "Ġ==", "Ġ", "2", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġand", "Ġstate", ".", "get", "_", "block", "(", "self", "._", "player", "_", "loc", "Ġ+", "Ġdiff", "Ġ/", "Ġ", "2", "Ġ+", "Ġ_", "Vec", "3", "(", "0", ",", "Ġ-", "1", ",", "Ġ", "0", "))", "Ġnot", "Ġin", "Ġ(_", "AIR", ",", "Ġ_", "L", "AVA", ",", "Ġ_", "WATER", ")", "ĊĠĠĠĠĠĠĠ", "Ġ)", "ĊĊĠĠĠ", "Ġdef", "Ġget", "Success", "ors", "(", "self", ",", "Ġstate", "):", "ĊĠĠĠĠĠĠĠ", "Ġ\"\"\"", "Return", "Ġthe", "Ġsuccess", "ors", ".\"\"\"", "ĊĠĠĠĠĠĠĠ", "Ġr", "tn", "Ġ=", "Ġ[]", "ĊĠĠĠĠĠĠĠ", "Ġfor", "Ġaction", "Ġin", "Ġstate", ".", "get", "_", "legal", "_", "actions", "(", "self", "._", "block", "):", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġsuccess", "or", "Ġ=", "Ġdeepcopy", "(", "state", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġsuccess", "or", ".", "take", "_", "action", "(", "action", ")", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġr", "tn", ".", "append", "((", "success", "or", ",", "Ġaction", ",", "Ġ", "1", "))", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġr", "tn", "ĊĊ", "Ċ", "def", "Ġ_", "mine", "_", "he", "uristic", "(", "bot", ",", "Ġproblem", "):", "ĊĠĠĠ", "Ġ\"\"\"", "Return", "Ġthe", "Ġmining", "Ġhe", "uristic", ".", "ĊĊĠĠĠ", "Ġbot", "Ġis", "Ġan", "Ġ_", "Imag", "inary", "Bot", ".", "ĊĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠ", "Ġif", "Ġbot", ".", "contains", "(", "problem", ".", "get", "_", "block", "_", "id", "()):", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġ", "0", "ĊĊĠĠĠ", "Ġbot", "_", "pos", "Ġ=", "Ġbot", ".", "get", "_", "pos", "()", "ĊĠĠĠ", "Ġdest", "_", "pos", "Ġ=", "Ġproblem", ".", "get", "_", "block", "_", "loc", "()", "ĊĊĠĠĠ", "Ġ#", "ĠIf", "Ġman", "Ġ==", "Ġdy", ":", "Ġreturn", "Ġman", "Ġ+", "Ġ", "1", "ĊĠĠĠ", "Ġ#", "ĠIf", "Ġman", "Ġ>", "Ġdy", ":", "Ġreturn", "Ġman", "ĊĠĠĠ", "Ġ#", "ĠIf", "Ġman", "Ġ<", "Ġdy", ":", "Ġreturn", "Ġdy", "?", "ĊĠĠĠ", "Ġman", "_", "dist", "Ġ=", "Ġ_", "man", "h", "att", "an", "((", "bot", "_", "pos", ".", "x", ",", "Ġbot", "_", "pos", ".", "z", "),", "Ġ(", "dest", "_", "pos", ".", "x", ",", "Ġdest", "_", "pos", ".", "z", "))", "ĊĠĠĠ", "Ġy", "_", "diff", "Ġ=", "Ġbot", "_", "pos", ".", "y", "Ġ-", "Ġdest", "_", "pos", ".", "y", "ĊĠĠĠ", "Ġif", "Ġy", "_", "diff", "Ġ<", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠ", "Ġy", "_", "diff", "Ġ+=", "Ġ", "1", "ĊĊĠĠĠ", "Ġif", "Ġy", "_", "diff", "Ġ==", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġman", "_", "dist", "ĊĊĠĠĠ", "Ġ#", "ĠTransform", "Ġso", "Ġthat", "Ġit", "'s", "Ġonly", "Ġdropping", "ĊĠĠĠ", "Ġdrop", "Ġ=", "Ġ_", "DROP", "Ġif", "Ġy", "_", "diff", "Ġ>", "Ġ", "0", "Ġelse", "Ġ", "1", "ĊĠĠĠ", "Ġy", "_", "diff", "Ġ=", "Ġabs", "(", "y", "_", "diff", ")", "ĊĊĠĠĠ", "Ġdrops", "Ġ=", "Ġ_", "dro", "ps", "(", "y", "_", "diff", ",", "Ġdrop", ")", "ĊĊĠĠĠ", "Ġif", "Ġman", "_", "dist", "Ġ>", "Ġdrops", ":", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġman", "_", "dist", "ĊĠĠĠ", "Ġif", "Ġman", "_", "dist", "Ġ==", "Ġdrops", ":", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġman", "_", "dist", "Ġ+", "Ġ", "1", "ĊĠĠĠ", "Ġif", "Ġdrop", "Ġ==", "Ġ", "1", ":", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġdrops", "ĊĠĠĠ", "Ġif", "Ġy", "_", "diff", "Ġ%", "Ġdrop", "Ġ==", "Ġ", "1", ":", "ĊĠĠĠĠĠĠĠ", "Ġreturn", "Ġdrops", "ĊĠĠĠ", "Ġreturn", "Ġdrops", "Ġ+", "Ġ", "1", "ĊĊ", "Ċ", "def", "Ġ_", "dro", "ps", "(", "dist", ",", "Ġdrop", "):", "ĊĠĠĠ", "Ġ\"\"\"", "Return", "Ġthe", "Ġnumber", "Ġof", "Ġtimes", "Ġit", "Ġtakes", "Ġto", "Ġdrop", "Ġa", "Ġdistance", "Ġdist", ".", "Ġdrop", "Ġis", "Ġthe", "ĊĠĠĠ", "Ġlength", "Ġof", "Ġone", "Ġdrop", ".", "ĠBoth", "Ġare", "Ġassumed", "Ġpositive", ".\"\"\"", "ĊĠĠĠ", "Ġr", "tn", "Ġ=", "Ġdist", "Ġ/", "Ġdrop", "ĊĠĠĠ", "Ġif", "Ġdist", "Ġ%", "Ġdrop", "Ġ!=", "Ġ", "0", ":", "ĊĠĠĠĠĠĠĠ", "Ġr", "tn", "Ġ+=", "Ġ", "1", "ĊĠĠĠ", "Ġreturn", "Ġr", "tn", "ĊĊ", "Ċ", "def", "Ġ_", "return", "_", "he", "uristic", "(", "bot", ",", "Ġproblem", "):", "ĊĠĠĠ", "Ġ\"\"\"", "Return", "Ġthe", "Ġreturn", "Ġhe", "uristic", ".", "ĊĊĠĠĠ", "Ġbot", "Ġis", "Ġan", "Ġ_", "Imag", "inary", "Bot", ".", "ĊĠĠĠ", "Ġ\"\"\"", "ĊĠĠĠ", "Ġbot", "_", "pos", "Ġ=", "Ġbot", ".", "get", "_", "pos", "()", "ĊĠĠĠ", "Ġplayer", "_", "pos", "Ġ=", "Ġproblem", ".", "get", "_", "player", "_", "loc", "()", "ĊĠĠĠ", "Ġbot", "_", "plane", "_", "pos", "Ġ=", "Ġ(", "bot", ".", "x", ",", "Ġbot", ".", "z", ")", "ĊĊĠĠĠ", "Ġy", "_", "diff", "Ġ=", "Ġbot", "_", "pos", ".", "y", "Ġ-", "Ġplayer", "_", "pos", ".", "y", "ĊĊĠĠĠ", "Ġdrop", "Ġ=", "Ġ_", "DROP", "Ġif", "Ġy", "_", "diff", "Ġ>", "Ġ", "0", "Ġelse", "Ġ", "1", "ĊĠĠĠ", "Ġy", "_", "diff", "Ġ=", "Ġabs", "(", "y", "_", "diff", ")", "ĊĠĠĠ", "Ġdrops", "Ġ=", "Ġ_", "dro", "ps", "(", "y", "_", "diff", ",", "Ġdrop", ")", "ĊĠĠĠ", "Ġmin", "_", "man", "Ġ=", "Ġfloat", "(\"", "inf", "\")", "ĊĠĠĠ", "Ġfor", "Ġdir", "_", "Ġin", "Ġ_", "adj", "_", "dirs", "():", "ĊĠĠĠĠĠĠĠ", "Ġloc", "Ġ=", "Ġplayer", "_", "pos", "Ġ+", "Ġ", "2", "Ġ*", "Ġdir", "_", "ĊĠĠĠĠĠĠĠ", "Ġman", "_", "dist", "Ġ=", "Ġ_", "man", "h", "att", "an", "(", "bot", "_", "plane", "_", "pos", ",", "Ġ(", "loc", ".", "x", ",", "Ġloc", ".", "z", "))", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġman", "_", "dist", "Ġ<", "Ġmin", "_", "man", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġmin", "_", "man", "Ġ=", "Ġman", "_", "dist", "ĊĠĠĠĠĠĠĠ", "Ġif", "Ġman", "_", "dist", "Ġ<", "Ġdrops", ":", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġreturn", "Ġdrops", "ĊĠĠĠ", "Ġreturn", "Ġmin", "_", "man", "ĊĊ", "Ċ", "def", "Ġ_", "to", "_", "my", "_", "vec", "3", "(", "vec", "):", "ĊĠĠĠ", "Ġ\"\"\"", "Return", "Ġthe", "Ġ_", "Vec", "3", "Ġalternative", "Ġof", "Ġthe", "ĠVec", "3", ".\"\"\"", "ĊĠĠĠ", "Ġreturn", "Ġ_", "Vec", "3", "(", "vec", ".", "x", ",", "Ġvec", ".", "y", ",", "Ġvec", ".", "z", ")", "ĊĊ", "Ċ", "def", "Ġ_", "player", "_", "loc", "():", "ĊĠĠĠ", "Ġ\"\"\"", "Return", "Ġthe", "Ġplayer", "'s", "Ġlocation", ".\"\"\"", "ĊĠĠĠ", "Ġreturn", "Ġ_", "to", "_", "my", "_", "vec", "3", "(_", "get", "_", "mc", "().", "player", ".", "get", "Tile", "Pos", "())", "ĊĊ", "Ċ", "def", "Ġ_", "adj", "_", "dirs", "():", "ĊĠĠĠ", "Ġ\"\"\"", "Return", "Ġthe", "Ġadjacent", "Ġdirections", ".\"\"\"", "ĊĠĠĠ", "Ġreturn", "Ġ[_", "Vec", "3", "(", "1", ",", "Ġ", "0", ",", "Ġ", "0", "),", "Ġ_", "Vec", "3", "(-", "1", ",", "Ġ", "0", ",", "Ġ", "0", "),", "Ġ_", "Vec", "3", "(", "0", ",", "Ġ", "0", ",", "Ġ", "1", "),", "Ġ_", "Vec", "3", "(", "0", ",", "Ġ", "0", ",", "Ġ-", "1", ")]", "ĊĊ", "Ċ", "def", "Ġ_", "all", "_", "dirs", "():", "ĊĠĠĠ", "Ġ\"\"\"", "Return", "Ġall", "Ġadjacent", "Ġdirections", ".\"\"\"", "ĊĠĠĠ", "Ġreturn", "Ġ_", "adj", "_", "dirs", "()", "Ġ+", "Ġ[_", "Vec", "3", "(", "0", ",", "Ġ", "1", ",", "Ġ", "0", "),", "Ġ_", "Vec", "3", "(", "0", ",", "Ġ-", "1", ",", "Ġ", "0", ")]", "ĊĊ", "Ċ", "def", "Ġ_", "man", "h", "att", "an", "(", "pos", "1", ",", "Ġpos", "2", "):", "ĊĠĠĠ", "Ġ\"\"\"", "Return", "Ġthe", "Ġman", "h", "att", "an", "Ġdistance", ".", "Ġpos", "1", "Ġand", "Ġpos", "2", "Ġshould", "Ġbe", "Ġiterable", ".\"\"\"", "ĊĠĠĠ", "Ġreturn", "Ġsum", "(", "abs", "(", "val", "1", "Ġ-", "Ġval", "2", ")", "Ġfor", "Ġval", "1", ",", "Ġval", "2", "Ġin", "Ġzip", "(", "pos", "1", ",", "Ġpos", "2", "))", "ĊĊ", "Ċ", "@", "singleton", "Ċ", "def", "Ġ_", "get", "_", "mc", "():", "ĊĠĠĠ", "Ġ\"\"\"", "Return", "Ġthe", "ĠMinecraft", "Ġinstance", ".\"\"\"", "ĊĠĠĠ", "Ġreturn", "Ġm", "inecraft", ".", "Minecraft", ".", "create", "()", "ĊĊ", "Ċ", "def", "Ġ_", "key", "_", "vals", "(", "dict", "_", "):", "ĊĠĠĠ", "Ġ\"\"\"", "Return", "Ġa", "Ġlist", "Ġof", "Ġkey", "-", "val", "Ġtuples", ".\"\"\"", "ĊĠĠĠ", "Ġreturn", "Ġ[(", "key", ",", "Ġval", ")", "Ġfor", "Ġkey", ",", "Ġval", "Ġin", "Ġdict", "_.", "iteritems", "()]", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 12, 13, 13, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 20, 20, 20, 20, 20, 20, 22, 23, 23, 23, 23, 23, 23, 23, 23, 23, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 25, 25, 25, 27, 27, 27, 27, 27, 27, 27, 28, 28, 28, 28, 28, 28, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 35, 36, 36, 36, 36, 36, 36, 37, 37, 37, 37, 37, 37, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 40, 40, 40, 40, 40, 40, 40, 40, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 42, 43, 43, 43, 43, 43, 43, 44, 44, 44, 44, 44, 44, 45, 45, 45, 46, 46, 46, 46, 46, 46, 46, 46, 46, 47, 47, 47, 47, 47, 47, 47, 47, 47, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 55, 55, 55, 56, 56, 57, 57, 57, 57, 57, 58, 58, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 61, 61, 61, 61, 61, 61, 61, 61, 61, 62, 62, 62, 62, 62, 62, 62, 63, 63, 63, 63, 63, 64, 64, 64, 64, 64, 64, 64, 64, 64, 66, 66, 66, 66, 66, 66, 66, 66, 67, 67, 67, 67, 67, 67, 68, 68, 68, 68, 68, 68, 68, 68, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 71, 71, 71, 71, 71, 71, 71, 71, 71, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 77, 77, 77, 77, 77, 77, 77, 77, 77, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 79, 79, 79, 79, 79, 79, 79, 79, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 82, 82, 82, 82, 82, 82, 82, 82, 82, 83, 83, 83, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 90, 90, 91, 91, 91, 91, 91, 91, 91, 92, 92, 92, 92, 92, 92, 92, 94, 94, 94, 94, 94, 94, 94, 95, 95, 95, 95, 95, 95, 95, 95, 96, 96, 96, 96, 96, 96, 97, 97, 97, 97, 97, 98, 98, 99, 99, 99, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 106, 106, 106, 106, 106, 106, 106, 106, 107, 107, 107, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 112, 112, 112, 112, 112, 112, 112, 112, 112, 113, 113, 113, 113, 113, 113, 113, 113, 113, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 115, 116, 116, 116, 116, 116, 116, 116, 116, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 117, 118, 118, 118, 118, 118, 118, 118, 118, 118, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 121, 121, 121, 121, 121, 121, 121, 121, 121, 122, 122, 122, 122, 122, 122, 122, 122, 122, 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 124, 124, 124, 125, 125, 125, 125, 125, 125, 125, 125, 125, 125, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 128, 128, 128, 128, 128, 128, 128, 128, 128, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 130, 131, 131, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 135, 135, 135, 135, 135, 135, 135, 135, 135, 136, 136, 136, 136, 136, 136, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 141, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 144, 144, 144, 144, 144, 144, 144, 144, 145, 145, 146, 146, 146, 146, 146, 148, 148, 148, 148, 148, 148, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 150, 150, 150, 150, 150, 150, 150, 150, 151, 151, 151, 151, 151, 151, 151, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 152, 153, 153, 153, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 156, 156, 156, 156, 156, 156, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 158, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 161, 161, 161, 161, 161, 161, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 165, 165, 165, 165, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 168, 168, 168, 168, 168, 168, 168, 168, 168, 170, 170, 170, 170, 170, 170, 170, 170, 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, 172, 172, 173, 173, 173, 173, 173, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 174, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 176, 176, 176, 176, 176, 176, 176, 176, 176, 176, 176, 178, 178, 178, 178, 178, 178, 178, 178, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 180, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 181, 182, 182, 183, 183, 183, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 188, 188, 188, 188, 188, 188, 188, 188, 188, 188, 188, 188, 188, 188, 188, 188, 188, 188, 188, 188, 188, 188, 189, 189, 191, 191, 191, 192, 192, 192, 193, 193, 193, 193, 193, 193, 193, 193, 193, 193, 193, 193, 193, 193, 193, 193, 193, 193, 193, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 196, 196, 196, 196, 196, 196, 196, 196, 197, 197, 197, 197, 197, 197, 197, 197, 197, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 199, 199, 200, 200, 200, 200, 200, 200, 200, 202, 202, 202, 202, 202, 202, 202, 202, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 204, 204, 204, 204, 204, 204, 204, 204, 204, 204, 205, 205, 205, 205, 205, 205, 205, 205, 205, 205, 205, 205, 205, 205, 205, 205, 205, 205, 206, 206, 206, 207, 207, 207, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 211, 211, 211, 211, 211, 211, 212, 212, 212, 212, 212, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 214, 214, 214, 214, 214, 214, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 219, 219, 219, 219, 219, 219, 219, 219, 219, 219, 220, 220, 220, 220, 220, 220, 220, 220, 220, 221, 221, 221, 221, 221, 221, 221, 221, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 222, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223, 224, 224, 224, 224, 224, 224, 224, 224, 224, 224, 224, 224, 224, 224, 224, 224, 224, 226, 226, 226, 226, 228, 228, 228, 228, 228, 228, 228, 228, 228, 228, 228, 228, 228, 228, 228, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 230, 230, 230, 230, 230, 232, 232, 232, 232, 232, 232, 232, 232, 232, 232, 232, 232, 232, 232, 232, 232, 232, 232, 232, 232, 233, 233, 233, 233, 233, 233, 233, 234, 234, 234, 234, 234, 234, 234, 234, 234, 234, 234, 234, 234, 234, 234, 234, 234, 235, 235, 235, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 238, 238, 238, 238, 238, 238, 238, 238, 238, 238, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 243, 243, 243, 243, 243, 244, 244, 244, 244, 244, 244, 244, 245, 245, 245, 245, 245, 245, 245, 245, 245, 246, 246, 246, 246, 246, 246, 246, 246, 246, 246, 247, 247, 247, 247, 247, 247, 247, 247, 247, 247, 247, 247, 247, 247, 247, 247, 247, 247, 247, 247, 247, 247, 247, 247, 247, 249, 249, 249, 249, 251, 251, 251, 251, 251, 251, 251, 251, 251, 251, 251, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 253, 253, 253, 253, 253, 253, 253, 253, 253, 253, 254, 254, 254, 254, 254, 254, 254, 254, 254, 254, 254, 254, 254, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 257, 257, 257, 257, 257, 257, 257, 257, 257, 258, 258, 258, 258, 258, 258, 258, 258, 258, 258, 258, 258, 258, 258, 258, 258, 258, 258, 258, 258, 258, 258, 258, 258, 258, 259, 259, 259, 260, 260, 260, 262, 262, 262, 262, 262, 262, 262, 262, 262, 262, 262, 262, 262, 262, 262, 262, 262, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 264, 264, 264, 264, 264, 264, 264, 264, 264, 264, 264, 264, 264, 264, 265, 265, 265, 265, 265, 265, 265, 265, 265, 266, 266, 266, 266, 266, 266, 266, 267, 267, 267, 268, 268, 268, 270, 270, 270, 270, 270, 270, 270, 270, 270, 270, 270, 270, 270, 270, 271, 271, 271, 271, 271, 271, 271, 271, 271, 271, 271, 271, 271, 272, 272, 272, 274, 274, 274, 274, 274, 274, 274, 274, 274, 275, 275, 275, 275, 275, 275, 276, 276, 276, 276, 276, 276, 276, 276, 276, 278, 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 281, 281, 281, 281, 281, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 284, 284, 284, 284, 284, 284, 284, 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 288, 288, 288, 288, 288, 288, 288, 288, 288, 288, 288, 288, 288, 288, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 292, 292, 292, 292, 292, 292, 292, 292, 292, 292, 292, 293, 293, 293, 293, 293, 293, 293, 293, 293, 294, 294, 294, 294, 294, 294, 294, 294, 295, 295, 295, 295, 295, 295, 295, 295, 296, 296, 296, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 300, 300, 300, 300, 300, 300, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 303, 303, 303, 303, 303, 303, 303, 304, 304, 304, 304, 304, 304, 305, 305, 305, 305, 305, 305, 305, 305, 305, 305, 305, 305, 305, 305, 305, 305, 305, 305, 305, 305, 305, 305, 305, 305, 305, 305, 305, 305, 305, 305, 305, 307, 308, 308, 308, 308, 308, 308, 308, 309, 309, 309, 309, 309, 309, 311, 311, 311, 311, 311, 311, 311, 311, 311, 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, 315, 315, 315, 315, 315, 315, 315, 316, 316, 316, 316, 316, 316, 316, 316, 316, 316, 317, 317, 317, 317, 317, 317, 317, 317, 317, 317, 317, 317, 317, 317, 317, 317, 317, 317, 317, 317, 317, 317, 317, 317, 317, 317, 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, 319, 319, 319, 319, 319, 319, 319, 319, 319, 319, 319, 320, 320, 320, 320, 320, 320, 321, 321, 321, 321, 321, 321, 321, 321, 321, 323, 323, 323, 324, 324, 324, 324, 324, 324, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325, 326, 326, 326, 326, 326, 327, 327, 327, 327, 327, 327, 327, 327, 327, 327, 328, 328, 328, 328, 328, 328, 328, 328, 328, 329, 329, 329, 329, 329, 329, 330, 330, 330, 330, 330, 330, 330, 330, 330, 330, 330, 330, 330, 330, 330, 330, 330, 330, 330, 330, 330, 330, 331, 331, 331, 331, 331, 331, 331, 331, 331, 331, 331, 331, 331, 331, 331, 331, 331, 331, 331, 331, 331, 331, 332, 332, 332, 332, 332, 332, 332, 332, 332, 332, 332, 332, 332, 332, 332, 332, 332, 332, 332, 332, 332, 332, 333, 333, 333, 333, 333, 333, 333, 333, 333, 333, 333, 333, 333, 333, 333, 333, 333, 333, 333, 333, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 336, 336, 336, 336, 336, 336, 337, 337, 337, 337, 337, 337, 337, 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, 341, 341, 341, 341, 341, 341, 341, 341, 341, 341, 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, 343, 343, 343, 343, 343, 343, 343, 343, 343, 343, 343, 343, 343, 343, 343, 343, 343, 343, 344, 344, 344, 344, 344, 344, 344, 344, 344, 344, 344, 344, 344, 344, 345, 345, 345, 345, 345, 345, 345, 345, 345, 345, 345, 345, 345, 345, 345, 345, 345, 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, 347, 347, 347, 347, 347, 347, 347, 347, 347, 347, 347, 347, 347, 347, 347, 347, 347, 347, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 349, 349, 349, 349, 349, 349, 349, 349, 349, 349, 349, 349, 349, 349, 349, 349, 349, 349, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 351, 351, 351, 351, 351, 351, 351, 351, 351, 351, 351, 351, 351, 351, 351, 351, 351, 351, 351, 351, 351, 352, 352, 352, 352, 352, 352, 352, 352, 352, 352, 352, 352, 352, 352, 352, 352, 352, 352, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 354, 354, 354, 354, 354, 354, 354, 354, 354, 354, 354, 354, 354, 354, 354, 354, 354, 354, 354, 354, 354, 354, 354, 354, 354, 354, 354, 354, 354, 354, 354, 354, 354, 354, 354, 354, 354, 354, 354, 354, 354, 354, 354, 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, 358, 358, 358, 358, 358, 358, 358, 358, 358, 359, 359, 359, 359, 359, 359, 359, 359, 359, 359, 359, 359, 359, 359, 359, 359, 360, 360, 360, 360, 360, 360, 360, 360, 360, 360, 361, 361, 361, 361, 361, 361, 361, 361, 361, 361, 363, 363, 363, 363, 363, 363, 363, 363, 363, 363, 363, 363, 363, 363, 364, 364, 364, 364, 364, 364, 364, 364, 364, 364, 366, 366, 366, 366, 366, 366, 366, 367, 367, 367, 367, 367, 367, 367, 367, 367, 367, 367, 367, 367, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 370, 370, 370, 370, 370, 370, 370, 370, 370, 371, 371, 371, 371, 371, 371, 371, 371, 371, 371, 371, 373, 373, 373, 373, 373, 373, 373, 373, 373, 374, 374, 374, 374, 374, 374, 374, 374, 374, 374, 374, 375, 375, 375, 375, 375, 375, 375, 375, 375, 375, 375, 375, 375, 375, 376, 376, 376, 376, 376, 376, 376, 376, 376, 376, 376, 376, 376, 376, 376, 376, 376, 376, 376, 376, 376, 376, 376, 376, 376, 376, 377, 377, 377, 377, 377, 377, 377, 377, 377, 377, 377, 377, 377, 377, 377, 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, 379, 379, 379, 379, 379, 379, 381, 382, 382, 382, 382, 382, 382, 382, 382, 383, 383, 383, 383, 383, 383, 383, 383, 383, 383, 383, 383, 383, 383, 385, 385, 385, 385, 385, 385, 385, 385, 385, 385, 386, 386, 388, 388, 388, 388, 388, 388, 388, 388, 388, 388, 388, 388, 388, 388, 388, 389, 389, 389, 389, 390, 390, 390, 390, 390, 390, 390, 390, 390, 390, 390, 390, 390, 391, 391, 391, 391, 391, 391, 391, 391, 391, 391, 393, 393, 393, 393, 393, 393, 393, 393, 394, 394, 394, 394, 394, 394, 394, 395, 395, 395, 395, 395, 395, 395, 397, 397, 397, 397, 397, 397, 397, 397, 397, 397, 398, 398, 398, 398, 398, 398, 398, 398, 398, 398, 398, 398, 398, 398, 398, 398, 398, 400, 400, 400, 400, 400, 400, 400, 400, 400, 400, 401, 401, 401, 401, 401, 401, 401, 402, 402, 402, 402, 402, 403, 403, 403, 403, 403, 403, 403, 403, 403, 403, 404, 404, 404, 404, 404, 404, 404, 404, 405, 405, 405, 405, 405, 405, 405, 405, 405, 405, 405, 405, 405, 405, 405, 405, 405, 405, 405, 405, 405, 405, 405, 405, 405, 405, 405, 405, 405, 405, 405, 405, 405, 405, 405, 405, 405, 405, 405, 405, 405, 405, 406, 406, 406, 406, 406, 406, 406, 406, 406, 406, 406, 406, 406, 406, 407, 407, 407, 407, 409, 410, 410, 410, 410, 410, 410, 410, 410, 410, 411, 411, 411, 411, 411, 411, 411, 411, 411, 411, 411, 411, 411, 411, 412, 412, 412, 412, 414, 414, 414, 414, 414, 414, 414, 414, 414, 414, 414, 414, 414, 414, 414, 414, 414, 414, 414, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 415, 417, 417, 417, 417, 417, 417, 417, 417, 417, 418, 418, 419, 419, 419, 419, 419, 419, 419, 419, 420, 420, 420, 420, 420, 420, 420, 420, 420, 420, 420, 420, 420, 421, 421, 421, 421, 421, 421, 421, 421, 421, 421, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 424, 424, 424, 424, 424, 424, 424, 425, 425, 425, 425, 425, 425, 425, 425, 425, 425, 427, 427, 427, 427, 427, 427, 427, 427, 427, 427, 428, 428, 428, 428, 428, 428, 428, 428, 428, 428, 428, 429, 429, 429, 429, 429, 429, 429, 431, 431, 431, 431, 431, 431, 431, 431, 432, 432, 432, 432, 432, 432, 432, 432, 433, 433, 433, 433, 433, 435, 435, 435, 435, 435, 435, 435, 435, 435, 435, 436, 436, 436, 436, 436, 436, 436, 436, 436, 436, 436, 436, 437, 437, 437, 437, 437, 437, 437, 437, 437, 437, 437, 437, 439, 439, 439, 439, 439, 439, 439, 439, 439, 439, 440, 440, 440, 440, 440, 440, 440, 441, 441, 441, 441, 441, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 443, 443, 443, 443, 443, 443, 443, 443, 444, 444, 444, 444, 444, 444, 444, 444, 444, 444, 445, 445, 445, 445, 445, 445, 445, 445, 445, 445, 445, 445, 445, 445, 446, 446, 446, 446, 448, 449, 449, 449, 449, 449, 449, 449, 449, 449, 450, 450, 450, 450, 450, 450, 450, 450, 450, 450, 450, 450, 450, 450, 450, 450, 451, 451, 451, 451, 451, 451, 453, 453, 453, 453, 453, 453, 453, 453, 453, 453, 453, 453, 453, 453, 453, 453, 453, 454, 454, 454, 454, 454, 454, 454, 454, 454, 454, 454, 454, 456, 456, 456, 456, 456, 456, 456, 457, 457, 457, 457, 457, 457, 457, 457, 458, 458, 458, 458, 458, 458, 458, 459, 459, 459, 459, 459, 459, 459, 459, 459, 459, 461, 461, 461, 461, 461, 461, 461, 461, 461, 461, 462, 462, 462, 462, 462, 462, 462, 463, 463, 463, 463, 463, 463, 463, 463, 463, 463, 465, 465, 465, 465, 465, 465, 465, 465, 466, 466, 466, 466, 466, 466, 466, 466, 467, 467, 467, 467, 467, 469, 469, 469, 469, 469, 469, 469, 469, 469, 469, 470, 470, 470, 470, 470, 470, 470, 470, 470, 470, 470, 470, 470, 470, 471, 471, 471, 471, 471, 471, 471, 471, 471, 471, 471, 471, 471, 471, 471, 472, 472, 472, 473, 473, 473, 473, 473, 473, 473, 474, 474, 474, 474, 474, 474, 474, 474, 474, 474, 474, 474, 474, 474, 474, 474, 474, 475, 475, 475, 475, 475, 475, 475, 475, 475, 475, 475, 475, 475, 475, 475, 475, 475, 475, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 477, 477, 479, 479, 479, 479, 479, 479, 479, 479, 479, 479, 480, 480, 480, 480, 480, 480, 480, 481, 481, 481, 481, 481, 482, 482, 482, 482, 482, 482, 482, 482, 482, 482, 482, 482, 482, 482, 482, 482, 483, 483, 483, 483, 483, 483, 483, 483, 484, 484, 484, 484, 484, 484, 484, 484, 484, 484, 485, 485, 485, 485, 485, 485, 485, 485, 485, 485, 485, 485, 485, 485, 486, 486, 486, 486, 488, 489, 489, 489, 489, 489, 489, 489, 489, 489, 489, 489, 489, 490, 490, 490, 490, 490, 490, 490, 490, 492, 492, 492, 492, 492, 492, 492, 492, 492, 493, 493, 494, 494, 494, 494, 494, 494, 494, 494, 494, 494, 494, 494, 494, 494, 495, 495, 495, 495, 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, 498, 498, 498, 498, 498, 498, 498, 498, 498, 498, 498, 498, 498, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 501, 501, 501, 501, 501, 501, 501, 501, 501, 502, 502, 502, 502, 502, 502, 502, 502, 502, 502, 503, 503, 503, 503, 503, 503, 503, 503, 503, 503, 503, 503, 503, 503, 503, 503, 503, 503, 503, 503, 503, 503, 503, 503, 503, 503, 503, 503, 503, 503, 503, 503, 503, 503, 503, 503, 504, 504, 504, 504, 504, 504, 504, 504, 504, 504, 504, 504, 504, 504, 504, 504, 505, 505, 505, 505, 505, 505, 505, 505, 505, 506, 506, 506, 506, 506, 506, 506, 508, 508, 508, 508, 508, 508, 508, 508, 508, 509, 509, 509, 509, 509, 511, 511, 511, 511, 511, 511, 511, 511, 511, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 513, 513, 513, 513, 513, 513, 513, 513, 513, 513, 513, 515, 515, 515, 515, 515, 515, 515, 515, 515, 515, 515, 515, 515, 517, 517, 517, 517, 517, 517, 517, 517, 518, 518, 518, 518, 518, 519, 519, 519, 519, 519, 519, 519, 519, 520, 520, 520, 520, 520, 520, 520, 520, 521, 521, 521, 521, 521, 521, 521, 522, 522, 522, 523, 523, 523, 523, 523, 523, 523, 523, 523, 523, 523, 524, 524, 524, 525, 525, 525, 525, 525, 525, 527, 528, 528, 528, 528, 528, 528, 528, 528, 528, 528, 529, 529, 529, 529, 529, 529, 529, 529, 529, 529, 529, 529, 529, 529, 529, 529, 529, 529, 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 531, 531, 531, 531, 531, 531, 531, 532, 532, 532, 532, 532, 532, 532, 532, 532, 533, 533, 533, 533, 533, 533, 534, 534, 534, 534, 536, 537, 537, 537, 537, 537, 537, 537, 537, 537, 537, 537, 537, 538, 538, 538, 538, 538, 538, 538, 538, 540, 540, 540, 540, 540, 540, 540, 540, 540, 541, 541, 542, 542, 542, 542, 542, 542, 542, 542, 542, 542, 542, 543, 543, 543, 543, 543, 543, 543, 543, 543, 543, 543, 543, 543, 544, 544, 544, 544, 544, 544, 544, 544, 544, 544, 544, 544, 544, 544, 544, 544, 546, 546, 546, 546, 546, 546, 546, 546, 546, 546, 546, 546, 546, 546, 546, 546, 548, 548, 548, 548, 548, 548, 548, 548, 548, 548, 548, 548, 548, 548, 548, 549, 549, 549, 549, 549, 549, 549, 549, 549, 549, 549, 550, 550, 550, 550, 550, 550, 550, 550, 550, 550, 550, 550, 550, 551, 551, 551, 551, 551, 551, 551, 551, 551, 552, 552, 552, 552, 552, 552, 552, 552, 552, 552, 553, 553, 553, 553, 553, 553, 553, 553, 553, 553, 553, 553, 554, 554, 554, 554, 554, 554, 554, 554, 554, 554, 554, 554, 554, 554, 554, 554, 554, 554, 554, 554, 554, 554, 554, 554, 554, 554, 555, 555, 555, 555, 555, 555, 555, 555, 555, 555, 556, 556, 556, 556, 556, 556, 556, 556, 557, 557, 557, 557, 557, 557, 557, 557, 558, 558, 558, 559, 559, 559, 559, 559, 561, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 563, 563, 563, 563, 563, 563, 563, 563, 563, 563, 563, 563, 563, 564, 564, 564, 564, 564, 564, 564, 564, 564, 564, 564, 564, 564, 564, 564, 564, 564, 564, 566, 567, 567, 567, 567, 567, 567, 567, 568, 568, 568, 568, 568, 568, 568, 568, 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, 569, 571, 572, 572, 572, 572, 572, 572, 572, 573, 573, 573, 573, 573, 573, 573, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 574, 576, 577, 577, 577, 577, 577, 577, 577, 578, 578, 578, 578, 578, 578, 578, 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, 581, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 582, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, 584, 584, 584, 584, 584, 584, 584, 584, 584, 584, 584, 584, 584, 584, 584, 584, 584, 584, 584, 584, 584, 584, 584, 584, 584, 584, 584, 586, 587, 587, 587, 588, 588, 588, 588, 588, 588, 588, 589, 589, 589, 589, 589, 589, 589, 590, 590, 590, 590, 590, 590, 590, 590, 590, 592, 593, 593, 593, 593, 593, 593, 593, 593, 593, 593, 594, 594, 594, 594, 594, 594, 594, 594, 594, 594, 594, 595, 595, 595, 595, 595, 595, 595, 595, 595, 595, 595, 595, 595, 595, 595, 595 ]
[ 1, 4, 10, 14, 18, 22, 25, 1, 1, 5, 10, 17, 26, 1, 5, 10, 17, 23, 1, 1, 7, 10, 12, 13, 22, 25, 27, 35, 1, 5, 8, 10, 11, 14, 15, 22, 26, 27, 1, 7, 10, 12, 13, 18, 21, 27, 1, 1, 5, 12, 19, 26, 33, 34, 36, 40, 41, 43, 45, 1, 5, 15, 22, 32, 1, 1, 2, 5, 7, 13, 14, 17, 18, 20, 1, 2, 7, 9, 15, 16, 21, 22, 24, 1, 2, 3, 6, 8, 14, 15, 16, 19, 20, 22, 1, 2, 3, 5, 7, 9, 11, 17, 18, 19, 21, 23, 25, 26, 28, 1, 1, 2, 6, 8, 9, 10, 11, 13, 16, 20, 25, 28, 33, 38, 43, 1, 2, 6, 7, 11, 12, 13, 15, 17, 21, 23, 24, 25, 1, 2, 7, 9, 10, 11, 1, 1, 6, 8, 11, 12, 13, 16, 17, 19, 4, 8, 9, 13, 14, 19, 22, 27, 31, 32, 43, 46, 51, 59, 66, 70, 75, 4, 10, 14, 4, 8, 11, 15, 18, 22, 24, 8, 12, 18, 22, 27, 31, 8, 15, 20, 22, 26, 27, 28, 29, 34, 35, 36, 37, 42, 43, 44, 46, 4, 8, 14, 15, 19, 21, 8, 12, 18, 20, 26, 30, 8, 15, 17, 20, 21, 22, 26, 27, 28, 29, 34, 35, 36, 37, 42, 43, 44, 45, 1, 1, 6, 8, 15, 18, 19, 4, 8, 9, 17, 21, 25, 4, 8, 11, 15, 18, 22, 23, 27, 28, 38, 39, 43, 45, 8, 12, 22, 27, 30, 36, 46, 47, 8, 18, 21, 23, 34, 35, 38, 43, 44, 47, 53, 57, 62, 65, 70, 74, 8, 11, 21, 24, 29, 30, 12, 17, 19, 28, 30, 33, 8, 13, 14, 12, 17, 19, 28, 30, 39, 40, 49, 50, 8, 13, 15, 18, 20, 29, 30, 33, 34, 4, 8, 13, 14, 20, 21, 25, 26, 33, 35, 8, 12, 16, 20, 27, 29, 36, 37, 42, 44, 47, 48, 53, 54, 61, 63, 66, 8, 16, 17, 21, 22, 29, 31, 35, 38, 40, 46, 47, 50, 52, 56, 58, 61, 63, 66, 72, 73, 76, 78, 84, 86, 89, 91, 4, 8, 13, 14, 21, 22, 26, 27, 35, 36, 44, 45, 49, 51, 8, 12, 16, 22, 30, 31, 34, 42, 45, 49, 54, 55, 61, 63, 70, 71, 8, 16, 17, 8, 12, 8, 11, 15, 23, 24, 12, 19, 8, 13, 14, 18, 19, 25, 26, 33, 34, 35, 37, 8, 12, 19, 22, 30, 31, 32, 33, 35, 12, 15, 23, 26, 30, 35, 36, 16, 22, 23, 30, 31, 12, 17, 18, 22, 23, 29, 30, 36, 37, 4, 8, 12, 13, 16, 17, 21, 23, 8, 12, 18, 22, 31, 35, 8, 15, 24, 25, 29, 31, 34, 35, 4, 8, 12, 13, 18, 19, 26, 27, 31, 32, 38, 40, 44, 46, 8, 12, 18, 20, 25, 28, 34, 42, 43, 8, 11, 17, 18, 21, 26, 27, 34, 38, 44, 52, 53, 63, 64, 71, 75, 8, 14, 22, 27, 31, 33, 41, 44, 49, 53, 59, 63, 8, 15, 20, 22, 25, 26, 30, 31, 38, 39, 44, 46, 48, 53, 55, 58, 59, 63, 64, 71, 73, 75, 80, 82, 85, 86, 95, 96, 103, 104, 109, 111, 4, 8, 17, 18, 22, 23, 29, 30, 32, 8, 12, 18, 26, 29, 33, 37, 41, 50, 54, 60, 63, 67, 8, 15, 21, 22, 25, 30, 32, 41, 4, 8, 10, 13, 14, 19, 20, 24, 25, 29, 31, 8, 12, 15, 19, 25, 28, 32, 41, 45, 8, 14, 34, 4, 8, 10, 15, 16, 20, 21, 25, 26, 34, 35, 39, 40, 46, 48, 52, 54, 8, 12, 17, 19, 25, 30, 34, 44, 49, 50, 8, 11, 19, 22, 26, 31, 32, 38, 40, 46, 51, 54, 58, 60, 67, 69, 8, 11, 17, 20, 24, 29, 30, 36, 41, 47, 52, 53, 8, 12, 8, 11, 15, 20, 22, 31, 32, 12, 18, 28, 30, 39, 45, 47, 8, 11, 17, 18, 21, 26, 27, 12, 16, 20, 23, 28, 30, 39, 40, 16, 19, 23, 26, 34, 35, 20, 26, 27, 29, 33, 20, 26, 12, 17, 18, 16, 22, 32, 35, 38, 48, 52, 55, 61, 63, 64, 65, 69, 72, 75, 79, 84, 90, 93, 97, 107, 109, 111, 119, 121, 8, 11, 17, 18, 22, 25, 30, 32, 41, 42, 12, 18, 28, 30, 35, 37, 38, 41, 45, 48, 52, 62, 63, 65, 71, 73, 8, 11, 16, 18, 27, 28, 33, 35, 38, 39, 40, 41, 12, 16, 21, 23, 32, 33, 38, 40, 8, 13, 14, 12, 17, 19, 28, 29, 34, 36, 39, 40, 41, 8, 13, 15, 18, 19, 24, 25, 28, 29, 35, 37, 4, 8, 10, 14, 15, 19, 20, 24, 26, 8, 12, 16, 20, 25, 29, 35, 41, 45, 8, 12, 13, 16, 18, 23, 25, 28, 30, 32, 35, 36, 37, 38, 39, 41, 42, 43, 44, 45, 46, 8, 14, 15, 17, 22, 24, 27, 28, 33, 34, 37, 38, 41, 42, 8, 11, 17, 18, 21, 23, 28, 29, 12, 17, 19, 22, 23, 25, 26, 29, 30, 35, 37, 8, 13, 15, 19, 20, 23, 24, 27, 28, 4, 8, 10, 13, 14, 16, 17, 20, 21, 25, 26, 32, 33, 35, 8, 12, 15, 19, 25, 28, 32, 42, 46, 8, 11, 17, 18, 21, 26, 28, 37, 38, 12, 17, 19, 28, 29, 34, 36, 39, 40, 41, 8, 13, 14, 12, 17, 19, 28, 29, 34, 36, 38, 39, 40, 4, 8, 10, 14, 15, 17, 18, 22, 23, 31, 32, 36, 38, 8, 12, 16, 20, 26, 28, 34, 40, 41, 8, 11, 19, 22, 26, 31, 32, 38, 40, 46, 51, 54, 58, 60, 67, 69, 8, 12, 8, 13, 15, 19, 20, 24, 26, 29, 31, 33, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 47, 8, 13, 15, 20, 21, 25, 27, 30, 32, 34, 37, 38, 39, 40, 41, 43, 44, 45, 46, 47, 49, 57, 58, 4, 8, 10, 14, 15, 19, 20, 24, 26, 8, 12, 16, 20, 26, 30, 8, 14, 15, 17, 22, 24, 27, 28, 33, 34, 37, 38, 8, 13, 15, 18, 19, 21, 22, 25, 26, 31, 33, 8, 13, 15, 18, 19, 24, 25, 28, 29, 31, 34, 35, 4, 8, 10, 13, 14, 18, 19, 26, 27, 31, 32, 40, 41, 45, 47, 8, 12, 18, 20, 25, 28, 34, 43, 51, 52, 8, 16, 19, 23, 29, 32, 40, 41, 8, 12, 8, 10, 12, 14, 17, 8, 10, 16, 20, 27, 30, 8, 12, 13, 17, 18, 20, 22, 27, 29, 32, 33, 38, 39, 43, 45, 48, 50, 52, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 66, 69, 72, 75, 76, 78, 83, 84, 8, 11, 15, 16, 20, 21, 23, 24, 12, 15, 20, 22, 25, 32, 35, 16, 18, 20, 21, 27, 30, 34, 36, 39, 43, 45, 47, 51, 53, 55, 59, 61, 64, 66, 68, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 82, 85, 12, 17, 18, 16, 18, 20, 21, 27, 30, 34, 36, 39, 43, 44, 46, 48, 50, 54, 56, 58, 65, 67, 69, 8, 10, 16, 20, 27, 32, 8, 15, 16, 21, 23, 28, 30, 33, 34, 39, 40, 44, 46, 49, 51, 53, 56, 57, 58, 59, 60, 62, 63, 64, 65, 66, 68, 8, 11, 18, 19, 24, 27, 29, 34, 37, 44, 45, 50, 54, 57, 60, 63, 64, 66, 67, 70, 72, 12, 14, 16, 17, 23, 26, 30, 32, 35, 39, 40, 44, 47, 8, 10, 16, 20, 25, 31, 8, 12, 16, 17, 20, 22, 25, 26, 30, 33, 12, 14, 16, 17, 23, 24, 28, 30, 34, 35, 40, 41, 44, 46, 50, 51, 55, 56, 58, 60, 8, 15, 17, 19, 4, 8, 10, 14, 15, 20, 21, 25, 26, 30, 32, 36, 37, 41, 42, 44, 46, 8, 12, 18, 22, 27, 30, 35, 41, 42, 8, 12, 13, 16, 19, 28, 38, 39, 8, 12, 13, 17, 18, 20, 23, 25, 33, 37, 45, 48, 52, 56, 60, 64, 69, 72, 73, 8, 12, 8, 10, 12, 14, 17, 8, 13, 14, 17, 19, 24, 26, 29, 31, 35, 36, 8, 13, 14, 19, 21, 26, 28, 31, 32, 37, 38, 42, 43, 46, 47, 8, 14, 15, 21, 23, 26, 29, 30, 32, 37, 38, 8, 10, 16, 19, 22, 26, 31, 34, 8, 11, 15, 16, 20, 21, 23, 27, 32, 33, 38, 42, 45, 48, 51, 52, 54, 55, 58, 59, 61, 66, 68, 12, 16, 21, 22, 25, 28, 31, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 45, 47, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 61, 62, 16, 19, 24, 26, 29, 30, 35, 36, 40, 41, 44, 46, 51, 52, 55, 56, 60, 63, 69, 70, 76, 77, 20, 26, 12, 17, 18, 16, 18, 20, 21, 27, 30, 34, 36, 39, 43, 45, 47, 51, 53, 55, 59, 60, 63, 65, 67, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 81, 84, 8, 10, 16, 19, 22, 26, 31, 34, 39, 49, 8, 12, 17, 18, 21, 24, 27, 30, 31, 34, 36, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 50, 51, 12, 15, 20, 22, 25, 26, 31, 32, 36, 37, 40, 42, 47, 48, 51, 52, 56, 59, 65, 66, 72, 73, 16, 22, 8, 10, 15, 8, 13, 14, 12, 16, 18, 23, 24, 27, 29, 31, 34, 35, 36, 37, 38, 40, 41, 42, 43, 44, 45, 12, 16, 18, 21, 28, 30, 34, 35, 39, 40, 41, 43, 16, 22, 23, 25, 30, 32, 35, 36, 41, 42, 45, 46, 16, 19, 25, 26, 29, 31, 34, 35, 20, 23, 29, 30, 33, 35, 36, 39, 40, 24, 26, 28, 29, 35, 38, 42, 44, 47, 51, 53, 55, 59, 61, 63, 66, 68, 70, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 84, 87, 20, 26, 16, 20, 21, 22, 25, 26, 27, 4, 8, 10, 13, 20, 21, 25, 27, 8, 12, 18, 26, 29, 33, 37, 41, 44, 48, 55, 58, 64, 68, 8, 12, 16, 17, 20, 22, 25, 26, 30, 33, 12, 15, 20, 22, 25, 26, 31, 32, 36, 38, 41, 43, 47, 49, 52, 54, 59, 60, 16, 23, 29, 8, 15, 20, 4, 8, 10, 13, 14, 18, 19, 26, 27, 31, 33, 8, 12, 18, 20, 25, 28, 34, 41, 49, 51, 55, 60, 68, 75, 8, 12, 16, 23, 25, 28, 8, 10, 12, 14, 17, 8, 13, 14, 18, 20, 23, 26, 27, 29, 34, 35, 37, 38, 41, 42, 8, 10, 12, 15, 21, 22, 8, 12, 13, 18, 20, 25, 27, 30, 32, 34, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 8, 11, 16, 18, 21, 22, 27, 28, 31, 32, 37, 38, 42, 45, 50, 51, 55, 56, 12, 14, 16, 17, 23, 26, 30, 32, 35, 39, 41, 43, 47, 49, 51, 54, 55, 60, 62, 64, 8, 12, 16, 17, 20, 22, 25, 26, 30, 33, 12, 16, 18, 23, 25, 28, 30, 34, 35, 12, 16, 18, 21, 28, 29, 30, 32, 16, 19, 24, 26, 29, 30, 35, 36, 39, 40, 44, 47, 52, 53, 57, 58, 20, 22, 24, 25, 31, 34, 38, 40, 43, 47, 49, 51, 55, 57, 59, 62, 64, 66, 16, 20, 22, 26, 28, 30, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 8, 15, 17, 19, 4, 8, 10, 13, 14, 23, 24, 31, 32, 36, 37, 45, 46, 50, 52, 8, 12, 18, 20, 25, 28, 34, 42, 47, 52, 60, 63, 68, 70, 76, 8, 13, 17, 27, 28, 8, 16, 19, 21, 27, 30, 31, 34, 37, 41, 47, 52, 59, 63, 66, 73, 74, 77, 82, 83, 8, 12, 18, 22, 25, 32, 36, 8, 11, 15, 20, 22, 25, 26, 32, 33, 35, 36, 41, 42, 49, 50, 57, 59, 12, 19, 22, 8, 13, 15, 18, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 32, 8, 12, 16, 17, 20, 22, 25, 26, 30, 33, 12, 17, 18, 24, 26, 29, 31, 35, 36, 38, 40, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 55, 12, 15, 20, 22, 25, 26, 31, 32, 36, 38, 41, 43, 47, 49, 52, 55, 58, 59, 61, 66, 68, 16, 21, 22, 28, 29, 32, 33, 35, 37, 40, 41, 42, 43, 44, 46, 47, 48, 49, 50, 52, 8, 10, 12, 14, 17, 8, 12, 16, 17, 20, 25, 26, 12, 16, 18, 23, 25, 28, 30, 34, 35, 12, 15, 20, 22, 25, 26, 31, 32, 35, 37, 16, 18, 20, 21, 27, 30, 34, 36, 39, 44, 46, 48, 52, 54, 56, 59, 62, 64, 70, 72, 75, 82, 84, 92, 95, 8, 15, 17, 19, 4, 8, 10, 13, 14, 19, 20, 24, 25, 29, 31, 8, 12, 18, 26, 29, 33, 37, 41, 45, 51, 53, 59, 62, 67, 76, 8, 20, 23, 28, 31, 35, 38, 42, 52, 56, 8, 12, 13, 19, 21, 24, 27, 28, 30, 35, 36, 38, 39, 42, 43, 8, 15, 17, 19, 23, 25, 28, 29, 34, 36, 39, 41, 43, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 57, 8, 12, 16, 17, 20, 22, 25, 26, 30, 32, 35, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 49, 51, 54, 55, 56, 57, 58, 60, 61, 62, 63, 64, 66, 67, 12, 16, 17, 20, 22, 26, 28, 32, 33, 12, 15, 19, 20, 23, 27, 30, 37, 41, 46, 48, 51, 52, 57, 58, 61, 62, 65, 66, 70, 73, 77, 78, 84, 85, 16, 23, 28, 8, 15, 21, 4, 8, 10, 13, 14, 20, 21, 23, 24, 29, 30, 34, 35, 43, 44, 48, 50, 8, 12, 18, 26, 29, 33, 37, 41, 45, 51, 53, 59, 64, 68, 8, 18, 19, 22, 30, 33, 38, 39, 43, 49, 53, 56, 63, 67, 8, 12, 18, 19, 22, 27, 29, 38, 39, 12, 15, 21, 22, 25, 33, 34, 16, 23, 28, 8, 15, 21, 4, 8, 10, 13, 14, 19, 20, 24, 25, 29, 30, 36, 37, 39, 8, 12, 15, 17, 23, 24, 30, 31, 34, 38, 44, 47, 51, 8, 14, 34, 4, 8, 10, 14, 15, 19, 20, 24, 26, 8, 12, 16, 22, 27, 31, 8, 13, 15, 18, 20, 29, 30, 33, 34, 1, 1, 6, 8, 12, 17, 20, 22, 29, 32, 34, 4, 8, 9, 13, 18, 22, 30, 36, 41, 47, 49, 58, 65, 72, 4, 7, 11, 17, 21, 4, 8, 11, 15, 18, 22, 23, 27, 28, 38, 39, 43, 45, 8, 12, 18, 20, 24, 28, 32, 8, 10, 17, 20, 23, 27, 30, 34, 35, 39, 40, 50, 51, 8, 13, 15, 22, 24, 27, 28, 30, 38, 41, 45, 51, 4, 8, 10, 13, 14, 19, 20, 24, 25, 29, 30, 36, 37, 39, 8, 12, 15, 17, 23, 24, 30, 31, 34, 38, 44, 47, 51, 8, 13, 15, 22, 23, 31, 32, 35, 37, 39, 45, 4, 8, 10, 13, 14, 19, 20, 24, 25, 29, 31, 8, 12, 15, 19, 25, 28, 32, 41, 45, 8, 11, 15, 18, 23, 25, 32, 33, 12, 19, 24, 26, 33, 34, 37, 38, 8, 13, 14, 12, 19, 21, 24, 25, 27, 30, 38, 39, 42, 43, 4, 8, 12, 13, 18, 19, 23, 24, 28, 30, 8, 12, 15, 22, 30, 34, 8, 15, 20, 22, 25, 26, 31, 32, 35, 36, 4, 8, 11, 15, 18, 22, 24, 8, 12, 18, 22, 27, 31, 8, 15, 20, 21, 27, 30, 32, 36, 38, 41, 42, 44, 46, 49, 50, 54, 55, 59, 61, 70, 71, 73, 75, 78, 79, 83, 84, 88, 90, 97, 100, 1, 1, 6, 10, 12, 19, 22, 24, 4, 8, 11, 16, 20, 21, 4, 8, 15, 25, 29, 33, 34, 35, 39, 4, 6, 9, 10, 15, 17, 23, 24, 28, 29, 34, 35, 37, 4, 8, 11, 15, 18, 22, 24, 8, 12, 18, 20, 24, 29, 32, 36, 43, 47, 8, 12, 14, 16, 19, 20, 22, 25, 31, 32, 35, 39, 42, 44, 46, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 8, 12, 14, 16, 19, 20, 21, 24, 25, 26, 27, 31, 32, 33, 34, 38, 39, 40, 41, 8, 10, 17, 20, 23, 27, 30, 34, 35, 39, 40, 8, 13, 15, 18, 20, 24, 8, 13, 15, 19, 20, 24, 26, 29, 30, 4, 6, 18, 4, 8, 16, 17, 20, 23, 8, 12, 19, 23, 28, 35, 37, 43, 52, 54, 56, 61, 63, 70, 73, 8, 16, 20, 22, 25, 8, 15, 16, 19, 21, 23, 29, 30, 33, 35, 8, 13, 14, 16, 18, 21, 22, 24, 26, 8, 12, 14, 15, 16, 17, 8, 12, 14, 17, 24, 25, 31, 32, 35, 36, 37, 39, 43, 44, 51, 52, 55, 56, 57, 59, 63, 65, 12, 16, 18, 21, 28, 29, 35, 36, 39, 40, 41, 43, 47, 48, 55, 56, 59, 60, 61, 63, 67, 69, 16, 20, 22, 25, 32, 33, 39, 40, 43, 44, 45, 47, 51, 52, 59, 60, 63, 64, 65, 67, 71, 73, 20, 23, 28, 29, 30, 38, 39, 40, 41, 43, 44, 46, 47, 50, 54, 56, 59, 60, 65, 66, 24, 29, 30, 31, 34, 39, 40, 41, 42, 44, 45, 47, 48, 50, 53, 54, 4, 8, 16, 17, 21, 23, 8, 12, 15, 22, 25, 29, 33, 8, 13, 15, 18, 19, 24, 25, 29, 31, 34, 35, 37, 40, 41, 8, 13, 15, 18, 19, 24, 25, 29, 31, 34, 36, 38, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 52, 54, 57, 58, 4, 8, 14, 15, 19, 20, 26, 27, 31, 33, 8, 12, 16, 20, 27, 29, 35, 38, 42, 49, 53, 8, 13, 14, 17, 19, 21, 25, 30, 33, 34, 38, 40, 43, 44, 49, 51, 60, 61, 8, 14, 15, 17, 19, 27, 28, 33, 34, 40, 41, 45, 47, 49, 8, 14, 15, 18, 20, 25, 27, 30, 31, 36, 37, 40, 41, 46, 47, 49, 50, 8, 13, 14, 18, 20, 22, 26, 33, 34, 38, 39, 42, 43, 49, 50, 53, 54, 60, 61, 63, 64, 8, 13, 14, 21, 23, 25, 29, 30, 34, 35, 39, 40, 42, 46, 47, 49, 56, 57, 8, 13, 14, 18, 19, 26, 27, 31, 32, 39, 40, 42, 47, 48, 8, 13, 14, 17, 19, 21, 25, 30, 33, 34, 38, 40, 43, 44, 49, 51, 60, 61, 8, 15, 16, 19, 21, 23, 29, 30, 33, 35, 8, 15, 16, 20, 22, 24, 30, 37, 38, 42, 43, 46, 47, 53, 54, 56, 57, 64, 65, 68, 69, 8, 15, 16, 23, 25, 27, 31, 32, 38, 39, 43, 44, 46, 52, 53, 55, 62, 63, 8, 13, 14, 17, 18, 22, 23, 30, 31, 37, 38, 45, 46, 8, 15, 16, 23, 24, 30, 33, 37, 39, 42, 47, 49, 51, 55, 57, 59, 63, 64, 67, 68, 71, 72, 75, 77, 79, 86, 87, 90, 91, 93, 94, 95, 96, 98, 104, 106, 109, 114, 116, 122, 123, 125, 128, 8, 13, 14, 18, 19, 26, 27, 33, 34, 41, 42, 44, 49, 50, 4, 8, 10, 13, 14, 19, 20, 23, 24, 28, 29, 35, 36, 38, 40, 8, 12, 18, 22, 31, 34, 38, 44, 48, 8, 13, 14, 18, 20, 25, 32, 33, 37, 39, 42, 43, 49, 50, 52, 53, 8, 13, 15, 17, 19, 20, 24, 25, 29, 30, 8, 15, 20, 22, 25, 27, 31, 32, 36, 37, 4, 8, 10, 13, 14, 19, 20, 24, 25, 29, 30, 36, 37, 39, 8, 12, 17, 20, 27, 33, 36, 40, 46, 47, 8, 14, 17, 19, 25, 28, 32, 8, 10, 13, 14, 16, 19, 22, 27, 28, 31, 32, 38, 40, 4, 8, 10, 13, 14, 19, 20, 24, 25, 29, 31, 8, 12, 15, 19, 25, 28, 32, 41, 45, 8, 15, 17, 20, 21, 23, 26, 34, 35, 38, 39, 4, 8, 10, 14, 15, 19, 20, 24, 26, 8, 12, 16, 22, 23, 27, 31, 35, 47, 54, 58, 8, 13, 15, 18, 19, 24, 25, 29, 31, 34, 35, 37, 40, 41, 8, 13, 15, 18, 19, 24, 25, 29, 31, 34, 36, 38, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 52, 54, 57, 58, 8, 13, 15, 18, 19, 24, 25, 28, 29, 34, 36, 39, 40, 45, 46, 8, 13, 15, 18, 19, 24, 25, 28, 30, 32, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 46, 51, 53, 56, 57, 62, 63, 8, 13, 15, 18, 20, 24, 1, 1, 6, 11, 18, 19, 25, 32, 34, 4, 8, 15, 19, 27, 31, 40, 43, 45, 51, 54, 58, 64, 65, 4, 6, 12, 15, 20, 28, 31, 33, 42, 43, 4, 8, 4, 8, 11, 15, 18, 22, 23, 29, 30, 33, 34, 40, 41, 43, 45, 8, 12, 22, 26, 8, 13, 15, 20, 21, 24, 26, 35, 36, 41, 42, 45, 46, 8, 13, 15, 20, 21, 23, 25, 31, 32, 34, 4, 8, 12, 17, 22, 23, 27, 29, 8, 12, 18, 22, 31, 40, 44, 8, 15, 20, 22, 27, 28, 31, 4, 8, 11, 15, 20, 21, 25, 26, 32, 34, 8, 15, 17, 20, 21, 23, 26, 34, 35, 40, 41, 44, 49, 51, 56, 57, 59, 4, 8, 12, 19, 22, 23, 27, 28, 34, 36, 8, 12, 18, 22, 30, 33, 37, 8, 10, 12, 14, 17, 8, 12, 16, 17, 20, 22, 25, 26, 30, 33, 12, 20, 22, 24, 30, 32, 36, 37, 12, 15, 23, 25, 26, 27, 30, 32, 35, 36, 38, 41, 50, 51, 58, 60, 61, 62, 63, 71, 73, 74, 75, 76, 80, 82, 85, 86, 88, 91, 99, 100, 107, 109, 110, 113, 115, 116, 118, 120, 122, 123, 16, 18, 20, 21, 27, 29, 36, 38, 39, 43, 45, 46, 47, 49, 8, 15, 17, 19, 1, 1, 6, 8, 12, 19, 20, 26, 33, 35, 4, 8, 11, 19, 22, 30, 34, 40, 44, 51, 54, 56, 59, 69, 4, 7, 9, 12, 4, 8, 11, 15, 18, 22, 23, 28, 29, 32, 33, 39, 40, 43, 44, 50, 51, 53, 55, 8, 12, 22, 26, 34, 39, 42, 44, 48, 53, 56, 57, 8, 14, 15, 18, 21, 23, 27, 28, 29, 8, 12, 8, 13, 15, 18, 20, 25, 26, 29, 8, 13, 15, 20, 21, 24, 26, 35, 36, 41, 42, 45, 46, 8, 13, 15, 20, 21, 23, 25, 31, 32, 34, 4, 8, 12, 13, 18, 19, 22, 23, 27, 29, 8, 12, 18, 22, 28, 37, 41, 8, 15, 24, 25, 29, 31, 36, 37, 40, 41, 4, 8, 12, 13, 18, 19, 21, 22, 26, 28, 8, 12, 18, 22, 28, 31, 33, 40, 43, 48, 52, 8, 15, 20, 22, 27, 28, 30, 4, 8, 12, 17, 22, 23, 27, 29, 8, 12, 18, 22, 26, 33, 36, 40, 8, 15, 20, 22, 25, 4, 8, 11, 15, 20, 21, 25, 26, 32, 34, 8, 12, 18, 26, 29, 33, 37, 41, 45, 49, 55, 59, 8, 15, 21, 22, 30, 31, 35, 37, 42, 43, 45, 46, 4, 8, 12, 19, 22, 23, 27, 28, 34, 36, 8, 12, 18, 22, 30, 33, 37, 8, 10, 12, 14, 17, 8, 12, 19, 22, 28, 29, 32, 33, 38, 39, 46, 49, 12, 20, 22, 24, 33, 34, 39, 40, 12, 20, 22, 23, 27, 28, 34, 35, 41, 42, 12, 14, 16, 17, 23, 25, 32, 34, 35, 42, 43, 44, 45, 47, 8, 15, 17, 19, 1, 1, 6, 8, 14, 21, 22, 28, 35, 37, 4, 8, 11, 19, 22, 32, 35, 39, 46, 47, 52, 57, 61, 67, 71, 77, 4, 9, 12, 16, 23, 27, 4, 8, 11, 15, 18, 22, 23, 28, 29, 32, 33, 39, 41, 48, 49, 52, 54, 8, 12, 23, 27, 35, 40, 43, 45, 49, 54, 57, 58, 8, 14, 17, 19, 25, 28, 32, 8, 13, 15, 18, 20, 25, 26, 29, 8, 13, 15, 20, 22, 28, 29, 8, 13, 15, 21, 22, 25, 27, 34, 35, 38, 4, 8, 12, 13, 19, 20, 23, 24, 28, 30, 8, 12, 18, 22, 29, 38, 42, 8, 15, 24, 25, 29, 31, 37, 38, 41, 42, 4, 8, 12, 17, 22, 23, 27, 29, 8, 12, 18, 22, 26, 33, 36, 40, 8, 15, 20, 22, 25, 4, 8, 11, 15, 20, 21, 25, 26, 32, 34, 8, 12, 18, 26, 29, 33, 37, 41, 44, 49, 52, 56, 63, 67, 8, 13, 15, 21, 22, 25, 26, 29, 31, 33, 38, 40, 46, 47, 50, 8, 15, 17, 12, 17, 18, 19, 22, 23, 24, 12, 16, 18, 22, 23, 24, 27, 28, 29, 32, 37, 38, 39, 42, 43, 44, 45, 12, 16, 20, 21, 25, 26, 27, 28, 30, 34, 35, 39, 40, 41, 42, 45, 46, 47, 12, 16, 22, 23, 26, 27, 32, 33, 37, 39, 45, 46, 49, 51, 56, 58, 59, 60, 62, 64, 67, 68, 69, 70, 71, 73, 74, 75, 76, 77, 79, 83, 86, 89, 92, 93, 95, 96, 99, 100, 102, 107, 108, 8, 10, 4, 8, 12, 19, 22, 23, 27, 28, 34, 36, 8, 12, 18, 22, 30, 33, 37, 8, 10, 12, 14, 17, 8, 12, 19, 22, 28, 29, 32, 33, 38, 39, 46, 47, 51, 53, 58, 60, 12, 20, 22, 24, 33, 34, 39, 40, 12, 20, 22, 23, 27, 28, 34, 35, 41, 42, 12, 14, 16, 17, 23, 25, 32, 34, 35, 42, 43, 44, 45, 47, 8, 15, 17, 19, 1, 1, 4, 6, 10, 11, 13, 20, 21, 24, 25, 33, 35, 4, 8, 14, 18, 25, 28, 35, 36, 4, 8, 11, 14, 16, 20, 25, 28, 29, 4, 8, 4, 7, 11, 12, 20, 21, 28, 29, 32, 33, 38, 39, 41, 45, 8, 15, 16, 17, 4, 8, 9, 12, 14, 18, 19, 22, 23, 26, 28, 4, 9, 10, 13, 15, 23, 24, 27, 28, 33, 34, 37, 39, 4, 6, 9, 13, 16, 19, 20, 27, 31, 33, 34, 35, 4, 6, 9, 13, 15, 18, 19, 26, 30, 4, 6, 9, 13, 15, 18, 19, 26, 29, 30, 4, 8, 9, 13, 15, 17, 20, 21, 24, 26, 28, 31, 32, 35, 36, 37, 38, 42, 43, 46, 47, 48, 50, 52, 56, 57, 60, 61, 62, 63, 68, 69, 72, 73, 74, 76, 4, 6, 7, 11, 13, 17, 18, 21, 22, 23, 25, 30, 31, 34, 35, 36, 4, 7, 9, 10, 14, 16, 17, 18, 19, 8, 10, 11, 15, 18, 19, 20, 4, 7, 9, 10, 14, 17, 18, 19, 20, 8, 15, 19, 20, 24, 4, 6, 16, 19, 24, 27, 29, 34, 43, 4, 9, 11, 13, 17, 20, 22, 23, 27, 29, 30, 31, 36, 37, 38, 4, 6, 7, 11, 13, 17, 18, 19, 20, 24, 25, 4, 10, 12, 14, 17, 19, 20, 21, 22, 26, 27, 32, 33, 4, 7, 11, 12, 16, 18, 24, 25, 8, 15, 19, 20, 24, 4, 7, 11, 12, 16, 19, 25, 26, 8, 15, 19, 20, 24, 26, 27, 28, 4, 7, 12, 15, 16, 17, 18, 8, 15, 21, 4, 7, 9, 10, 14, 16, 21, 24, 25, 26, 27, 8, 15, 21, 4, 11, 17, 19, 20, 21, 1, 1, 4, 6, 9, 11, 12, 16, 17, 22, 24, 4, 8, 14, 18, 25, 28, 34, 37, 43, 46, 51, 53, 62, 67, 68, 73, 76, 80, 4, 11, 14, 18, 23, 24, 29, 33, 41, 50, 54, 4, 6, 8, 10, 15, 17, 22, 4, 7, 12, 14, 19, 22, 23, 24, 25, 8, 10, 12, 15, 16, 17, 4, 11, 13, 15, 1, 1, 4, 6, 12, 13, 15, 22, 23, 26, 27, 35, 37, 4, 8, 14, 18, 25, 28, 35, 36, 4, 8, 11, 14, 16, 20, 25, 28, 29, 4, 8, 4, 8, 9, 12, 14, 18, 19, 22, 23, 26, 28, 4, 11, 12, 15, 17, 25, 26, 29, 30, 36, 37, 40, 42, 4, 8, 9, 14, 15, 18, 20, 22, 25, 26, 27, 28, 32, 33, 34, 35, 4, 6, 7, 11, 13, 17, 18, 21, 22, 23, 25, 32, 33, 36, 37, 38, 4, 9, 11, 13, 17, 20, 22, 23, 27, 29, 30, 31, 36, 37, 38, 4, 6, 7, 11, 13, 17, 18, 19, 20, 24, 25, 4, 10, 12, 14, 17, 19, 20, 21, 22, 26, 27, 32, 33, 4, 8, 9, 12, 14, 20, 22, 25, 27, 4, 8, 12, 13, 16, 18, 21, 22, 26, 29, 8, 12, 14, 21, 22, 25, 27, 28, 29, 31, 35, 36, 8, 12, 13, 17, 19, 21, 24, 25, 28, 30, 31, 34, 35, 40, 41, 44, 45, 47, 50, 51, 52, 53, 57, 58, 59, 61, 8, 11, 15, 16, 20, 22, 26, 27, 30, 31, 12, 16, 17, 20, 22, 26, 27, 31, 8, 11, 15, 16, 20, 22, 28, 29, 12, 19, 25, 4, 11, 15, 16, 19, 1, 1, 4, 6, 8, 9, 11, 12, 15, 16, 17, 20, 22, 4, 8, 14, 18, 20, 23, 24, 36, 39, 43, 47, 48, 52, 4, 11, 13, 16, 17, 18, 21, 22, 23, 24, 28, 29, 30, 31, 35, 36, 37, 38, 1, 1, 4, 6, 12, 13, 16, 19, 4, 8, 14, 18, 25, 27, 36, 40, 4, 11, 13, 15, 16, 18, 19, 22, 23, 25, 28, 29, 31, 34, 40, 41, 44, 48, 51, 54, 1, 1, 4, 6, 9, 10, 14, 17, 4, 8, 14, 18, 27, 38, 42, 4, 11, 14, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 28, 30, 33, 34, 36, 37, 38, 39, 40, 41, 42, 43, 45, 47, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 61, 63, 66, 67, 68, 69, 70, 71, 72, 73, 75, 76, 78, 1, 1, 4, 6, 9, 10, 14, 17, 4, 8, 14, 18, 27, 38, 42, 4, 11, 13, 16, 17, 21, 23, 25, 28, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 42, 44, 47, 48, 49, 50, 51, 53, 54, 55, 56, 57, 59, 1, 1, 4, 6, 9, 10, 13, 15, 16, 19, 20, 21, 25, 26, 28, 4, 8, 14, 18, 22, 23, 26, 28, 37, 38, 42, 43, 47, 51, 52, 59, 62, 71, 75, 4, 11, 15, 16, 19, 20, 23, 24, 26, 30, 31, 32, 36, 40, 41, 42, 46, 47, 50, 54, 55, 58, 59, 60, 64, 65, 67, 1, 1, 2, 11, 1, 4, 6, 9, 10, 12, 15, 4, 8, 14, 18, 28, 37, 41, 4, 11, 13, 21, 22, 31, 32, 38, 40, 1, 1, 4, 6, 9, 10, 14, 15, 19, 20, 22, 4, 8, 14, 16, 21, 24, 28, 29, 32, 39, 43, 4, 11, 14, 17, 18, 22, 23, 27, 31, 32, 36, 39, 44, 46, 55, 58 ]
45969b346d6d5cbdef2f5d2f74270cf12024072d
# Generated by Django 4.1.9 on 2023-06-29 16:11 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("search", "0003_auto_20230209_1441"), ] operations = [ migrations.CreateModel( name="SearchSettings", fields=[ ( "id", models.AutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID", ), ), ], options={ "permissions": ( ("change_boost", "Edit boost settings for search components"), ("view_explore", "View the global search explore page"), ), "managed": False, "default_permissions": (), }, ), ]
[ 40, 13046, 829, 18288, 244, 57, 51, 54, 51, 62, 563, 244, 55, 53, 55, 56, 50, 53, 59, 50, 55, 62, 244, 54, 59, 63, 54, 54, 222, 222, 1097, 8532, 51, 1219, 1220, 12520, 49, 4590, 499, 222, 842, 18572, 45, 19772, 51, 12071, 731, 303, 6450, 299, 447, 310, 2903, 1925, 411, 332, 53, 53, 53, 56, 100, 2853, 100, 55, 53, 55, 56, 53, 55, 53, 62, 100, 54, 57, 57, 54, 2132, 303, 1499, 465, 7392, 299, 447, 310, 12520, 51, 44635, 45, 343, 655, 366, 3209, 2977, 411, 343, 3844, 6094, 419, 327, 547, 332, 333, 411, 547, 4590, 51, 4754, 1195, 45, 733, 2283, 100, 4536, 66, 1844, 49, 733, 7470, 100, 697, 66, 1844, 49, 733, 12747, 66, 2737, 49, 733, 9628, 100, 444, 366, 798, 411, 547, 2604, 419, 2604, 343, 2520, 343, 2089, 1305, 419, 332, 11897, 582, 327, 547, 2903, 2357, 100, 9400, 411, 332, 3594, 9774, 4086, 456, 3252, 6361, 2132, 547, 2903, 1090, 100, 35109, 411, 332, 1089, 341, 3671, 3252, 27125, 1957, 2132, 419, 2604, 419, 332, 12268, 582, 3208, 49, 419, 332, 1555, 100, 11897, 582, 23280, 343, 820, 310, 2604, 303, 1499, 222 ]
[ "#", "ĠGenerated", "Ġby", "ĠDjango", "Ġ", "4", ".", "1", ".", "9", "Ġon", "Ġ", "2", "0", "2", "3", "-", "0", "6", "-", "2", "9", "Ġ", "1", "6", ":", "1", "1", "Ċ", "Ċ", "from", "Ġdjango", ".", "db", "Ġimport", "Ġmigrations", ",", "Ġmodels", "ĊĊ", "Ċ", "class", "ĠMigration", "(", "migrations", ".", "Migration", "):", "ĊĠĠĠ", "Ġdependencies", "Ġ=", "Ġ[", "ĊĠĠĠĠĠĠĠ", "Ġ(\"", "search", "\",", "Ġ\"", "0", "0", "0", "3", "_", "auto", "_", "2", "0", "2", "3", "0", "2", "0", "9", "_", "1", "4", "4", "1", "\"),", "ĊĠĠĠ", "Ġ]", "ĊĊĠĠĠ", "Ġoperations", "Ġ=", "Ġ[", "ĊĠĠĠĠĠĠĠ", "Ġmigrations", ".", "CreateModel", "(", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġname", "=\"", "Search", "Settings", "\",", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġfields", "=[", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ(", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ\"", "id", "\",", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġmodels", ".", "Auto", "Field", "(", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġauto", "_", "created", "=", "True", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġprimary", "_", "key", "=", "True", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġserialize", "=", "False", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġverbose", "_", "name", "=\"", "ID", "\",", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ),", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ],", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġoptions", "={", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ\"", "permissions", "\":", "Ġ(", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ(\"", "change", "_", "boost", "\",", "Ġ\"", "Edit", "Ġboost", "Ġsettings", "Ġfor", "Ġsearch", "Ġcomponents", "\"),", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ(\"", "view", "_", "explore", "\",", "Ġ\"", "View", "Ġthe", "Ġglobal", "Ġsearch", "Ġexplore", "Ġpage", "\"),", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ),", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ\"", "managed", "\":", "ĠFalse", ",", "ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ", "Ġ\"", "default", "_", "permissions", "\":", "Ġ(),", "ĊĠĠĠĠĠĠĠĠĠĠĠ", "Ġ},", "ĊĠĠĠĠĠĠĠ", "Ġ),", "ĊĠĠĠ", "Ġ]", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 11, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 15, 15, 16, 16, 16, 16, 17, 17, 17, 17, 17, 17, 18, 18, 18, 18, 18, 18, 18, 19, 19, 19, 19, 19, 19, 19, 20, 20, 20, 20, 20, 21, 21, 21, 21, 21, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 25, 26, 26, 26, 26, 26, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 29, 29, 30, 30, 30, 30, 30, 30, 31, 31, 31, 31, 31, 31, 31, 32, 32, 33, 33, 34, 34 ]
[ 1, 2, 12, 15, 22, 23, 24, 25, 26, 27, 28, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 1, 1, 5, 12, 13, 15, 22, 33, 34, 41, 1, 1, 6, 16, 17, 27, 28, 37, 39, 4, 17, 19, 21, 8, 11, 17, 19, 21, 22, 23, 24, 25, 26, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 47, 4, 6, 4, 15, 17, 19, 8, 19, 20, 31, 32, 12, 17, 19, 25, 33, 35, 12, 19, 21, 16, 18, 20, 22, 24, 26, 20, 27, 28, 32, 37, 38, 24, 29, 30, 37, 38, 42, 43, 24, 32, 33, 36, 37, 41, 42, 24, 34, 35, 40, 41, 24, 32, 33, 37, 39, 41, 43, 20, 23, 16, 19, 12, 15, 12, 20, 22, 16, 18, 29, 31, 33, 20, 23, 29, 30, 35, 37, 39, 43, 49, 58, 62, 69, 80, 83, 20, 23, 27, 28, 35, 37, 39, 43, 47, 54, 61, 69, 74, 77, 16, 19, 16, 18, 25, 27, 33, 34, 16, 18, 25, 26, 37, 39, 43, 12, 15, 8, 11, 4, 6 ]
67b967b688aeac1270eee836e0f6e6b3555b933e
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ This program is run at regular intervals to check the battery charge status of the uninterruptible power supply. In our case, it is a LiPo battery with a nominal voltage of 3.7 volts. By setting the voltage for the Raspberry PI shutdown procedure at 3.7 V,we ensure that the processor has enough time to make a clean shutdown. This program must be launched at regular intervals (5 inute in our case) by the Raspberry PI OS cron task scheduler. The crontab -e command in the home directory opens the cron file and the command line would for example be for a trigger every 5 minutes: 5 * * * * sudo /usr/bin/python3 /home/pi/dev_python/amod/pidcmes_bbu.py """ import time import datetime as dt from subprocess import call from pidcmes_lib import Pidcmes # class for 'pidcmes' procedures pidcmes = Pidcmes() # initialize pidcmese class u_bat_min = 3.7 # minumum battery voltage n_moy = 20 # averaging to reduce glitches stop_run = False # to control the execution (run/stop) u_avg = pidcmes.get_tension(n_moy) # read the value in volts if u_avg < u_bat_min: # or i > 10: print("proper shut down of the machine due to low battery") # time.sleep(5) # call("sudo shutdown -h now", shell=True) # shutdown the RASPI else: print("tout va bien dormez braves gens")
[ 8758, 3392, 52, 1793, 52, 2141, 4406, 56, 222, 40, 8571, 10633, 63, 6471, 50, 61, 8571, 222, 222, 3012, 222, 2287, 3477, 458, 1441, 840, 10639, 26438, 391, 1524, 341, 29942, 10117, 2302, 451, 341, 725, 15334, 1497, 7183, 19456, 51, 222, 402, 3027, 1152, 49, 580, 458, 331, 8110, 3785, 29942, 642, 331, 40869, 30608, 451, 244, 56, 51, 60, 3937, 1448, 51, 4529, 5767, 341, 30608, 456, 341, 222, 87, 27902, 21939, 17859, 10032, 840, 244, 56, 51, 60, 694, 49, 1399, 7197, 708, 341, 12814, 1421, 8473, 1153, 391, 1949, 331, 5084, 17859, 51, 222, 222, 2287, 3477, 2315, 545, 35965, 840, 10639, 26438, 327, 58, 347, 1161, 347, 3027, 1152, 46, 829, 341, 37476, 21939, 6652, 28477, 2918, 13589, 51, 222, 1338, 5584, 48272, 449, 106, 2035, 347, 341, 6780, 3378, 28057, 341, 28477, 822, 480, 341, 2035, 1646, 2285, 456, 2301, 545, 456, 331, 6604, 3659, 244, 58, 10154, 63, 222, 58, 338, 338, 338, 338, 12797, 536, 3392, 52, 1793, 52, 2980, 56, 536, 2849, 52, 1314, 52, 1920, 100, 2980, 52, 424, 450, 52, 6336, 104, 8037, 100, 103, 716, 51, 997, 222, 3012, 222, 222, 485, 1153, 222, 485, 7181, 641, 8837, 222, 222, 1097, 16606, 1220, 1495, 222, 1097, 12498, 104, 8037, 100, 1379, 1220, 466, 333, 104, 8037, 244, 607, 462, 456, 349, 6336, 104, 8037, 44, 38332, 222, 222, 6336, 104, 8037, 299, 466, 333, 104, 8037, 365, 244, 607, 7395, 12498, 104, 308, 296, 462, 222, 222, 122, 100, 8237, 100, 907, 299, 244, 56, 51, 60, 244, 607, 1865, 397, 397, 29942, 30608, 222, 115, 100, 794, 126, 299, 244, 55, 53, 244, 607, 41549, 4892, 391, 11690, 504, 2543, 2927, 222, 4074, 100, 1967, 299, 3208, 244, 607, 391, 3518, 341, 6111, 327, 1967, 52, 4074, 46, 222, 222, 122, 100, 10218, 299, 12498, 104, 8037, 51, 390, 100, 121, 1476, 45, 115, 100, 794, 126, 46, 244, 607, 1511, 341, 804, 347, 3937, 1448, 499, 222, 344, 1064, 100, 10218, 350, 1064, 100, 8237, 100, 907, 63, 244, 607, 575, 613, 868, 244, 54, 53, 63, 303, 1489, 459, 35681, 26031, 2850, 451, 341, 6676, 7278, 391, 7487, 29942, 678, 222, 40, 281, 1153, 51, 7860, 45, 58, 46, 222, 40, 281, 1495, 459, 9861, 17859, 449, 109, 2483, 411, 9092, 66, 1844, 46, 607, 17859, 341, 578, 1117, 1182, 222, 728, 63, 303, 1489, 459, 37812, 13098, 39435, 362, 290, 38597, 3220, 7777, 504, 1249, 678, 222 ]
[ "#!/", "usr", "/", "bin", "/", "env", "Ġpython", "3", "Ċ", "#", "Ġ-*-", "Ġcoding", ":", "Ġutf", "-", "8", "Ġ-*-", "Ċ", "Ċ", "\"\"\"", "Ċ", "This", "Ġprogram", "Ġis", "Ġrun", "Ġat", "Ġregular", "Ġintervals", "Ġto", "Ġcheck", "Ġthe", "Ġbattery", "Ġcharge", "Ġstatus", "Ġof", "Ġthe", "Ġun", "interrupt", "ible", "Ġpower", "Ġsupply", ".", "Ċ", "In", "Ġour", "Ġcase", ",", "Ġit", "Ġis", "Ġa", "ĠLi", "Po", "Ġbattery", "Ġwith", "Ġa", "Ġnominal", "Ġvoltage", "Ġof", "Ġ", "3", ".", "7", "Ġvol", "ts", ".", "ĠBy", "Ġsetting", "Ġthe", "Ġvoltage", "Ġfor", "Ġthe", "Ċ", "R", "aspberry", "ĠPI", "Ġshutdown", "Ġprocedure", "Ġat", "Ġ", "3", ".", "7", "ĠV", ",", "we", "Ġensure", "Ġthat", "Ġthe", "Ġprocessor", "Ġhas", "Ġenough", "Ġtime", "Ġto", "Ġmake", "Ġa", "Ġclean", "Ġshutdown", ".", "Ċ", "Ċ", "This", "Ġprogram", "Ġmust", "Ġbe", "Ġlaunched", "Ġat", "Ġregular", "Ġintervals", "Ġ(", "5", "Ġin", "ute", "Ġin", "Ġour", "Ġcase", ")", "Ġby", "Ġthe", "ĠRaspberry", "ĠPI", "ĠOS", "Ġcron", "Ġtask", "Ġscheduler", ".", "Ċ", "The", "Ġcr", "ontab", "Ġ-", "e", "Ġcommand", "Ġin", "Ġthe", "Ġhome", "Ġdirectory", "Ġopens", "Ġthe", "Ġcron", "Ġfile", "Ġand", "Ġthe", "Ġcommand", "Ġline", "Ġwould", "Ġfor", "Ġexample", "Ġbe", "Ġfor", "Ġa", "Ġtrigger", "Ġevery", "Ġ", "5", "Ġminutes", ":", "Ċ", "5", "Ġ*", "Ġ*", "Ġ*", "Ġ*", "Ġsudo", "Ġ/", "usr", "/", "bin", "/", "python", "3", "Ġ/", "home", "/", "pi", "/", "dev", "_", "python", "/", "am", "od", "/", "pid", "c", "mes", "_", "b", "bu", ".", "py", "Ċ", "\"\"\"", "Ċ", "Ċ", "import", "Ġtime", "Ċ", "import", "Ġdatetime", "Ġas", "Ġdt", "Ċ", "Ċ", "from", "Ġsubprocess", "Ġimport", "Ġcall", "Ċ", "from", "Ġpid", "c", "mes", "_", "lib", "Ġimport", "ĠP", "id", "c", "mes", "Ġ", "Ġ#", "Ġclass", "Ġfor", "Ġ'", "pid", "c", "mes", "'", "Ġprocedures", "Ċ", "Ċ", "pid", "c", "mes", "Ġ=", "ĠP", "id", "c", "mes", "()", "Ġ", "Ġ#", "Ġinitialize", "Ġpid", "c", "me", "se", "Ġclass", "Ċ", "Ċ", "u", "_", "bat", "_", "min", "Ġ=", "Ġ", "3", ".", "7", "Ġ", "Ġ#", "Ġmin", "um", "um", "Ġbattery", "Ġvoltage", "Ċ", "n", "_", "mo", "y", "Ġ=", "Ġ", "2", "0", "Ġ", "Ġ#", "Ġaver", "aging", "Ġto", "Ġreduce", "Ġg", "lit", "ches", "Ċ", "stop", "_", "run", "Ġ=", "ĠFalse", "Ġ", "Ġ#", "Ġto", "Ġcontrol", "Ġthe", "Ġexecution", "Ġ(", "run", "/", "stop", ")", "Ċ", "Ċ", "u", "_", "avg", "Ġ=", "Ġpid", "c", "mes", ".", "get", "_", "t", "ension", "(", "n", "_", "mo", "y", ")", "Ġ", "Ġ#", "Ġread", "Ġthe", "Ġvalue", "Ġin", "Ġvol", "ts", "ĊĊ", "Ċ", "if", "Ġu", "_", "avg", "Ġ<", "Ġu", "_", "bat", "_", "min", ":", "Ġ", "Ġ#", "Ġor", "Ġi", "Ġ>", "Ġ", "1", "0", ":", "ĊĠĠĠ", "Ġprint", "(\"", "proper", "Ġshut", "Ġdown", "Ġof", "Ġthe", "Ġmachine", "Ġdue", "Ġto", "Ġlow", "Ġbattery", "\")", "Ċ", "#", "ĠĠĠĠ", "Ġtime", ".", "sleep", "(", "5", ")", "Ċ", "#", "ĠĠĠĠ", "Ġcall", "(\"", "sudo", "Ġshutdown", "Ġ-", "h", "Ġnow", "\",", "Ġshell", "=", "True", ")", "Ġ#", "Ġshutdown", "Ġthe", "ĠR", "AS", "PI", "Ċ", "else", ":", "ĊĠĠĠ", "Ġprint", "(\"", "tout", "Ġva", "Ġbien", "Ġd", "or", "mez", "Ġbr", "aves", "Ġg", "ens", "\")", "Ċ" ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 13, 14, 14, 14, 15, 15, 15, 15, 15, 16, 17, 17, 17, 17, 17, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 19, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 21, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 25, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 28, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 33, 33, 33, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34 ]
[ 1, 4, 7, 8, 11, 12, 15, 22, 23, 1, 2, 6, 13, 14, 18, 19, 20, 24, 1, 1, 4, 1, 5, 13, 16, 20, 23, 31, 41, 44, 50, 54, 62, 69, 76, 79, 83, 86, 95, 99, 105, 112, 113, 1, 3, 7, 12, 13, 16, 19, 21, 24, 26, 34, 39, 41, 49, 57, 60, 61, 62, 63, 64, 68, 70, 71, 74, 82, 86, 94, 98, 102, 1, 2, 10, 13, 22, 32, 35, 36, 37, 38, 39, 41, 42, 44, 51, 56, 60, 70, 74, 81, 86, 89, 94, 96, 102, 111, 112, 1, 1, 5, 13, 18, 21, 30, 33, 41, 51, 53, 54, 57, 60, 63, 67, 72, 73, 76, 80, 90, 93, 96, 101, 106, 116, 117, 1, 4, 7, 12, 14, 15, 23, 26, 30, 35, 45, 51, 55, 60, 65, 69, 73, 81, 86, 92, 96, 104, 107, 111, 113, 121, 127, 128, 129, 137, 138, 1, 2, 4, 6, 8, 10, 15, 17, 20, 21, 24, 25, 31, 32, 34, 38, 39, 41, 42, 45, 46, 52, 53, 55, 57, 58, 61, 62, 65, 66, 67, 69, 70, 72, 1, 4, 1, 1, 7, 12, 1, 7, 16, 19, 22, 1, 1, 5, 16, 23, 28, 1, 5, 9, 10, 13, 14, 17, 24, 26, 28, 29, 32, 33, 35, 41, 45, 47, 50, 51, 54, 55, 66, 1, 1, 4, 5, 8, 10, 12, 14, 15, 18, 20, 21, 23, 34, 38, 39, 41, 43, 49, 1, 1, 2, 3, 6, 7, 10, 12, 13, 14, 15, 16, 17, 19, 23, 25, 27, 35, 43, 1, 2, 3, 5, 6, 8, 9, 10, 11, 12, 14, 19, 24, 27, 34, 36, 39, 43, 1, 5, 6, 9, 11, 17, 18, 20, 23, 31, 35, 45, 47, 50, 51, 55, 56, 1, 1, 2, 3, 6, 8, 12, 13, 16, 17, 20, 21, 22, 28, 29, 30, 31, 33, 34, 35, 36, 38, 43, 47, 53, 56, 60, 62, 1, 1, 3, 5, 6, 9, 11, 13, 14, 17, 18, 21, 22, 23, 25, 28, 30, 32, 33, 34, 35, 36, 4, 10, 12, 18, 23, 28, 31, 35, 43, 47, 50, 54, 62, 64, 1, 2, 6, 11, 12, 17, 18, 19, 20, 1, 2, 6, 11, 13, 17, 26, 28, 29, 33, 35, 41, 42, 46, 47, 49, 58, 62, 64, 66, 68, 1, 5, 6, 4, 10, 12, 16, 19, 24, 26, 28, 31, 34, 38, 40, 43, 45 ]
c59707ba07c1659d94684c54cdd7bb2658cba935
"from __future__ import division, print_function, absolute_import\nimport numbers\nimport warnings\n(...TRUNCATED)
[1097,1176,9689,523,1220,20707,49,1489,100,1144,49,7984,100,485,222,485,7560,222,485,11740,222,1097,(...TRUNCATED)
["from","Ġ__","future","__","Ġimport","Ġdivision",",","Ġprint","_","function",",","Ġabsolute","(...TRUNCATED)
[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,3,3,3,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,6,6,6,6,6,6,6,6,7,7,7,7,7,7(...TRUNCATED)
[1,5,8,14,16,23,32,33,39,40,48,49,58,59,65,1,7,15,1,7,16,1,5,9,16,19,21,24,25,34,40,1,7,13,16,19,1,5(...TRUNCATED)
41cfd558824b6561114a48a694b1e6e6a7cb8c05
"import streamlit as st\nfrom streamlit.components.v1 import components\nfrom streamlit.report_threa(...TRUNCATED)
[485,3458,2543,641,395,222,1097,3458,2543,51,3545,51,123,54,1220,6361,222,1097,3458,2543,51,3755,100(...TRUNCATED)
["import","Ġstream","lit","Ġas","Ġst","Ċ","from","Ġstream","lit",".","components",".","v","1","(...TRUNCATED)
[1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,5,5,5,6,6,6,6,6(...TRUNCATED)
[1,7,14,17,20,23,1,5,12,15,16,26,27,28,29,36,47,1,5,12,15,16,22,23,29,36,40,41,47,48,51,1,5,10,11,18(...TRUNCATED)
f2bb44600f011a205c71985ad94c18f7e058634f
"import os\nimport requests\nfrom PIL import Image\nfrom io import BytesIO\nimport csv\nfrom typing (...TRUNCATED)
[485,2355,222,485,5188,222,1097,35991,1220,4393,222,1097,3377,1220,18401,2354,222,485,11490,222,1097(...TRUNCATED)
["import","Ġos","Ċ","import","Ġrequests","Ċ","from","ĠPIL","Ġimport","ĠImage","Ċ","from","Ġ(...TRUNCATED)
[1,1,1,2,2,2,3,3,3,3,3,4,4,4,4,4,4,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,8,9,9,9,9,9,9,9,9,9,9,9,9(...TRUNCATED)
[1,7,10,1,7,16,1,5,9,16,22,1,5,8,15,21,23,1,7,11,1,5,12,19,28,29,34,35,41,42,47,48,57,58,64,65,76,1,(...TRUNCATED)
302605d8bb45b1529742bf9441d476f0276085b9
"import sys\nfrom PyQt5.QtWidgets import (\n QMainWindow,\n QWidget,\n QHBoxLayout,\n QV(...TRUNCATED)
[485,5263,222,1097,48886,58,51,47881,1220,327,303,1931,21495,49,303,39917,49,303,1931,77,30400,49,30(...TRUNCATED)
["import","Ġsys","Ċ","from","ĠPyQt","5",".","QtWidgets","Ġimport","Ġ(","ĊĠĠĠ","ĠQ","MainWi(...TRUNCATED)
[1,1,1,2,2,2,2,2,2,2,2,3,3,3,3,4,4,4,5,5,5,5,5,6,6,6,6,6,7,7,7,7,8,8,8,8,9,9,9,9,9,10,10,10,10,11,11(...TRUNCATED)
[1,7,11,1,5,10,11,12,21,28,30,4,6,16,17,4,12,13,4,6,7,16,17,4,6,7,16,17,4,6,11,12,4,6,14,15,4,6,11,1(...TRUNCATED)
5d9c8e235385ff53c7510994826ff3a04e4a5888
"\"\"\"\n\n@file : 001-rnn+lstm+crf.py\n\n@author: xiaolu\n\n@time : 2019-09-06\n\n\"\"\"\n\nimpor(...TRUNCATED)
[3012,222,222,69,781,244,518,244,53,53,54,50,28394,48,35833,48,2465,107,51,997,222,222,69,2133,63,83(...TRUNCATED)
["\"\"\"","Ċ","Ċ","@","file","Ġ","Ġ:","Ġ","0","0","1","-","rnn","+","lstm","+","cr","f",".","py(...TRUNCATED)
[1,1,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,5,5,5,5,5,5,5,5,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,8,9,9(...TRUNCATED)
[1,4,1,1,2,6,7,9,10,11,12,13,14,17,18,22,23,25,26,27,29,1,1,2,8,9,11,13,15,16,1,1,2,6,7,9,10,11,12,1(...TRUNCATED)
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
24