content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
def get_config(): conf = { # Change it to necessary directory 'workdir': 'dataset/cr_data/', 'PAD': 0, 'BOS': 1, 'EOS': 2, 'UNK': 3, 'train_qt': 'sql.train.qt.pkl', 'train_code': 'sql.train.code.pkl', # parameters 'qt_len': 20, 'code_len': 120, 'qt_n_words': 7775, # 4 is added for UNK, EOS, SOS, PAD 'code_n_words': 7726, # vocabulary info 'vocab_qt': 'sql.qt.vocab.pkl', 'vocab_code': 'sql.code.vocab.pkl', # model 'checkpoint': 'dataset/cr_data/qtlen_20_codelen_120_qtnwords_7775_codenwords_7726_batch_256' '_optimizer_adam_lr_001_embsize_200_lstmdims_400_bowdropout_35_seqencdropout_35' '_codeenc_bilstm/best_model.ckpt', 'use_anno': 0, 'emb_size': 200, 'lstm_dims': 400, 'margin': 0.05, 'code_encoder': 'bilstm', 'bow_dropout': 1.0, 'seqenc_dropout': 1.0 } return conf
def get_config(): conf = {'workdir': 'dataset/cr_data/', 'PAD': 0, 'BOS': 1, 'EOS': 2, 'UNK': 3, 'train_qt': 'sql.train.qt.pkl', 'train_code': 'sql.train.code.pkl', 'qt_len': 20, 'code_len': 120, 'qt_n_words': 7775, 'code_n_words': 7726, 'vocab_qt': 'sql.qt.vocab.pkl', 'vocab_code': 'sql.code.vocab.pkl', 'checkpoint': 'dataset/cr_data/qtlen_20_codelen_120_qtnwords_7775_codenwords_7726_batch_256_optimizer_adam_lr_001_embsize_200_lstmdims_400_bowdropout_35_seqencdropout_35_codeenc_bilstm/best_model.ckpt', 'use_anno': 0, 'emb_size': 200, 'lstm_dims': 400, 'margin': 0.05, 'code_encoder': 'bilstm', 'bow_dropout': 1.0, 'seqenc_dropout': 1.0} return conf
def get_urls(*args, **kwargs): return { 'http://docutils.sourceforge.net/RELEASE-NOTES.txt' }, set()
def get_urls(*args, **kwargs): return ({'http://docutils.sourceforge.net/RELEASE-NOTES.txt'}, set())
# # PySNMP MIB module G6-FACTORY-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/G6-FACTORY-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 19:04:22 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsUnion, ConstraintsIntersection, ValueRangeConstraint, ValueSizeConstraint, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ConstraintsIntersection", "ValueRangeConstraint", "ValueSizeConstraint", "SingleValueConstraint") g6, = mibBuilder.importSymbols("MICROSENS-G6-MIB", "g6") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") iso, Bits, Counter32, NotificationType, Counter64, ObjectIdentity, TimeTicks, Gauge32, Unsigned32, MibScalar, MibTable, MibTableRow, MibTableColumn, Integer32, IpAddress, MibIdentifier, enterprises, ModuleIdentity = mibBuilder.importSymbols("SNMPv2-SMI", "iso", "Bits", "Counter32", "NotificationType", "Counter64", "ObjectIdentity", "TimeTicks", "Gauge32", "Unsigned32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Integer32", "IpAddress", "MibIdentifier", "enterprises", "ModuleIdentity") DisplayString, MacAddress, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "MacAddress", "TextualConvention") device = ModuleIdentity((1, 3, 6, 1, 4, 1, 3181, 10, 6, 1)) device.setRevisions(('2015-05-22 10:59',)) if mibBuilder.loadTexts: device.setLastUpdated('201505221059Z') if mibBuilder.loadTexts: device.setOrganization('MICROSENS GmbH & Co. KG') factory = MibIdentifier((1, 3, 6, 1, 4, 1, 3181, 10, 6, 1, 32)) factoryArticleNumber = MibScalar((1, 3, 6, 1, 4, 1, 3181, 10, 6, 1, 32, 1), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: factoryArticleNumber.setStatus('current') factorySerialNumber = MibScalar((1, 3, 6, 1, 4, 1, 3181, 10, 6, 1, 32, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: factorySerialNumber.setStatus('current') factoryDeviceMac = MibScalar((1, 3, 6, 1, 4, 1, 3181, 10, 6, 1, 32, 3), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: factoryDeviceMac.setStatus('current') factoryNumberOfMacs = MibScalar((1, 3, 6, 1, 4, 1, 3181, 10, 6, 1, 32, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readonly") if mibBuilder.loadTexts: factoryNumberOfMacs.setStatus('current') factoryHardwareVersion = MibScalar((1, 3, 6, 1, 4, 1, 3181, 10, 6, 1, 32, 5), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: factoryHardwareVersion.setStatus('current') factoryBoardId = MibScalar((1, 3, 6, 1, 4, 1, 3181, 10, 6, 1, 32, 6), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: factoryBoardId.setStatus('current') factoryProjectNumber = MibScalar((1, 3, 6, 1, 4, 1, 3181, 10, 6, 1, 32, 7), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: factoryProjectNumber.setStatus('current') factoryMechanicalFeatures = MibScalar((1, 3, 6, 1, 4, 1, 3181, 10, 6, 1, 32, 8), Bits().clone(namedValues=NamedValues(("desktop", 0), ("rail", 1), ("ductVertical", 2), ("ductHorizontal", 3), ("rack", 4), ("stackable", 5), ("unused6", 6), ("unused7", 7), ("dc", 8), ("ac", 9), ("dualPwr", 10), ("unused11", 11), ("extTemp", 12), ("extSupply", 13), ("exSecure", 14), ("unused15", 15), ("unused16", 16), ("microSd", 17), ("sdcard", 18), ("internalMemory", 19), ("unused20", 20), ("unused21", 21), ("ip30", 22), ("ip42", 23), ("ip44", 24), ("ip55", 25), ("ip67", 26), ("unused27", 27), ("unused28", 28), ("unused29", 29), ("unused30", 30), ("unused31", 31)))).setMaxAccess("readonly") if mibBuilder.loadTexts: factoryMechanicalFeatures.setStatus('current') factoryHardwareFeatures = MibScalar((1, 3, 6, 1, 4, 1, 3181, 10, 6, 1, 32, 9), Bits().clone(namedValues=NamedValues(("poePlus", 0), ("poePse", 1), ("poePd", 2), ("unused3", 3), ("unused4", 4), ("unused5", 5), ("eee", 6), ("synce", 7), ("ms1588", 8), ("usb", 9), ("relays", 10), ("rtc", 11), ("unused12", 12), ("unused13", 13), ("unused14", 14), ("csfp", 15), ("sfp", 16), ("lc", 17), ("sc", 18), ("st", 19), ("e2000", 20), ("unused21", 21), ("unused22", 22), ("unused23", 23), ("unused24", 24), ("unused25", 25), ("unused26", 26), ("unused27", 27), ("unused28", 28), ("unused29", 29), ("unused30", 30), ("unused31", 31)))).setMaxAccess("readonly") if mibBuilder.loadTexts: factoryHardwareFeatures.setStatus('current') factoryCompanyName = MibScalar((1, 3, 6, 1, 4, 1, 3181, 10, 6, 1, 32, 10), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: factoryCompanyName.setStatus('current') factoryCompanyShort = MibScalar((1, 3, 6, 1, 4, 1, 3181, 10, 6, 1, 32, 11), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: factoryCompanyShort.setStatus('current') factoryWebLink = MibScalar((1, 3, 6, 1, 4, 1, 3181, 10, 6, 1, 32, 12), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: factoryWebLink.setStatus('current') factoryWebDescription = MibScalar((1, 3, 6, 1, 4, 1, 3181, 10, 6, 1, 32, 13), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: factoryWebDescription.setStatus('current') factoryCustomInfo = MibScalar((1, 3, 6, 1, 4, 1, 3181, 10, 6, 1, 32, 14), DisplayString()).setMaxAccess("readwrite") if mibBuilder.loadTexts: factoryCustomInfo.setStatus('current') mibBuilder.exportSymbols("G6-FACTORY-MIB", factoryWebLink=factoryWebLink, factoryCompanyName=factoryCompanyName, device=device, factoryWebDescription=factoryWebDescription, factoryArticleNumber=factoryArticleNumber, factoryProjectNumber=factoryProjectNumber, factoryBoardId=factoryBoardId, factoryMechanicalFeatures=factoryMechanicalFeatures, factoryCustomInfo=factoryCustomInfo, factoryHardwareVersion=factoryHardwareVersion, factoryNumberOfMacs=factoryNumberOfMacs, factoryCompanyShort=factoryCompanyShort, factoryHardwareFeatures=factoryHardwareFeatures, factoryDeviceMac=factoryDeviceMac, factorySerialNumber=factorySerialNumber, factory=factory, PYSNMP_MODULE_ID=device)
(integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_union, constraints_intersection, value_range_constraint, value_size_constraint, single_value_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'ConstraintsIntersection', 'ValueRangeConstraint', 'ValueSizeConstraint', 'SingleValueConstraint') (g6,) = mibBuilder.importSymbols('MICROSENS-G6-MIB', 'g6') (module_compliance, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup') (iso, bits, counter32, notification_type, counter64, object_identity, time_ticks, gauge32, unsigned32, mib_scalar, mib_table, mib_table_row, mib_table_column, integer32, ip_address, mib_identifier, enterprises, module_identity) = mibBuilder.importSymbols('SNMPv2-SMI', 'iso', 'Bits', 'Counter32', 'NotificationType', 'Counter64', 'ObjectIdentity', 'TimeTicks', 'Gauge32', 'Unsigned32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Integer32', 'IpAddress', 'MibIdentifier', 'enterprises', 'ModuleIdentity') (display_string, mac_address, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'MacAddress', 'TextualConvention') device = module_identity((1, 3, 6, 1, 4, 1, 3181, 10, 6, 1)) device.setRevisions(('2015-05-22 10:59',)) if mibBuilder.loadTexts: device.setLastUpdated('201505221059Z') if mibBuilder.loadTexts: device.setOrganization('MICROSENS GmbH & Co. KG') factory = mib_identifier((1, 3, 6, 1, 4, 1, 3181, 10, 6, 1, 32)) factory_article_number = mib_scalar((1, 3, 6, 1, 4, 1, 3181, 10, 6, 1, 32, 1), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: factoryArticleNumber.setStatus('current') factory_serial_number = mib_scalar((1, 3, 6, 1, 4, 1, 3181, 10, 6, 1, 32, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: factorySerialNumber.setStatus('current') factory_device_mac = mib_scalar((1, 3, 6, 1, 4, 1, 3181, 10, 6, 1, 32, 3), mac_address()).setMaxAccess('readonly') if mibBuilder.loadTexts: factoryDeviceMac.setStatus('current') factory_number_of_macs = mib_scalar((1, 3, 6, 1, 4, 1, 3181, 10, 6, 1, 32, 4), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readonly') if mibBuilder.loadTexts: factoryNumberOfMacs.setStatus('current') factory_hardware_version = mib_scalar((1, 3, 6, 1, 4, 1, 3181, 10, 6, 1, 32, 5), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: factoryHardwareVersion.setStatus('current') factory_board_id = mib_scalar((1, 3, 6, 1, 4, 1, 3181, 10, 6, 1, 32, 6), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: factoryBoardId.setStatus('current') factory_project_number = mib_scalar((1, 3, 6, 1, 4, 1, 3181, 10, 6, 1, 32, 7), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: factoryProjectNumber.setStatus('current') factory_mechanical_features = mib_scalar((1, 3, 6, 1, 4, 1, 3181, 10, 6, 1, 32, 8), bits().clone(namedValues=named_values(('desktop', 0), ('rail', 1), ('ductVertical', 2), ('ductHorizontal', 3), ('rack', 4), ('stackable', 5), ('unused6', 6), ('unused7', 7), ('dc', 8), ('ac', 9), ('dualPwr', 10), ('unused11', 11), ('extTemp', 12), ('extSupply', 13), ('exSecure', 14), ('unused15', 15), ('unused16', 16), ('microSd', 17), ('sdcard', 18), ('internalMemory', 19), ('unused20', 20), ('unused21', 21), ('ip30', 22), ('ip42', 23), ('ip44', 24), ('ip55', 25), ('ip67', 26), ('unused27', 27), ('unused28', 28), ('unused29', 29), ('unused30', 30), ('unused31', 31)))).setMaxAccess('readonly') if mibBuilder.loadTexts: factoryMechanicalFeatures.setStatus('current') factory_hardware_features = mib_scalar((1, 3, 6, 1, 4, 1, 3181, 10, 6, 1, 32, 9), bits().clone(namedValues=named_values(('poePlus', 0), ('poePse', 1), ('poePd', 2), ('unused3', 3), ('unused4', 4), ('unused5', 5), ('eee', 6), ('synce', 7), ('ms1588', 8), ('usb', 9), ('relays', 10), ('rtc', 11), ('unused12', 12), ('unused13', 13), ('unused14', 14), ('csfp', 15), ('sfp', 16), ('lc', 17), ('sc', 18), ('st', 19), ('e2000', 20), ('unused21', 21), ('unused22', 22), ('unused23', 23), ('unused24', 24), ('unused25', 25), ('unused26', 26), ('unused27', 27), ('unused28', 28), ('unused29', 29), ('unused30', 30), ('unused31', 31)))).setMaxAccess('readonly') if mibBuilder.loadTexts: factoryHardwareFeatures.setStatus('current') factory_company_name = mib_scalar((1, 3, 6, 1, 4, 1, 3181, 10, 6, 1, 32, 10), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: factoryCompanyName.setStatus('current') factory_company_short = mib_scalar((1, 3, 6, 1, 4, 1, 3181, 10, 6, 1, 32, 11), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: factoryCompanyShort.setStatus('current') factory_web_link = mib_scalar((1, 3, 6, 1, 4, 1, 3181, 10, 6, 1, 32, 12), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: factoryWebLink.setStatus('current') factory_web_description = mib_scalar((1, 3, 6, 1, 4, 1, 3181, 10, 6, 1, 32, 13), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: factoryWebDescription.setStatus('current') factory_custom_info = mib_scalar((1, 3, 6, 1, 4, 1, 3181, 10, 6, 1, 32, 14), display_string()).setMaxAccess('readwrite') if mibBuilder.loadTexts: factoryCustomInfo.setStatus('current') mibBuilder.exportSymbols('G6-FACTORY-MIB', factoryWebLink=factoryWebLink, factoryCompanyName=factoryCompanyName, device=device, factoryWebDescription=factoryWebDescription, factoryArticleNumber=factoryArticleNumber, factoryProjectNumber=factoryProjectNumber, factoryBoardId=factoryBoardId, factoryMechanicalFeatures=factoryMechanicalFeatures, factoryCustomInfo=factoryCustomInfo, factoryHardwareVersion=factoryHardwareVersion, factoryNumberOfMacs=factoryNumberOfMacs, factoryCompanyShort=factoryCompanyShort, factoryHardwareFeatures=factoryHardwareFeatures, factoryDeviceMac=factoryDeviceMac, factorySerialNumber=factorySerialNumber, factory=factory, PYSNMP_MODULE_ID=device)
#! /usr/bin/env python def is_num_palindrome(num): # Skip single-digit inputs if num // 10 == 0: return False temp = num reversed_num = 0 while temp != 0: reversed_num = (reversed_num * 10) + (temp % 10) print(f'Reverse number: {reversed_num}') temp = temp // 10 print(f'Temp number: {temp}') if num == reversed_num: return num else: return False if __name__ == '__main__': num = int(input('Please input number: ')) res = is_num_palindrome(num) print(f'Result: {res}')
def is_num_palindrome(num): if num // 10 == 0: return False temp = num reversed_num = 0 while temp != 0: reversed_num = reversed_num * 10 + temp % 10 print(f'Reverse number: {reversed_num}') temp = temp // 10 print(f'Temp number: {temp}') if num == reversed_num: return num else: return False if __name__ == '__main__': num = int(input('Please input number: ')) res = is_num_palindrome(num) print(f'Result: {res}')
#!/usr/bin/python # ============================================================================== # Author: Tao Li (taoli@ucsd.edu) # Date: May 5, 2015 # Question: 122-Best-Time-to-Buy-and-Sell-Stock-II # Link: https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/ # ============================================================================== # Say you have an array for which the ith element is the price of a given stock # on day i. # # Design an algorithm to find the maximum profit. You may complete as many # transactions as you like (ie, buy one and sell one share of the stock multiple # times). However, you may not engage in multiple transactions at the same time # (ie, you must sell the stock before you buy again). # ============================================================================== # Time Complexity: O(n) # Space Complexity: O(1) # ============================================================================== class Solution: # @param {integer[]} prices # @return {integer} def maxProfit(self, prices): if len(prices) <= 1: return 0 total = 0 for i in range(len(prices)-1): total += prices[i+1]-prices[i] if prices[i+1]-prices[i] > 0 else 0 return total
class Solution: def max_profit(self, prices): if len(prices) <= 1: return 0 total = 0 for i in range(len(prices) - 1): total += prices[i + 1] - prices[i] if prices[i + 1] - prices[i] > 0 else 0 return total
""" IF the name is less than 3 characters then the name is shorter than usual. If the name is of more than 50 characters it is longer than usual. """ #Taking name from the user name = str(input("Please enter your full name: ")) #Evaluating the name if len(name) < 3: print("The name that you have put is too short") elif len(name) > 50: print("The name that you have put is too long") else: print("The name you have entered is just perfect")
""" IF the name is less than 3 characters then the name is shorter than usual. If the name is of more than 50 characters it is longer than usual. """ name = str(input('Please enter your full name: ')) if len(name) < 3: print('The name that you have put is too short') elif len(name) > 50: print('The name that you have put is too long') else: print('The name you have entered is just perfect')
# Refer: https://codeforces.com/contest/1538/problem/B def distribute_candies(arr, n): s = sum(arr) if s % n != 0: return -1 avg = s // n cnt = 0 for c in arr: if c > avg: cnt += 1 return cnt if __name__ == "__main__": t = int(input()) i = 0 while i < t: n = int(input()) arr = list(map(int, input().split())) res = distribute_candies(arr, n) print(res) i += 1
def distribute_candies(arr, n): s = sum(arr) if s % n != 0: return -1 avg = s // n cnt = 0 for c in arr: if c > avg: cnt += 1 return cnt if __name__ == '__main__': t = int(input()) i = 0 while i < t: n = int(input()) arr = list(map(int, input().split())) res = distribute_candies(arr, n) print(res) i += 1
__all__ = ['RetryStrategy'] class RetryStrategy (object): """ Base class for retry strategies. """ def exhaust (self): """ Sets the retry strategy in such a state that it will always return a value that indicates that no further sleep attempts should be made. """ raise NotImplementedError ( 'RetryStrategy derivatives must implement this!' ) def register_error (self, error): """ Registers an error with the retry strategy. This method should only return if the retry strategy knows how to handle the specific exception, if it doesn't the exception should be reraised. """ raise NotImplementedError ( 'RetryStrategy derivatives must implement this!' ) def reset (self): """ Resets the retry strategy to its base state. """ raise NotImplementedError ( 'RetryStrategy derivatives must implement this!' ) def seconds (self): """ Returns the next sleep interval in seconds. If no further sleep attempts should be performed the value returned is None. """ raise NotImplementedError ( 'RetryStrategy derivatives must implement this!' )
__all__ = ['RetryStrategy'] class Retrystrategy(object): """ Base class for retry strategies. """ def exhaust(self): """ Sets the retry strategy in such a state that it will always return a value that indicates that no further sleep attempts should be made. """ raise not_implemented_error('RetryStrategy derivatives must implement this!') def register_error(self, error): """ Registers an error with the retry strategy. This method should only return if the retry strategy knows how to handle the specific exception, if it doesn't the exception should be reraised. """ raise not_implemented_error('RetryStrategy derivatives must implement this!') def reset(self): """ Resets the retry strategy to its base state. """ raise not_implemented_error('RetryStrategy derivatives must implement this!') def seconds(self): """ Returns the next sleep interval in seconds. If no further sleep attempts should be performed the value returned is None. """ raise not_implemented_error('RetryStrategy derivatives must implement this!')
# Copyright 2020 Microsoft Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # # Requires Python 2.7+ class Constants(object): """Static class contains all constant variables""" # Enum Backport to support Enum in python 2.7 class EnumBackport(object): class __metaclass__(type): def __iter__(self): for item in self.__dict__: if item == self.__dict__[item]: yield item DEFAULT_UNSPECIFIED_VALUE = '7d12c6abb5f74eecec4b94e19ac3d418' # non-colliding default to distinguish between user selection and true default where used GLOBAL_EXCLUSION_LIST = "" # if a package needs to be blocked across all of Azure UNKNOWN = "Unknown" # Extension version (todo: move to a different file) EXT_VERSION = "1.6.29" # Runtime environments TEST = 'Test' DEV = 'Dev' PROD = 'Prod' LPE_ENV_VARIABLE = "LPE_ENV" # Overrides environment setting # Execution Arguments ARG_SEQUENCE_NUMBER = '-sequenceNumber' ARG_ENVIRONMENT_SETTINGS = "-environmentSettings" ARG_CONFIG_SETTINGS = "-configSettings" ARG_AUTO_ASSESS_ONLY = "-autoAssessOnly" ARG_PROTECTED_CONFIG_SETTINGS = "-protectedConfigSettings" ARG_INTERNAL_RECORDER_ENABLED = "-recorderEnabled" ARG_INTERNAL_EMULATOR_ENABLED = "-emulatorEnabled" # Max values MAX_AUTO_ASSESSMENT_LOGFILE_SIZE_IN_BYTES = 5*1024*1024 MAX_AUTO_ASSESSMENT_WAIT_FOR_MAIN_CORE_EXEC_IN_MINUTES = 3 * 60 class Paths(EnumBackport): SYSTEMD_ROOT = "/etc/systemd/system/" class EnvSettings(EnumBackport): LOG_FOLDER = "logFolder" CONFIG_FOLDER = "configFolder" STATUS_FOLDER = "statusFolder" EVENTS_FOLDER = "eventsFolder" class ConfigSettings(EnumBackport): OPERATION = 'operation' ACTIVITY_ID = 'activityId' START_TIME = 'startTime' MAXIMUM_DURATION = 'maximumDuration' REBOOT_SETTING = 'rebootSetting' CLASSIFICATIONS_TO_INCLUDE = 'classificationsToInclude' PATCHES_TO_INCLUDE = 'patchesToInclude' PATCHES_TO_EXCLUDE = 'patchesToExclude' MAINTENANCE_RUN_ID = 'maintenanceRunId' HEALTH_STORE_ID = 'healthStoreId' PATCH_MODE = 'patchMode' ASSESSMENT_MODE = 'assessmentMode' MAXIMUM_ASSESSMENT_INTERVAL = 'maximumAssessmentInterval' # File to save default settings for auto OS updates IMAGE_DEFAULT_PATCH_CONFIGURATION_BACKUP_PATH = "ImageDefaultPatchConfiguration.bak" # Auto assessment shell script name CORE_AUTO_ASSESS_SH_FILE_NAME = "MsftLinuxPatchAutoAssess.sh" AUTO_ASSESSMENT_SERVICE_NAME = "MsftLinuxPatchAutoAssess" AUTO_ASSESSMENT_SERVICE_DESC = "Microsoft Azure Linux Patch Extension - Auto Assessment" # Operations AUTO_ASSESSMENT = 'AutoAssessment' ASSESSMENT = "Assessment" INSTALLATION = "Installation" CONFIGURE_PATCHING = "ConfigurePatching" CONFIGURE_PATCHING_AUTO_ASSESSMENT = "ConfigurePatching_AutoAssessment" # only used internally PATCH_ASSESSMENT_SUMMARY = "PatchAssessmentSummary" PATCH_INSTALLATION_SUMMARY = "PatchInstallationSummary" PATCH_METADATA_FOR_HEALTHSTORE = "PatchMetadataForHealthStore" CONFIGURE_PATCHING_SUMMARY = "ConfigurePatchingSummary" # patch versions for healthstore when there is no maintenance run id PATCH_VERSION_UNKNOWN = "UNKNOWN" # Patch Modes for Configure Patching class PatchModes(EnumBackport): IMAGE_DEFAULT = "ImageDefault" AUTOMATIC_BY_PLATFORM = "AutomaticByPlatform" class AssessmentModes(EnumBackport): IMAGE_DEFAULT = "ImageDefault" AUTOMATIC_BY_PLATFORM = "AutomaticByPlatform" # automatic OS patch states for configure patching class AutomaticOSPatchStates(EnumBackport): UNKNOWN = "Unknown" DISABLED = "Disabled" ENABLED = "Enabled" # List of auto OS update services in Yum # todo: move to yumpackagemanager class YumAutoOSUpdateServices(EnumBackport): YUM_CRON = "yum-cron" DNF_AUTOMATIC = "dnf-automatic" PACKAGEKIT = "packagekit" # auto assessment states class AutoAssessmentStates(EnumBackport): UNKNOWN = "Unknown" ERROR = "Error" DISABLED = "Disabled" ENABLED = "Enabled" # wait time after status updates WAIT_TIME_AFTER_HEALTHSTORE_STATUS_UPDATE_IN_SECS = 20 AUTO_ASSESSMENT_MAXIMUM_DURATION = "PT1H" # Status file states STATUS_TRANSITIONING = "Transitioning" STATUS_ERROR = "Error" STATUS_SUCCESS = "Success" STATUS_WARNING = "Warning" # Wrapper-core handshake files EXT_STATE_FILE = 'ExtState.json' CORE_STATE_FILE = 'CoreState.json' # Operating System distributions UBUNTU = 'Ubuntu' RED_HAT = 'Red Hat' SUSE = 'SUSE' CENTOS = 'CentOS' # Package Managers APT = 'apt' YUM = 'yum' ZYPPER = 'zypper' # Package Statuses INSTALLED = 'Installed' FAILED = 'Failed' EXCLUDED = 'Excluded' # explicitly excluded PENDING = 'Pending' NOT_SELECTED = 'NotSelected' # implicitly not installed as it wasn't explicitly included AVAILABLE = 'Available' # assessment only UA_ESM_REQUIRED = "UA_ESM_Required" UNKNOWN_PACKAGE_SIZE = "Unknown" PACKAGE_STATUS_REFRESH_RATE_IN_SECONDS = 10 MAX_FILE_OPERATION_RETRY_COUNT = 5 MAX_ASSESSMENT_RETRY_COUNT = 5 MAX_INSTALLATION_RETRY_COUNT = 3 MAX_IMDS_CONNECTION_RETRY_COUNT = 5 MAX_ZYPPER_REPO_REFRESH_RETRY_COUNT = 5 class PackageClassification(EnumBackport): UNCLASSIFIED = 'Unclassified' CRITICAL = 'Critical' SECURITY = 'Security' OTHER = 'Other' PKG_MGR_SETTING_FILTER_CRITSEC_ONLY = 'FilterCritSecOnly' PKG_MGR_SETTING_IDENTITY = 'PackageManagerIdentity' PKG_MGR_SETTING_IGNORE_PKG_FILTER = 'IgnorePackageFilter' # Reboot Manager REBOOT_NEVER = 'Never reboot' REBOOT_IF_REQUIRED = 'Reboot if required' REBOOT_ALWAYS = 'Always reboot' REBOOT_SETTINGS = { # API to exec-code mapping (+incl. validation) 'Never': REBOOT_NEVER, 'IfRequired': REBOOT_IF_REQUIRED, 'Always': REBOOT_ALWAYS } REBOOT_BUFFER_IN_MINUTES = 15 REBOOT_WAIT_TIMEOUT_IN_MINUTES = 5 # Installation Reboot Statuses class RebootStatus(EnumBackport): NOT_NEEDED = "NotNeeded" REQUIRED = "Required" STARTED = "Started" COMPLETED = "Completed" FAILED = "Failed" # Enum for VM Cloud Type class VMCloudType(EnumBackport): UNKNOWN = "Unknown" AZURE = "Azure" ARC = "Arc" IMDS_END_POINT = "http://169.254.169.254/metadata/instance/compute?api-version=2019-06-01" # StartedBy Patch Assessment Summary Status Values class PatchAssessmentSummaryStartedBy(EnumBackport): USER = "User" PLATFORM = "Platform" # Maintenance Window PACKAGE_INSTALL_EXPECTED_MAX_TIME_IN_MINUTES = 5 # Package Manager Setting PACKAGE_MGR_SETTING_REPEAT_PATCH_OPERATION = "RepeatUpdateRun" # Settings for Error Objects logged in status file STATUS_ERROR_MSG_SIZE_LIMIT_IN_CHARACTERS = 128 STATUS_ERROR_LIMIT = 5 class PatchOperationTopLevelErrorCode(EnumBackport): SUCCESS = 0 ERROR = 1 class PatchOperationErrorCodes(EnumBackport): # todo: finalize these error codes PACKAGE_MANAGER_FAILURE = "PACKAGE_MANAGER_FAILURE" OPERATION_FAILED = "OPERATION_FAILED" DEFAULT_ERROR = "ERROR" # default error code ERROR_ADDED_TO_STATUS = "Error_added_to_status" TELEMETRY_ENABLED_AT_EXTENSION = True # Telemetry Settings # Note: these limits are based on number of characters as confirmed with agent team TELEMETRY_MSG_SIZE_LIMIT_IN_CHARS = 3072 TELEMETRY_EVENT_SIZE_LIMIT_IN_CHARS = 6144 TELEMETRY_EVENT_FILE_SIZE_LIMIT_IN_CHARS = 4194304 TELEMETRY_DIR_SIZE_LIMIT_IN_CHARS = 41943040 TELEMETRY_BUFFER_FOR_DROPPED_COUNT_MSG_IN_CHARS = 25 # buffer for the chars dropped text added at the end of the truncated telemetry message TELEMETRY_EVENT_COUNTER_MSG_SIZE_LIMIT_IN_CHARS = 15 # buffer for telemetry event counter text added at the end of every message sent to telemetry TELEMETRY_MAX_EVENT_COUNT_THROTTLE = 60 TELEMETRY_MAX_TIME_IN_SECONDS_FOR_EVENT_COUNT_THROTTLE = 60 # Telemetry Event Level class TelemetryEventLevel(EnumBackport): Critical = "Critical" Error = "Error" Warning = "Warning" Verbose = "Verbose" Informational = "Informational" LogAlways = "LogAlways" TELEMETRY_TASK_NAME = "ExtensionCoreLog" TELEMETRY_AT_AGENT_NOT_COMPATIBLE_ERROR_MSG = "Unsupported older Azure Linux Agent version. To resolve: http://aka.ms/UpdateLinuxAgent" TELEMETRY_AT_AGENT_COMPATIBLE_MSG = "Minimum Azure Linux Agent version prerequisite met" UTC_DATETIME_FORMAT = "%Y-%m-%dT%H:%M:%SZ" # EnvLayer Constants class EnvLayer(EnumBackport): PRIVILEGED_OP_MARKER = "Privileged_Op_e6df678d-d09b-436a-a08a-65f2f70a6798" PRIVILEGED_OP_REBOOT = PRIVILEGED_OP_MARKER + "Reboot_Exception" PRIVILEGED_OP_EXIT = PRIVILEGED_OP_MARKER + "Exit_"
class Constants(object): """Static class contains all constant variables""" class Enumbackport(object): class __Metaclass__(type): def __iter__(self): for item in self.__dict__: if item == self.__dict__[item]: yield item default_unspecified_value = '7d12c6abb5f74eecec4b94e19ac3d418' global_exclusion_list = '' unknown = 'Unknown' ext_version = '1.6.29' test = 'Test' dev = 'Dev' prod = 'Prod' lpe_env_variable = 'LPE_ENV' arg_sequence_number = '-sequenceNumber' arg_environment_settings = '-environmentSettings' arg_config_settings = '-configSettings' arg_auto_assess_only = '-autoAssessOnly' arg_protected_config_settings = '-protectedConfigSettings' arg_internal_recorder_enabled = '-recorderEnabled' arg_internal_emulator_enabled = '-emulatorEnabled' max_auto_assessment_logfile_size_in_bytes = 5 * 1024 * 1024 max_auto_assessment_wait_for_main_core_exec_in_minutes = 3 * 60 class Paths(EnumBackport): systemd_root = '/etc/systemd/system/' class Envsettings(EnumBackport): log_folder = 'logFolder' config_folder = 'configFolder' status_folder = 'statusFolder' events_folder = 'eventsFolder' class Configsettings(EnumBackport): operation = 'operation' activity_id = 'activityId' start_time = 'startTime' maximum_duration = 'maximumDuration' reboot_setting = 'rebootSetting' classifications_to_include = 'classificationsToInclude' patches_to_include = 'patchesToInclude' patches_to_exclude = 'patchesToExclude' maintenance_run_id = 'maintenanceRunId' health_store_id = 'healthStoreId' patch_mode = 'patchMode' assessment_mode = 'assessmentMode' maximum_assessment_interval = 'maximumAssessmentInterval' image_default_patch_configuration_backup_path = 'ImageDefaultPatchConfiguration.bak' core_auto_assess_sh_file_name = 'MsftLinuxPatchAutoAssess.sh' auto_assessment_service_name = 'MsftLinuxPatchAutoAssess' auto_assessment_service_desc = 'Microsoft Azure Linux Patch Extension - Auto Assessment' auto_assessment = 'AutoAssessment' assessment = 'Assessment' installation = 'Installation' configure_patching = 'ConfigurePatching' configure_patching_auto_assessment = 'ConfigurePatching_AutoAssessment' patch_assessment_summary = 'PatchAssessmentSummary' patch_installation_summary = 'PatchInstallationSummary' patch_metadata_for_healthstore = 'PatchMetadataForHealthStore' configure_patching_summary = 'ConfigurePatchingSummary' patch_version_unknown = 'UNKNOWN' class Patchmodes(EnumBackport): image_default = 'ImageDefault' automatic_by_platform = 'AutomaticByPlatform' class Assessmentmodes(EnumBackport): image_default = 'ImageDefault' automatic_by_platform = 'AutomaticByPlatform' class Automaticospatchstates(EnumBackport): unknown = 'Unknown' disabled = 'Disabled' enabled = 'Enabled' class Yumautoosupdateservices(EnumBackport): yum_cron = 'yum-cron' dnf_automatic = 'dnf-automatic' packagekit = 'packagekit' class Autoassessmentstates(EnumBackport): unknown = 'Unknown' error = 'Error' disabled = 'Disabled' enabled = 'Enabled' wait_time_after_healthstore_status_update_in_secs = 20 auto_assessment_maximum_duration = 'PT1H' status_transitioning = 'Transitioning' status_error = 'Error' status_success = 'Success' status_warning = 'Warning' ext_state_file = 'ExtState.json' core_state_file = 'CoreState.json' ubuntu = 'Ubuntu' red_hat = 'Red Hat' suse = 'SUSE' centos = 'CentOS' apt = 'apt' yum = 'yum' zypper = 'zypper' installed = 'Installed' failed = 'Failed' excluded = 'Excluded' pending = 'Pending' not_selected = 'NotSelected' available = 'Available' ua_esm_required = 'UA_ESM_Required' unknown_package_size = 'Unknown' package_status_refresh_rate_in_seconds = 10 max_file_operation_retry_count = 5 max_assessment_retry_count = 5 max_installation_retry_count = 3 max_imds_connection_retry_count = 5 max_zypper_repo_refresh_retry_count = 5 class Packageclassification(EnumBackport): unclassified = 'Unclassified' critical = 'Critical' security = 'Security' other = 'Other' pkg_mgr_setting_filter_critsec_only = 'FilterCritSecOnly' pkg_mgr_setting_identity = 'PackageManagerIdentity' pkg_mgr_setting_ignore_pkg_filter = 'IgnorePackageFilter' reboot_never = 'Never reboot' reboot_if_required = 'Reboot if required' reboot_always = 'Always reboot' reboot_settings = {'Never': REBOOT_NEVER, 'IfRequired': REBOOT_IF_REQUIRED, 'Always': REBOOT_ALWAYS} reboot_buffer_in_minutes = 15 reboot_wait_timeout_in_minutes = 5 class Rebootstatus(EnumBackport): not_needed = 'NotNeeded' required = 'Required' started = 'Started' completed = 'Completed' failed = 'Failed' class Vmcloudtype(EnumBackport): unknown = 'Unknown' azure = 'Azure' arc = 'Arc' imds_end_point = 'http://169.254.169.254/metadata/instance/compute?api-version=2019-06-01' class Patchassessmentsummarystartedby(EnumBackport): user = 'User' platform = 'Platform' package_install_expected_max_time_in_minutes = 5 package_mgr_setting_repeat_patch_operation = 'RepeatUpdateRun' status_error_msg_size_limit_in_characters = 128 status_error_limit = 5 class Patchoperationtoplevelerrorcode(EnumBackport): success = 0 error = 1 class Patchoperationerrorcodes(EnumBackport): package_manager_failure = 'PACKAGE_MANAGER_FAILURE' operation_failed = 'OPERATION_FAILED' default_error = 'ERROR' error_added_to_status = 'Error_added_to_status' telemetry_enabled_at_extension = True telemetry_msg_size_limit_in_chars = 3072 telemetry_event_size_limit_in_chars = 6144 telemetry_event_file_size_limit_in_chars = 4194304 telemetry_dir_size_limit_in_chars = 41943040 telemetry_buffer_for_dropped_count_msg_in_chars = 25 telemetry_event_counter_msg_size_limit_in_chars = 15 telemetry_max_event_count_throttle = 60 telemetry_max_time_in_seconds_for_event_count_throttle = 60 class Telemetryeventlevel(EnumBackport): critical = 'Critical' error = 'Error' warning = 'Warning' verbose = 'Verbose' informational = 'Informational' log_always = 'LogAlways' telemetry_task_name = 'ExtensionCoreLog' telemetry_at_agent_not_compatible_error_msg = 'Unsupported older Azure Linux Agent version. To resolve: http://aka.ms/UpdateLinuxAgent' telemetry_at_agent_compatible_msg = 'Minimum Azure Linux Agent version prerequisite met' utc_datetime_format = '%Y-%m-%dT%H:%M:%SZ' class Envlayer(EnumBackport): privileged_op_marker = 'Privileged_Op_e6df678d-d09b-436a-a08a-65f2f70a6798' privileged_op_reboot = PRIVILEGED_OP_MARKER + 'Reboot_Exception' privileged_op_exit = PRIVILEGED_OP_MARKER + 'Exit_'
# Scrapy settings for sephora project # # For simplicity, this file contains only settings considered important or # commonly used. You can find more settings consulting the documentation: # # https://docs.scrapy.org/en/latest/topics/settings.html # https://docs.scrapy.org/en/latest/topics/downloader-middleware.html # https://docs.scrapy.org/en/latest/topics/spider-middleware.html BOT_NAME = 'sephora' SPIDER_MODULES = ['sephora.spiders'] NEWSPIDER_MODULE = 'sephora.spiders' # Crawl responsibly by identifying yourself (and your website) on the user-agent USER_AGENT = ["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36", "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.157 Safari/537.36", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36", "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko", "Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/17.17134", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/18.17763", "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0; KTXN)", "Mozilla/5.0 (Windows NT 5.1; rv:7.0.1) Gecko/20100101 Firefox/7.0.1", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)", "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:54.0) Gecko/20100101 Firefox/54.0", "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.1", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36", "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36", "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36", "Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36 Edg/96.0.1054.62", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36", "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) Gecko/20100101 Firefox/18.0", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)", "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36", "Mozilla/4.0 (compatible; MSIE 9.0; Windows NT 6.1; 125LA; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36 Edge/18.18362", "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0) like Gecko", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)", "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.71 Safari/537.36", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36", "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.83 Safari/537.1", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.82 Safari/537.36", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36 Edge/14.14393", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.82 Safari/537.36", "Mozilla/4.0 (compatible; MSIE 9.0; Windows NT 6.1)", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36 Edge/18.18363", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36 Edg/87.0.664.75", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36" ] # Obey robots.txt rules ROBOTSTXT_OBEY = False # Configure maximum concurrent requests performed by Scrapy (default: 16) #CONCURRENT_REQUESTS = 32 # Configure a delay for requests for the same website (default: 0) # See https://docs.scrapy.org/en/latest/topics/settings.html#download-delay # See also autothrottle settings and docs DOWNLOAD_DELAY = 3 # The download delay setting will honor only one of: #CONCURRENT_REQUESTS_PER_DOMAIN = 16 #CONCURRENT_REQUESTS_PER_IP = 16 # Disable cookies (enabled by default) COOKIES_ENABLED = True COOKIES_DEBUG = True # Disable Telnet Console (enabled by default) #TELNETCONSOLE_ENABLED = False # Override the default request headers: DEFAULT_REQUEST_HEADERS = { 'authority': 'www.sephora.com', 'pragma': 'no-cache', 'cache-control': 'no-cache', 'sec-ch-ua': '" Not A;Brand";v="99", "Chromium";v="99", "Google Chrome";v="99"', 'sec-ch-ua-mobile': '?0', 'sec-ch-ua-platform': '"Windows"', 'upgrade-insecure-requests': '1', 'accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9', 'sec-fetch-site': 'none', 'sec-fetch-mode': 'navigate', 'sec-fetch-user': '?1', 'sec-fetch-dest': 'document', 'accept-language': 'pl-PL,pl;q=0.9,en-US;q=0.8,en;q=0.7', "Connection": "keep-alive", "Host": "www.sephora.com" } # Enable or disable spider middlewares # See https://docs.scrapy.org/en/latest/topics/spider-middleware.html #SPIDER_MIDDLEWARES = { # 'sephora.middlewares.SephoraSpiderMiddleware': 543, #} # Enable or disable downloader middlewares # See https://docs.scrapy.org/en/latest/topics/downloader-middleware.html #DOWNLOADER_MIDDLEWARES = { # 'sephora.middlewares.SephoraDownloaderMiddleware': 543, #} # Enable or disable extensions # See https://docs.scrapy.org/en/latest/topics/extensions.html #EXTENSIONS = { # 'scrapy.extensions.telnet.TelnetConsole': None, #} # Configure item pipelines # See https://docs.scrapy.org/en/latest/topics/item-pipeline.html #ITEM_PIPELINES = { # 'sephora.pipelines.SephoraPipeline': 300, #} # Enable and configure the AutoThrottle extension (disabled by default) # See https://docs.scrapy.org/en/latest/topics/autothrottle.html #AUTOTHROTTLE_ENABLED = True # The initial download delay #AUTOTHROTTLE_START_DELAY = 5 # The maximum download delay to be set in case of high latencies #AUTOTHROTTLE_MAX_DELAY = 60 # The average number of requests Scrapy should be sending in parallel to # each remote server #AUTOTHROTTLE_TARGET_CONCURRENCY = 1.0 # Enable showing throttling stats for every response received: #AUTOTHROTTLE_DEBUG = False # Enable and configure HTTP caching (disabled by default) # See https://docs.scrapy.org/en/latest/topics/downloader-middleware.html#httpcache-middleware-settings #HTTPCACHE_ENABLED = True #HTTPCACHE_EXPIRATION_SECS = 0 #HTTPCACHE_DIR = 'httpcache' #HTTPCACHE_IGNORE_HTTP_CODES = [] #HTTPCACHE_STORAGE = 'scrapy.extensions.httpcache.FilesystemCacheStorage'
bot_name = 'sephora' spider_modules = ['sephora.spiders'] newspider_module = 'sephora.spiders' user_agent = ['Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36', 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.157 Safari/537.36', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36', 'Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko', 'Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/17.17134', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/18.17763', 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0; KTXN)', 'Mozilla/5.0 (Windows NT 5.1; rv:7.0.1) Gecko/20100101 Firefox/7.0.1', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)', 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:54.0) Gecko/20100101 Firefox/54.0', 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36', 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36', 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36', 'Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36 Edg/96.0.1054.62', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36', 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) Gecko/20100101 Firefox/18.0', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)', 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36', 'Mozilla/4.0 (compatible; MSIE 9.0; Windows NT 6.1; 125LA; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36 Edge/18.18362', 'Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0) like Gecko', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)', 'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.71 Safari/537.36', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36', 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.83 Safari/537.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.82 Safari/537.36', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36 Edge/14.14393', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.82 Safari/537.36', 'Mozilla/4.0 (compatible; MSIE 9.0; Windows NT 6.1)', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36 Edge/18.18363', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36 Edg/87.0.664.75', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36'] robotstxt_obey = False download_delay = 3 cookies_enabled = True cookies_debug = True default_request_headers = {'authority': 'www.sephora.com', 'pragma': 'no-cache', 'cache-control': 'no-cache', 'sec-ch-ua': '" Not A;Brand";v="99", "Chromium";v="99", "Google Chrome";v="99"', 'sec-ch-ua-mobile': '?0', 'sec-ch-ua-platform': '"Windows"', 'upgrade-insecure-requests': '1', 'accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9', 'sec-fetch-site': 'none', 'sec-fetch-mode': 'navigate', 'sec-fetch-user': '?1', 'sec-fetch-dest': 'document', 'accept-language': 'pl-PL,pl;q=0.9,en-US;q=0.8,en;q=0.7', 'Connection': 'keep-alive', 'Host': 'www.sephora.com'}
_base_ = './van_small_8xb128_fp16_ep300.py' # model settings model = dict( backbone=dict(arch='large', drop_path_rate=0.2), )
_base_ = './van_small_8xb128_fp16_ep300.py' model = dict(backbone=dict(arch='large', drop_path_rate=0.2))
#!/usr/bin/python REGISTER_USER = "RegisterUser" CURRENT_MEDS = "CurrentRx" DOSAGE_REMINDER = "DosageReminder" REFILL_REMINDER = "RefillReminder"
register_user = 'RegisterUser' current_meds = 'CurrentRx' dosage_reminder = 'DosageReminder' refill_reminder = 'RefillReminder'
if __name__ == "__main__": s = 'Hello from Python!' words = s.split(' ') print(words) for w in words: print(w) for ch in s: print(ch)
if __name__ == '__main__': s = 'Hello from Python!' words = s.split(' ') print(words) for w in words: print(w) for ch in s: print(ch)
def sequentialSearch(n, array, x): if x >= n: return None location = 0 while (location < n and array[location] != x): location += 1 return location
def sequential_search(n, array, x): if x >= n: return None location = 0 while location < n and array[location] != x: location += 1 return location
MICROBIT = "micro:bit" # string arguments for constructor BLANK_5X5 = "00000:00000:00000:00000:00000:" # pre-defined image patterns IMAGE_PATTERNS = { "HEART": "09090:99999:99999:09990:00900:", "HEART_SMALL": "00000:09090:09990:00900:00000:", "HAPPY": "00000:09090:00000:90009:09990:", "SMILE": "00000:00000:00000:90009:09990:", "SAD": "00000:09090:00000:09990:90009:", "CONFUSED": "00000:09090:00000:09090:90909:", "ANGRY": "90009:09090:00000:99999:90909:", "ASLEEP": "00000:99099:00000:09990:00000:", "SURPRISED": "09090:00000:00900:09090:00900:", "SILLY": "90009:00000:99999:00909:00999:", "FABULOUS": "99999:99099:00000:09090:09990:", "MEH": "09090:00000:00090:00900:09000:", "YES": "00000:00009:00090:90900:09000:", "NO": "90009:09090:00900:09090:90009:", "CLOCK12": "00900:00900:00900:00000:00000:", "CLOCK11": "09000:09000:00900:00000:00000:", "CLOCK10": "00000:99000:00900:00000:00000:", "CLOCK9": "00000:00000:99900:00000:00000:", "CLOCK8": "00000:00000:00900:99000:00000:", "CLOCK7": "00000:00000:00900:09000:09000:", "CLOCK6": "00000:00000:00900:00900:00900:", "CLOCK5": "00000:00000:00900:00090:00090:", "CLOCK4": "00000:00000:00900:00099:00000:", "CLOCK3": "00000:00000:00999:00000:00000:", "CLOCK2": "00000:00099:00900:00000:00000:", "CLOCK1": "00090:00090:00900:00000:00000:", "ARROW_N": "00900:09990:90909:00900:00900:", "ARROW_NE": "00999:00099:00909:09000:90000:", "ARROW_E": "00900:00090:99999:00090:00900:", "ARROW_SE": "90000:09000:00909:00099:00999:", "ARROW_S": "00900:00900:90909:09990:00900:", "ARROW_SW": "00009:00090:90900:99000:99900:", "ARROW_W": "00900:09000:99999:09000:00900:", "ARROW_NW": "99900:99000:90900:00090:00009:", "TRIANGLE": "00000:00900:09090:99999:00000:", "TRIANGLE_LEFT": "90000:99000:90900:90090:99999:", "CHESSBOARD": "09090:90909:09090:90909:09090:", "DIAMOND": "00900:09090:90009:09090:00900:", "DIAMOND_SMALL": "00000:00900:09090:00900:00000:", "SQUARE": "99999:90009:90009:90009:99999:", "SQUARE_SMALL": "00000:09990:09090:09990:00000:", "RABBIT": "90900:90900:99990:99090:99990:", "COW": "90009:90009:99999:09990:00900:", "MUSIC_CROTCHET": "00900:00900:00900:99900:99900:", "MUSIC_QUAVER": "00900:00990:00909:99900:99900:", "MUSIC_QUAVERS": "09999:09009:09009:99099:99099:", "PITCHFORK": "90909:90909:99999:00900:00900:", "XMAS": "00900:09990:00900:09990:99999:", "PACMAN": "09999:99090:99900:99990:09999:", "TARGET": "00900:09990:99099:09990:00900:", "TSHIRT": "99099:99999:09990:09990:09990:", "ROLLERSKATE": "00099:00099:99999:99999:09090:", "DUCK": "09900:99900:09999:09990:00000:", "HOUSE": "00900:09990:99999:09990:09090:", "TORTOISE": "00000:09990:99999:09090:00000:", "BUTTERFLY": "99099:99999:00900:99999:99099:", "STICKFIGURE": "00900:99999:00900:09090:90009:", "GHOST": "99999:90909:99999:99999:90909:", "SWORD": "00900:00900:00900:09990:00900:", "GIRAFFE": "99000:09000:09000:09990:09090:", "SKULL": "09990:90909:99999:09990:09990:", "UMBRELLA": "09990:99999:00900:90900:09900:", "SNAKE": "99000:99099:09090:09990:00000:", } IMAGE_TUPLE_LOOKUP = { "ALL_CLOCKS": [ "CLOCK12", "CLOCK11", "CLOCK10", "CLOCK9", "CLOCK8", "CLOCK7", "CLOCK6", "CLOCK5", "CLOCK4", "CLOCK3", "CLOCK2", "CLOCK1", ], "ALL_ARROWS": [ "ARROW_N", "ARROW_NE", "ARROW_E", "ARROW_SE", "ARROW_S", "ARROW_SW", "ARROW_W", "ARROW_NW", ], } # 5x5 Alphabet # Taken from https://raw.githubusercontent.com/micropython/micropython/264d80c84e034541bd6e4b461bfece4443ffd0ac/ports/nrf/boards/microbit/modules/microbitfont.h ALPHABET = b"\x00\x00\x00\x00\x00\x08\x08\x08\x00\x08\x0a\x4a\x40\x00\x00\x0a\x5f\xea\x5f\xea\x0e\xd9\x2e\xd3\x6e\x19\x32\x44\x89\x33\x0c\x92\x4c\x92\x4d\x08\x08\x00\x00\x00\x04\x88\x08\x08\x04\x08\x04\x84\x84\x88\x00\x0a\x44\x8a\x40\x00\x04\x8e\xc4\x80\x00\x00\x00\x04\x88\x00\x00\x0e\xc0\x00\x00\x00\x00\x08\x00\x01\x22\x44\x88\x10\x0c\x92\x52\x52\x4c\x04\x8c\x84\x84\x8e\x1c\x82\x4c\x90\x1e\x1e\xc2\x44\x92\x4c\x06\xca\x52\x5f\xe2\x1f\xf0\x1e\xc1\x3e\x02\x44\x8e\xd1\x2e\x1f\xe2\x44\x88\x10\x0e\xd1\x2e\xd1\x2e\x0e\xd1\x2e\xc4\x88\x00\x08\x00\x08\x00\x00\x04\x80\x04\x88\x02\x44\x88\x04\x82\x00\x0e\xc0\x0e\xc0\x08\x04\x82\x44\x88\x0e\xd1\x26\xc0\x04\x0e\xd1\x35\xb3\x6c\x0c\x92\x5e\xd2\x52\x1c\x92\x5c\x92\x5c\x0e\xd0\x10\x10\x0e\x1c\x92\x52\x52\x5c\x1e\xd0\x1c\x90\x1e\x1e\xd0\x1c\x90\x10\x0e\xd0\x13\x71\x2e\x12\x52\x5e\xd2\x52\x1c\x88\x08\x08\x1c\x1f\xe2\x42\x52\x4c\x12\x54\x98\x14\x92\x10\x10\x10\x10\x1e\x11\x3b\x75\xb1\x31\x11\x39\x35\xb3\x71\x0c\x92\x52\x52\x4c\x1c\x92\x5c\x90\x10\x0c\x92\x52\x4c\x86\x1c\x92\x5c\x92\x51\x0e\xd0\x0c\x82\x5c\x1f\xe4\x84\x84\x84\x12\x52\x52\x52\x4c\x11\x31\x31\x2a\x44\x11\x31\x35\xbb\x71\x12\x52\x4c\x92\x52\x11\x2a\x44\x84\x84\x1e\xc4\x88\x10\x1e\x0e\xc8\x08\x08\x0e\x10\x08\x04\x82\x41\x0e\xc2\x42\x42\x4e\x04\x8a\x40\x00\x00\x00\x00\x00\x00\x1f\x08\x04\x80\x00\x00\x00\x0e\xd2\x52\x4f\x10\x10\x1c\x92\x5c\x00\x0e\xd0\x10\x0e\x02\x42\x4e\xd2\x4e\x0c\x92\x5c\x90\x0e\x06\xc8\x1c\x88\x08\x0e\xd2\x4e\xc2\x4c\x10\x10\x1c\x92\x52\x08\x00\x08\x08\x08\x02\x40\x02\x42\x4c\x10\x14\x98\x14\x92\x08\x08\x08\x08\x06\x00\x1b\x75\xb1\x31\x00\x1c\x92\x52\x52\x00\x0c\x92\x52\x4c\x00\x1c\x92\x5c\x90\x00\x0e\xd2\x4e\xc2\x00\x0e\xd0\x10\x10\x00\x06\xc8\x04\x98\x08\x08\x0e\xc8\x07\x00\x12\x52\x52\x4f\x00\x11\x31\x2a\x44\x00\x11\x31\x35\xbb\x00\x12\x4c\x8c\x92\x00\x11\x2a\x44\x98\x00\x1e\xc4\x88\x1e\x06\xc4\x8c\x84\x86\x08\x08\x08\x08\x08\x18\x08\x0c\x88\x18\x00\x00\x0c\x83\x60" # We support ASCII characters between these indexes on the microbit ASCII_START = 32 ASCII_END = 126 SPACE_BETWEEN_LETTERS_WIDTH = 1 WHITESPACE_WIDTH = 3 # numerical LED values LED_HEIGHT = 5 LED_WIDTH = 5 BRIGHTNESS_MIN = 0 BRIGHTNESS_MAX = 9 # sensor max/min values MAX_TEMPERATURE = 125 MIN_TEMPERATURE = -55 MAX_LIGHT_LEVEL = 255 MIN_LIGHT_LEVEL = 0 MAX_ACCELERATION = 1023 MIN_ACCELERATION = -1023 GESTURES = set( [ "up", "down", "left", "right", "face up", "face down", "freefall", "3g", "6g", "8g", "shake", ] ) # error messages BRIGHTNESS_ERR = "brightness out of bounds" COPY_ERR_MESSAGE = "please call copy function first" INCORR_IMAGE_SIZE = "image data is incorrect size" INDEX_ERR = "index out of bounds" NOT_IMPLEMENTED_ERROR = "This method is not implemented by the simulator" UNSUPPORTED_ADD_TYPE = "unsupported types for __add__:" SAME_SIZE_ERR = "images must be the same size" INVALID_GESTURE_ERR = "invalid gesture" INVALID_ACCEL_ERR = "invalid acceleration" INVALID_LIGHT_LEVEL_ERR = "invalid light level" INVALID_TEMPERATURE_ERR = "invalid temperature" TIME_DELAY = 0.03 EXPECTED_INPUT_BUTTONS = [ "button_a", "button_b", ] EXPECTED_INPUT_ACCEL = { "motion_x": "x", "motion_y": "y", "motion_z": "z", } EXPECTED_INPUT_LIGHT = "light" EXPECTED_INPUT_TEMP = "temperature" EXPECTED_INPUT_GESTURE = "gesture"
microbit = 'micro:bit' blank_5_x5 = '00000:00000:00000:00000:00000:' image_patterns = {'HEART': '09090:99999:99999:09990:00900:', 'HEART_SMALL': '00000:09090:09990:00900:00000:', 'HAPPY': '00000:09090:00000:90009:09990:', 'SMILE': '00000:00000:00000:90009:09990:', 'SAD': '00000:09090:00000:09990:90009:', 'CONFUSED': '00000:09090:00000:09090:90909:', 'ANGRY': '90009:09090:00000:99999:90909:', 'ASLEEP': '00000:99099:00000:09990:00000:', 'SURPRISED': '09090:00000:00900:09090:00900:', 'SILLY': '90009:00000:99999:00909:00999:', 'FABULOUS': '99999:99099:00000:09090:09990:', 'MEH': '09090:00000:00090:00900:09000:', 'YES': '00000:00009:00090:90900:09000:', 'NO': '90009:09090:00900:09090:90009:', 'CLOCK12': '00900:00900:00900:00000:00000:', 'CLOCK11': '09000:09000:00900:00000:00000:', 'CLOCK10': '00000:99000:00900:00000:00000:', 'CLOCK9': '00000:00000:99900:00000:00000:', 'CLOCK8': '00000:00000:00900:99000:00000:', 'CLOCK7': '00000:00000:00900:09000:09000:', 'CLOCK6': '00000:00000:00900:00900:00900:', 'CLOCK5': '00000:00000:00900:00090:00090:', 'CLOCK4': '00000:00000:00900:00099:00000:', 'CLOCK3': '00000:00000:00999:00000:00000:', 'CLOCK2': '00000:00099:00900:00000:00000:', 'CLOCK1': '00090:00090:00900:00000:00000:', 'ARROW_N': '00900:09990:90909:00900:00900:', 'ARROW_NE': '00999:00099:00909:09000:90000:', 'ARROW_E': '00900:00090:99999:00090:00900:', 'ARROW_SE': '90000:09000:00909:00099:00999:', 'ARROW_S': '00900:00900:90909:09990:00900:', 'ARROW_SW': '00009:00090:90900:99000:99900:', 'ARROW_W': '00900:09000:99999:09000:00900:', 'ARROW_NW': '99900:99000:90900:00090:00009:', 'TRIANGLE': '00000:00900:09090:99999:00000:', 'TRIANGLE_LEFT': '90000:99000:90900:90090:99999:', 'CHESSBOARD': '09090:90909:09090:90909:09090:', 'DIAMOND': '00900:09090:90009:09090:00900:', 'DIAMOND_SMALL': '00000:00900:09090:00900:00000:', 'SQUARE': '99999:90009:90009:90009:99999:', 'SQUARE_SMALL': '00000:09990:09090:09990:00000:', 'RABBIT': '90900:90900:99990:99090:99990:', 'COW': '90009:90009:99999:09990:00900:', 'MUSIC_CROTCHET': '00900:00900:00900:99900:99900:', 'MUSIC_QUAVER': '00900:00990:00909:99900:99900:', 'MUSIC_QUAVERS': '09999:09009:09009:99099:99099:', 'PITCHFORK': '90909:90909:99999:00900:00900:', 'XMAS': '00900:09990:00900:09990:99999:', 'PACMAN': '09999:99090:99900:99990:09999:', 'TARGET': '00900:09990:99099:09990:00900:', 'TSHIRT': '99099:99999:09990:09990:09990:', 'ROLLERSKATE': '00099:00099:99999:99999:09090:', 'DUCK': '09900:99900:09999:09990:00000:', 'HOUSE': '00900:09990:99999:09990:09090:', 'TORTOISE': '00000:09990:99999:09090:00000:', 'BUTTERFLY': '99099:99999:00900:99999:99099:', 'STICKFIGURE': '00900:99999:00900:09090:90009:', 'GHOST': '99999:90909:99999:99999:90909:', 'SWORD': '00900:00900:00900:09990:00900:', 'GIRAFFE': '99000:09000:09000:09990:09090:', 'SKULL': '09990:90909:99999:09990:09990:', 'UMBRELLA': '09990:99999:00900:90900:09900:', 'SNAKE': '99000:99099:09090:09990:00000:'} image_tuple_lookup = {'ALL_CLOCKS': ['CLOCK12', 'CLOCK11', 'CLOCK10', 'CLOCK9', 'CLOCK8', 'CLOCK7', 'CLOCK6', 'CLOCK5', 'CLOCK4', 'CLOCK3', 'CLOCK2', 'CLOCK1'], 'ALL_ARROWS': ['ARROW_N', 'ARROW_NE', 'ARROW_E', 'ARROW_SE', 'ARROW_S', 'ARROW_SW', 'ARROW_W', 'ARROW_NW']} alphabet = b'\x00\x00\x00\x00\x00\x08\x08\x08\x00\x08\nJ@\x00\x00\n_\xea_\xea\x0e\xd9.\xd3n\x192D\x893\x0c\x92L\x92M\x08\x08\x00\x00\x00\x04\x88\x08\x08\x04\x08\x04\x84\x84\x88\x00\nD\x8a@\x00\x04\x8e\xc4\x80\x00\x00\x00\x04\x88\x00\x00\x0e\xc0\x00\x00\x00\x00\x08\x00\x01"D\x88\x10\x0c\x92RRL\x04\x8c\x84\x84\x8e\x1c\x82L\x90\x1e\x1e\xc2D\x92L\x06\xcaR_\xe2\x1f\xf0\x1e\xc1>\x02D\x8e\xd1.\x1f\xe2D\x88\x10\x0e\xd1.\xd1.\x0e\xd1.\xc4\x88\x00\x08\x00\x08\x00\x00\x04\x80\x04\x88\x02D\x88\x04\x82\x00\x0e\xc0\x0e\xc0\x08\x04\x82D\x88\x0e\xd1&\xc0\x04\x0e\xd15\xb3l\x0c\x92^\xd2R\x1c\x92\\\x92\\\x0e\xd0\x10\x10\x0e\x1c\x92RR\\\x1e\xd0\x1c\x90\x1e\x1e\xd0\x1c\x90\x10\x0e\xd0\x13q.\x12R^\xd2R\x1c\x88\x08\x08\x1c\x1f\xe2BRL\x12T\x98\x14\x92\x10\x10\x10\x10\x1e\x11;u\xb11\x1195\xb3q\x0c\x92RRL\x1c\x92\\\x90\x10\x0c\x92RL\x86\x1c\x92\\\x92Q\x0e\xd0\x0c\x82\\\x1f\xe4\x84\x84\x84\x12RRRL\x1111*D\x1115\xbbq\x12RL\x92R\x11*D\x84\x84\x1e\xc4\x88\x10\x1e\x0e\xc8\x08\x08\x0e\x10\x08\x04\x82A\x0e\xc2BBN\x04\x8a@\x00\x00\x00\x00\x00\x00\x1f\x08\x04\x80\x00\x00\x00\x0e\xd2RO\x10\x10\x1c\x92\\\x00\x0e\xd0\x10\x0e\x02BN\xd2N\x0c\x92\\\x90\x0e\x06\xc8\x1c\x88\x08\x0e\xd2N\xc2L\x10\x10\x1c\x92R\x08\x00\x08\x08\x08\x02@\x02BL\x10\x14\x98\x14\x92\x08\x08\x08\x08\x06\x00\x1bu\xb11\x00\x1c\x92RR\x00\x0c\x92RL\x00\x1c\x92\\\x90\x00\x0e\xd2N\xc2\x00\x0e\xd0\x10\x10\x00\x06\xc8\x04\x98\x08\x08\x0e\xc8\x07\x00\x12RRO\x00\x111*D\x00\x1115\xbb\x00\x12L\x8c\x92\x00\x11*D\x98\x00\x1e\xc4\x88\x1e\x06\xc4\x8c\x84\x86\x08\x08\x08\x08\x08\x18\x08\x0c\x88\x18\x00\x00\x0c\x83`' ascii_start = 32 ascii_end = 126 space_between_letters_width = 1 whitespace_width = 3 led_height = 5 led_width = 5 brightness_min = 0 brightness_max = 9 max_temperature = 125 min_temperature = -55 max_light_level = 255 min_light_level = 0 max_acceleration = 1023 min_acceleration = -1023 gestures = set(['up', 'down', 'left', 'right', 'face up', 'face down', 'freefall', '3g', '6g', '8g', 'shake']) brightness_err = 'brightness out of bounds' copy_err_message = 'please call copy function first' incorr_image_size = 'image data is incorrect size' index_err = 'index out of bounds' not_implemented_error = 'This method is not implemented by the simulator' unsupported_add_type = 'unsupported types for __add__:' same_size_err = 'images must be the same size' invalid_gesture_err = 'invalid gesture' invalid_accel_err = 'invalid acceleration' invalid_light_level_err = 'invalid light level' invalid_temperature_err = 'invalid temperature' time_delay = 0.03 expected_input_buttons = ['button_a', 'button_b'] expected_input_accel = {'motion_x': 'x', 'motion_y': 'y', 'motion_z': 'z'} expected_input_light = 'light' expected_input_temp = 'temperature' expected_input_gesture = 'gesture'
class Solution: def maximumUniqueSubarray(self, nums: List[int]) -> int: result, currentSum, hashSet, start = 0, 0, set(), 0 for end in range(len(nums)): while nums[end] in hashSet: hashSet.remove(nums[start]) currentSum -= nums[start] start += 1 currentSum += nums[end] hashSet.add(nums[end]) result = max(result, currentSum) return result
class Solution: def maximum_unique_subarray(self, nums: List[int]) -> int: (result, current_sum, hash_set, start) = (0, 0, set(), 0) for end in range(len(nums)): while nums[end] in hashSet: hashSet.remove(nums[start]) current_sum -= nums[start] start += 1 current_sum += nums[end] hashSet.add(nums[end]) result = max(result, currentSum) return result
""" Instruction: - write a proper docstring that includes any exception conditions - add two more meaningful testcases to the doctests part of each function - write the body of the function where a marker "YOUR CODE HERE" appear To test these functions, use the following command: python3 -m doctest week5_inclass_ex.py """ # return the sum all the digits of n. def sum_digits(n): """Calculate the sum of all digits in the input, n Args: n (int): input integer >= 0 Returns: (int): the sum of all digits in n Raises: ValueError: if n is negative TypeError: if n is not an integer OverflowError: if n>1e30 Examples: >>> sum_digits(10) # 1 + 0 = 1 1 >>> sum_digits(4224) # 4 + 2 + 2 + 4 = 12 12 >>> sum_digits(0) 0 >>> sum_digits(123455) 23 >>> sum_digits("hello") Traceback (most recent call last): ... Exception: n is not an integer """ if instant(n, int) == False: raise TypeError('n is not integer') result = 0 while n > 0: result += n % 10 n = n // 10 return result # return true if n has two eights in a row. def double_eights(n): """Determine if the input integer, n, contains two eight numbers consecutively Args: n (int): input integer >= 0 Returns: (bool): True if two consecutive B is detected in n, returns False, otherwise Raises: ValueError: if n is negative TypeError: if n is not an integer OverflowError: if n > 1e30 Examples: >>> double_eights(8) False >>> double_eights(88) True >>> double_eights(346672) False >>> double_eights(28.88) Traceback (most recent call last): ... TypeError: n is not an integer """ if isinstance(n, int) == False: raise TypeError('n is not integer') if n < 0: raise ValueError('n is negative') if n > 1e30: raise OverflowError('n is too large') result = False state = 0 while n>0: digit = n % 10 if state == 0: if digit == 0: state = 1 else: state = 0 elif state == 1: if digit == 8: state =2 return True else: state = 0 n = n // 10 return False # return x*x + y*y, where x and y are the two largest members of the positive numbers a, b, and c. def two_of_three(a, b, c): """ *** write a proper docstring here *** >>> two_of_three(1, 2, 3) 13 >>> two_of_three(5, 3, 1) 34 *** add two more testcases here *** """ # *** YOUR CODE HERE *** return a # return the largest factor of n that is smaller than n. def largest_factor(n): """ *** write a proper docstring here *** >>> largest_factor(15) # factors are 1, 3, 5 5 >>> largest_factor(13) # factor is 1 since 13 is prime 1 *** add two more testcases here *** """ # *** YOUR CODE HERE *** return n """ 1. Pick a positive integer n as the start. 2. If n is even, divide it by 2. 3. If n is odd, multiply it by 3 and add 1. 4. Continue this process until n is 1. The number n will travel up and down but eventually end at 1. This sequence of values of n is often called a Hailstone sequence, Write a function that takes a single argument with formal parameter name n, prints out the hailstone sequence starting at n, and returns the number of steps in the sequence: """ def hailstone(n): """ *** write a proper docstring here *** >>> a = hailstone(10) 10 5 16 8 4 2 1 >>> a 7 *** add two more testcases here *** """ # *** YOUR CODE HERE *** return n """ For the following problems, you have to write at least 5 testcases of your own. """ # return True if year is a leap year, otherwise return False. def is_leap_year(year): """ *** write a proper docstring here *** *** add five more testcases here *** """ # *** YOUR CODE HERE *** return False # return True if the intervals [a,b] and [c,d] intersect and False otherwise. def interval_intersect(a, b, c, d): """ *** write a proper docstring here *** *** add five more testcases here *** """ # *** YOUR CODE HERE *** return False # return the smaller root of a quadratic equation a*x^2 + b*x + c = 0 if one exists. If the equation has no real solution, print the message "Error: No real solutions" and simply return. def smaller_root(a, b, c): """ *** write a proper docstring here *** *** add five more testcases here *** """ # *** YOUR CODE HERE *** return a
""" Instruction: - write a proper docstring that includes any exception conditions - add two more meaningful testcases to the doctests part of each function - write the body of the function where a marker "YOUR CODE HERE" appear To test these functions, use the following command: python3 -m doctest week5_inclass_ex.py """ def sum_digits(n): """Calculate the sum of all digits in the input, n Args: n (int): input integer >= 0 Returns: (int): the sum of all digits in n Raises: ValueError: if n is negative TypeError: if n is not an integer OverflowError: if n>1e30 Examples: >>> sum_digits(10) # 1 + 0 = 1 1 >>> sum_digits(4224) # 4 + 2 + 2 + 4 = 12 12 >>> sum_digits(0) 0 >>> sum_digits(123455) 23 >>> sum_digits("hello") Traceback (most recent call last): ... Exception: n is not an integer """ if instant(n, int) == False: raise type_error('n is not integer') result = 0 while n > 0: result += n % 10 n = n // 10 return result def double_eights(n): """Determine if the input integer, n, contains two eight numbers consecutively Args: n (int): input integer >= 0 Returns: (bool): True if two consecutive B is detected in n, returns False, otherwise Raises: ValueError: if n is negative TypeError: if n is not an integer OverflowError: if n > 1e30 Examples: >>> double_eights(8) False >>> double_eights(88) True >>> double_eights(346672) False >>> double_eights(28.88) Traceback (most recent call last): ... TypeError: n is not an integer """ if isinstance(n, int) == False: raise type_error('n is not integer') if n < 0: raise value_error('n is negative') if n > 1e+30: raise overflow_error('n is too large') result = False state = 0 while n > 0: digit = n % 10 if state == 0: if digit == 0: state = 1 else: state = 0 elif state == 1: if digit == 8: state = 2 return True else: state = 0 n = n // 10 return False def two_of_three(a, b, c): """ *** write a proper docstring here *** >>> two_of_three(1, 2, 3) 13 >>> two_of_three(5, 3, 1) 34 *** add two more testcases here *** """ return a def largest_factor(n): """ *** write a proper docstring here *** >>> largest_factor(15) # factors are 1, 3, 5 5 >>> largest_factor(13) # factor is 1 since 13 is prime 1 *** add two more testcases here *** """ return n '\n1. Pick a positive integer n as the start.\n2. If n is even, divide it by 2.\n3. If n is odd, multiply it by 3 and add 1.\n4. Continue this process until n is 1.\n\nThe number n will travel up and down but eventually end at 1. This sequence of values of n is often called a Hailstone sequence, Write a function that takes a single argument with formal parameter name n, prints out the hailstone sequence starting at n, and returns the number of steps in the sequence:\n' def hailstone(n): """ *** write a proper docstring here *** >>> a = hailstone(10) 10 5 16 8 4 2 1 >>> a 7 *** add two more testcases here *** """ return n '\nFor the following problems, you have to write at least 5 testcases of your own.\n' def is_leap_year(year): """ *** write a proper docstring here *** *** add five more testcases here *** """ return False def interval_intersect(a, b, c, d): """ *** write a proper docstring here *** *** add five more testcases here *** """ return False def smaller_root(a, b, c): """ *** write a proper docstring here *** *** add five more testcases here *** """ return a
""" TCF CLI VERSION """ __version__ = '0.1.1'
""" TCF CLI VERSION """ __version__ = '0.1.1'
class Solution: def specialArray(self, nums): length = len(nums) rng = range(length) # Start from end. (todo, try starting from beginning) for i in range(1, length+1): # keep track of matches (>= i) match = 0 for idx in rng: n = nums[idx] if n >= i: match = match + 1 # bail when matches are > i. if match > i: break continue # Bail if not enough elements left. if match + length - idx < i: break # return as soon as we find the match. if match == i: return i return -1
class Solution: def special_array(self, nums): length = len(nums) rng = range(length) for i in range(1, length + 1): match = 0 for idx in rng: n = nums[idx] if n >= i: match = match + 1 if match > i: break continue if match + length - idx < i: break if match == i: return i return -1
""" Batch processing exceptions """ class SQSBatchProcessingError(Exception): """When at least one message within a batch could not be processed"""
""" Batch processing exceptions """ class Sqsbatchprocessingerror(Exception): """When at least one message within a batch could not be processed"""
numbers = [300, 2, 12, 44, 1, 1, 4, 10, 7, 1, 78, 123, 55] result = [el for num, el in enumerate(numbers) if numbers[num - 1] < numbers[num]] print(result)
numbers = [300, 2, 12, 44, 1, 1, 4, 10, 7, 1, 78, 123, 55] result = [el for (num, el) in enumerate(numbers) if numbers[num - 1] < numbers[num]] print(result)
# Create a word-count method # Function that returns number of words in a string def count_words(string): # Split the string into words words = string.split() # Return the number of words return len(words) # Create a new feature word_count ted['word_count'] = ted['transcript'].apply(count_words) # Print the average word count of the talks print(ted['word_count'].mean())
def count_words(string): words = string.split() return len(words) ted['word_count'] = ted['transcript'].apply(count_words) print(ted['word_count'].mean())
class DiskError(RuntimeError): pass class SaveError(DiskError): pass class LoadError(DiskError): pass class RenameError(DiskError): pass class PathDoesNotExistError(DiskError): pass class PathExistsError(DiskError): pass class NotAFileError(FileNotFoundError): pass class DirectoryNotFoundError(NotADirectoryError): pass
class Diskerror(RuntimeError): pass class Saveerror(DiskError): pass class Loaderror(DiskError): pass class Renameerror(DiskError): pass class Pathdoesnotexisterror(DiskError): pass class Pathexistserror(DiskError): pass class Notafileerror(FileNotFoundError): pass class Directorynotfounderror(NotADirectoryError): pass
RECOGNIZE = { " | | ": '1', " _ _||_ ": '2', " _ _| _| ": '3', " |_| | ": '4', " _ |_ _| ": '5', " _ |_ |_| ": '6', " _ | | ": '7', " _ |_||_| ": '8', " _ |_| _| ": '9', " _ | ||_| ": '0', } def convert(input_grid): if input_grid == [] or len(input_grid) % 4 != 0: raise ValueError(r".+") numbers = [] for i in range(0, len(input_grid), 4): numbers.append(four_rows_to_numbers(input_grid[i:i + 4])) return ",".join(numbers) def four_rows_to_numbers(rows): if any(r == "" or len(r) % 3 != 0 for r in rows): raise ValueError(r".+") numbers = [] for i in range(0, len(rows[0]), 3): number = rows[0][i:i + 3] + rows[1][i:i + 3] + \ rows[2][i:i + 3] + rows[3][i:i + 3] numbers.append(RECOGNIZE.get(number, "?")) return "".join(numbers)
recognize = {' | | ': '1', ' _ _||_ ': '2', ' _ _| _| ': '3', ' |_| | ': '4', ' _ |_ _| ': '5', ' _ |_ |_| ': '6', ' _ | | ': '7', ' _ |_||_| ': '8', ' _ |_| _| ': '9', ' _ | ||_| ': '0'} def convert(input_grid): if input_grid == [] or len(input_grid) % 4 != 0: raise value_error('.+') numbers = [] for i in range(0, len(input_grid), 4): numbers.append(four_rows_to_numbers(input_grid[i:i + 4])) return ','.join(numbers) def four_rows_to_numbers(rows): if any((r == '' or len(r) % 3 != 0 for r in rows)): raise value_error('.+') numbers = [] for i in range(0, len(rows[0]), 3): number = rows[0][i:i + 3] + rows[1][i:i + 3] + rows[2][i:i + 3] + rows[3][i:i + 3] numbers.append(RECOGNIZE.get(number, '?')) return ''.join(numbers)
class CianException(Exception): """Base class for exceptions""" class CianStatusException(CianException): """Incorrect status in response from cian server""" def __init__(self, status): super().__init__(f"Status in response from cian is not 'ok'. Status: {status}")
class Cianexception(Exception): """Base class for exceptions""" class Cianstatusexception(CianException): """Incorrect status in response from cian server""" def __init__(self, status): super().__init__(f"Status in response from cian is not 'ok'. Status: {status}")
def cap_text(text): """ Input a String Output the capitalized String """ return text.title()
def cap_text(text): """ Input a String Output the capitalized String """ return text.title()
def foo(**args): pass a = {} b = {} foo(**a)
def foo(**args): pass a = {} b = {} foo(**a)
class Shield: def __init__(self): self.water_level = 0 self.switch_state = 0 def tick(self, water_level, switch_state, action): return action
class Shield: def __init__(self): self.water_level = 0 self.switch_state = 0 def tick(self, water_level, switch_state, action): return action
# 1046. Last Stone Weight - LeetCode Contest # https://leetcode.com/contest/weekly-contest-137/problems/last-stone-weight/ class Solution: def lastStoneWeight(self, stones) -> int: stones = sorted(stones,reverse=True) while len(stones) > 1: first_stone = stones.pop(0) second_stone = stones.pop(0) if first_stone > second_stone: remains = first_stone - second_stone i = 0 while i < len(stones) and stones[i] > remains: i += 1 stones.insert(i,remains) if len(stones) == 1: return stones[0] else: return 0 s = Solution() print(s.lastStoneWeight([2,7,4,1,8,1]))
class Solution: def last_stone_weight(self, stones) -> int: stones = sorted(stones, reverse=True) while len(stones) > 1: first_stone = stones.pop(0) second_stone = stones.pop(0) if first_stone > second_stone: remains = first_stone - second_stone i = 0 while i < len(stones) and stones[i] > remains: i += 1 stones.insert(i, remains) if len(stones) == 1: return stones[0] else: return 0 s = solution() print(s.lastStoneWeight([2, 7, 4, 1, 8, 1]))
class Node(object): def __init__(self, key, data=None, result=None): self.key = key self.data = data self.result = [] if result is not None: self.result.append(result) self.children = dict() class Trie(object): """ Trie Data Structure Data Structure for saving tokens with morphological analysis results by Mecab-ko-dic """ def __init__(self): self.head = Node(key=None) def __getitem__(self, string): cur_node = self.head for char_key in string: if char_key in cur_node.children: cur_node = cur_node.children[char_key] else: return None if cur_node.data is not None: return cur_node return None def __setitem__(self, string, result): cur_node = self.head for char_key in string: if char_key not in cur_node.children: cur_node.children[char_key] = Node(char_key) cur_node = cur_node.children[char_key] cur_node.data = string if result not in cur_node.result: cur_node.result.append(result)
class Node(object): def __init__(self, key, data=None, result=None): self.key = key self.data = data self.result = [] if result is not None: self.result.append(result) self.children = dict() class Trie(object): """ Trie Data Structure Data Structure for saving tokens with morphological analysis results by Mecab-ko-dic """ def __init__(self): self.head = node(key=None) def __getitem__(self, string): cur_node = self.head for char_key in string: if char_key in cur_node.children: cur_node = cur_node.children[char_key] else: return None if cur_node.data is not None: return cur_node return None def __setitem__(self, string, result): cur_node = self.head for char_key in string: if char_key not in cur_node.children: cur_node.children[char_key] = node(char_key) cur_node = cur_node.children[char_key] cur_node.data = string if result not in cur_node.result: cur_node.result.append(result)
#!/usr/bin/python # tuple_one.py print ((3 + 7)) print ((3 + 7, ))
print(3 + 7) print((3 + 7,))
# -*- coding: utf-8 -*- """ Created on Sun Jan 6 23:48:22 2019 gnomesort example from Python Algorithms by Magnus Lie Hetland """ def gnomesort(seq): i =0 while i < len(seq): if i == 0 or seq[i-1] <= seq[i]: i += 1 else: seq[i], seq[i-1] = seq[i-1], seq[i] i -= 1
""" Created on Sun Jan 6 23:48:22 2019 gnomesort example from Python Algorithms by Magnus Lie Hetland """ def gnomesort(seq): i = 0 while i < len(seq): if i == 0 or seq[i - 1] <= seq[i]: i += 1 else: (seq[i], seq[i - 1]) = (seq[i - 1], seq[i]) i -= 1
""" :testcase_name factorial :author Sriteja Kummita :script_type Class :description Class, RecursiveFactorial contains a function that calculates factorial of a given number recursively """ class RecursiveFactorial: def factorial(self, n): if n <= 1: return 1 return n * self.factorial(n - 1) if __name__ == '__main__': obj = RecursiveFactorial() obj.factorial(5)
""" :testcase_name factorial :author Sriteja Kummita :script_type Class :description Class, RecursiveFactorial contains a function that calculates factorial of a given number recursively """ class Recursivefactorial: def factorial(self, n): if n <= 1: return 1 return n * self.factorial(n - 1) if __name__ == '__main__': obj = recursive_factorial() obj.factorial(5)
# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. pretrained_models = { "panns_cnn6-32k": { 'url': 'https://paddlespeech.bj.bcebos.com/cls/inference_model/panns_cnn6_static.tar.gz', 'md5': 'da087c31046d23281d8ec5188c1967da', 'cfg_path': 'panns.yaml', 'model_path': 'inference.pdmodel', 'params_path': 'inference.pdiparams', 'label_file': 'audioset_labels.txt', }, "panns_cnn10-32k": { 'url': 'https://paddlespeech.bj.bcebos.com/cls/inference_model/panns_cnn10_static.tar.gz', 'md5': '5460cc6eafbfaf0f261cc75b90284ae1', 'cfg_path': 'panns.yaml', 'model_path': 'inference.pdmodel', 'params_path': 'inference.pdiparams', 'label_file': 'audioset_labels.txt', }, "panns_cnn14-32k": { 'url': 'https://paddlespeech.bj.bcebos.com/cls/inference_model/panns_cnn14_static.tar.gz', 'md5': 'ccc80b194821274da79466862b2ab00f', 'cfg_path': 'panns.yaml', 'model_path': 'inference.pdmodel', 'params_path': 'inference.pdiparams', 'label_file': 'audioset_labels.txt', }, }
pretrained_models = {'panns_cnn6-32k': {'url': 'https://paddlespeech.bj.bcebos.com/cls/inference_model/panns_cnn6_static.tar.gz', 'md5': 'da087c31046d23281d8ec5188c1967da', 'cfg_path': 'panns.yaml', 'model_path': 'inference.pdmodel', 'params_path': 'inference.pdiparams', 'label_file': 'audioset_labels.txt'}, 'panns_cnn10-32k': {'url': 'https://paddlespeech.bj.bcebos.com/cls/inference_model/panns_cnn10_static.tar.gz', 'md5': '5460cc6eafbfaf0f261cc75b90284ae1', 'cfg_path': 'panns.yaml', 'model_path': 'inference.pdmodel', 'params_path': 'inference.pdiparams', 'label_file': 'audioset_labels.txt'}, 'panns_cnn14-32k': {'url': 'https://paddlespeech.bj.bcebos.com/cls/inference_model/panns_cnn14_static.tar.gz', 'md5': 'ccc80b194821274da79466862b2ab00f', 'cfg_path': 'panns.yaml', 'model_path': 'inference.pdmodel', 'params_path': 'inference.pdiparams', 'label_file': 'audioset_labels.txt'}}
""" Enumerates the Resource Description Framework and XML namespaces in use in ISDE. Each class variable is a `dict` with two keys: - _ns_: The preferred namespace prefix for the vocabulary as a `str` - _url_: The URL to the vocabulary as a `str` """ class RDFNamespaces: """ Resource Description Framework namespaces in use in the Irish Spatial Data Exchange Each class variable is a `dict` with two keys: - _ns_: The preferred namespace prefix for the vocabulary as a `str` - _url_: The URL to the vocabulary as a `str` """ DCAT: dict = {'ns': 'dcat', 'url': 'http://www.w3.org/ns/dcat#'} """ W3C Data Catalog vocabulary """ DCT: dict = {'ns': 'dct', 'url': 'http://purl.org/dc/terms/'} """ Dublin Core Terms """ GSP: dict = {'ns': 'gsp', 'url': 'http://www.opengis.net/ont/geosparql#'} """ Open Geospatial Consortium GeoSPARQL ontology """ LOCN: dict = {'ns': 'locn', 'url': 'http://www.w3.org/ns/locn#'} """ W3C Interoperable Solutions for Administrations (ISA) Programme Location Core Vocabulary """ RDF: dict = {'ns': 'rdf', 'url': 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'} """ W3C Resource Description Framework concepts vocabulary """ RDFS: dict = {'ns': 'rdfs', 'url': 'http://www.w3.org/2000/01/rdf-schema#'} """ W3C Resource Description Framework Schema vocabulary """ SDO: dict = {'ns': 'sdo', 'url': 'https://schema.org/'} """ Schema.org vocab """ SKOS: dict = {'ns': 'skos', 'url': 'http://www.w3.org/2004/02/skos/core#'} """ Simple Knowledge Organization System vocabulary """
""" Enumerates the Resource Description Framework and XML namespaces in use in ISDE. Each class variable is a `dict` with two keys: - _ns_: The preferred namespace prefix for the vocabulary as a `str` - _url_: The URL to the vocabulary as a `str` """ class Rdfnamespaces: """ Resource Description Framework namespaces in use in the Irish Spatial Data Exchange Each class variable is a `dict` with two keys: - _ns_: The preferred namespace prefix for the vocabulary as a `str` - _url_: The URL to the vocabulary as a `str` """ dcat: dict = {'ns': 'dcat', 'url': 'http://www.w3.org/ns/dcat#'} '\n W3C Data Catalog vocabulary\n ' dct: dict = {'ns': 'dct', 'url': 'http://purl.org/dc/terms/'} '\n Dublin Core Terms\n ' gsp: dict = {'ns': 'gsp', 'url': 'http://www.opengis.net/ont/geosparql#'} '\n Open Geospatial Consortium GeoSPARQL ontology\n ' locn: dict = {'ns': 'locn', 'url': 'http://www.w3.org/ns/locn#'} '\n W3C Interoperable Solutions for Administrations (ISA) Programme Location Core Vocabulary\n ' rdf: dict = {'ns': 'rdf', 'url': 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'} '\n W3C Resource Description Framework concepts vocabulary\n ' rdfs: dict = {'ns': 'rdfs', 'url': 'http://www.w3.org/2000/01/rdf-schema#'} '\n W3C Resource Description Framework Schema vocabulary\n ' sdo: dict = {'ns': 'sdo', 'url': 'https://schema.org/'} '\n Schema.org vocab\n ' skos: dict = {'ns': 'skos', 'url': 'http://www.w3.org/2004/02/skos/core#'} '\n Simple Knowledge Organization System vocabulary\n '
class FuzzyOperatorSizeException(Exception): """ An Exception which indicates that the associated matrix of the operator has invalid shape. """ def __init__(self, message: str = "Only squared matrices are valid to represent a fuzzy operator."): super().__init__(message)
class Fuzzyoperatorsizeexception(Exception): """ An Exception which indicates that the associated matrix of the operator has invalid shape. """ def __init__(self, message: str='Only squared matrices are valid to represent a fuzzy operator.'): super().__init__(message)
"""Top-level package for ERD Generator.""" __author__ = """Datateer""" __email__ = 'dev@datateer.com' __version__ = '__version__ = 0.1.0'
"""Top-level package for ERD Generator.""" __author__ = 'Datateer' __email__ = 'dev@datateer.com' __version__ = '__version__ = 0.1.0'
class Solution: def maxDistance(self, position: List[int], m: int) -> int: self.position = sorted(position) low, high = 0, self.position[-1] - self.position[0] while low <= high: mid = (high+low) // 2 if self.check(self.position, m, mid): low = mid + 1 else: high = mid - 1 if self.check(self.position, m, high): return high else: return high - 1 def check(self, pos, num, gap): count = 1 prev = pos[0] for curr in pos: if (curr - prev) >= gap: count += 1 prev = curr if count == num: return True return False
class Solution: def max_distance(self, position: List[int], m: int) -> int: self.position = sorted(position) (low, high) = (0, self.position[-1] - self.position[0]) while low <= high: mid = (high + low) // 2 if self.check(self.position, m, mid): low = mid + 1 else: high = mid - 1 if self.check(self.position, m, high): return high else: return high - 1 def check(self, pos, num, gap): count = 1 prev = pos[0] for curr in pos: if curr - prev >= gap: count += 1 prev = curr if count == num: return True return False
l = int(input()) ar = input().split() for size in range(l): ar[size] = int(ar[size]) def shift(plist, index): temp = plist[index] if plist[index-1] > plist[index]: plist[index] = plist[index-1] plist[index-1] = temp if index - 2 == -1: pass else: shift(plist, index-1) return plist for listing in range(1,l): string = '' ar = shift(ar, listing) for size2 in range(l): string = string + str(ar[size2]) + ' ' print(string)
l = int(input()) ar = input().split() for size in range(l): ar[size] = int(ar[size]) def shift(plist, index): temp = plist[index] if plist[index - 1] > plist[index]: plist[index] = plist[index - 1] plist[index - 1] = temp if index - 2 == -1: pass else: shift(plist, index - 1) return plist for listing in range(1, l): string = '' ar = shift(ar, listing) for size2 in range(l): string = string + str(ar[size2]) + ' ' print(string)
SERPRO_API_GATEWAY = "https://apigateway.serpro.gov.br" SERPRO_PUBLIC_JWKS = "https://d-biodata.estaleiro.serpro.gov.br/api/v1/jwks" AUTHENTICATE_ENDPOINT = "/token" # biodata endpoints BIODATA_TOKEN_ENDPOINT = "/biodata/v1/token" JWT_AUDIENCE = '35284162000183'
serpro_api_gateway = 'https://apigateway.serpro.gov.br' serpro_public_jwks = 'https://d-biodata.estaleiro.serpro.gov.br/api/v1/jwks' authenticate_endpoint = '/token' biodata_token_endpoint = '/biodata/v1/token' jwt_audience = '35284162000183'
def div(a, b): if(b != 0): return a/b else: print("cannot divide by 0") return def add(a,b): return a+b
def div(a, b): if b != 0: return a / b else: print('cannot divide by 0') return def add(a, b): return a + b
class Graph(object): def __init__(self, n): self._n = n
class Graph(object): def __init__(self, n): self._n = n
ALPHABET = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/' def base64_to_base10(s): return sum(ALPHABET.index(j)*64**i for i,j in enumerate(s[::-1]))
alphabet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/' def base64_to_base10(s): return sum((ALPHABET.index(j) * 64 ** i for (i, j) in enumerate(s[::-1])))
class Solution: def numIdenticalPairs(self, nums: List[int]) -> int: #create counter visited = {} counter = 0 #loop through nums for i in nums: if i in visited: counter += visited[i] visited[i] += 1 else: visited[i] = 1 return counter
class Solution: def num_identical_pairs(self, nums: List[int]) -> int: visited = {} counter = 0 for i in nums: if i in visited: counter += visited[i] visited[i] += 1 else: visited[i] = 1 return counter
n= int(input()) line1 = sum([int(i) for i in input().split()]) line2 = sum([int(i) for i in input().split()]) line3 = sum([int(i) for i in input().split()]) first = line1-line2 second = line2-line3 print(first) print(second)
n = int(input()) line1 = sum([int(i) for i in input().split()]) line2 = sum([int(i) for i in input().split()]) line3 = sum([int(i) for i in input().split()]) first = line1 - line2 second = line2 - line3 print(first) print(second)
#!/usr/bin/env python3 #Create and print string people = "sapiens, erectus, neanderthalensis" print(people) #Split the string into individual words species = people.split(', ') print(species) #Sort alphabetically print(sorted(species)) #Sort be length of string and print print(sorted(species,key=len))
people = 'sapiens, erectus, neanderthalensis' print(people) species = people.split(', ') print(species) print(sorted(species)) print(sorted(species, key=len))
y = int(input("Digite um numero: ")) x = int(input("Digite um numero: ")) linha = 1 coluna = 1 while linha <= x: while coluna <= y: print(linha * coluna, end="\t") coluna += 1 linha += 1 print() coluna = 1
y = int(input('Digite um numero: ')) x = int(input('Digite um numero: ')) linha = 1 coluna = 1 while linha <= x: while coluna <= y: print(linha * coluna, end='\t') coluna += 1 linha += 1 print() coluna = 1
class DataGeneratorCfg: n_samples = 300 centers = [[-1, 0.5], [1, 0], [1,1]] cluster_std = 0.5 random_state = None class APCfg: n_iterations = 300 damping = 0.8 preference = -50 #'MEDIAN', 'MINIMUM' or a value class MainCfg: generate_new_data=True # Saves it to data folder show_iterations=False # Showing every iteration on figure outfilename="output/result.png" # None for not saving outgifname="output/result.gif" # None for not saving
class Datageneratorcfg: n_samples = 300 centers = [[-1, 0.5], [1, 0], [1, 1]] cluster_std = 0.5 random_state = None class Apcfg: n_iterations = 300 damping = 0.8 preference = -50 class Maincfg: generate_new_data = True show_iterations = False outfilename = 'output/result.png' outgifname = 'output/result.gif'
"Implementing stack using python lists" class UnderFlowError(Exception): pass class OverFlowError(Exception): pass class Stack: def __init__(self, max_size): self.s = [] self.top = -1 self.max_size = max_size @property def stack_empty(self): return self.top == -1 def push(self, x): if self.top == self.max_size - 1: raise OverFlowError self.top += 1 self.s.append(x) def pop(self): if self.stack_empty: raise UnderFlowError self.top -= 1 return self.s.pop()
"""Implementing stack using python lists""" class Underflowerror(Exception): pass class Overflowerror(Exception): pass class Stack: def __init__(self, max_size): self.s = [] self.top = -1 self.max_size = max_size @property def stack_empty(self): return self.top == -1 def push(self, x): if self.top == self.max_size - 1: raise OverFlowError self.top += 1 self.s.append(x) def pop(self): if self.stack_empty: raise UnderFlowError self.top -= 1 return self.s.pop()
# #!/usr/bin/env python # encoding: utf-8 # -------------------------------------------------------------------------------------------------------------------- # # Name: merging_two_dictionaries.py # Version: 1.0 # # Summary: Merging two dictionaries. # # Author: Alexsander Lopes Camargos # Author-email: alcamargos@vivaldi.net # # License: MIT # # -------------------------------------------------------------------------------------------------------------------- """ Merging Two Dictionaries While in Python 2, we used the update() method to merge two dictionaries; Python 3 made the process even simpler. In the script given below, two dictionaries are merged. Values from the second dictionary are used in case of intersections. """ dict_1 = {'apple': 9, 'banana': 6, 'avocado': 6} dict_2 = {'banana': 4, 'orange': 8, 'pear': 8} combined_dict = {**dict_1, **dict_2} print(combined_dict)
""" Merging Two Dictionaries While in Python 2, we used the update() method to merge two dictionaries; Python 3 made the process even simpler. In the script given below, two dictionaries are merged. Values from the second dictionary are used in case of intersections. """ dict_1 = {'apple': 9, 'banana': 6, 'avocado': 6} dict_2 = {'banana': 4, 'orange': 8, 'pear': 8} combined_dict = {**dict_1, **dict_2} print(combined_dict)
# output: ok a, b, c, d, e, f = 1000, 1000, 1000, 1000, 1000, 1000 g, h, i, j, k, l = 2, 1000, 1000, 1000, 1000, 1000 a = a + 1 b = b - 2 c = c * 3 d = d / 4 e = e // 5 f = f % 6 g = g ** 7 h = h << 8 i = i >> 9 j = j & 10 k = k ^ 11 l = l | 12 assert a == 1001 assert b == 998 assert c == 3000 assert d == 250 assert e == 200 assert f == 4 assert g == 128 assert h == 256000 assert i == 1 assert j == 8 assert k == 995 assert l == 1004 class Wrapped: def __init__(self, initial): self.value = initial def __add__(self, other): return Wrapped(self.value + other) def __sub__(self, other): return Wrapped(self.value - other) def __mul__(self, other): return Wrapped(self.value * other) def __truediv__(self, other): return Wrapped(self.value / other) def __floordiv__(self, other): return Wrapped(self.value // other) def __mod__(self, other): return Wrapped(self.value % other) def __pow__(self, other): return Wrapped(self.value ** other) def __lshift__(self, other): return Wrapped(self.value << other) def __rshift__(self, other): return Wrapped(self.value >> other) def __or__(self, other): return Wrapped(self.value | other) def __and__(self, other): return Wrapped(self.value & other) def __xor__(self, other): return Wrapped(self.value ^ other) def __radd__(self, other): return other + self.value def __rsub__(self, other): return other - self.value def __rmul__(self, other): return other * self.value def __rtruediv__(self, other): return other / self.value def __rfloordiv__(self, other): return other // self.value def __rmod__(self, other): return other % self.value def __rpow__(self, other): return other ** self.value def __rlshift__(self, other): return other << self.value def __rrshift__(self, other): return other >> self.value def __ror__(self, other): return other | self.value def __rand__(self, other): return other & self.value def __rxor__(self, other): return other ^ self.value a, b, c, d, e, f = Wrapped(1000), Wrapped(1000), Wrapped(1000), Wrapped(1000), Wrapped(1000), Wrapped(1000) g, h, i, j, k, l = Wrapped(2), Wrapped(1000), Wrapped(1000), Wrapped(1000), Wrapped(1000), Wrapped(1000) a = a + 1 b = b - 2 c = c * 3 d = d / 4 e = e // 5 f = f % 6 g = g ** 7 h = h << 8 i = i >> 9 j = j & 10 k = k ^ 11 l = l | 12 assert a.value == 1001 assert b.value == 998 assert c.value == 3000 assert d.value == 250 assert e.value == 200 assert f.value == 4 assert g.value == 128 assert h.value == 256000 assert i.value == 1 assert j.value == 8 assert k.value == 995 assert l.value == 1004 a, b, c, d, e, f = 1000, 1000, 1000, 1000, 1000, 1000 g, h, i, j, k, l = 2, 1000, 1000, 1000, 1000, 1000 a = a + Wrapped(1) b = b - Wrapped(2) c = c * Wrapped(3) d = d / Wrapped(4) e = e // Wrapped(5) f = f % Wrapped(6) g = g ** Wrapped(7) h = h << Wrapped(8) i = i >> Wrapped(9) j = j & Wrapped(10) k = k ^ Wrapped(11) l = l | Wrapped(12) assert a == 1001 assert b == 998 assert c == 3000 assert d == 250 assert e == 200 assert f == 4 assert g == 128 assert h == 256000 assert i == 1 assert j == 8 assert k == 995 assert l == 1004 print('ok')
(a, b, c, d, e, f) = (1000, 1000, 1000, 1000, 1000, 1000) (g, h, i, j, k, l) = (2, 1000, 1000, 1000, 1000, 1000) a = a + 1 b = b - 2 c = c * 3 d = d / 4 e = e // 5 f = f % 6 g = g ** 7 h = h << 8 i = i >> 9 j = j & 10 k = k ^ 11 l = l | 12 assert a == 1001 assert b == 998 assert c == 3000 assert d == 250 assert e == 200 assert f == 4 assert g == 128 assert h == 256000 assert i == 1 assert j == 8 assert k == 995 assert l == 1004 class Wrapped: def __init__(self, initial): self.value = initial def __add__(self, other): return wrapped(self.value + other) def __sub__(self, other): return wrapped(self.value - other) def __mul__(self, other): return wrapped(self.value * other) def __truediv__(self, other): return wrapped(self.value / other) def __floordiv__(self, other): return wrapped(self.value // other) def __mod__(self, other): return wrapped(self.value % other) def __pow__(self, other): return wrapped(self.value ** other) def __lshift__(self, other): return wrapped(self.value << other) def __rshift__(self, other): return wrapped(self.value >> other) def __or__(self, other): return wrapped(self.value | other) def __and__(self, other): return wrapped(self.value & other) def __xor__(self, other): return wrapped(self.value ^ other) def __radd__(self, other): return other + self.value def __rsub__(self, other): return other - self.value def __rmul__(self, other): return other * self.value def __rtruediv__(self, other): return other / self.value def __rfloordiv__(self, other): return other // self.value def __rmod__(self, other): return other % self.value def __rpow__(self, other): return other ** self.value def __rlshift__(self, other): return other << self.value def __rrshift__(self, other): return other >> self.value def __ror__(self, other): return other | self.value def __rand__(self, other): return other & self.value def __rxor__(self, other): return other ^ self.value (a, b, c, d, e, f) = (wrapped(1000), wrapped(1000), wrapped(1000), wrapped(1000), wrapped(1000), wrapped(1000)) (g, h, i, j, k, l) = (wrapped(2), wrapped(1000), wrapped(1000), wrapped(1000), wrapped(1000), wrapped(1000)) a = a + 1 b = b - 2 c = c * 3 d = d / 4 e = e // 5 f = f % 6 g = g ** 7 h = h << 8 i = i >> 9 j = j & 10 k = k ^ 11 l = l | 12 assert a.value == 1001 assert b.value == 998 assert c.value == 3000 assert d.value == 250 assert e.value == 200 assert f.value == 4 assert g.value == 128 assert h.value == 256000 assert i.value == 1 assert j.value == 8 assert k.value == 995 assert l.value == 1004 (a, b, c, d, e, f) = (1000, 1000, 1000, 1000, 1000, 1000) (g, h, i, j, k, l) = (2, 1000, 1000, 1000, 1000, 1000) a = a + wrapped(1) b = b - wrapped(2) c = c * wrapped(3) d = d / wrapped(4) e = e // wrapped(5) f = f % wrapped(6) g = g ** wrapped(7) h = h << wrapped(8) i = i >> wrapped(9) j = j & wrapped(10) k = k ^ wrapped(11) l = l | wrapped(12) assert a == 1001 assert b == 998 assert c == 3000 assert d == 250 assert e == 200 assert f == 4 assert g == 128 assert h == 256000 assert i == 1 assert j == 8 assert k == 995 assert l == 1004 print('ok')
""" Given a linked list, remove the nth node from the end of list and return its head. For example, Given linked list: 1->2->3->4->5, and n = 2. After removing the second node from the end, the linked list becomes 1->2->3->5. Note: Given n will always be valid. Try to do this in one pass. """ # Definition for singly-linked list. # class ListNode(object): # def __init__(self, x): # self.val = x # self.next = None class Solution(object): def removeNthFromEnd(self, head, n): """ :type head: ListNode :type n: int :rtype: ListNode """ placeHolder = ListNode(0) placeHolder.next = head p = q = placeHolder for i in range(n): p = p.next while p.next: p, q = p.next, q.next q.next = q.next.next return placeHolder.next
""" Given a linked list, remove the nth node from the end of list and return its head. For example, Given linked list: 1->2->3->4->5, and n = 2. After removing the second node from the end, the linked list becomes 1->2->3->5. Note: Given n will always be valid. Try to do this in one pass. """ class Solution(object): def remove_nth_from_end(self, head, n): """ :type head: ListNode :type n: int :rtype: ListNode """ place_holder = list_node(0) placeHolder.next = head p = q = placeHolder for i in range(n): p = p.next while p.next: (p, q) = (p.next, q.next) q.next = q.next.next return placeHolder.next
''' Description : Data Structure Using String Method Function Date : 07 Feb 2021 Function Author : Prasad Dangare Input : str Output : str ''' # This is a string object name = 'prasad' if name.startswith('pra'): print ('Yes, the string starts with "pra"') if 'a' in name: print ('Yes, it contains the string "a"') if name.find('sad') != -1: print ('Yes, it contains the string "sad"') delimiter = '_*_' mylist = ['USA', 'Russia', 'India', 'UAE'] print (delimiter.join(mylist))
""" Description : Data Structure Using String Method Function Date : 07 Feb 2021 Function Author : Prasad Dangare Input : str Output : str """ name = 'prasad' if name.startswith('pra'): print('Yes, the string starts with "pra"') if 'a' in name: print('Yes, it contains the string "a"') if name.find('sad') != -1: print('Yes, it contains the string "sad"') delimiter = '_*_' mylist = ['USA', 'Russia', 'India', 'UAE'] print(delimiter.join(mylist))
class Utilities: @staticmethod def get_longest(words): longest = "" for word in words: if len(word) > len(longest): longest = word Utilities.log(longest) return longest @staticmethod def log(word): print("Logging: " + word)
class Utilities: @staticmethod def get_longest(words): longest = '' for word in words: if len(word) > len(longest): longest = word Utilities.log(longest) return longest @staticmethod def log(word): print('Logging: ' + word)
""" The binary search algorithm - search for an item inside a sorted list. Also includes the bisect algorithm: Return the insertion point for an item x in a list to maintain sorted order. (again in logarithmic time) Author: Christos Nitsas (nitsas) (chrisnitsas) Language: Python 3(.4) Date: November, 2014 """ __all__ = ['search', 'binary_search', 'bisect'] def bisect(list_, x, begin=0, end=None): """ Return the insertion point for x to maintain sorted order, in logarithmic time. list_ -- the sorted list of items; we assume ascending order by default x -- the item we search for begin -- the first index of the range we want to search in end -- the index past end of the range we want to search in Search inside list_[begin:end]. The result is an index i such as if we insert the item there, the list remains sorted. Time complexity: O(log(N)), where N is the length of the search range, i.e. `N = end - begin` """ # check input parameters if end is None: end = len(list_) if not 0 <= begin <= end <= len(list_): raise ValueError('0 <= begin <= end <= len(list_) must hold') if begin == end: return begin # we don't want to implement this recursively so that we won't have to # worry about Python's max recursion depth # loop while the search range includes two or more items while end - begin > 1: # find the midpoint mid = begin + (end - begin) // 2 # "halve" the search range and continue searching # in the appropriate half if x <= list_[mid]: end = mid else: begin = mid + 1 # we are down to a search range of zero or one items; either: # - begin == end, which can happen if we search for an item that's bigger # than every item in the list, or # - begin is the index of the only left item; end is the next index if begin == end or x <= list_[begin]: return begin else: return end def binary_search(list_, x, begin=0, end=None): """ Return the first index of x in `list_` (sorted); None if x is not in it. list_ -- a sorted list of items; by default we assume ascending order x -- the item we search for begin -- the first index of the range we want to search in (default: 0) end -- the index past end of the range we want to search in (default: end of `list_`) If x occurs in the list multiple times, return the index of the first occurrence. Time complexity: O(log(N)), where N is the length of the search range, i.e. `N = end - begin` """ # get the index where we'd have to insert x to maintain sorted order index = bisect(list_, x, begin, end) # - check if `index` is within the list, # - also check if `index` points to an item that's equal to x # (it could be pointing to the first item that's greater than x, if # there's no x within the search range) if index < end and list_[index] == x: return index else: # x is not in the list return None search = binary_search
""" The binary search algorithm - search for an item inside a sorted list. Also includes the bisect algorithm: Return the insertion point for an item x in a list to maintain sorted order. (again in logarithmic time) Author: Christos Nitsas (nitsas) (chrisnitsas) Language: Python 3(.4) Date: November, 2014 """ __all__ = ['search', 'binary_search', 'bisect'] def bisect(list_, x, begin=0, end=None): """ Return the insertion point for x to maintain sorted order, in logarithmic time. list_ -- the sorted list of items; we assume ascending order by default x -- the item we search for begin -- the first index of the range we want to search in end -- the index past end of the range we want to search in Search inside list_[begin:end]. The result is an index i such as if we insert the item there, the list remains sorted. Time complexity: O(log(N)), where N is the length of the search range, i.e. `N = end - begin` """ if end is None: end = len(list_) if not 0 <= begin <= end <= len(list_): raise value_error('0 <= begin <= end <= len(list_) must hold') if begin == end: return begin while end - begin > 1: mid = begin + (end - begin) // 2 if x <= list_[mid]: end = mid else: begin = mid + 1 if begin == end or x <= list_[begin]: return begin else: return end def binary_search(list_, x, begin=0, end=None): """ Return the first index of x in `list_` (sorted); None if x is not in it. list_ -- a sorted list of items; by default we assume ascending order x -- the item we search for begin -- the first index of the range we want to search in (default: 0) end -- the index past end of the range we want to search in (default: end of `list_`) If x occurs in the list multiple times, return the index of the first occurrence. Time complexity: O(log(N)), where N is the length of the search range, i.e. `N = end - begin` """ index = bisect(list_, x, begin, end) if index < end and list_[index] == x: return index else: return None search = binary_search
data = { 4 : [2, 0, 3, 1], 5 : [3, 0, 2, 4, 1], 6 : [3, 0, 4, 1, 5, 2], 7 : [4, 0, 5, 3, 1, 6, 2], 8 : [2, 4, 1, 7, 0, 6, 3, 5], 9 : [3, 1, 4, 7, 0, 2, 5, 8, 6], 10 : [8, 4, 0, 7, 3, 1, 6, 9, 5, 2], 11 : [5, 7, 0, 3, 8, 2, 9, 6, 10, 1, 4], 12 : [7, 10, 0, 2, 8, 5, 3, 1, 9, 11, 6, 4], 13 : [7, 5, 2, 9, 12, 0, 4, 10, 1, 6, 11, 3, 8], 14 : [6, 11, 1, 4, 9, 5, 10, 2, 0, 12, 8, 13, 3, 7], 15 : [10, 8, 0, 3, 12, 2, 9, 1, 4, 11, 14, 6, 13, 5, 7], 16 : [8, 15, 1, 10, 2, 9, 11, 13, 3, 12, 0, 4, 6, 14, 5, 7], 17 : [9, 2, 12, 10, 7, 0, 14, 1, 4, 13, 8, 16, 5, 3, 11, 6, 15], 18 : [13, 8, 1, 5, 12, 15, 11, 0, 6, 3, 14, 17, 9, 16, 4, 10, 7, 2], 19 : [11, 8, 15, 7, 4, 2, 14, 17, 6, 18, 9, 12, 1, 3, 16, 0, 10, 5, 13], 20 : [17, 14, 9, 7, 3, 15, 6, 2, 19, 10, 12, 5, 1, 18, 0, 13, 8, 4, 11, 16], 21 : [8, 17, 14, 1, 15, 19, 6, 3, 12, 18, 7, 4, 2, 0, 9, 20, 5, 16, 10, 13, 11], 22 : [9, 4, 21, 14, 8, 11, 16, 7, 3, 1, 18, 13, 19, 12, 15, 20, 5, 10, 2, 0, 6, 17], 23 : [10, 14, 18, 8, 2, 9, 12, 21, 17, 3, 6, 19, 1, 16, 13, 22, 7, 5, 15, 0, 20, 11, 4], 24 : [11, 23, 7, 9, 4, 13, 15, 20, 2, 16, 12, 8, 22, 17, 1, 5, 19, 0, 14, 18, 21, 10, 6, 3], 25 : [17, 20, 3, 19, 8, 4, 18, 12, 15, 7, 10, 2, 21, 1, 24, 0, 9, 23, 14, 11, 22, 16, 6, 13, 5], 26 : [9, 4, 14, 16, 24, 13, 6, 0, 12, 23, 17, 22, 11, 1, 20, 2, 21, 19, 7, 10, 15, 3, 18, 8, 25, 5], 27 : [9, 11, 17, 7, 25, 23, 18, 13, 0, 4, 8, 5, 15, 21, 1, 6, 16, 24, 19, 12, 22, 26, 3, 20, 2, 10, 14], 28 : [20, 5, 10, 2, 13, 3, 21, 9, 24, 19, 15, 8, 26, 0, 27, 7, 17, 1, 6, 25, 11, 14, 12, 23, 18, 4, 22, 16], 29 : [13, 7, 10, 25, 19, 26, 16, 9, 1, 27, 11, 28, 17, 4, 23, 5, 14, 2, 0, 22, 15, 21, 18, 3, 8, 24, 12, 6, 20], 30 : [20, 13, 11, 7, 25, 22, 6, 14, 18, 27, 5, 8, 23, 26, 29, 17, 15, 1, 12, 4, 2, 24, 28, 21, 0, 3, 16, 10, 19, 9], 31 : [17, 6, 1, 21, 5, 27, 19, 22, 18, 13, 10, 20, 24, 3, 30, 4, 7, 25, 0, 14, 23, 28, 8, 11, 16, 12, 2, 29, 26, 9, 15], 32 : [14, 22, 6, 10, 27, 15, 26, 9, 25, 28, 7, 29, 17, 2, 20, 13, 8, 18, 1, 30, 5, 0, 31, 3, 24, 21, 4, 11, 23, 16, 12, 19], 33 : [21, 24, 13, 5, 30, 9, 18, 3, 28, 31, 19, 1, 20, 4, 14, 29, 2, 22, 15, 26, 7, 10, 16, 0, 25, 23, 32, 8, 27, 17, 12, 6, 11], 34 : [30, 16, 20, 28, 17, 9, 14, 4, 24, 7, 31, 1, 32, 2, 13, 22, 33, 19, 6, 29, 15, 8, 25, 3, 18, 0, 27, 12, 10, 5, 21, 23, 11, 26], 35 : [6, 32, 11, 22, 4, 16, 9, 21, 31, 13, 27, 33, 8, 23, 0, 28, 14, 2, 17, 26, 7, 10, 34, 25, 18, 1, 3, 19, 12, 30, 20, 24, 15, 5, 29], 36 : [23, 17, 34, 16, 22, 20, 9, 32, 29, 8, 1, 3, 0, 7, 19, 15, 25, 31, 35, 12, 27, 11, 33, 21, 5, 2, 28, 24, 10, 14, 26, 4, 18, 13, 6, 30], 37 : [13, 30, 12, 21, 15, 4, 1, 3, 32, 28, 24, 16, 18, 22, 35, 7, 36, 0, 25, 17, 6, 23, 26, 10, 27, 33, 2, 5, 19, 9, 11, 31, 14, 34, 8, 20, 29], 38 : [24, 12, 17, 19, 25, 30, 6, 10, 3, 27, 8, 4, 21, 26, 11, 16, 33, 29, 37, 7, 28, 0, 32, 5, 14, 31, 1, 23, 15, 36, 2, 35, 13, 9, 18, 34, 22, 20], 39 : [24, 11, 5, 25, 6, 14, 26, 18, 22, 9, 27, 37, 10, 34, 7, 28, 35, 29, 13, 16, 0, 8, 1, 15, 20, 2, 30, 32, 36, 12, 4, 38, 23, 21, 33, 17, 3, 31, 19], 40 : [39, 35, 21, 12, 20, 16, 31, 3, 14, 7, 37, 23, 32, 0, 29, 10, 34, 25, 2, 13, 8, 38, 4, 22, 24, 15, 36, 6, 1, 26, 5, 33, 9, 18, 27, 11, 17, 28, 30, 19], 41 : [27, 29, 5, 38, 15, 11, 23, 16, 13, 0, 26, 36, 33, 21, 34, 10, 30, 3, 8, 37, 22, 31, 18, 1, 39, 14, 9, 4, 25, 28, 2, 6, 17, 40, 35, 19, 7, 24, 20, 12, 32], 42 : [21, 31, 10, 0, 35, 11, 28, 26, 36, 4, 9, 37, 8, 38, 17, 2, 34, 19, 23, 39, 29, 14, 3, 6, 22, 1, 41, 13, 32, 40, 15, 25, 33, 24, 18, 12, 7, 5, 16, 27, 30, 20], 43 : [27, 18, 31, 23, 0, 37, 16, 38, 26, 11, 3, 6, 2, 19, 22, 41, 35, 20, 12, 30, 32, 8, 1, 36, 7, 25, 40, 42, 10, 34, 28, 4, 29, 14, 33, 5, 24, 9, 39, 15, 17, 21, 13], 44 : [28, 9, 21, 32, 22, 19, 30, 24, 1, 10, 7, 14, 8, 0, 26, 36, 38, 12, 27, 29, 2, 20, 35, 43, 18, 31, 42, 11, 5, 40, 34, 16, 23, 25, 3, 37, 41, 15, 6, 4, 13, 39, 17, 33], 45 : [29, 16, 21, 27, 1, 17, 19, 33, 8, 43, 0, 13, 30, 44, 42, 35, 3, 28, 9, 22, 41, 15, 31, 40, 34, 39, 12, 4, 23, 14, 38, 36, 2, 6, 26, 24, 37, 18, 10, 32, 7, 25, 20, 11, 5], 46 : [34, 31, 42, 39, 17, 14, 16, 7, 32, 6, 0, 30, 41, 5, 15, 2, 12, 29, 45, 4, 35, 26, 36, 43, 13, 1, 28, 9, 21, 23, 8, 19, 27, 24, 37, 33, 40, 11, 44, 38, 20, 10, 3, 18, 25, 22], 47 : [40, 22, 25, 21, 38, 1, 26, 29, 17, 20, 46, 30, 9, 2, 45, 13, 42, 44, 0, 18, 33, 36, 23, 11, 24, 27, 43, 39, 5, 14, 8, 34, 15, 6, 28, 19, 41, 7, 12, 31, 35, 10, 32, 3, 16, 4, 37], 48 : [28, 23, 38, 30, 18, 26, 6, 12, 33, 25, 13, 44, 24, 8, 11, 0, 31, 35, 20, 1, 39, 9, 21, 46, 3, 45, 34, 40, 4, 22, 41, 27, 5, 17, 14, 42, 37, 43, 36, 29, 2, 15, 7, 47, 19, 16, 32, 10], 49 : [19, 44, 23, 13, 38, 3, 9, 6, 43, 14, 22, 47, 28, 33, 21, 12, 34, 1, 8, 11, 37, 48, 0, 31, 15, 36, 27, 16, 32, 42, 25, 18, 5, 29, 40, 35, 45, 7, 10, 2, 26, 24, 17, 20, 46, 30, 39, 41, 4], 50 : [33, 20, 14, 11, 28, 37, 19, 27, 12, 38, 45, 48, 42, 49, 21, 24, 30, 10, 23, 4, 47, 31, 0, 7, 13, 1, 44, 17, 29, 16, 41, 25, 34, 3, 26, 15, 2, 35, 5, 22, 40, 32, 6, 8, 39, 18, 43, 46, 36, 9], 51 : [31, 39, 13, 46, 22, 42, 26, 47, 35, 8, 49, 18, 2, 28, 9, 7, 48, 50, 6, 29, 37, 21, 23, 12, 32, 0, 20, 41, 44, 15, 3, 34, 38, 30, 5, 1, 45, 16, 40, 43, 36, 11, 33, 19, 27, 10, 4, 14, 25, 17, 24], 52 : [46, 0, 12, 41, 21, 33, 15, 10, 8, 32, 44, 17, 38, 29, 6, 34, 47, 22, 16, 26, 7, 39, 43, 25, 5, 36, 48, 3, 19, 2, 50, 9, 40, 4, 28, 1, 49, 51, 20, 13, 35, 37, 11, 27, 45, 42, 23, 30, 18, 24, 14, 31], 53 : [25, 22, 13, 41, 36, 23, 30, 19, 44, 2, 47, 37, 29, 9, 33, 5, 21, 50, 15, 32, 7, 28, 38, 12, 18, 6, 48, 27, 34, 0, 8, 46, 52, 1, 11, 26, 45, 51, 17, 4, 42, 49, 43, 3, 39, 31, 20, 16, 24, 10, 14, 35, 40], 54 : [33, 29, 18, 13, 38, 45, 25, 6, 39, 14, 22, 37, 7, 51, 41, 47, 20, 4, 31, 27, 21, 19, 0, 2, 48, 1, 32, 16, 46, 9, 50, 53, 49, 30, 3, 17, 8, 40, 28, 12, 5, 34, 44, 11, 15, 26, 23, 10, 42, 24, 35, 43, 52, 36], 55 : [54, 43, 32, 3, 25, 4, 31, 0, 27, 44, 37, 5, 36, 26, 50, 7, 12, 45, 41, 23, 11, 35, 28, 1, 6, 13, 42, 14, 17, 46, 10, 49, 34, 19, 9, 30, 15, 20, 39, 48, 38, 22, 52, 40, 47, 53, 51, 2, 33, 18, 8, 21, 24, 29, 16], 56 : [20, 26, 19, 46, 32, 0, 45, 15, 18, 36, 9, 35, 53, 3, 27, 47, 13, 40, 10, 50, 24, 43, 8, 38, 31, 54, 5, 39, 11, 55, 44, 16, 6, 49, 34, 28, 17, 21, 14, 41, 51, 2, 48, 30, 4, 25, 37, 29, 12, 1, 22, 52, 7, 42, 23, 33], 57 : [37, 23, 21, 46, 32, 3, 42, 45, 20, 30, 4, 0, 13, 53, 56, 40, 25, 17, 24, 11, 33, 26, 54, 41, 55, 48, 43, 6, 52, 9, 14, 12, 27, 49, 22, 28, 38, 44, 8, 47, 51, 31, 18, 34, 10, 16, 5, 15, 35, 1, 7, 50, 19, 39, 36, 29, 2], 58 : [20, 39, 19, 43, 8, 33, 11, 16, 55, 41, 23, 38, 31, 42, 22, 36, 40, 47, 49, 13, 9, 6, 56, 46, 4, 12, 28, 45, 3, 5, 18, 10, 57, 44, 24, 0, 29, 7, 37, 54, 21, 53, 34, 27, 15, 2, 14, 50, 25, 32, 48, 51, 1, 35, 26, 52, 30, 17], 59 : [51, 26, 38, 57, 27, 19, 11, 7, 37, 30, 13, 23, 47, 3, 29, 34, 32, 44, 46, 2, 15, 53, 28, 14, 5, 58, 18, 25, 4, 1, 54, 49, 36, 0, 43, 55, 6, 17, 31, 16, 48, 40, 52, 50, 9, 42, 21, 10, 22, 33, 35, 24, 39, 12, 56, 41, 20, 45, 8], 60 : [20, 1, 33, 15, 29, 53, 23, 8, 40, 45, 52, 41, 9, 51, 54, 24, 35, 21, 14, 37, 43, 50, 55, 4, 7, 59, 16, 13, 19, 32, 46, 5, 12, 27, 49, 57, 34, 6, 48, 26, 47, 0, 31, 3, 36, 44, 39, 58, 2, 10, 28, 56, 17, 38, 42, 11, 18, 25, 30, 22], 61 : [51, 12, 9, 36, 32, 54, 3, 25, 4, 38, 50, 34, 6, 15, 23, 29, 26, 41, 30, 56, 37, 53, 21, 7, 45, 55, 14, 52, 44, 2, 57, 31, 18, 0, 47, 20, 5, 59, 8, 28, 60, 22, 35, 33, 48, 19, 24, 39, 46, 17, 58, 10, 43, 1, 49, 16, 27, 11, 40, 42, 13], 62 : [45, 37, 57, 44, 19, 31, 54, 1, 22, 26, 21, 50, 12, 20, 27, 34, 24, 52, 0, 35, 7, 30, 10, 53, 56, 18, 59, 48, 11, 49, 4, 6, 36, 29, 61, 47, 41, 9, 15, 5, 32, 43, 60, 40, 14, 25, 17, 3, 16, 8, 23, 46, 55, 38, 2, 39, 42, 33, 13, 58, 51, 28], 63 : [44, 57, 30, 0, 33, 52, 46, 6, 51, 18, 55, 23, 36, 34, 62, 15, 17, 47, 37, 10, 25, 53, 45, 1, 42, 61, 59, 9, 7, 24, 26, 8, 39, 21, 48, 38, 56, 50, 32, 4, 11, 49, 35, 58, 54, 5, 14, 2, 31, 13, 19, 43, 28, 40, 29, 41, 22, 27, 3, 16, 12, 20, 60], 64 : [8, 29, 40, 26, 36, 53, 48, 4, 58, 16, 39, 2, 27, 62, 55, 0, 10, 44, 28, 54, 23, 11, 43, 5, 12, 56, 60, 6, 3, 41, 46, 17, 30, 1, 34, 49, 19, 42, 7, 52, 32, 61, 15, 21, 9, 51, 63, 24, 35, 38, 13, 31, 47, 14, 20, 57, 37, 50, 22, 18, 59, 45, 33, 25], 65 : [13, 38, 8, 35, 16, 43, 27, 53, 19, 59, 49, 40, 3, 54, 18, 9, 33, 52, 25, 61, 6, 26, 31, 51, 1, 50, 15, 10, 36, 28, 63, 21, 34, 11, 0, 7, 56, 47, 17, 23, 32, 55, 4, 39, 29, 5, 44, 62, 64, 14, 45, 48, 2, 41, 24, 22, 30, 58, 12, 46, 60, 37, 42, 20, 57], 66 : [27, 23, 9, 35, 57, 60, 16, 51, 45, 3, 11, 44, 33, 59, 40, 49, 19, 17, 2, 55, 5, 30, 28, 10, 15, 22, 14, 52, 63, 46, 58, 12, 61, 47, 36, 48, 26, 32, 62, 38, 1, 53, 18, 13, 4, 65, 25, 43, 41, 0, 7, 56, 21, 6, 31, 29, 42, 39, 50, 8, 64, 20, 24, 34, 37, 54], 67 : [16, 21, 53, 44, 35, 29, 50, 7, 19, 39, 60, 57, 25, 49, 46, 9, 22, 2, 51, 48, 43, 0, 59, 38, 1, 27, 15, 8, 55, 11, 47, 18, 4, 32, 17, 54, 62, 41, 56, 6, 3, 63, 45, 33, 40, 13, 20, 61, 24, 42, 30, 37, 12, 26, 5, 52, 65, 58, 66, 64, 14, 10, 23, 34, 28, 31, 36], 68 : [39, 24, 9, 46, 48, 18, 21, 34, 10, 67, 43, 23, 60, 51, 8, 44, 0, 63, 37, 11, 62, 26, 38, 20, 50, 12, 40, 5, 53, 6, 3, 7, 4, 32, 22, 65, 58, 17, 19, 47, 64, 36, 28, 25, 1, 30, 49, 16, 54, 42, 61, 41, 15, 57, 33, 29, 56, 66, 59, 55, 13, 27, 45, 52, 35, 14, 31, 2], 69 : [6, 28, 43, 64, 62, 55, 22, 42, 57, 26, 14, 1, 11, 68, 39, 67, 59, 51, 4, 40, 60, 63, 33, 19, 9, 13, 36, 3, 29, 23, 48, 45, 58, 15, 17, 37, 10, 24, 31, 5, 7, 61, 50, 0, 66, 25, 41, 52, 2, 30, 21, 49, 65, 56, 54, 8, 18, 34, 47, 38, 44, 12, 53, 35, 32, 20, 27, 16, 46], 70 : [60, 66, 15, 10, 40, 28, 22, 64, 34, 48, 42, 39, 6, 35, 24, 30, 47, 51, 62, 69, 7, 5, 14, 53, 17, 36, 32, 3, 61, 11, 25, 33, 37, 21, 1, 16, 56, 54, 59, 8, 44, 12, 20, 68, 2, 63, 29, 9, 46, 38, 49, 65, 27, 50, 31, 19, 26, 58, 43, 0, 13, 57, 52, 18, 67, 45, 4, 23, 41, 55], 71 : [15, 48, 3, 26, 31, 18, 57, 24, 1, 25, 68, 59, 30, 44, 50, 5, 46, 9, 53, 58, 54, 29, 64, 21, 19, 22, 66, 41, 33, 11, 0, 51, 7, 70, 2, 38, 36, 8, 17, 65, 13, 52, 6, 47, 56, 69, 20, 34, 67, 40, 10, 32, 61, 16, 4, 39, 23, 42, 60, 28, 49, 37, 45, 12, 63, 43, 14, 55, 62, 27, 35], 72 : [33, 28, 54, 31, 18, 60, 44, 66, 5, 32, 49, 58, 27, 30, 48, 59, 20, 68, 43, 38, 70, 50, 65, 19, 40, 12, 4, 1, 7, 9, 62, 37, 23, 14, 17, 56, 71, 57, 10, 69, 39, 26, 3, 6, 8, 21, 0, 41, 61, 67, 36, 63, 53, 22, 52, 64, 45, 24, 46, 51, 16, 2, 35, 15, 34, 55, 11, 29, 25, 13, 47, 42], 73 : [57, 37, 41, 23, 54, 12, 4, 30, 56, 71, 20, 64, 15, 19, 45, 6, 62, 69, 0, 43, 46, 72, 11, 60, 26, 40, 14, 36, 33, 61, 9, 53, 50, 2, 55, 35, 32, 10, 49, 67, 1, 5, 13, 70, 58, 22, 31, 63, 47, 39, 44, 21, 65, 3, 38, 52, 48, 24, 66, 42, 16, 18, 7, 28, 59, 51, 8, 68, 17, 27, 29, 34, 25], 74 : [42, 23, 52, 1, 6, 17, 51, 73, 36, 39, 35, 21, 13, 47, 38, 32, 57, 26, 9, 14, 49, 60, 28, 43, 27, 72, 10, 63, 65, 48, 4, 8, 59, 5, 15, 53, 69, 37, 3, 24, 44, 67, 58, 18, 2, 31, 19, 62, 16, 70, 46, 11, 40, 33, 68, 12, 64, 56, 71, 0, 50, 22, 25, 55, 61, 41, 45, 34, 30, 20, 29, 7, 54, 66], 75 : [36, 50, 69, 13, 74, 1, 64, 62, 73, 59, 15, 33, 9, 22, 60, 34, 16, 44, 47, 40, 32, 46, 25, 53, 48, 41, 71, 29, 14, 24, 58, 8, 2, 65, 3, 20, 56, 4, 19, 72, 6, 49, 43, 21, 57, 0, 63, 70, 66, 28, 37, 31, 10, 68, 42, 61, 54, 51, 5, 30, 67, 52, 11, 17, 27, 55, 39, 35, 18, 26, 23, 12, 7, 45, 38], 76 : [51, 55, 29, 35, 45, 19, 17, 10, 24, 48, 15, 66, 73, 63, 58, 46, 53, 70, 28, 25, 44, 5, 31, 14, 18, 67, 26, 2, 62, 49, 43, 50, 3, 34, 60, 56, 9, 22, 68, 41, 75, 7, 40, 65, 69, 21, 33, 0, 20, 61, 39, 12, 32, 1, 16, 47, 6, 74, 13, 42, 23, 38, 57, 59, 72, 64, 54, 8, 27, 36, 4, 52, 37, 30, 71, 11], 77 : [68, 12, 10, 66, 38, 19, 26, 52, 33, 48, 37, 55, 53, 61, 70, 28, 42, 20, 22, 31, 25, 59, 65, 44, 74, 9, 75, 45, 60, 76, 24, 2, 67, 6, 4, 57, 0, 56, 62, 17, 73, 30, 41, 35, 7, 1, 18, 16, 29, 3, 5, 39, 27, 54, 40, 34, 71, 64, 15, 50, 21, 14, 8, 72, 46, 63, 51, 47, 36, 13, 32, 58, 23, 49, 69, 11, 43], 78 : [23, 60, 26, 43, 21, 11, 2, 4, 24, 35, 46, 3, 53, 55, 49, 40, 61, 67, 9, 56, 69, 16, 29, 44, 36, 54, 70, 66, 59, 0, 34, 31, 1, 20, 14, 68, 37, 45, 72, 77, 19, 6, 28, 15, 5, 12, 8, 57, 32, 76, 64, 73, 63, 41, 74, 58, 71, 75, 48, 7, 38, 13, 30, 39, 17, 42, 10, 50, 18, 51, 25, 52, 65, 27, 47, 22, 33, 62], 79 : [32, 1, 19, 63, 54, 41, 58, 37, 21, 28, 8, 74, 36, 66, 69, 26, 44, 42, 57, 11, 35, 48, 59, 0, 23, 71, 5, 16, 73, 49, 15, 2, 75, 39, 78, 22, 17, 51, 18, 55, 47, 50, 10, 33, 62, 68, 24, 7, 60, 13, 43, 72, 38, 20, 64, 56, 53, 14, 61, 4, 29, 34, 3, 65, 46, 40, 31, 25, 6, 30, 12, 76, 67, 77, 70, 45, 27, 9, 52], 80 : [31, 17, 30, 8, 29, 44, 32, 16, 50, 3, 47, 73, 53, 51, 68, 21, 45, 61, 26, 75, 67, 13, 54, 1, 24, 38, 69, 2, 27, 46, 76, 52, 20, 78, 25, 55, 60, 6, 22, 28, 7, 15, 56, 65, 59, 40, 0, 66, 33, 5, 36, 49, 10, 63, 37, 42, 18, 23, 11, 14, 71, 79, 58, 70, 35, 62, 4, 12, 9, 72, 19, 43, 74, 77, 64, 34, 41, 57, 48, 39], 81 : [44, 8, 30, 11, 26, 46, 62, 50, 42, 29, 74, 5, 7, 45, 41, 60, 19, 59, 48, 15, 0, 33, 23, 76, 12, 34, 3, 79, 75, 40, 22, 17, 72, 6, 27, 32, 35, 53, 56, 4, 65, 55, 21, 58, 49, 68, 63, 73, 67, 80, 10, 13, 36, 66, 20, 37, 14, 78, 64, 28, 2, 24, 38, 54, 1, 69, 25, 77, 57, 71, 51, 9, 39, 16, 52, 43, 47, 18, 61, 31, 70], 82 : [39, 58, 65, 29, 62, 9, 41, 53, 22, 56, 79, 7, 52, 49, 80, 36, 47, 40, 17, 25, 20, 24, 50, 72, 69, 23, 44, 61, 5, 71, 67, 19, 14, 3, 27, 8, 60, 1, 63, 48, 70, 15, 74, 59, 64, 13, 38, 2, 35, 43, 28, 73, 54, 68, 26, 0, 57, 33, 16, 76, 45, 21, 75, 10, 4, 46, 37, 18, 11, 6, 81, 51, 77, 34, 30, 66, 55, 42, 31, 12, 32, 78], 83 : [56, 40, 22, 44, 46, 13, 69, 62, 60, 68, 39, 49, 11, 19, 31, 24, 3, 78, 15, 8, 77, 5, 12, 76, 7, 37, 66, 28, 59, 55, 48, 58, 42, 52, 36, 71, 21, 51, 33, 4, 0, 32, 30, 65, 74, 79, 18, 72, 81, 64, 54, 14, 2, 10, 25, 41, 61, 26, 1, 35, 16, 82, 75, 17, 38, 47, 73, 34, 23, 80, 70, 63, 53, 9, 67, 6, 29, 43, 20, 57, 27, 45, 50], 84 : [56, 9, 45, 63, 11, 72, 39, 10, 25, 53, 68, 50, 22, 79, 65, 34, 58, 43, 77, 3, 69, 20, 13, 47, 74, 59, 62, 64, 30, 38, 27, 51, 54, 4, 29, 67, 57, 66, 14, 80, 15, 5, 82, 71, 6, 83, 26, 78, 17, 31, 18, 8, 2, 16, 81, 44, 41, 49, 32, 12, 60, 76, 21, 1, 75, 61, 70, 73, 19, 46, 40, 37, 55, 0, 7, 42, 24, 35, 33, 28, 52, 23, 36, 48], 85 : [53, 41, 80, 64, 50, 56, 54, 61, 42, 14, 23, 70, 62, 17, 3, 77, 36, 10, 59, 30, 12, 44, 82, 68, 22, 69, 84, 46, 13, 16, 48, 25, 31, 76, 4, 0, 15, 51, 45, 40, 18, 7, 75, 79, 32, 2, 72, 74, 63, 8, 78, 11, 28, 49, 60, 35, 29, 38, 6, 71, 81, 47, 57, 21, 67, 5, 27, 58, 1, 20, 37, 73, 55, 83, 26, 65, 39, 9, 34, 24, 19, 43, 66, 33, 52], 86 : [70, 48, 63, 38, 33, 79, 47, 44, 34, 10, 28, 15, 55, 62, 74, 53, 31, 68, 41, 84, 52, 11, 7, 17, 32, 3, 18, 83, 45, 75, 64, 14, 23, 58, 43, 54, 80, 2, 12, 9, 36, 22, 40, 76, 39, 66, 8, 49, 16, 20, 72, 78, 0, 13, 60, 37, 56, 85, 82, 71, 1, 77, 51, 73, 67, 42, 27, 30, 81, 26, 50, 57, 65, 5, 61, 6, 25, 29, 21, 46, 59, 19, 35, 4, 24, 69], 87 : [34, 65, 63, 71, 40, 32, 77, 19, 46, 55, 51, 68, 84, 8, 5, 75, 47, 25, 14, 66, 64, 61, 29, 48, 35, 31, 26, 81, 22, 57, 73, 60, 80, 16, 86, 12, 0, 23, 62, 6, 13, 54, 45, 30, 2, 59, 83, 79, 41, 9, 52, 21, 3, 72, 70, 20, 1, 10, 43, 56, 49, 36, 85, 15, 42, 69, 67, 76, 39, 7, 58, 50, 82, 4, 24, 18, 74, 33, 27, 78, 37, 11, 17, 44, 38, 53, 28], 88 : [59, 15, 38, 58, 5, 32, 39, 72, 23, 26, 78, 35, 70, 73, 30, 47, 16, 63, 46, 49, 14, 42, 2, 54, 67, 69, 31, 65, 21, 37, 17, 44, 9, 40, 22, 84, 12, 56, 1, 4, 87, 82, 13, 10, 66, 79, 6, 50, 77, 34, 85, 0, 51, 76, 20, 52, 11, 27, 62, 43, 80, 57, 8, 41, 75, 71, 68, 18, 3, 48, 61, 81, 29, 55, 24, 36, 45, 86, 64, 53, 33, 28, 7, 25, 74, 83, 19, 60], 89 : [6, 35, 16, 29, 54, 37, 88, 58, 4, 73, 59, 50, 60, 57, 19, 70, 31, 38, 85, 20, 8, 28, 52, 75, 32, 63, 0, 46, 84, 71, 5, 64, 67, 45, 87, 44, 27, 68, 51, 9, 86, 21, 82, 24, 22, 72, 14, 36, 65, 26, 3, 17, 62, 81, 78, 53, 15, 39, 1, 77, 33, 30, 48, 18, 43, 11, 61, 23, 79, 66, 7, 13, 34, 56, 74, 40, 25, 10, 2, 83, 12, 41, 49, 55, 76, 69, 47, 80, 42], 90 : [52, 37, 29, 11, 75, 42, 81, 26, 56, 83, 17, 12, 3, 54, 60, 70, 41, 73, 8, 25, 38, 49, 19, 5, 27, 58, 89, 72, 85, 68, 16, 51, 34, 7, 57, 46, 35, 6, 67, 23, 53, 88, 74, 64, 36, 28, 22, 1, 62, 10, 50, 18, 76, 79, 71, 0, 61, 66, 20, 39, 15, 77, 84, 2, 13, 43, 55, 44, 80, 33, 14, 65, 87, 21, 30, 47, 86, 24, 63, 45, 9, 69, 32, 78, 4, 48, 59, 40, 31, 82], 91 : [49, 63, 20, 53, 38, 65, 18, 28, 80, 39, 24, 5, 21, 52, 43, 71, 73, 41, 1, 12, 58, 11, 47, 76, 26, 14, 68, 82, 69, 66, 16, 90, 64, 79, 3, 89, 67, 56, 46, 35, 32, 42, 87, 8, 61, 30, 81, 54, 84, 6, 50, 10, 40, 23, 36, 4, 17, 85, 29, 7, 75, 59, 9, 83, 15, 2, 72, 48, 45, 33, 86, 27, 13, 57, 78, 70, 55, 74, 88, 37, 60, 0, 44, 51, 22, 25, 62, 31, 19, 34, 77], 92 : [36, 43, 55, 23, 60, 42, 65, 15, 52, 34, 7, 27, 46, 11, 28, 62, 18, 71, 82, 30, 48, 51, 89, 58, 39, 25, 35, 49, 74, 12, 73, 91, 63, 0, 86, 59, 68, 14, 10, 79, 6, 26, 33, 31, 9, 64, 20, 76, 81, 70, 2, 90, 53, 80, 16, 24, 61, 32, 29, 38, 67, 54, 22, 44, 5, 21, 50, 45, 78, 4, 87, 83, 8, 41, 66, 3, 37, 72, 84, 69, 56, 77, 19, 13, 88, 40, 85, 57, 75, 1, 47, 17], 93 : [28, 53, 42, 60, 21, 52, 33, 78, 58, 67, 7, 76, 50, 11, 35, 77, 25, 13, 34, 86, 31, 63, 9, 68, 55, 44, 89, 75, 61, 54, 8, 37, 4, 22, 90, 0, 80, 10, 74, 71, 20, 15, 57, 51, 30, 59, 72, 3, 82, 88, 32, 92, 81, 24, 46, 79, 2, 18, 39, 66, 43, 19, 85, 56, 84, 16, 5, 62, 27, 1, 70, 38, 6, 41, 49, 69, 45, 87, 91, 83, 65, 12, 26, 73, 47, 64, 36, 14, 29, 17, 23, 48, 40], 94 : [17, 4, 63, 37, 92, 77, 43, 38, 10, 72, 28, 66, 74, 39, 29, 85, 26, 33, 42, 55, 7, 25, 67, 71, 20, 83, 78, 60, 56, 24, 68, 54, 32, 23, 76, 82, 5, 87, 9, 12, 75, 90, 36, 48, 18, 88, 86, 59, 40, 27, 80, 58, 93, 1, 65, 52, 41, 13, 0, 8, 19, 81, 91, 6, 11, 46, 2, 34, 31, 51, 79, 69, 44, 30, 53, 61, 14, 35, 15, 49, 64, 21, 73, 89, 45, 84, 62, 47, 50, 16, 70, 22, 3, 57], 95 : [41, 37, 23, 36, 18, 91, 48, 19, 67, 44, 32, 6, 60, 43, 66, 4, 90, 86, 52, 69, 80, 45, 92, 61, 35, 70, 83, 13, 30, 38, 59, 54, 3, 89, 15, 88, 94, 65, 31, 7, 24, 51, 39, 0, 93, 49, 64, 10, 26, 1, 63, 25, 21, 68, 71, 22, 9, 29, 84, 53, 76, 2, 81, 5, 47, 14, 62, 87, 56, 72, 28, 16, 33, 46, 17, 74, 82, 78, 12, 77, 27, 58, 11, 34, 20, 85, 40, 57, 75, 79, 50, 55, 42, 8, 73], 96 : [79, 71, 26, 14, 27, 72, 28, 4, 59, 21, 46, 5, 43, 95, 34, 24, 65, 70, 6, 73, 45, 63, 67, 94, 37, 44, 33, 31, 55, 93, 20, 12, 17, 83, 66, 41, 8, 75, 16, 74, 23, 78, 52, 61, 30, 15, 7, 76, 40, 36, 90, 56, 0, 22, 88, 69, 1, 39, 91, 11, 81, 32, 9, 3, 38, 82, 64, 13, 57, 85, 25, 47, 10, 53, 58, 77, 29, 92, 51, 18, 80, 84, 49, 62, 19, 86, 42, 50, 48, 2, 54, 68, 35, 89, 87, 60], 97 : [68, 96, 77, 50, 95, 5, 88, 30, 54, 66, 75, 41, 36, 6, 12, 74, 61, 46, 49, 32, 45, 62, 64, 59, 1, 3, 52, 13, 63, 72, 29, 15, 34, 21, 7, 0, 92, 85, 89, 18, 80, 90, 94, 71, 27, 51, 67, 14, 58, 43, 40, 9, 24, 73, 10, 60, 65, 31, 22, 91, 57, 20, 81, 78, 82, 35, 53, 70, 2, 4, 17, 87, 83, 25, 86, 79, 33, 39, 47, 23, 76, 42, 48, 84, 55, 93, 26, 37, 56, 44, 28, 16, 19, 11, 69, 8, 38], 98 : [75, 78, 34, 22, 13, 53, 93, 31, 60, 10, 41, 85, 74, 16, 92, 79, 38, 67, 55, 44, 96, 26, 42, 82, 21, 37, 89, 87, 39, 95, 46, 0, 59, 62, 88, 84, 3, 45, 40, 32, 15, 11, 65, 94, 48, 43, 14, 91, 9, 4, 71, 50, 25, 70, 2, 47, 5, 23, 72, 30, 90, 51, 8, 27, 97, 1, 17, 61, 6, 29, 76, 86, 28, 12, 7, 33, 57, 20, 64, 56, 24, 68, 77, 35, 69, 81, 58, 52, 66, 63, 19, 73, 80, 18, 83, 36, 49, 54], 99 : [56, 49, 41, 55, 86, 47, 31, 98, 68, 73, 10, 62, 66, 48, 52, 76, 85, 21, 23, 32, 14, 92, 37, 0, 33, 7, 91, 38, 27, 24, 5, 18, 87, 78, 65, 36, 58, 25, 46, 29, 8, 82, 79, 83, 1, 69, 72, 53, 50, 28, 94, 9, 11, 89, 74, 15, 84, 75, 6, 22, 90, 13, 42, 30, 60, 88, 19, 2, 95, 20, 40, 17, 3, 64, 71, 59, 97, 80, 63, 4, 45, 93, 54, 44, 77, 12, 96, 51, 43, 81, 61, 57, 16, 67, 26, 34, 39, 70, 35], 100 : [40, 36, 93, 54, 31, 77, 25, 89, 11, 66, 12, 63, 72, 80, 28, 76, 92, 50, 47, 61, 78, 32, 56, 43, 70, 14, 95, 59, 4, 0, 22, 94, 71, 48, 83, 35, 2, 21, 69, 51, 7, 15, 1, 30, 5, 26, 18, 64, 49, 86, 29, 3, 16, 9, 84, 8, 44, 98, 55, 75, 73, 79, 10, 91, 46, 87, 62, 65, 17, 20, 13, 41, 34, 97, 67, 82, 23, 68, 53, 88, 57, 38, 45, 33, 42, 39, 19, 60, 96, 99, 85, 90, 37, 27, 74, 81, 6, 52, 58, 24], 101 : [28, 92, 32, 23, 15, 58, 61, 78, 75, 45, 93, 42, 52, 79, 27, 33, 35, 77, 63, 36, 95, 14, 11, 24, 74, 37, 30, 2, 18, 91, 44, 64, 69, 5, 68, 81, 43, 39, 85, 71, 21, 76, 96, 34, 88, 51, 20, 31, 10, 98, 7, 80, 16, 56, 70, 50, 17, 12, 99, 25, 46, 53, 83, 86, 49, 90, 9, 89, 62, 67, 41, 1, 55, 60, 13, 84, 4, 22, 47, 3, 57, 19, 40, 29, 94, 6, 82, 87, 66, 0, 38, 73, 26, 72, 59, 100, 48, 65, 54, 8, 97], 102 : [75, 61, 34, 27, 96, 50, 44, 62, 65, 43, 91, 40, 74, 82, 8, 73, 51, 10, 21, 59, 93, 35, 32, 97, 36, 3, 39, 63, 76, 60, 38, 87, 48, 72, 53, 12, 101, 86, 7, 22, 37, 29, 16, 6, 88, 1, 13, 77, 24, 70, 14, 84, 99, 57, 54, 41, 98, 100, 45, 4, 56, 89, 47, 28, 66, 80, 26, 85, 95, 5, 90, 11, 71, 25, 79, 64, 55, 2, 15, 49, 46, 0, 17, 94, 23, 9, 20, 30, 68, 33, 31, 42, 83, 19, 78, 67, 18, 52, 69, 81, 92, 58], 103 : [66, 0, 27, 87, 48, 77, 49, 10, 69, 78, 18, 8, 95, 43, 54, 52, 80, 24, 81, 100, 40, 23, 36, 85, 19, 34, 31, 5, 102, 96, 86, 6, 82, 13, 44, 74, 26, 3, 60, 71, 11, 42, 84, 32, 92, 90, 58, 64, 94, 35, 91, 2, 45, 16, 101, 83, 50, 93, 22, 4, 21, 67, 12, 39, 75, 89, 79, 51, 97, 65, 88, 98, 57, 99, 20, 30, 17, 9, 25, 70, 33, 46, 7, 37, 53, 72, 14, 1, 56, 28, 62, 73, 41, 55, 38, 29, 63, 76, 68, 47, 15, 59, 61], 104 : [34, 50, 29, 39, 78, 82, 5, 62, 69, 59, 20, 15, 40, 28, 22, 88, 57, 74, 9, 36, 38, 8, 44, 26, 48, 64, 72, 13, 53, 10, 97, 76, 67, 30, 19, 89, 79, 7, 102, 70, 46, 37, 58, 101, 3, 35, 25, 100, 6, 41, 24, 83, 94, 51, 98, 56, 86, 80, 87, 96, 60, 4, 17, 12, 32, 11, 92, 45, 16, 81, 0, 54, 85, 75, 93, 95, 65, 42, 99, 18, 14, 90, 77, 2, 91, 47, 49, 23, 68, 73, 84, 1, 61, 33, 55, 71, 43, 63, 103, 52, 31, 21, 66, 27], 105 : [29, 77, 72, 12, 40, 63, 80, 90, 24, 55, 65, 48, 100, 23, 67, 35, 66, 68, 89, 11, 50, 36, 34, 79, 30, 27, 92, 62, 101, 19, 9, 94, 17, 7, 4, 73, 54, 14, 98, 81, 87, 74, 18, 97, 39, 53, 46, 69, 93, 60, 51, 99, 59, 102, 26, 16, 13, 82, 75, 8, 31, 44, 1, 3, 58, 38, 10, 33, 91, 96, 2, 64, 22, 78, 32, 20, 104, 76, 21, 5, 83, 95, 6, 45, 103, 52, 70, 84, 56, 85, 88, 43, 57, 71, 25, 37, 0, 61, 28, 86, 47, 42, 15, 49, 41], 106 : [61, 7, 33, 23, 85, 22, 90, 96, 32, 65, 70, 52, 38, 63, 81, 60, 48, 28, 30, 74, 82, 104, 37, 98, 45, 101, 51, 105, 86, 100, 58, 18, 76, 97, 56, 69, 20, 75, 89, 4, 39, 1, 5, 91, 71, 25, 0, 26, 46, 103, 50, 55, 19, 15, 84, 78, 42, 29, 93, 8, 2, 80, 99, 3, 49, 16, 41, 44, 14, 87, 31, 72, 6, 11, 9, 83, 68, 47, 67, 12, 36, 54, 35, 77, 13, 24, 64, 94, 43, 10, 59, 57, 102, 17, 53, 27, 79, 73, 21, 40, 88, 92, 66, 34, 62, 95], 107 : [8, 96, 55, 42, 13, 51, 48, 29, 53, 14, 104, 90, 56, 64, 21, 32, 100, 95, 37, 74, 86, 88, 52, 41, 39, 99, 60, 17, 31, 66, 50, 57, 16, 5, 102, 97, 36, 2, 65, 80, 94, 77, 106, 30, 58, 78, 0, 15, 12, 105, 25, 45, 83, 103, 101, 76, 9, 34, 93, 11, 19, 89, 63, 4, 26, 35, 54, 73, 24, 20, 6, 70, 43, 84, 7, 68, 62, 40, 27, 91, 59, 1, 98, 75, 23, 81, 47, 85, 71, 10, 38, 3, 18, 33, 28, 69, 72, 79, 44, 46, 67, 61, 82, 92, 49, 22, 87], 108 : [61, 4, 15, 32, 11, 89, 41, 38, 3, 82, 90, 101, 28, 37, 99, 71, 16, 39, 56, 62, 14, 5, 49, 80, 64, 85, 40, 102, 73, 94, 22, 42, 106, 83, 100, 72, 17, 60, 1, 26, 66, 27, 86, 76, 54, 10, 93, 77, 31, 98, 9, 25, 8, 52, 18, 23, 29, 7, 75, 67, 48, 59, 33, 12, 79, 44, 36, 95, 53, 21, 88, 46, 68, 45, 19, 107, 6, 97, 87, 13, 69, 78, 103, 63, 96, 51, 91, 35, 81, 0, 47, 34, 43, 55, 20, 50, 65, 30, 74, 57, 104, 92, 2, 70, 105, 58, 24, 84], 109 : [54, 59, 40, 11, 94, 51, 58, 108, 18, 16, 43, 66, 38, 24, 90, 52, 35, 84, 71, 69, 98, 103, 26, 68, 86, 53, 95, 75, 79, 64, 57, 45, 0, 7, 105, 31, 100, 15, 1, 34, 5, 27, 48, 74, 41, 12, 102, 23, 107, 10, 73, 33, 61, 9, 83, 8, 39, 70, 47, 2, 101, 82, 13, 97, 30, 4, 96, 44, 60, 85, 49, 25, 42, 93, 72, 65, 21, 80, 14, 29, 92, 99, 81, 76, 28, 56, 20, 62, 50, 37, 19, 106, 77, 6, 22, 89, 36, 3, 55, 32, 91, 88, 104, 17, 46, 78, 87, 67, 63], 110 : [76, 43, 11, 33, 57, 61, 78, 30, 47, 40, 9, 59, 53, 28, 99, 94, 35, 108, 70, 103, 101, 82, 42, 63, 74, 17, 80, 56, 72, 66, 4, 100, 92, 14, 22, 69, 18, 16, 34, 109, 6, 106, 93, 54, 107, 45, 29, 96, 60, 87, 105, 26, 8, 88, 15, 65, 2, 104, 86, 83, 20, 41, 52, 77, 90, 97, 7, 85, 39, 36, 19, 58, 10, 37, 0, 12, 73, 62, 67, 84, 1, 79, 44, 51, 27, 38, 31, 50, 5, 75, 48, 68, 95, 3, 89, 23, 32, 81, 102, 13, 91, 49, 25, 55, 98, 64, 71, 46, 24, 21], 111 : [23, 83, 67, 80, 31, 39, 42, 20, 48, 34, 84, 91, 21, 61, 82, 50, 88, 46, 104, 69, 27, 87, 2, 19, 97, 35, 25, 5, 9, 60, 86, 92, 6, 17, 79, 68, 78, 74, 29, 47, 57, 105, 3, 98, 32, 75, 44, 65, 45, 100, 7, 40, 72, 15, 106, 93, 71, 62, 37, 81, 18, 107, 30, 110, 108, 66, 52, 4, 14, 36, 109, 54, 0, 8, 13, 99, 76, 22, 73, 90, 53, 95, 101, 24, 1, 16, 58, 77, 51, 64, 55, 103, 43, 96, 63, 33, 10, 41, 102, 11, 70, 94, 28, 12, 59, 38, 49, 89, 85, 56, 26], 112 : [43, 74, 24, 10, 88, 100, 104, 83, 65, 69, 110, 27, 68, 58, 22, 36, 71, 57, 12, 45, 89, 56, 18, 32, 28, 97, 60, 81, 5, 92, 11, 34, 64, 16, 49, 2, 67, 35, 23, 75, 20, 38, 84, 61, 4, 70, 7, 15, 87, 79, 91, 101, 17, 77, 103, 33, 0, 76, 8, 52, 59, 78, 106, 109, 6, 3, 95, 30, 26, 102, 93, 108, 46, 9, 21, 48, 62, 29, 47, 107, 13, 86, 72, 94, 96, 99, 14, 42, 19, 53, 1, 73, 105, 55, 82, 54, 31, 50, 98, 44, 66, 90, 51, 37, 41, 111, 63, 39, 80, 25, 85, 40], 113 : [42, 109, 82, 49, 78, 55, 88, 6, 48, 39, 67, 90, 13, 72, 76, 9, 91, 40, 53, 47, 112, 38, 73, 66, 89, 43, 24, 71, 30, 54, 5, 68, 1, 18, 31, 57, 0, 105, 8, 86, 27, 62, 96, 75, 102, 29, 95, 61, 28, 110, 50, 104, 100, 77, 10, 74, 87, 45, 64, 111, 21, 19, 17, 58, 97, 85, 7, 60, 94, 108, 35, 16, 99, 36, 46, 11, 2, 92, 26, 70, 56, 59, 33, 65, 51, 101, 98, 37, 93, 4, 22, 83, 52, 23, 3, 103, 69, 14, 107, 34, 79, 63, 12, 106, 81, 32, 25, 44, 20, 80, 84, 15, 41], 114 : [61, 32, 54, 66, 45, 38, 78, 74, 22, 98, 60, 20, 81, 7, 71, 37, 97, 8, 35, 59, 56, 21, 113, 51, 63, 50, 91, 87, 4, 100, 92, 49, 83, 112, 1, 9, 0, 103, 3, 47, 69, 48, 52, 12, 67, 80, 36, 85, 90, 94, 18, 14, 106, 73, 42, 104, 109, 16, 41, 39, 2, 6, 108, 55, 88, 26, 53, 25, 15, 70, 27, 17, 99, 75, 46, 30, 24, 111, 82, 65, 77, 86, 19, 102, 57, 96, 68, 43, 28, 110, 79, 107, 58, 31, 10, 13, 95, 5, 29, 76, 23, 11, 62, 33, 89, 44, 84, 105, 101, 93, 72, 40, 64, 34], 115 : [32, 75, 78, 66, 95, 8, 0, 63, 43, 59, 31, 39, 69, 52, 109, 58, 20, 3, 77, 7, 93, 111, 103, 6, 33, 104, 64, 97, 35, 101, 113, 16, 22, 25, 49, 96, 61, 48, 83, 23, 87, 36, 102, 45, 2, 15, 46, 67, 88, 57, 11, 50, 110, 107, 72, 9, 37, 76, 80, 41, 26, 91, 17, 92, 81, 40, 5, 79, 74, 18, 112, 38, 19, 30, 90, 106, 99, 12, 42, 70, 60, 108, 34, 54, 44, 27, 100, 24, 84, 68, 28, 89, 55, 29, 56, 71, 73, 94, 10, 86, 53, 114, 13, 1, 105, 14, 65, 47, 51, 98, 82, 62, 85, 4, 21], 116 : [61, 68, 112, 36, 63, 26, 52, 42, 40, 97, 28, 35, 96, 65, 91, 4, 94, 73, 6, 69, 114, 106, 98, 30, 9, 64, 10, 24, 81, 3, 102, 48, 79, 62, 20, 80, 37, 108, 111, 47, 1, 89, 8, 53, 57, 115, 82, 110, 43, 22, 87, 85, 50, 44, 5, 99, 107, 0, 14, 59, 56, 92, 100, 77, 13, 33, 21, 45, 15, 74, 11, 23, 83, 12, 19, 25, 55, 105, 2, 95, 84, 38, 88, 109, 54, 104, 49, 16, 71, 76, 27, 60, 7, 46, 32, 72, 17, 51, 31, 70, 103, 113, 66, 75, 86, 41, 18, 34, 39, 67, 90, 101, 93, 78, 58, 29], 117 : [106, 66, 50, 75, 46, 11, 24, 34, 40, 49, 2, 61, 20, 104, 109, 89, 15, 18, 35, 76, 74, 103, 55, 115, 9, 84, 86, 7, 51, 105, 25, 83, 22, 6, 98, 48, 56, 116, 67, 92, 79, 28, 87, 59, 102, 19, 95, 93, 85, 26, 38, 0, 21, 47, 110, 90, 80, 82, 96, 1, 91, 36, 8, 97, 57, 33, 71, 14, 111, 17, 4, 112, 29, 77, 81, 101, 72, 31, 13, 10, 63, 37, 44, 64, 43, 45, 39, 108, 32, 68, 23, 94, 30, 107, 16, 114, 3, 69, 65, 62, 70, 27, 100, 113, 12, 60, 5, 52, 99, 73, 88, 41, 78, 54, 42, 58, 53], 118 : [106, 65, 87, 32, 40, 72, 63, 56, 24, 71, 52, 93, 17, 20, 107, 4, 103, 73, 108, 90, 44, 54, 49, 91, 37, 68, 1, 59, 39, 113, 83, 89, 13, 67, 57, 2, 21, 6, 16, 0, 117, 11, 28, 88, 15, 60, 101, 51, 102, 43, 18, 7, 47, 29, 80, 10, 46, 50, 70, 77, 19, 112, 92, 66, 74, 86, 110, 114, 99, 115, 98, 109, 22, 5, 111, 81, 76, 94, 97, 8, 42, 3, 104, 35, 26, 31, 58, 25, 45, 14, 82, 78, 9, 34, 41, 69, 116, 105, 64, 100, 30, 38, 23, 12, 62, 85, 55, 84, 96, 36, 33, 95, 75, 27, 79, 48, 61, 53], 119 : [42, 70, 41, 43, 104, 102, 34, 57, 25, 73, 56, 33, 91, 62, 48, 105, 52, 97, 59, 32, 15, 37, 6, 110, 35, 54, 24, 7, 76, 61, 107, 85, 83, 118, 89, 93, 9, 90, 10, 17, 115, 101, 99, 20, 13, 117, 66, 38, 113, 49, 69, 45, 31, 0, 51, 44, 94, 75, 95, 58, 28, 64, 106, 86, 1, 112, 92, 5, 2, 22, 3, 30, 14, 40, 82, 19, 4, 16, 88, 60, 55, 11, 96, 23, 80, 116, 98, 72, 36, 8, 50, 47, 84, 114, 103, 78, 100, 29, 12, 81, 18, 46, 109, 79, 67, 111, 68, 108, 21, 63, 26, 77, 53, 87, 65, 39, 71, 74, 27], 120 : [36, 109, 104, 94, 77, 37, 59, 6, 83, 17, 47, 91, 15, 70, 66, 71, 34, 106, 116, 53, 62, 40, 16, 101, 84, 93, 8, 49, 111, 39, 19, 22, 90, 68, 18, 0, 52, 14, 79, 20, 64, 21, 118, 69, 56, 54, 96, 23, 115, 110, 61, 38, 4, 108, 97, 117, 13, 105, 86, 57, 60, 29, 2, 35, 9, 80, 99, 26, 98, 27, 63, 72, 78, 112, 10, 100, 114, 51, 95, 48, 50, 28, 5, 12, 1, 73, 81, 42, 119, 85, 113, 41, 43, 76, 58, 87, 30, 102, 88, 103, 7, 67, 55, 33, 75, 65, 25, 74, 46, 82, 107, 89, 44, 92, 11, 31, 24, 32, 3, 45], 121 : [7, 56, 63, 35, 62, 94, 11, 13, 106, 53, 75, 104, 58, 41, 44, 109, 68, 83, 10, 29, 108, 3, 79, 107, 19, 72, 85, 51, 70, 20, 64, 16, 59, 47, 55, 0, 117, 73, 54, 112, 27, 105, 32, 118, 17, 23, 87, 101, 4, 2, 14, 66, 69, 24, 42, 18, 116, 119, 25, 60, 99, 96, 61, 57, 15, 102, 40, 8, 1, 100, 113, 97, 65, 93, 34, 6, 84, 49, 67, 48, 76, 9, 50, 26, 86, 114, 98, 31, 110, 92, 115, 52, 71, 111, 28, 95, 82, 45, 37, 103, 80, 78, 5, 38, 30, 89, 81, 43, 21, 120, 91, 36, 88, 12, 22, 39, 33, 74, 77, 46, 90], 122 : [111, 55, 38, 102, 73, 17, 82, 20, 61, 117, 42, 105, 29, 77, 36, 33, 76, 98, 85, 89, 16, 9, 13, 47, 104, 118, 78, 70, 1, 106, 115, 120, 114, 56, 60, 83, 74, 26, 49, 94, 3, 21, 100, 37, 5, 22, 15, 112, 34, 58, 99, 44, 113, 23, 0, 30, 75, 63, 48, 25, 18, 39, 72, 64, 108, 14, 6, 4, 88, 84, 121, 52, 107, 2, 95, 57, 7, 80, 119, 116, 87, 28, 35, 110, 41, 59, 27, 12, 96, 51, 24, 10, 79, 93, 8, 90, 68, 40, 31, 103, 92, 11, 19, 86, 46, 65, 62, 45, 67, 54, 109, 50, 66, 81, 69, 43, 32, 101, 97, 71, 91, 53], 123 : [85, 116, 21, 25, 79, 8, 101, 13, 42, 36, 57, 81, 37, 82, 74, 4, 60, 72, 59, 105, 33, 104, 53, 63, 18, 15, 43, 64, 19, 68, 73, 89, 58, 75, 67, 103, 100, 121, 114, 23, 113, 98, 40, 61, 26, 20, 38, 119, 7, 17, 117, 110, 22, 118, 106, 71, 84, 56, 112, 9, 109, 122, 86, 1, 69, 29, 49, 115, 30, 3, 10, 31, 108, 83, 76, 70, 99, 16, 50, 80, 54, 96, 24, 27, 62, 78, 55, 91, 34, 11, 97, 120, 39, 107, 5, 14, 48, 32, 95, 52, 65, 87, 102, 46, 77, 90, 93, 35, 88, 45, 66, 92, 0, 44, 41, 111, 2, 47, 94, 28, 12, 6, 51], 124 : [53, 51, 31, 75, 81, 84, 36, 62, 123, 95, 3, 99, 8, 44, 101, 19, 80, 60, 29, 92, 59, 102, 113, 21, 70, 24, 88, 120, 10, 114, 45, 33, 55, 111, 100, 117, 48, 82, 86, 49, 76, 26, 23, 56, 118, 35, 54, 107, 14, 9, 6, 12, 74, 104, 28, 73, 5, 34, 37, 47, 32, 89, 4, 58, 65, 103, 87, 94, 115, 72, 79, 106, 121, 105, 66, 109, 41, 110, 42, 18, 85, 0, 27, 7, 2, 20, 69, 25, 63, 43, 96, 116, 68, 77, 91, 119, 22, 11, 98, 46, 67, 38, 57, 30, 93, 122, 1, 64, 71, 13, 90, 97, 52, 61, 16, 83, 78, 108, 112, 39, 17, 15, 50, 40], 125 : [84, 59, 98, 103, 50, 99, 39, 89, 105, 60, 55, 24, 100, 61, 25, 44, 108, 86, 97, 56, 47, 93, 87, 26, 6, 8, 27, 71, 95, 68, 64, 40, 53, 75, 52, 116, 109, 107, 18, 115, 48, 16, 83, 96, 49, 31, 121, 36, 73, 1, 29, 13, 58, 19, 94, 119, 122, 69, 0, 30, 123, 120, 88, 3, 17, 46, 33, 15, 124, 101, 85, 9, 70, 67, 21, 113, 2, 14, 102, 11, 79, 35, 37, 51, 23, 20, 63, 5, 111, 54, 106, 10, 38, 112, 72, 82, 80, 66, 62, 91, 41, 34, 92, 117, 104, 28, 78, 65, 57, 22, 12, 45, 114, 7, 77, 32, 90, 110, 43, 76, 81, 118, 42, 74, 4], 126 : [61, 116, 23, 37, 73, 55, 64, 36, 0, 32, 82, 89, 74, 76, 33, 20, 99, 41, 53, 34, 47, 114, 28, 110, 9, 56, 70, 102, 66, 105, 50, 15, 5, 121, 85, 81, 26, 8, 38, 18, 72, 54, 17, 60, 25, 124, 79, 101, 84, 29, 118, 108, 68, 113, 12, 100, 45, 106, 95, 71, 115, 125, 69, 16, 78, 42, 62, 39, 96, 112, 48, 123, 11, 98, 31, 49, 35, 27, 21, 65, 13, 122, 92, 7, 3, 87, 97, 4, 10, 88, 59, 22, 58, 119, 46, 104, 40, 44, 91, 103, 67, 1, 120, 6, 52, 93, 109, 90, 43, 107, 80, 51, 94, 14, 111, 24, 117, 30, 86, 2, 75, 63, 83, 77, 19, 57], 127 : [84, 52, 43, 22, 57, 23, 34, 30, 81, 66, 75, 77, 12, 121, 95, 86, 78, 2, 45, 58, 60, 110, 108, 24, 17, 103, 1, 59, 38, 36, 82, 33, 61, 87, 79, 46, 123, 41, 62, 100, 74, 28, 119, 73, 5, 25, 109, 26, 3, 54, 76, 89, 55, 99, 67, 4, 126, 10, 16, 32, 97, 21, 106, 122, 111, 107, 101, 29, 124, 112, 13, 85, 94, 50, 31, 125, 39, 93, 9, 0, 68, 70, 72, 116, 8, 37, 64, 56, 83, 48, 115, 7, 40, 69, 114, 63, 102, 118, 96, 98, 44, 18, 88, 15, 42, 6, 47, 53, 117, 65, 92, 14, 35, 80, 51, 20, 113, 71, 27, 91, 49, 105, 19, 104, 90, 11, 120], 128 : [69, 116, 11, 67, 102, 61, 50, 44, 34, 112, 9, 124, 82, 62, 97, 99, 22, 90, 84, 35, 109, 18, 58, 48, 75, 8, 6, 68, 113, 126, 89, 55, 100, 28, 91, 27, 14, 56, 46, 49, 86, 123, 54, 0, 72, 92, 51, 119, 12, 87, 24, 122, 3, 70, 19, 53, 98, 33, 40, 120, 29, 121, 114, 77, 93, 95, 37, 80, 45, 65, 115, 39, 103, 31, 78, 4, 15, 10, 81, 127, 66, 1, 105, 2, 36, 16, 47, 41, 30, 42, 25, 57, 73, 104, 64, 32, 117, 52, 85, 43, 101, 94, 7, 118, 63, 17, 106, 5, 83, 71, 20, 13, 96, 26, 60, 38, 76, 108, 125, 107, 110, 88, 111, 79, 21, 59, 74, 23], 129 : [77, 28, 72, 9, 23, 51, 98, 88, 103, 33, 93, 26, 78, 73, 121, 64, 124, 55, 40, 11, 109, 94, 35, 17, 74, 37, 25, 111, 82, 65, 83, 38, 125, 112, 7, 86, 66, 79, 113, 127, 15, 44, 58, 99, 118, 42, 85, 49, 2, 114, 10, 123, 107, 84, 89, 34, 70, 90, 22, 6, 3, 0, 4, 29, 59, 63, 54, 104, 126, 116, 27, 105, 12, 102, 19, 61, 80, 95, 47, 120, 101, 43, 122, 106, 21, 67, 13, 119, 60, 45, 24, 41, 30, 16, 14, 69, 48, 117, 8, 20, 18, 52, 5, 87, 115, 81, 96, 75, 71, 100, 91, 1, 53, 57, 36, 92, 62, 110, 31, 50, 68, 76, 39, 128, 56, 108, 97, 46, 32], 130 : [123, 27, 70, 83, 28, 16, 34, 71, 46, 49, 98, 58, 35, 25, 111, 89, 10, 24, 95, 109, 3, 115, 125, 54, 29, 57, 1, 36, 72, 100, 81, 65, 119, 79, 30, 14, 114, 106, 124, 99, 101, 78, 31, 38, 13, 64, 44, 37, 19, 84, 53, 23, 107, 61, 11, 75, 104, 120, 21, 33, 122, 63, 92, 102, 85, 62, 22, 4, 2, 110, 15, 55, 48, 126, 42, 117, 93, 12, 128, 112, 105, 40, 118, 74, 7, 9, 129, 97, 87, 82, 96, 6, 56, 41, 8, 108, 5, 18, 47, 69, 88, 17, 103, 32, 91, 67, 121, 59, 50, 113, 77, 127, 20, 26, 94, 66, 116, 0, 45, 51, 60, 43, 76, 73, 90, 86, 52, 80, 39, 68], 131 : [21, 65, 14, 81, 29, 49, 87, 116, 43, 9, 34, 78, 101, 63, 72, 33, 62, 57, 23, 6, 36, 2, 69, 76, 53, 107, 114, 122, 105, 31, 37, 94, 89, 84, 125, 11, 75, 20, 113, 71, 124, 83, 85, 7, 99, 130, 24, 48, 102, 19, 115, 96, 118, 12, 90, 54, 51, 106, 42, 129, 120, 35, 18, 38, 15, 47, 70, 27, 58, 121, 3, 0, 82, 111, 100, 108, 110, 68, 28, 4, 10, 92, 5, 45, 77, 30, 52, 79, 103, 16, 32, 17, 119, 41, 88, 60, 8, 1, 128, 97, 117, 86, 74, 50, 67, 127, 61, 22, 40, 98, 123, 46, 56, 26, 55, 64, 112, 126, 95, 59, 73, 39, 80, 66, 13, 104, 93, 25, 44, 109, 91], 132 : [92, 102, 95, 23, 27, 16, 63, 1, 71, 122, 52, 85, 96, 53, 68, 119, 45, 32, 100, 28, 39, 22, 19, 4, 15, 46, 76, 83, 124, 60, 125, 110, 38, 66, 72, 79, 73, 9, 115, 13, 104, 88, 31, 94, 47, 6, 99, 18, 75, 117, 109, 50, 98, 67, 84, 0, 80, 30, 5, 126, 14, 106, 78, 49, 69, 25, 128, 11, 86, 127, 62, 59, 120, 3, 10, 111, 108, 116, 44, 21, 48, 107, 37, 33, 64, 36, 121, 77, 51, 26, 131, 2, 90, 20, 101, 12, 29, 82, 91, 58, 56, 118, 24, 70, 61, 105, 81, 17, 112, 34, 89, 40, 35, 65, 97, 54, 129, 41, 114, 8, 55, 123, 130, 57, 93, 43, 113, 103, 7, 87, 42, 74], 133 : [78, 120, 98, 7, 95, 59, 61, 94, 73, 52, 25, 36, 81, 12, 121, 100, 30, 68, 31, 1, 66, 27, 60, 33, 71, 125, 50, 76, 14, 48, 106, 126, 62, 18, 115, 103, 122, 107, 88, 67, 77, 104, 20, 26, 83, 87, 91, 13, 43, 40, 47, 23, 109, 58, 0, 75, 128, 15, 110, 82, 119, 92, 3, 130, 65, 129, 132, 38, 11, 53, 37, 21, 16, 46, 22, 29, 105, 32, 96, 90, 44, 84, 123, 117, 24, 2, 45, 89, 114, 54, 97, 51, 6, 93, 127, 56, 86, 5, 79, 108, 34, 69, 64, 80, 74, 9, 57, 124, 101, 131, 10, 49, 42, 35, 19, 111, 72, 8, 116, 28, 39, 41, 17, 102, 4, 99, 113, 63, 85, 118, 55, 70, 112], 134 : [124, 56, 50, 38, 67, 76, 60, 108, 114, 45, 69, 49, 74, 95, 98, 32, 16, 46, 111, 37, 13, 71, 97, 113, 122, 93, 109, 41, 10, 66, 81, 62, 48, 25, 57, 112, 42, 47, 27, 133, 59, 86, 2, 132, 28, 43, 99, 90, 73, 82, 3, 115, 7, 118, 128, 121, 14, 129, 9, 58, 104, 87, 21, 102, 0, 89, 107, 31, 36, 40, 119, 19, 80, 77, 51, 127, 54, 63, 91, 6, 83, 53, 79, 94, 23, 70, 17, 15, 8, 117, 52, 106, 126, 30, 20, 5, 123, 84, 130, 29, 120, 4, 11, 110, 105, 96, 72, 101, 12, 131, 33, 92, 88, 26, 35, 44, 125, 24, 61, 75, 85, 116, 34, 65, 103, 1, 18, 68, 39, 64, 55, 22, 78, 100], 135 : [37, 77, 90, 105, 48, 59, 111, 75, 92, 21, 89, 76, 83, 35, 114, 106, 52, 1, 10, 40, 95, 84, 79, 119, 0, 20, 129, 45, 98, 18, 64, 36, 22, 126, 124, 55, 86, 7, 102, 67, 101, 28, 9, 110, 30, 117, 128, 73, 49, 100, 3, 14, 11, 26, 60, 6, 17, 87, 54, 44, 108, 130, 120, 118, 81, 33, 63, 80, 2, 125, 39, 112, 115, 132, 78, 32, 4, 122, 13, 23, 16, 88, 31, 5, 133, 93, 38, 85, 121, 15, 99, 47, 56, 53, 104, 69, 134, 91, 123, 61, 65, 34, 74, 58, 12, 29, 97, 24, 62, 109, 8, 43, 127, 116, 113, 131, 27, 19, 66, 94, 51, 42, 103, 50, 82, 107, 71, 68, 57, 72, 96, 25, 70, 46, 41], 136 : [125, 130, 39, 103, 91, 51, 18, 50, 121, 99, 35, 76, 43, 15, 36, 127, 89, 61, 16, 77, 95, 59, 22, 63, 85, 67, 44, 134, 108, 42, 111, 82, 88, 115, 1, 49, 133, 56, 105, 14, 3, 6, 69, 23, 38, 100, 81, 71, 114, 58, 31, 98, 0, 112, 70, 13, 5, 2, 65, 135, 4, 30, 52, 116, 48, 12, 72, 96, 11, 119, 24, 57, 60, 25, 106, 10, 46, 62, 117, 131, 41, 92, 37, 7, 118, 19, 17, 83, 47, 21, 66, 64, 74, 97, 73, 45, 132, 90, 87, 27, 126, 129, 123, 120, 78, 110, 93, 26, 109, 8, 101, 94, 84, 33, 124, 107, 113, 40, 32, 122, 80, 9, 79, 29, 53, 28, 34, 104, 55, 128, 86, 20, 54, 75, 102, 68], 137 : [125, 97, 110, 9, 19, 68, 26, 38, 64, 37, 42, 83, 51, 61, 91, 20, 121, 40, 69, 11, 1, 74, 107, 2, 103, 108, 102, 53, 30, 32, 123, 24, 76, 87, 81, 35, 31, 80, 126, 134, 16, 62, 33, 127, 106, 57, 84, 129, 65, 13, 105, 111, 12, 99, 94, 119, 86, 135, 7, 116, 101, 27, 6, 28, 72, 115, 48, 128, 56, 85, 23, 100, 44, 132, 36, 25, 0, 66, 21, 90, 117, 8, 14, 73, 88, 130, 122, 114, 59, 131, 49, 43, 67, 4, 104, 89, 120, 96, 133, 95, 118, 17, 124, 3, 45, 78, 5, 70, 18, 54, 47, 34, 109, 22, 98, 92, 63, 50, 60, 39, 46, 79, 136, 58, 93, 71, 77, 41, 82, 15, 10, 29, 112, 52, 55, 113, 75], 138 : [87, 103, 36, 67, 80, 53, 107, 20, 117, 34, 123, 130, 70, 94, 102, 125, 73, 66, 2, 5, 12, 101, 24, 77, 57, 84, 29, 48, 37, 113, 81, 98, 122, 79, 96, 88, 32, 42, 23, 18, 1, 13, 110, 106, 55, 28, 131, 136, 109, 104, 21, 75, 7, 35, 128, 82, 99, 10, 74, 58, 100, 25, 43, 40, 44, 97, 92, 64, 83, 76, 27, 93, 19, 62, 126, 135, 14, 95, 116, 31, 115, 118, 16, 41, 9, 0, 60, 52, 133, 38, 6, 89, 22, 121, 26, 61, 137, 111, 17, 3, 112, 69, 4, 134, 15, 124, 114, 108, 78, 132, 120, 33, 85, 54, 45, 51, 91, 105, 63, 56, 68, 47, 65, 50, 119, 49, 59, 86, 8, 129, 39, 71, 46, 72, 90, 30, 11, 127], 139 : [47, 76, 109, 64, 84, 59, 12, 74, 126, 94, 61, 0, 40, 35, 78, 15, 89, 57, 113, 37, 110, 45, 5, 132, 136, 48, 82, 98, 120, 77, 114, 3, 121, 13, 108, 134, 2, 28, 90, 115, 103, 91, 17, 39, 127, 56, 24, 55, 1, 68, 112, 32, 26, 85, 18, 54, 4, 43, 83, 80, 33, 138, 67, 22, 58, 25, 107, 30, 65, 129, 105, 41, 27, 63, 87, 117, 102, 111, 133, 8, 123, 119, 86, 100, 42, 122, 81, 97, 19, 104, 99, 137, 93, 72, 10, 62, 135, 128, 131, 46, 130, 23, 14, 88, 73, 16, 7, 69, 124, 49, 92, 9, 11, 38, 21, 34, 118, 101, 52, 95, 44, 29, 79, 51, 66, 71, 53, 36, 31, 116, 75, 96, 20, 125, 6, 106, 50, 60, 70], 140 : [59, 85, 64, 109, 69, 100, 45, 53, 128, 87, 98, 138, 27, 34, 50, 5, 71, 37, 74, 51, 78, 124, 0, 17, 135, 70, 97, 8, 88, 24, 44, 107, 49, 10, 2, 86, 126, 41, 120, 113, 32, 16, 65, 84, 66, 136, 129, 21, 72, 62, 139, 63, 95, 134, 101, 127, 108, 28, 77, 75, 15, 89, 14, 61, 40, 26, 73, 13, 11, 68, 33, 80, 60, 137, 9, 19, 118, 106, 131, 112, 83, 119, 117, 6, 25, 116, 58, 93, 115, 99, 3, 31, 103, 130, 79, 7, 122, 105, 20, 133, 125, 29, 23, 90, 57, 52, 48, 22, 104, 102, 46, 35, 30, 92, 39, 54, 76, 67, 47, 110, 121, 55, 18, 96, 82, 42, 91, 1, 111, 4, 56, 12, 94, 81, 114, 132, 43, 123, 36, 38], 141 : [129, 72, 59, 47, 52, 44, 38, 79, 67, 133, 57, 16, 128, 25, 93, 68, 108, 75, 98, 33, 70, 136, 106, 24, 6, 49, 10, 18, 5, 56, 13, 132, 118, 66, 12, 77, 97, 39, 60, 42, 40, 130, 138, 126, 7, 139, 2, 73, 112, 85, 65, 26, 45, 64, 4, 115, 74, 31, 50, 99, 27, 30, 1, 83, 113, 54, 122, 92, 81, 123, 34, 11, 100, 135, 62, 28, 17, 71, 101, 0, 46, 19, 61, 117, 125, 114, 76, 36, 119, 124, 127, 20, 137, 88, 140, 102, 9, 107, 41, 116, 32, 131, 110, 51, 90, 63, 105, 111, 23, 89, 91, 109, 84, 48, 69, 134, 87, 78, 35, 104, 82, 55, 29, 14, 121, 53, 96, 58, 37, 15, 8, 21, 3, 120, 22, 95, 80, 94, 103, 43, 86], 142 : [109, 28, 26, 58, 69, 64, 128, 60, 70, 89, 78, 129, 30, 87, 108, 104, 37, 67, 79, 82, 17, 122, 110, 36, 102, 77, 137, 72, 2, 52, 8, 34, 23, 97, 46, 133, 92, 19, 113, 10, 51, 0, 21, 15, 114, 47, 16, 134, 130, 90, 35, 9, 112, 101, 94, 53, 93, 22, 54, 74, 85, 91, 95, 83, 71, 123, 132, 62, 106, 25, 127, 32, 39, 65, 31, 119, 115, 126, 124, 107, 80, 6, 136, 59, 131, 111, 20, 138, 5, 103, 41, 45, 3, 57, 99, 61, 105, 24, 86, 68, 116, 118, 18, 4, 66, 140, 100, 11, 29, 7, 55, 84, 75, 1, 33, 12, 117, 27, 44, 141, 139, 96, 50, 43, 76, 48, 56, 63, 13, 42, 98, 49, 81, 88, 73, 40, 135, 120, 38, 125, 121, 14], 143 : [81, 138, 102, 90, 121, 50, 129, 85, 94, 135, 49, 32, 74, 141, 57, 45, 8, 66, 103, 108, 56, 58, 124, 47, 53, 98, 48, 125, 37, 0, 106, 6, 46, 16, 69, 63, 33, 142, 4, 99, 17, 5, 20, 113, 127, 27, 101, 67, 34, 126, 119, 116, 55, 3, 65, 29, 75, 107, 84, 31, 93, 76, 118, 131, 51, 30, 104, 133, 28, 71, 128, 9, 40, 140, 115, 24, 92, 95, 88, 21, 7, 43, 73, 82, 25, 44, 59, 110, 130, 136, 97, 70, 109, 41, 79, 100, 54, 19, 86, 18, 132, 10, 83, 38, 22, 139, 2, 23, 14, 122, 137, 117, 1, 114, 60, 111, 77, 112, 15, 13, 96, 91, 120, 123, 36, 61, 134, 35, 62, 52, 87, 78, 72, 26, 89, 80, 12, 39, 105, 64, 11, 42, 68], 144 : [79, 107, 95, 1, 57, 115, 68, 28, 123, 131, 45, 14, 101, 73, 0, 8, 129, 124, 66, 3, 106, 126, 77, 33, 97, 108, 37, 127, 100, 141, 128, 13, 86, 12, 5, 42, 110, 105, 84, 116, 52, 69, 74, 17, 7, 46, 27, 23, 104, 55, 59, 118, 75, 137, 48, 2, 121, 32, 25, 58, 119, 15, 70, 24, 26, 98, 16, 56, 117, 130, 140, 109, 62, 102, 38, 92, 49, 4, 36, 9, 93, 138, 134, 88, 54, 10, 21, 111, 113, 35, 6, 44, 64, 50, 82, 91, 139, 99, 142, 30, 87, 18, 34, 80, 53, 120, 136, 85, 31, 94, 78, 39, 112, 61, 51, 135, 96, 83, 60, 40, 103, 143, 114, 43, 67, 90, 81, 41, 132, 20, 125, 122, 65, 72, 47, 76, 133, 71, 89, 63, 11, 19, 22, 29], 145 : [82, 58, 144, 86, 65, 123, 107, 46, 143, 33, 37, 75, 110, 27, 101, 121, 57, 1, 102, 122, 16, 69, 94, 60, 36, 68, 111, 80, 95, 55, 119, 26, 136, 19, 11, 71, 41, 17, 20, 72, 137, 59, 39, 142, 98, 53, 84, 3, 134, 23, 49, 127, 73, 66, 106, 21, 130, 47, 5, 104, 35, 91, 128, 109, 74, 124, 2, 24, 93, 132, 125, 99, 141, 12, 4, 54, 38, 28, 9, 129, 138, 64, 14, 76, 85, 117, 8, 78, 29, 61, 18, 6, 112, 10, 105, 97, 83, 43, 96, 116, 131, 120, 22, 126, 63, 140, 25, 67, 115, 34, 0, 45, 81, 40, 30, 118, 42, 139, 133, 87, 44, 113, 89, 52, 31, 62, 13, 70, 7, 90, 51, 79, 103, 15, 88, 108, 114, 100, 50, 77, 92, 135, 56, 48, 32], 146 : [0, 113, 98, 107, 28, 22, 76, 51, 140, 25, 85, 122, 65, 114, 104, 57, 36, 100, 105, 127, 42, 88, 34, 60, 47, 56, 21, 124, 135, 103, 99, 14, 71, 92, 118, 101, 49, 67, 81, 5, 128, 102, 136, 11, 23, 108, 38, 45, 143, 19, 106, 109, 131, 35, 126, 117, 20, 17, 33, 144, 62, 89, 16, 44, 2, 112, 24, 41, 29, 133, 61, 139, 43, 119, 13, 53, 121, 111, 97, 66, 74, 84, 142, 15, 141, 123, 72, 54, 96, 37, 115, 79, 125, 1, 30, 26, 3, 77, 95, 50, 132, 10, 4, 93, 63, 94, 83, 134, 27, 7, 32, 46, 64, 69, 86, 58, 130, 138, 48, 68, 75, 9, 87, 39, 120, 82, 12, 137, 6, 91, 55, 73, 8, 80, 52, 59, 129, 18, 145, 40, 31, 110, 70, 116, 90, 78], 147 : [65, 142, 13, 104, 115, 99, 5, 90, 87, 81, 53, 40, 119, 1, 69, 85, 29, 59, 133, 108, 28, 123, 47, 44, 34, 12, 116, 109, 51, 30, 125, 122, 60, 73, 83, 38, 16, 23, 3, 101, 17, 36, 61, 7, 132, 26, 55, 100, 111, 32, 20, 107, 102, 128, 54, 57, 46, 88, 143, 91, 74, 96, 106, 48, 121, 129, 9, 145, 139, 63, 21, 18, 43, 118, 11, 112, 114, 146, 144, 138, 2, 127, 134, 4, 80, 33, 113, 84, 8, 140, 105, 95, 126, 117, 68, 19, 27, 41, 137, 78, 92, 64, 31, 76, 42, 62, 14, 67, 124, 0, 103, 93, 10, 89, 66, 45, 72, 79, 71, 136, 15, 141, 120, 6, 130, 75, 58, 94, 35, 98, 135, 25, 50, 37, 49, 70, 97, 24, 110, 39, 131, 52, 56, 77, 22, 86, 82], 148 : [111, 129, 10, 72, 95, 82, 60, 107, 128, 0, 76, 44, 57, 80, 110, 61, 132, 28, 23, 43, 114, 14, 48, 84, 67, 11, 64, 41, 112, 63, 78, 70, 140, 13, 3, 30, 83, 1, 68, 22, 39, 136, 122, 6, 71, 58, 104, 7, 120, 45, 143, 100, 130, 42, 73, 91, 124, 85, 141, 51, 21, 92, 18, 126, 40, 144, 31, 119, 86, 89, 4, 17, 53, 25, 15, 46, 131, 32, 118, 139, 16, 103, 133, 115, 54, 102, 59, 146, 125, 87, 33, 88, 145, 9, 138, 5, 75, 47, 20, 36, 101, 69, 109, 97, 24, 62, 121, 116, 98, 38, 55, 77, 96, 134, 35, 26, 65, 105, 2, 135, 37, 74, 99, 123, 50, 79, 49, 12, 34, 8, 29, 137, 142, 81, 27, 93, 66, 19, 56, 113, 52, 108, 117, 147, 106, 127, 90, 94], 149 : [60, 24, 110, 68, 104, 99, 63, 26, 49, 54, 74, 129, 90, 139, 109, 40, 98, 48, 108, 59, 46, 122, 124, 93, 19, 92, 15, 101, 45, 136, 83, 80, 67, 17, 85, 116, 8, 57, 72, 137, 55, 1, 130, 44, 140, 4, 114, 56, 33, 5, 25, 134, 73, 142, 70, 127, 64, 132, 10, 0, 145, 148, 28, 69, 32, 11, 102, 78, 12, 146, 51, 38, 66, 42, 3, 103, 16, 77, 75, 50, 112, 144, 52, 120, 22, 6, 113, 141, 118, 111, 89, 7, 94, 29, 133, 128, 61, 143, 41, 97, 87, 62, 65, 147, 31, 37, 30, 125, 100, 138, 20, 107, 86, 117, 119, 79, 21, 105, 95, 36, 106, 135, 9, 96, 115, 23, 84, 39, 13, 91, 43, 27, 18, 14, 82, 53, 81, 34, 131, 121, 123, 71, 2, 47, 58, 35, 88, 126, 76], 150 : [86, 96, 41, 91, 71, 16, 75, 73, 87, 84, 82, 54, 148, 94, 52, 12, 119, 104, 78, 133, 44, 50, 34, 116, 145, 123, 117, 60, 98, 93, 81, 53, 74, 101, 111, 37, 5, 144, 11, 80, 149, 77, 56, 36, 128, 142, 66, 23, 76, 122, 1, 72, 6, 109, 45, 59, 90, 32, 121, 18, 9, 24, 0, 110, 114, 100, 65, 124, 33, 143, 62, 126, 43, 138, 29, 134, 147, 67, 4, 46, 8, 127, 112, 132, 92, 28, 131, 40, 20, 39, 64, 14, 69, 17, 15, 63, 42, 3, 146, 30, 47, 19, 38, 135, 89, 130, 95, 49, 25, 57, 7, 120, 115, 129, 2, 27, 61, 97, 102, 85, 10, 108, 137, 118, 125, 107, 48, 106, 88, 21, 55, 103, 113, 70, 139, 35, 31, 99, 136, 68, 140, 51, 22, 83, 13, 141, 79, 58, 105, 26], 151 : [43, 101, 75, 82, 114, 31, 120, 90, 47, 77, 32, 8, 68, 139, 33, 51, 5, 98, 66, 60, 29, 48, 137, 112, 64, 103, 37, 62, 148, 122, 134, 78, 143, 20, 49, 3, 124, 74, 55, 25, 131, 24, 100, 129, 97, 147, 88, 110, 50, 21, 96, 39, 149, 125, 109, 99, 38, 127, 34, 72, 0, 45, 6, 44, 58, 30, 46, 142, 19, 79, 11, 116, 84, 18, 81, 1, 69, 128, 130, 54, 23, 80, 115, 133, 17, 119, 28, 146, 89, 7, 121, 76, 61, 117, 86, 10, 145, 126, 52, 94, 73, 22, 132, 135, 26, 12, 106, 36, 87, 57, 118, 13, 9, 111, 85, 138, 63, 53, 56, 83, 136, 16, 27, 4, 70, 150, 140, 35, 40, 59, 14, 108, 93, 65, 92, 113, 2, 141, 104, 144, 67, 91, 95, 15, 42, 102, 105, 107, 71, 123, 41], 152 : [113, 105, 96, 121, 66, 27, 148, 33, 87, 13, 54, 82, 92, 40, 32, 60, 99, 93, 107, 109, 21, 38, 127, 29, 81, 133, 55, 130, 91, 36, 43, 71, 7, 52, 101, 103, 67, 74, 108, 5, 68, 136, 47, 128, 1, 106, 80, 131, 94, 72, 12, 31, 144, 34, 132, 114, 0, 22, 151, 10, 57, 11, 14, 111, 75, 23, 102, 88, 145, 53, 26, 143, 58, 120, 35, 150, 126, 76, 51, 104, 56, 2, 142, 98, 16, 48, 137, 139, 24, 42, 9, 3, 125, 147, 86, 65, 20, 46, 100, 90, 138, 6, 141, 45, 30, 146, 70, 85, 15, 119, 110, 59, 95, 19, 83, 69, 4, 28, 77, 8, 17, 61, 25, 116, 39, 63, 115, 135, 37, 123, 97, 41, 122, 78, 18, 112, 64, 149, 84, 118, 79, 49, 89, 44, 129, 140, 62, 134, 73, 117, 124, 50], 153 : [103, 132, 53, 95, 25, 76, 150, 135, 130, 110, 85, 37, 100, 55, 151, 89, 84, 98, 67, 30, 102, 75, 12, 50, 139, 115, 20, 34, 15, 22, 36, 46, 143, 129, 52, 39, 122, 134, 4, 112, 146, 77, 87, 93, 149, 69, 51, 6, 43, 71, 152, 106, 131, 116, 45, 7, 104, 74, 5, 16, 48, 23, 40, 9, 18, 79, 64, 27, 121, 101, 83, 141, 11, 117, 111, 26, 142, 144, 1, 62, 119, 127, 66, 148, 107, 94, 2, 68, 145, 147, 57, 41, 108, 17, 73, 31, 21, 125, 63, 10, 138, 81, 35, 136, 124, 8, 70, 96, 56, 78, 140, 38, 137, 113, 133, 92, 126, 49, 28, 54, 3, 14, 97, 72, 0, 86, 118, 128, 24, 114, 58, 65, 105, 91, 47, 90, 99, 80, 82, 109, 32, 13, 42, 61, 120, 60, 88, 33, 29, 19, 44, 59, 123], 154 : [57, 42, 138, 142, 13, 31, 95, 148, 128, 36, 110, 74, 97, 52, 44, 59, 81, 132, 66, 79, 86, 58, 39, 68, 145, 12, 5, 65, 104, 33, 88, 37, 82, 94, 87, 11, 123, 149, 108, 112, 118, 63, 135, 35, 38, 153, 23, 9, 2, 140, 16, 119, 121, 0, 103, 117, 21, 152, 70, 54, 56, 19, 137, 84, 75, 46, 4, 139, 147, 20, 18, 111, 80, 32, 107, 8, 26, 151, 64, 77, 6, 106, 85, 71, 130, 99, 14, 47, 73, 131, 25, 3, 126, 15, 43, 105, 109, 22, 62, 127, 24, 133, 29, 92, 67, 7, 141, 136, 144, 114, 53, 55, 143, 129, 50, 76, 115, 27, 101, 34, 120, 90, 28, 98, 69, 10, 49, 134, 102, 122, 60, 113, 30, 124, 45, 125, 93, 41, 72, 78, 48, 96, 1, 40, 146, 91, 116, 61, 100, 89, 51, 17, 83, 150], 155 : [17, 125, 52, 78, 30, 34, 36, 77, 86, 88, 99, 59, 95, 98, 61, 119, 2, 63, 106, 25, 28, 115, 37, 138, 131, 128, 39, 139, 1, 6, 151, 51, 118, 114, 29, 107, 72, 101, 94, 112, 117, 121, 16, 136, 56, 69, 10, 84, 5, 67, 104, 149, 19, 145, 116, 7, 153, 58, 21, 46, 35, 27, 23, 3, 48, 62, 110, 141, 129, 76, 55, 31, 14, 113, 127, 18, 13, 100, 133, 8, 60, 126, 91, 45, 87, 154, 105, 65, 81, 103, 90, 143, 82, 44, 12, 93, 137, 148, 132, 49, 89, 32, 144, 152, 42, 15, 54, 22, 124, 140, 0, 64, 123, 134, 102, 109, 43, 150, 4, 146, 85, 66, 147, 79, 20, 97, 9, 96, 130, 111, 122, 135, 24, 92, 80, 71, 83, 120, 26, 33, 108, 41, 70, 40, 74, 50, 142, 38, 73, 47, 53, 75, 68, 57, 11], 156 : [55, 36, 67, 60, 115, 86, 108, 24, 82, 21, 95, 50, 84, 133, 72, 18, 35, 87, 113, 92, 132, 25, 51, 74, 8, 41, 58, 140, 147, 20, 76, 44, 85, 117, 40, 91, 105, 125, 106, 70, 94, 4, 29, 142, 59, 2, 124, 129, 68, 139, 39, 130, 135, 100, 47, 57, 98, 144, 154, 80, 32, 27, 121, 127, 97, 42, 16, 65, 111, 7, 93, 123, 6, 101, 13, 54, 22, 152, 138, 90, 1, 61, 149, 64, 52, 0, 62, 46, 114, 151, 37, 131, 66, 15, 5, 83, 49, 38, 146, 137, 23, 9, 11, 81, 73, 150, 143, 112, 78, 12, 45, 53, 56, 120, 148, 10, 43, 34, 128, 102, 75, 116, 119, 141, 110, 126, 122, 88, 71, 31, 26, 104, 96, 155, 3, 89, 107, 145, 69, 153, 33, 30, 136, 14, 109, 63, 79, 19, 99, 134, 48, 118, 28, 77, 103, 17], 157 : [60, 16, 49, 15, 77, 105, 93, 85, 92, 120, 84, 46, 149, 39, 47, 20, 140, 70, 133, 67, 118, 152, 138, 31, 128, 66, 72, 29, 122, 3, 88, 54, 10, 90, 109, 23, 139, 51, 97, 7, 108, 113, 73, 5, 45, 101, 28, 102, 80, 62, 131, 55, 115, 43, 9, 76, 121, 150, 74, 135, 104, 42, 151, 106, 144, 4, 64, 117, 134, 35, 8, 100, 110, 24, 156, 99, 127, 0, 27, 58, 22, 130, 71, 36, 6, 124, 155, 98, 34, 52, 82, 153, 53, 145, 13, 32, 87, 11, 65, 40, 21, 25, 132, 125, 146, 12, 38, 91, 1, 56, 37, 2, 112, 44, 86, 75, 96, 137, 83, 59, 154, 114, 18, 129, 69, 17, 111, 61, 63, 41, 116, 141, 89, 103, 143, 33, 95, 81, 107, 136, 26, 14, 119, 19, 147, 78, 94, 57, 142, 30, 123, 48, 68, 148, 79, 126, 50], 158 : [72, 10, 118, 134, 93, 69, 128, 97, 32, 38, 55, 2, 138, 147, 108, 0, 83, 43, 68, 111, 80, 13, 41, 59, 42, 136, 82, 126, 140, 112, 37, 102, 71, 106, 49, 123, 139, 79, 85, 141, 62, 46, 63, 86, 57, 143, 23, 127, 30, 114, 77, 5, 153, 78, 154, 66, 96, 27, 3, 113, 137, 110, 6, 148, 7, 75, 119, 22, 74, 26, 36, 67, 21, 34, 16, 1, 120, 11, 156, 142, 18, 122, 44, 29, 135, 24, 60, 157, 104, 87, 152, 90, 124, 17, 54, 92, 48, 132, 150, 107, 47, 88, 133, 81, 52, 117, 94, 58, 146, 84, 35, 4, 145, 12, 64, 109, 20, 103, 155, 95, 8, 28, 51, 31, 89, 65, 130, 39, 100, 14, 131, 115, 101, 116, 45, 91, 33, 151, 53, 98, 129, 99, 105, 19, 50, 125, 40, 70, 9, 76, 121, 61, 25, 56, 144, 15, 149, 73], 159 : [141, 29, 32, 148, 111, 42, 97, 138, 96, 143, 129, 44, 81, 26, 91, 142, 128, 27, 33, 90, 43, 125, 80, 151, 74, 88, 134, 84, 22, 45, 139, 37, 63, 23, 108, 40, 56, 9, 99, 114, 19, 140, 85, 89, 20, 67, 147, 54, 30, 11, 38, 31, 78, 137, 13, 36, 123, 0, 106, 7, 10, 100, 66, 131, 17, 103, 69, 4, 1, 86, 121, 83, 136, 46, 59, 15, 21, 133, 150, 39, 120, 35, 117, 34, 52, 2, 130, 12, 153, 144, 149, 93, 75, 94, 154, 53, 107, 3, 68, 41, 65, 122, 71, 77, 158, 5, 101, 14, 155, 105, 49, 135, 112, 127, 156, 62, 109, 115, 126, 118, 6, 110, 48, 98, 58, 18, 104, 152, 157, 113, 8, 47, 87, 16, 61, 76, 145, 25, 50, 57, 72, 51, 64, 92, 28, 132, 55, 124, 79, 73, 70, 24, 82, 116, 146, 119, 102, 95, 60], 160 : [7, 143, 93, 16, 56, 31, 102, 94, 55, 49, 123, 66, 33, 15, 113, 140, 145, 42, 37, 107, 21, 125, 152, 92, 70, 36, 147, 58, 62, 41, 146, 148, 105, 114, 87, 72, 29, 47, 110, 118, 96, 139, 78, 153, 101, 53, 85, 124, 122, 91, 18, 115, 35, 69, 28, 26, 151, 149, 120, 64, 98, 136, 50, 13, 46, 60, 22, 57, 74, 27, 156, 48, 117, 20, 23, 3, 127, 34, 65, 155, 84, 10, 126, 144, 133, 54, 116, 157, 14, 106, 150, 141, 121, 39, 137, 9, 76, 86, 130, 0, 5, 159, 99, 81, 52, 132, 82, 142, 8, 68, 89, 30, 6, 79, 45, 2, 100, 135, 51, 104, 119, 61, 43, 12, 67, 111, 25, 40, 1, 138, 128, 73, 77, 17, 19, 90, 97, 75, 103, 83, 131, 80, 134, 95, 158, 108, 44, 71, 38, 11, 112, 59, 63, 32, 88, 109, 129, 24, 154, 4], 161 : [90, 16, 149, 35, 38, 88, 121, 66, 11, 94, 37, 30, 58, 142, 87, 101, 97, 91, 41, 119, 6, 3, 18, 103, 60, 157, 114, 143, 59, 29, 141, 20, 140, 84, 116, 44, 9, 146, 105, 68, 106, 111, 34, 76, 45, 55, 51, 67, 19, 128, 148, 152, 112, 147, 48, 108, 78, 118, 8, 12, 73, 2, 100, 15, 22, 27, 153, 144, 63, 80, 5, 95, 102, 36, 158, 151, 56, 132, 123, 43, 40, 129, 54, 137, 83, 122, 154, 1, 150, 107, 64, 21, 156, 17, 75, 134, 62, 14, 82, 24, 104, 117, 159, 50, 26, 13, 0, 28, 125, 135, 46, 4, 25, 72, 33, 71, 130, 145, 61, 57, 69, 39, 70, 93, 115, 160, 31, 81, 126, 136, 113, 96, 138, 120, 124, 7, 32, 65, 131, 85, 74, 109, 49, 52, 86, 89, 77, 155, 99, 110, 127, 10, 47, 53, 139, 42, 79, 133, 23, 98, 92], 162 : [80, 67, 104, 72, 79, 60, 94, 29, 134, 112, 8, 85, 46, 17, 97, 28, 19, 90, 100, 58, 116, 35, 141, 86, 138, 56, 87, 63, 84, 64, 117, 140, 153, 65, 6, 11, 96, 135, 129, 13, 133, 33, 127, 59, 121, 144, 36, 160, 2, 111, 7, 48, 103, 125, 95, 126, 15, 147, 47, 143, 106, 89, 73, 4, 161, 110, 53, 20, 122, 69, 149, 14, 71, 81, 49, 151, 55, 119, 66, 5, 9, 98, 131, 34, 26, 37, 124, 108, 51, 44, 40, 77, 24, 21, 109, 128, 1, 27, 10, 30, 148, 120, 145, 22, 114, 132, 130, 159, 32, 25, 88, 45, 68, 75, 158, 82, 146, 42, 136, 101, 57, 150, 107, 93, 3, 74, 152, 31, 105, 154, 16, 78, 123, 156, 118, 18, 12, 39, 102, 83, 61, 52, 115, 137, 50, 38, 155, 92, 113, 43, 41, 157, 0, 91, 76, 62, 139, 70, 54, 23, 99, 142], 163 : [87, 121, 50, 42, 9, 85, 160, 76, 92, 111, 65, 68, 143, 58, 117, 11, 39, 47, 62, 119, 56, 156, 148, 120, 95, 137, 86, 30, 155, 10, 93, 105, 97, 154, 133, 113, 33, 123, 71, 19, 104, 73, 153, 102, 38, 130, 48, 59, 131, 103, 77, 159, 78, 51, 14, 40, 29, 134, 12, 94, 142, 60, 24, 63, 136, 69, 81, 31, 5, 80, 151, 22, 145, 45, 3, 141, 15, 20, 112, 28, 108, 127, 140, 124, 122, 18, 139, 37, 13, 110, 25, 101, 135, 23, 16, 162, 0, 106, 138, 161, 118, 72, 70, 152, 57, 36, 157, 82, 49, 54, 7, 74, 27, 132, 115, 128, 17, 34, 147, 46, 8, 88, 91, 109, 26, 44, 52, 55, 4, 67, 89, 83, 66, 41, 125, 2, 150, 21, 96, 100, 64, 129, 98, 43, 84, 35, 116, 126, 6, 32, 61, 99, 158, 146, 149, 1, 79, 114, 90, 53, 144, 107, 75], 164 : [103, 25, 46, 85, 36, 77, 129, 88, 113, 83, 145, 118, 64, 84, 90, 30, 57, 150, 69, 143, 137, 42, 53, 117, 43, 45, 123, 154, 92, 160, 7, 116, 153, 35, 60, 141, 79, 24, 94, 139, 67, 127, 5, 131, 157, 68, 106, 87, 4, 96, 66, 142, 26, 31, 3, 14, 126, 2, 6, 21, 50, 78, 56, 140, 109, 34, 23, 97, 86, 54, 28, 158, 125, 13, 11, 16, 133, 49, 114, 40, 148, 159, 132, 105, 17, 8, 100, 63, 95, 1, 10, 74, 104, 48, 20, 22, 15, 72, 89, 147, 98, 130, 41, 55, 138, 0, 73, 37, 51, 115, 27, 19, 161, 38, 149, 9, 155, 39, 156, 12, 18, 122, 82, 61, 124, 162, 119, 91, 99, 108, 81, 128, 136, 75, 120, 59, 70, 58, 163, 71, 76, 151, 110, 93, 152, 80, 112, 135, 102, 144, 52, 29, 65, 62, 134, 101, 121, 33, 111, 32, 47, 44, 146, 107], 165 : [93, 86, 56, 2, 130, 119, 28, 57, 10, 79, 47, 118, 78, 155, 53, 88, 50, 113, 159, 3, 111, 80, 110, 32, 68, 18, 153, 70, 90, 116, 49, 107, 73, 37, 92, 158, 115, 26, 36, 21, 114, 58, 9, 43, 139, 147, 69, 22, 138, 97, 103, 30, 24, 83, 87, 106, 48, 160, 65, 108, 141, 46, 75, 126, 84, 142, 149, 15, 23, 105, 154, 98, 150, 12, 102, 120, 34, 163, 109, 140, 40, 156, 134, 52, 71, 17, 8, 41, 33, 25, 122, 74, 27, 128, 151, 164, 0, 157, 51, 72, 146, 11, 61, 54, 95, 123, 96, 20, 1, 89, 6, 29, 31, 101, 38, 162, 117, 64, 55, 14, 5, 145, 127, 161, 132, 137, 13, 152, 104, 143, 42, 60, 129, 136, 77, 99, 82, 133, 100, 67, 16, 112, 63, 66, 59, 85, 4, 124, 62, 35, 144, 45, 7, 148, 135, 121, 44, 131, 39, 19, 76, 81, 125, 94, 91], 166 : [65, 40, 120, 54, 39, 90, 63, 20, 25, 105, 114, 35, 82, 18, 69, 49, 136, 112, 92, 164, 30, 58, 111, 154, 2, 122, 97, 126, 78, 75, 102, 31, 140, 16, 94, 26, 34, 158, 151, 115, 12, 143, 51, 107, 117, 27, 88, 79, 95, 93, 153, 9, 133, 28, 43, 48, 157, 33, 106, 142, 119, 101, 13, 155, 38, 165, 47, 44, 70, 147, 67, 11, 149, 72, 104, 129, 138, 113, 134, 7, 148, 160, 76, 32, 57, 3, 50, 99, 141, 59, 135, 21, 108, 156, 146, 22, 163, 42, 83, 137, 96, 17, 109, 46, 52, 71, 139, 132, 130, 110, 10, 24, 161, 81, 5, 36, 14, 103, 124, 80, 55, 150, 60, 144, 68, 19, 152, 64, 116, 41, 37, 56, 74, 128, 145, 98, 23, 121, 125, 1, 87, 91, 73, 100, 29, 86, 0, 127, 45, 85, 15, 66, 131, 4, 162, 8, 159, 53, 77, 118, 62, 123, 61, 6, 84, 89], 167 : [157, 101, 124, 82, 9, 132, 71, 24, 33, 48, 119, 114, 116, 126, 77, 83, 162, 105, 99, 51, 139, 106, 70, 149, 26, 53, 41, 61, 6, 0, 60, 78, 166, 107, 10, 125, 15, 121, 113, 72, 76, 112, 22, 30, 42, 56, 54, 100, 144, 65, 102, 36, 138, 165, 94, 27, 161, 88, 47, 148, 122, 134, 58, 92, 20, 84, 75, 40, 3, 37, 96, 5, 164, 31, 128, 8, 68, 17, 52, 2, 63, 118, 21, 13, 104, 136, 110, 159, 98, 46, 18, 146, 39, 81, 1, 155, 23, 158, 12, 62, 127, 32, 103, 141, 153, 7, 156, 97, 152, 25, 151, 35, 55, 135, 66, 160, 38, 130, 79, 64, 45, 90, 143, 109, 147, 69, 133, 93, 163, 44, 59, 137, 4, 108, 111, 73, 89, 34, 129, 87, 16, 50, 142, 85, 57, 140, 150, 28, 145, 14, 43, 19, 29, 11, 86, 115, 120, 49, 123, 95, 154, 131, 80, 67, 74, 91, 117], 168 : [107, 32, 39, 95, 97, 84, 22, 89, 106, 48, 155, 57, 23, 146, 86, 72, 93, 128, 51, 120, 124, 110, 134, 79, 49, 54, 132, 63, 144, 30, 13, 148, 4, 33, 121, 21, 126, 88, 119, 127, 70, 165, 157, 161, 42, 131, 26, 38, 167, 91, 15, 64, 115, 60, 6, 44, 11, 59, 152, 104, 77, 14, 1, 58, 28, 71, 16, 111, 92, 166, 141, 34, 31, 153, 20, 142, 136, 50, 140, 73, 118, 3, 103, 147, 24, 45, 109, 19, 29, 138, 112, 101, 133, 154, 160, 37, 74, 151, 56, 5, 47, 159, 81, 65, 7, 114, 80, 75, 12, 143, 87, 35, 108, 25, 162, 130, 100, 149, 62, 55, 9, 125, 67, 52, 10, 17, 61, 8, 163, 78, 18, 2, 137, 90, 43, 96, 102, 27, 164, 158, 68, 0, 145, 66, 156, 116, 113, 123, 53, 139, 41, 99, 122, 69, 129, 98, 83, 94, 150, 46, 36, 117, 82, 40, 85, 76, 135, 105], 169 : [82, 145, 140, 96, 50, 73, 142, 49, 133, 22, 30, 23, 77, 119, 168, 148, 70, 103, 40, 5, 15, 45, 152, 72, 86, 164, 16, 100, 24, 1, 110, 134, 141, 123, 71, 32, 150, 139, 79, 106, 153, 138, 60, 159, 122, 167, 121, 54, 166, 6, 9, 78, 129, 84, 14, 160, 104, 55, 130, 144, 33, 93, 132, 17, 127, 48, 89, 4, 19, 12, 34, 114, 97, 137, 10, 53, 67, 76, 99, 113, 146, 157, 69, 128, 124, 46, 143, 20, 0, 47, 36, 44, 8, 68, 39, 83, 154, 62, 26, 155, 21, 43, 102, 162, 35, 13, 90, 63, 3, 135, 28, 125, 147, 163, 61, 94, 105, 111, 81, 11, 37, 101, 161, 2, 25, 107, 74, 57, 136, 98, 65, 116, 165, 109, 126, 151, 51, 27, 42, 80, 7, 75, 41, 120, 18, 95, 112, 149, 158, 88, 117, 56, 156, 108, 64, 58, 118, 131, 85, 31, 92, 87, 91, 115, 66, 52, 59, 38, 29], 170 : [64, 85, 120, 104, 129, 83, 95, 13, 4, 100, 149, 137, 155, 125, 16, 112, 146, 14, 106, 61, 71, 82, 7, 46, 19, 3, 70, 55, 39, 115, 80, 123, 24, 52, 139, 35, 6, 36, 68, 141, 92, 147, 152, 126, 113, 84, 49, 37, 77, 90, 159, 0, 99, 12, 48, 166, 42, 66, 114, 133, 15, 79, 122, 73, 164, 161, 121, 30, 102, 162, 107, 143, 135, 74, 18, 111, 69, 58, 1, 8, 28, 72, 150, 160, 29, 9, 144, 25, 23, 54, 105, 27, 63, 21, 34, 51, 128, 118, 151, 165, 157, 20, 148, 130, 45, 32, 119, 59, 26, 142, 40, 65, 87, 167, 134, 2, 10, 81, 163, 11, 158, 89, 94, 97, 138, 50, 38, 132, 117, 109, 33, 110, 136, 75, 156, 44, 67, 154, 96, 108, 60, 124, 140, 168, 78, 91, 153, 5, 98, 88, 47, 17, 103, 86, 131, 57, 62, 169, 145, 22, 53, 56, 31, 116, 41, 127, 76, 93, 43, 101], 171 : [71, 159, 81, 30, 1, 79, 38, 87, 95, 73, 86, 62, 41, 6, 104, 50, 25, 90, 101, 111, 105, 107, 76, 93, 91, 26, 115, 129, 134, 138, 163, 59, 139, 151, 52, 75, 156, 84, 74, 13, 154, 37, 67, 121, 22, 60, 158, 12, 113, 80, 20, 100, 82, 169, 131, 150, 167, 161, 68, 64, 39, 7, 120, 157, 5, 110, 108, 165, 149, 77, 43, 46, 29, 15, 162, 132, 11, 72, 98, 135, 128, 10, 65, 126, 48, 0, 14, 8, 49, 148, 109, 51, 153, 61, 160, 106, 99, 42, 102, 143, 2, 21, 164, 66, 44, 54, 140, 144, 55, 31, 40, 118, 56, 146, 17, 96, 168, 27, 94, 145, 136, 142, 16, 103, 57, 63, 9, 125, 119, 28, 35, 97, 117, 147, 133, 127, 47, 69, 122, 34, 32, 89, 3, 114, 130, 33, 85, 19, 170, 92, 137, 88, 45, 166, 4, 36, 24, 112, 152, 141, 83, 18, 116, 23, 70, 124, 78, 155, 53, 58, 123], 172 : [95, 163, 66, 141, 135, 76, 142, 81, 77, 65, 124, 122, 147, 92, 102, 28, 10, 83, 58, 99, 35, 27, 98, 69, 158, 41, 19, 5, 42, 86, 157, 164, 114, 25, 151, 93, 85, 112, 145, 131, 152, 8, 144, 48, 46, 107, 55, 162, 167, 61, 103, 11, 78, 89, 139, 39, 140, 30, 123, 84, 156, 108, 49, 14, 134, 73, 160, 57, 161, 50, 32, 51, 153, 23, 40, 143, 47, 9, 129, 62, 111, 119, 171, 0, 126, 12, 22, 159, 1, 17, 150, 136, 169, 166, 15, 36, 60, 97, 59, 100, 137, 44, 120, 170, 138, 109, 71, 128, 63, 56, 2, 18, 64, 88, 149, 20, 31, 116, 113, 7, 168, 16, 45, 67, 115, 79, 148, 33, 104, 82, 72, 90, 52, 121, 38, 43, 26, 3, 127, 118, 80, 110, 165, 74, 6, 117, 29, 154, 13, 94, 53, 133, 54, 21, 91, 125, 130, 87, 106, 155, 70, 75, 4, 34, 132, 24, 105, 101, 37, 146, 68, 96], 173 : [85, 63, 117, 21, 62, 126, 115, 6, 74, 129, 112, 123, 81, 59, 82, 148, 71, 90, 94, 86, 97, 41, 70, 77, 147, 36, 122, 23, 2, 45, 137, 149, 47, 155, 25, 19, 134, 136, 113, 37, 9, 160, 66, 156, 26, 146, 7, 110, 138, 141, 95, 73, 89, 93, 114, 22, 162, 151, 43, 69, 53, 88, 142, 27, 4, 91, 49, 109, 38, 150, 16, 10, 165, 92, 157, 164, 42, 168, 64, 35, 118, 52, 111, 170, 143, 17, 130, 100, 67, 40, 120, 132, 51, 11, 32, 101, 153, 106, 12, 0, 105, 46, 57, 8, 139, 169, 31, 158, 15, 18, 54, 24, 145, 127, 108, 119, 14, 107, 161, 1, 167, 33, 84, 124, 60, 58, 68, 99, 104, 163, 133, 152, 80, 39, 5, 78, 56, 125, 28, 131, 121, 166, 154, 34, 102, 29, 65, 144, 13, 48, 3, 103, 76, 140, 171, 135, 79, 87, 75, 159, 128, 98, 55, 44, 172, 20, 116, 83, 96, 61, 72, 50, 30], 174 : [81, 105, 63, 144, 66, 74, 70, 33, 140, 173, 155, 42, 110, 95, 58, 34, 22, 114, 162, 35, 150, 71, 108, 16, 118, 121, 29, 126, 60, 75, 145, 153, 45, 167, 30, 84, 57, 89, 4, 165, 158, 17, 27, 168, 36, 73, 40, 77, 160, 87, 93, 12, 51, 3, 139, 90, 112, 97, 132, 147, 169, 59, 79, 47, 137, 98, 159, 122, 32, 136, 149, 143, 43, 11, 88, 85, 9, 92, 31, 120, 2, 104, 166, 7, 23, 82, 53, 157, 146, 67, 37, 151, 65, 117, 133, 131, 6, 99, 54, 170, 14, 91, 19, 171, 152, 86, 101, 172, 135, 127, 56, 156, 154, 100, 161, 49, 1, 18, 20, 39, 61, 125, 129, 10, 113, 107, 69, 138, 111, 163, 25, 52, 141, 124, 15, 123, 8, 41, 78, 48, 0, 68, 55, 106, 103, 28, 116, 76, 148, 72, 38, 102, 83, 21, 5, 24, 164, 46, 13, 96, 26, 80, 142, 128, 64, 134, 94, 109, 44, 62, 119, 115, 50, 130], 175 : [123, 18, 116, 99, 115, 41, 62, 59, 101, 162, 100, 19, 15, 98, 87, 70, 117, 77, 75, 126, 49, 110, 52, 61, 145, 138, 13, 94, 166, 83, 34, 95, 6, 28, 82, 37, 4, 69, 153, 86, 118, 147, 3, 161, 8, 33, 88, 20, 120, 129, 36, 170, 72, 156, 146, 167, 93, 97, 64, 71, 106, 104, 121, 173, 11, 149, 141, 108, 92, 44, 12, 25, 81, 152, 54, 45, 21, 142, 74, 137, 24, 17, 107, 9, 73, 135, 131, 53, 2, 140, 57, 14, 47, 51, 165, 128, 158, 160, 133, 168, 79, 63, 30, 125, 172, 10, 78, 151, 127, 39, 171, 27, 68, 23, 32, 109, 139, 148, 134, 40, 159, 105, 150, 130, 84, 143, 111, 119, 1, 48, 42, 65, 80, 29, 22, 7, 31, 96, 55, 91, 103, 132, 169, 58, 26, 5, 124, 144, 50, 164, 56, 90, 163, 60, 136, 0, 154, 114, 16, 38, 85, 102, 89, 76, 157, 155, 66, 113, 43, 46, 35, 122, 112, 67, 174], 176 : [107, 137, 51, 35, 69, 43, 117, 58, 100, 97, 135, 0, 93, 130, 86, 74, 98, 143, 84, 24, 114, 71, 48, 27, 109, 31, 54, 63, 90, 156, 52, 175, 116, 89, 1, 7, 19, 76, 115, 40, 111, 94, 87, 118, 146, 29, 145, 38, 121, 150, 105, 50, 32, 151, 44, 8, 147, 73, 66, 113, 17, 173, 170, 139, 164, 144, 60, 30, 23, 96, 46, 154, 21, 103, 167, 88, 124, 138, 141, 122, 82, 102, 128, 163, 28, 59, 106, 155, 15, 10, 104, 68, 39, 47, 2, 9, 133, 171, 80, 168, 56, 132, 75, 18, 162, 12, 131, 77, 148, 169, 78, 120, 81, 14, 33, 157, 41, 11, 79, 129, 53, 140, 67, 134, 55, 159, 13, 142, 4, 136, 165, 123, 64, 16, 92, 153, 45, 166, 37, 91, 26, 70, 101, 3, 108, 126, 34, 20, 6, 65, 85, 149, 95, 5, 125, 57, 61, 174, 62, 36, 22, 161, 25, 158, 112, 127, 83, 49, 119, 172, 110, 42, 72, 160, 152, 99], 177 : [29, 127, 97, 107, 23, 92, 145, 74, 125, 52, 137, 90, 43, 153, 14, 147, 60, 41, 17, 121, 26, 173, 128, 71, 110, 45, 88, 141, 120, 63, 47, 129, 84, 140, 32, 118, 27, 83, 159, 67, 165, 172, 102, 93, 77, 98, 103, 25, 20, 34, 30, 148, 136, 16, 50, 154, 69, 106, 13, 132, 116, 3, 12, 139, 51, 58, 101, 168, 49, 36, 163, 122, 82, 150, 15, 166, 158, 53, 167, 104, 2, 56, 87, 155, 111, 123, 144, 162, 5, 75, 135, 81, 37, 94, 33, 176, 79, 119, 11, 78, 161, 131, 55, 76, 146, 164, 113, 91, 10, 149, 48, 100, 73, 46, 24, 4, 64, 7, 86, 22, 156, 1, 9, 170, 28, 99, 138, 124, 54, 61, 133, 96, 134, 151, 105, 117, 19, 8, 175, 39, 6, 66, 0, 152, 42, 160, 169, 68, 72, 21, 112, 59, 44, 174, 114, 143, 18, 80, 89, 115, 130, 95, 157, 40, 108, 35, 62, 171, 126, 109, 85, 65, 57, 70, 38, 31, 142], 178 : [141, 153, 117, 84, 23, 87, 156, 114, 177, 52, 124, 61, 13, 162, 19, 140, 126, 57, 53, 88, 20, 99, 95, 166, 145, 91, 72, 76, 100, 70, 118, 59, 2, 44, 7, 170, 159, 12, 171, 41, 111, 167, 125, 102, 176, 17, 147, 137, 150, 42, 31, 5, 172, 110, 105, 89, 54, 122, 68, 24, 63, 92, 94, 21, 25, 36, 108, 130, 50, 33, 103, 175, 4, 77, 62, 55, 85, 45, 163, 158, 49, 149, 15, 169, 139, 29, 14, 37, 155, 164, 3, 116, 119, 146, 86, 0, 35, 157, 106, 40, 113, 67, 6, 109, 134, 47, 80, 161, 128, 123, 132, 148, 69, 34, 51, 112, 142, 66, 96, 30, 71, 107, 11, 83, 16, 78, 165, 151, 9, 173, 28, 143, 168, 127, 43, 98, 58, 1, 64, 27, 136, 93, 133, 160, 74, 144, 75, 154, 48, 8, 129, 97, 79, 46, 22, 138, 32, 65, 174, 104, 18, 120, 82, 38, 81, 121, 101, 73, 115, 60, 56, 90, 10, 135, 26, 152, 131, 39], 179 : [105, 116, 38, 96, 59, 76, 157, 30, 13, 68, 94, 86, 124, 133, 14, 177, 40, 79, 150, 57, 145, 72, 3, 1, 35, 88, 103, 15, 41, 118, 90, 130, 16, 6, 141, 115, 70, 176, 17, 64, 22, 142, 138, 97, 48, 132, 18, 0, 178, 65, 108, 101, 28, 169, 87, 52, 167, 109, 106, 123, 26, 171, 21, 4, 121, 131, 67, 140, 137, 164, 60, 2, 63, 155, 20, 156, 12, 46, 81, 31, 119, 73, 8, 166, 54, 170, 129, 163, 98, 111, 139, 24, 159, 32, 122, 114, 152, 51, 144, 146, 49, 162, 172, 23, 100, 62, 95, 136, 11, 149, 29, 113, 153, 80, 75, 7, 56, 34, 9, 83, 173, 50, 10, 19, 151, 134, 47, 110, 160, 66, 165, 168, 174, 58, 44, 82, 33, 143, 158, 55, 154, 84, 104, 27, 74, 125, 161, 37, 99, 107, 85, 36, 5, 148, 117, 89, 127, 112, 126, 71, 61, 42, 147, 25, 77, 45, 53, 69, 43, 92, 135, 93, 128, 39, 78, 102, 175, 91, 120], 180 : [82, 86, 163, 95, 11, 125, 75, 31, 66, 110, 153, 42, 147, 84, 48, 57, 134, 115, 12, 97, 70, 151, 101, 113, 117, 174, 148, 87, 127, 26, 175, 78, 145, 9, 99, 30, 53, 56, 171, 136, 104, 132, 142, 96, 47, 18, 37, 32, 128, 108, 1, 3, 58, 139, 15, 157, 161, 43, 120, 162, 156, 45, 105, 7, 24, 81, 38, 140, 35, 92, 138, 14, 6, 54, 141, 46, 25, 79, 166, 107, 72, 68, 176, 144, 114, 73, 137, 98, 17, 59, 160, 100, 10, 89, 170, 4, 49, 154, 124, 65, 8, 41, 135, 80, 62, 88, 172, 40, 20, 22, 146, 149, 5, 27, 83, 169, 90, 34, 2, 50, 23, 13, 177, 164, 123, 143, 165, 167, 67, 52, 131, 158, 28, 122, 179, 103, 173, 0, 102, 94, 64, 121, 69, 133, 76, 150, 159, 77, 152, 178, 21, 36, 51, 112, 74, 130, 118, 85, 60, 116, 106, 71, 39, 119, 129, 29, 44, 33, 63, 19, 168, 109, 91, 16, 61, 111, 155, 93, 126, 55], 181 : [126, 150, 140, 133, 84, 48, 29, 180, 74, 131, 109, 161, 170, 94, 154, 47, 143, 105, 81, 32, 177, 69, 38, 17, 61, 55, 95, 146, 101, 3, 14, 93, 132, 77, 33, 153, 127, 56, 66, 118, 76, 162, 91, 25, 160, 46, 114, 103, 145, 5, 59, 111, 78, 155, 11, 89, 151, 98, 141, 39, 1, 22, 2, 159, 174, 30, 119, 122, 40, 54, 43, 26, 20, 16, 4, 104, 168, 136, 71, 7, 97, 19, 120, 73, 44, 60, 28, 152, 123, 163, 115, 80, 51, 13, 148, 173, 135, 117, 67, 35, 147, 116, 72, 134, 62, 107, 124, 34, 12, 166, 171, 42, 164, 57, 23, 142, 45, 139, 110, 102, 15, 6, 10, 100, 92, 75, 129, 178, 106, 9, 144, 27, 165, 65, 50, 130, 83, 88, 52, 8, 138, 108, 53, 24, 36, 157, 0, 49, 58, 128, 121, 64, 149, 90, 37, 21, 137, 18, 112, 125, 156, 79, 172, 82, 169, 99, 87, 68, 41, 176, 63, 96, 158, 179, 86, 175, 70, 85, 113, 31, 167], 182 : [80, 49, 104, 168, 30, 24, 147, 42, 123, 62, 72, 121, 90, 57, 105, 128, 152, 22, 20, 172, 127, 129, 166, 155, 125, 35, 118, 150, 39, 132, 46, 65, 114, 31, 102, 146, 126, 4, 71, 36, 3, 82, 177, 139, 33, 164, 0, 145, 9, 138, 154, 106, 21, 34, 181, 7, 59, 94, 64, 101, 74, 124, 108, 133, 52, 77, 67, 140, 1, 100, 43, 122, 148, 142, 44, 162, 19, 8, 63, 13, 55, 73, 131, 6, 10, 45, 5, 38, 23, 16, 156, 37, 120, 15, 103, 176, 153, 117, 54, 107, 130, 175, 141, 14, 17, 157, 99, 56, 144, 75, 2, 26, 91, 178, 173, 171, 180, 167, 11, 151, 165, 68, 58, 53, 92, 41, 97, 113, 83, 79, 18, 93, 32, 50, 110, 159, 161, 111, 137, 134, 25, 98, 86, 160, 51, 27, 87, 169, 135, 149, 179, 116, 66, 78, 158, 170, 109, 29, 95, 40, 119, 174, 12, 47, 136, 61, 143, 69, 96, 81, 28, 89, 70, 115, 60, 76, 85, 48, 88, 84, 112, 163], 183 : [140, 47, 112, 68, 98, 131, 66, 173, 35, 77, 81, 87, 148, 22, 51, 147, 172, 101, 12, 118, 32, 110, 104, 144, 181, 91, 67, 48, 156, 55, 59, 27, 88, 50, 79, 82, 103, 17, 96, 89, 154, 122, 65, 134, 16, 24, 123, 80, 163, 149, 175, 138, 21, 2, 111, 7, 100, 49, 113, 46, 162, 97, 18, 1, 160, 127, 182, 85, 129, 143, 33, 38, 6, 8, 167, 180, 62, 125, 168, 15, 120, 115, 141, 13, 75, 5, 26, 61, 142, 30, 74, 9, 19, 86, 109, 164, 139, 54, 176, 44, 170, 0, 39, 135, 72, 3, 126, 102, 150, 108, 121, 64, 165, 152, 178, 137, 179, 136, 119, 28, 41, 29, 11, 45, 159, 174, 177, 43, 128, 105, 42, 90, 25, 20, 40, 145, 166, 69, 63, 146, 153, 52, 4, 124, 95, 10, 36, 132, 71, 34, 94, 117, 56, 161, 157, 133, 84, 76, 60, 114, 31, 53, 116, 57, 78, 169, 130, 155, 107, 93, 58, 14, 73, 37, 151, 158, 23, 92, 83, 70, 106, 171, 99], 184 : [162, 139, 161, 90, 60, 44, 91, 87, 32, 81, 165, 77, 157, 67, 140, 171, 54, 30, 73, 114, 173, 82, 103, 130, 144, 146, 53, 68, 76, 37, 101, 36, 120, 5, 143, 71, 69, 102, 84, 133, 75, 51, 56, 11, 21, 62, 177, 26, 2, 6, 19, 137, 48, 46, 181, 147, 72, 168, 1, 17, 172, 63, 61, 154, 38, 129, 100, 107, 111, 58, 159, 18, 104, 117, 176, 138, 175, 0, 123, 41, 39, 15, 158, 3, 180, 110, 183, 149, 166, 163, 88, 10, 115, 113, 95, 13, 40, 35, 98, 174, 50, 12, 131, 42, 34, 152, 23, 78, 136, 179, 169, 148, 127, 28, 105, 119, 89, 9, 112, 141, 170, 142, 106, 64, 57, 22, 96, 122, 29, 155, 94, 116, 124, 65, 153, 25, 178, 74, 99, 43, 80, 150, 16, 118, 66, 52, 128, 20, 79, 55, 59, 97, 164, 160, 7, 121, 24, 8, 45, 14, 86, 109, 83, 92, 27, 47, 49, 132, 70, 93, 167, 182, 108, 151, 134, 126, 156, 31, 145, 4, 125, 33, 85, 135], 185 : [96, 106, 11, 157, 147, 103, 124, 119, 84, 136, 18, 176, 126, 116, 153, 64, 149, 61, 72, 3, 86, 184, 73, 76, 21, 4, 172, 164, 105, 111, 155, 74, 117, 50, 36, 69, 51, 35, 15, 127, 25, 141, 94, 66, 179, 156, 140, 109, 2, 120, 62, 12, 63, 95, 59, 165, 28, 5, 138, 134, 92, 131, 110, 38, 52, 81, 107, 7, 142, 90, 161, 177, 17, 163, 169, 39, 42, 123, 182, 89, 48, 168, 6, 151, 148, 166, 46, 115, 53, 139, 91, 33, 8, 132, 67, 22, 125, 79, 135, 113, 23, 174, 97, 0, 40, 57, 13, 170, 49, 55, 45, 31, 68, 160, 154, 16, 181, 178, 104, 1, 77, 180, 158, 112, 30, 9, 85, 114, 183, 121, 47, 43, 162, 133, 152, 128, 58, 10, 75, 32, 175, 54, 145, 20, 102, 144, 108, 167, 173, 98, 80, 65, 146, 87, 29, 60, 34, 82, 26, 129, 78, 14, 27, 101, 93, 118, 37, 88, 137, 19, 44, 56, 70, 83, 100, 171, 143, 41, 122, 150, 99, 159, 71, 130, 24], 186 : [65, 70, 23, 140, 147, 80, 11, 134, 55, 141, 163, 105, 90, 66, 161, 164, 98, 115, 59, 99, 20, 10, 126, 142, 43, 13, 0, 17, 87, 22, 16, 123, 2, 178, 143, 38, 117, 75, 5, 124, 84, 86, 8, 78, 26, 157, 125, 146, 139, 172, 102, 82, 174, 92, 33, 160, 36, 32, 71, 129, 44, 88, 170, 119, 35, 93, 169, 15, 6, 14, 25, 167, 63, 95, 111, 89, 108, 151, 12, 150, 45, 50, 77, 107, 62, 182, 120, 153, 137, 177, 1, 180, 4, 37, 7, 103, 24, 159, 156, 185, 61, 168, 21, 171, 18, 155, 3, 48, 106, 30, 34, 165, 138, 130, 113, 122, 152, 39, 133, 76, 114, 132, 109, 69, 96, 64, 118, 42, 144, 9, 148, 116, 28, 181, 40, 175, 67, 46, 101, 74, 83, 58, 184, 19, 145, 149, 176, 31, 158, 52, 179, 91, 60, 112, 53, 104, 162, 154, 135, 49, 97, 94, 56, 136, 41, 127, 51, 85, 29, 121, 128, 173, 73, 100, 183, 47, 54, 72, 131, 79, 68, 110, 27, 81, 57, 166], 187 : [131, 12, 50, 132, 75, 61, 79, 76, 112, 164, 17, 165, 53, 38, 150, 97, 22, 52, 42, 71, 113, 118, 186, 161, 83, 149, 111, 13, 67, 32, 158, 51, 77, 121, 68, 145, 10, 126, 91, 34, 90, 166, 148, 31, 116, 87, 107, 63, 162, 147, 49, 127, 36, 140, 64, 20, 155, 124, 169, 174, 82, 23, 0, 137, 8, 102, 183, 185, 60, 96, 30, 135, 142, 99, 37, 41, 11, 139, 18, 40, 159, 98, 65, 104, 144, 168, 181, 74, 6, 25, 92, 129, 29, 48, 46, 108, 125, 115, 88, 69, 180, 167, 93, 33, 153, 86, 163, 19, 7, 106, 95, 44, 117, 85, 43, 62, 128, 21, 9, 182, 5, 130, 177, 47, 26, 172, 119, 35, 160, 173, 176, 28, 81, 109, 24, 175, 151, 94, 157, 70, 171, 58, 14, 143, 1, 101, 2, 72, 156, 55, 73, 184, 78, 120, 123, 103, 136, 84, 154, 66, 105, 100, 141, 152, 178, 27, 170, 4, 56, 110, 138, 114, 3, 59, 89, 146, 122, 45, 39, 57, 133, 54, 15, 134, 80, 179, 16], 188 : [109, 126, 5, 74, 159, 58, 119, 139, 45, 47, 101, 85, 40, 158, 173, 22, 97, 44, 110, 105, 59, 87, 52, 15, 99, 177, 55, 103, 21, 75, 142, 31, 90, 155, 128, 41, 80, 121, 83, 93, 100, 120, 157, 17, 27, 153, 129, 174, 43, 108, 86, 115, 16, 102, 65, 35, 167, 162, 77, 141, 170, 187, 134, 166, 178, 34, 168, 0, 7, 25, 94, 122, 137, 30, 164, 37, 169, 11, 6, 64, 26, 60, 20, 181, 184, 67, 171, 2, 145, 29, 130, 9, 180, 92, 112, 165, 118, 186, 3, 104, 156, 82, 32, 123, 147, 182, 54, 13, 150, 1, 63, 33, 113, 81, 12, 18, 68, 78, 151, 10, 183, 71, 163, 42, 23, 91, 152, 114, 51, 133, 50, 144, 69, 84, 146, 39, 14, 73, 116, 111, 148, 135, 107, 127, 53, 8, 136, 89, 179, 28, 61, 185, 95, 124, 24, 49, 56, 172, 79, 161, 72, 106, 132, 76, 140, 125, 143, 96, 154, 66, 19, 57, 160, 98, 48, 138, 117, 4, 175, 36, 38, 62, 149, 70, 131, 46, 88, 176], 189 : [59, 185, 81, 50, 3, 43, 118, 137, 144, 110, 70, 79, 30, 61, 135, 12, 51, 87, 57, 32, 123, 121, 112, 40, 132, 141, 11, 90, 16, 126, 108, 140, 165, 48, 54, 180, 159, 131, 160, 25, 14, 175, 177, 67, 129, 68, 72, 23, 44, 133, 2, 161, 71, 47, 52, 13, 33, 174, 178, 27, 101, 122, 107, 91, 146, 163, 157, 154, 63, 96, 106, 128, 73, 104, 17, 85, 21, 130, 115, 35, 53, 4, 103, 58, 95, 139, 158, 29, 184, 19, 82, 168, 181, 173, 76, 145, 152, 10, 167, 187, 20, 45, 38, 117, 134, 24, 31, 94, 98, 113, 153, 15, 78, 155, 120, 124, 183, 100, 164, 89, 171, 176, 188, 80, 102, 127, 66, 149, 162, 169, 179, 8, 64, 18, 60, 46, 69, 142, 182, 93, 172, 34, 83, 114, 6, 39, 28, 42, 156, 84, 41, 151, 136, 5, 9, 105, 22, 7, 55, 148, 125, 109, 0, 170, 92, 65, 88, 37, 75, 150, 119, 143, 99, 111, 77, 166, 86, 116, 49, 62, 97, 56, 36, 186, 74, 26, 1, 138, 147], 190 : [40, 130, 111, 158, 92, 129, 79, 125, 168, 147, 51, 62, 80, 116, 28, 59, 186, 2, 90, 53, 110, 82, 118, 156, 81, 146, 20, 38, 58, 149, 183, 96, 69, 1, 126, 145, 119, 21, 137, 181, 134, 70, 77, 52, 97, 170, 41, 107, 0, 19, 148, 136, 29, 91, 128, 44, 66, 133, 127, 176, 9, 131, 167, 49, 179, 160, 155, 171, 46, 175, 154, 31, 3, 48, 76, 32, 112, 16, 45, 60, 10, 71, 141, 139, 165, 83, 161, 114, 185, 180, 14, 25, 99, 56, 15, 33, 189, 115, 121, 7, 108, 37, 135, 43, 105, 12, 94, 11, 54, 101, 177, 61, 35, 144, 117, 162, 132, 122, 6, 98, 74, 68, 184, 151, 173, 78, 88, 172, 23, 87, 103, 124, 13, 153, 100, 187, 27, 30, 39, 4, 188, 123, 57, 164, 63, 157, 150, 143, 104, 24, 8, 120, 18, 65, 169, 138, 85, 182, 93, 22, 36, 152, 113, 163, 89, 178, 84, 26, 142, 166, 72, 55, 34, 73, 106, 174, 140, 86, 50, 5, 102, 64, 109, 47, 95, 42, 75, 159, 17, 67], 191 : [117, 99, 7, 105, 126, 92, 106, 163, 119, 169, 60, 121, 104, 138, 41, 127, 146, 172, 47, 82, 1, 103, 26, 59, 34, 81, 70, 22, 46, 66, 125, 165, 48, 44, 27, 96, 143, 107, 134, 168, 65, 80, 122, 32, 158, 18, 79, 112, 11, 40, 42, 152, 61, 190, 36, 68, 188, 12, 2, 123, 154, 120, 64, 142, 116, 63, 19, 186, 167, 114, 136, 174, 148, 140, 97, 161, 164, 77, 147, 28, 137, 38, 53, 31, 62, 100, 118, 0, 109, 29, 144, 45, 150, 83, 90, 185, 145, 5, 171, 21, 9, 89, 37, 50, 178, 153, 166, 124, 183, 156, 55, 57, 115, 133, 182, 149, 157, 33, 20, 10, 72, 98, 86, 88, 155, 76, 181, 16, 71, 130, 58, 173, 91, 15, 3, 175, 189, 8, 94, 13, 51, 111, 180, 162, 74, 132, 108, 30, 25, 17, 176, 75, 69, 139, 129, 67, 56, 4, 52, 39, 101, 160, 24, 187, 84, 35, 135, 128, 95, 87, 184, 177, 179, 141, 73, 159, 54, 78, 110, 151, 14, 6, 85, 93, 49, 43, 23, 113, 102, 131, 170], 192 : [116, 126, 26, 83, 34, 82, 106, 63, 125, 130, 104, 153, 95, 89, 103, 143, 147, 114, 179, 79, 154, 139, 0, 66, 60, 174, 176, 24, 112, 120, 135, 21, 172, 189, 16, 94, 39, 107, 100, 87, 81, 8, 18, 129, 71, 49, 88, 148, 33, 156, 111, 72, 15, 25, 23, 182, 96, 190, 168, 98, 175, 110, 131, 29, 149, 117, 43, 69, 102, 85, 124, 185, 4, 163, 127, 157, 19, 68, 28, 191, 40, 37, 180, 150, 159, 3, 70, 122, 9, 155, 186, 5, 50, 31, 65, 169, 115, 54, 77, 14, 30, 99, 51, 22, 141, 64, 151, 80, 158, 164, 78, 184, 56, 67, 178, 123, 108, 2, 105, 144, 177, 7, 10, 167, 17, 136, 53, 132, 146, 38, 46, 84, 57, 166, 73, 75, 47, 152, 12, 90, 6, 140, 1, 35, 52, 74, 121, 128, 58, 13, 27, 160, 183, 32, 161, 97, 92, 55, 187, 181, 86, 42, 109, 62, 101, 188, 162, 91, 142, 134, 61, 20, 133, 44, 76, 145, 138, 165, 113, 173, 36, 11, 45, 59, 170, 137, 48, 41, 119, 93, 118, 171], 193 : [60, 109, 157, 87, 104, 151, 101, 30, 34, 158, 163, 126, 66, 82, 135, 1, 41, 98, 93, 12, 27, 175, 140, 115, 53, 176, 149, 18, 47, 56, 25, 134, 102, 84, 70, 133, 76, 123, 46, 155, 168, 2, 124, 71, 183, 29, 189, 146, 96, 91, 6, 54, 24, 28, 55, 31, 191, 188, 99, 42, 170, 162, 36, 69, 78, 144, 112, 83, 120, 156, 161, 50, 185, 166, 141, 165, 187, 20, 117, 111, 16, 186, 147, 128, 114, 58, 192, 118, 173, 132, 57, 81, 0, 148, 92, 169, 23, 48, 160, 182, 26, 125, 39, 43, 180, 171, 100, 178, 8, 61, 67, 13, 51, 130, 11, 49, 94, 85, 174, 3, 122, 14, 172, 127, 90, 88, 59, 145, 5, 10, 107, 17, 154, 103, 37, 45, 68, 15, 137, 159, 63, 79, 129, 64, 72, 179, 181, 136, 7, 32, 19, 184, 190, 164, 22, 62, 97, 139, 116, 65, 152, 142, 38, 110, 106, 153, 80, 167, 21, 113, 119, 131, 77, 138, 86, 4, 121, 35, 40, 143, 89, 150, 73, 105, 95, 74, 52, 75, 44, 33, 9, 108, 177], 194 : [35, 192, 75, 143, 20, 171, 130, 56, 99, 157, 1, 77, 167, 36, 175, 136, 105, 160, 111, 129, 177, 128, 91, 16, 147, 57, 112, 140, 61, 23, 145, 127, 100, 185, 9, 55, 65, 94, 85, 81, 138, 53, 88, 62, 10, 71, 188, 156, 22, 18, 95, 165, 134, 120, 116, 180, 108, 24, 76, 110, 11, 42, 159, 142, 144, 43, 31, 170, 152, 96, 6, 173, 30, 174, 69, 119, 19, 83, 0, 151, 191, 78, 70, 166, 7, 37, 39, 46, 193, 73, 146, 172, 25, 49, 15, 148, 117, 182, 59, 13, 161, 126, 150, 106, 103, 155, 68, 181, 32, 92, 51, 121, 14, 41, 115, 186, 79, 158, 21, 64, 137, 107, 133, 183, 187, 153, 2, 45, 162, 86, 169, 80, 87, 63, 139, 124, 90, 44, 3, 52, 28, 154, 40, 113, 12, 93, 4, 190, 184, 164, 67, 123, 47, 72, 34, 132, 29, 179, 189, 74, 54, 125, 176, 60, 104, 66, 82, 98, 141, 33, 97, 109, 8, 27, 84, 135, 163, 89, 149, 118, 26, 101, 178, 168, 58, 5, 38, 131, 114, 50, 122, 102, 48, 17], 195 : [121, 40, 186, 159, 127, 166, 32, 37, 126, 119, 0, 82, 64, 125, 58, 48, 98, 168, 29, 31, 183, 111, 138, 61, 28, 118, 27, 97, 150, 101, 114, 25, 50, 106, 75, 91, 117, 53, 158, 143, 169, 20, 187, 132, 13, 136, 66, 55, 173, 116, 65, 139, 112, 133, 94, 4, 79, 151, 103, 134, 62, 88, 24, 148, 7, 129, 179, 96, 160, 184, 181, 23, 19, 38, 51, 174, 113, 8, 78, 54, 154, 6, 10, 108, 11, 22, 59, 33, 191, 157, 141, 45, 63, 172, 83, 102, 161, 69, 12, 18, 163, 99, 115, 70, 170, 46, 92, 47, 104, 167, 193, 93, 71, 149, 5, 165, 60, 194, 74, 107, 130, 2, 52, 177, 145, 105, 110, 189, 14, 95, 17, 140, 180, 39, 3, 44, 178, 192, 152, 100, 135, 73, 76, 41, 36, 80, 109, 21, 153, 1, 147, 72, 176, 188, 182, 15, 85, 156, 84, 81, 42, 144, 57, 43, 128, 67, 86, 137, 123, 87, 155, 16, 175, 190, 124, 162, 34, 56, 89, 185, 171, 35, 90, 30, 122, 142, 131, 120, 146, 26, 164, 68, 9, 77, 49], 196 : [74, 91, 123, 164, 37, 43, 18, 162, 50, 140, 160, 38, 77, 85, 76, 35, 143, 182, 158, 98, 48, 97, 115, 4, 131, 120, 146, 82, 39, 99, 55, 194, 183, 161, 71, 116, 180, 84, 141, 16, 90, 23, 167, 40, 168, 32, 25, 135, 83, 112, 72, 24, 54, 44, 150, 177, 64, 124, 172, 139, 5, 78, 51, 87, 2, 195, 155, 171, 58, 186, 101, 8, 178, 134, 79, 63, 192, 109, 17, 179, 47, 163, 42, 191, 170, 92, 145, 121, 193, 15, 103, 49, 10, 69, 94, 57, 181, 154, 138, 118, 153, 73, 6, 176, 59, 128, 174, 165, 28, 105, 156, 189, 53, 19, 108, 144, 80, 68, 93, 185, 136, 119, 13, 187, 33, 166, 169, 75, 36, 159, 104, 88, 11, 1, 41, 89, 190, 29, 67, 125, 52, 0, 26, 96, 113, 130, 102, 9, 30, 127, 149, 22, 188, 70, 56, 147, 157, 3, 129, 142, 107, 34, 111, 20, 132, 100, 60, 95, 45, 175, 184, 81, 152, 62, 27, 31, 110, 65, 137, 21, 66, 46, 148, 14, 7, 86, 61, 133, 151, 173, 122, 12, 106, 114, 117, 126], 197 : [21, 112, 190, 121, 135, 36, 136, 87, 38, 109, 75, 67, 133, 158, 100, 48, 141, 151, 164, 131, 83, 196, 129, 176, 139, 72, 170, 89, 195, 149, 106, 88, 56, 180, 42, 168, 91, 17, 70, 171, 101, 115, 29, 172, 104, 3, 71, 76, 43, 134, 39, 47, 166, 22, 105, 15, 31, 150, 97, 155, 32, 113, 4, 11, 61, 78, 160, 59, 194, 92, 74, 6, 81, 152, 73, 156, 19, 147, 126, 28, 0, 34, 23, 57, 9, 79, 10, 94, 64, 60, 162, 159, 183, 44, 161, 184, 24, 63, 124, 117, 127, 99, 65, 25, 116, 86, 52, 165, 46, 186, 2, 182, 68, 20, 119, 153, 95, 181, 167, 125, 26, 143, 90, 54, 14, 84, 140, 5, 187, 145, 40, 108, 169, 144, 1, 30, 33, 173, 50, 37, 107, 49, 51, 177, 179, 188, 111, 189, 110, 13, 120, 103, 193, 55, 132, 148, 157, 114, 122, 82, 142, 12, 146, 154, 41, 185, 93, 96, 85, 130, 27, 18, 174, 62, 58, 192, 8, 53, 128, 7, 163, 191, 118, 77, 138, 98, 16, 175, 102, 123, 137, 45, 178, 80, 35, 66, 69], 198 : [194, 48, 116, 126, 23, 77, 134, 179, 142, 60, 170, 61, 72, 75, 10, 91, 2, 103, 67, 171, 188, 22, 52, 102, 144, 113, 130, 92, 33, 147, 98, 172, 32, 64, 118, 127, 107, 78, 71, 122, 120, 58, 129, 178, 100, 36, 105, 184, 0, 168, 37, 149, 34, 186, 42, 140, 14, 159, 79, 20, 190, 17, 125, 166, 174, 139, 160, 9, 81, 180, 38, 192, 185, 80, 6, 51, 99, 62, 114, 154, 54, 8, 11, 191, 46, 151, 183, 112, 157, 5, 197, 31, 90, 182, 136, 89, 150, 135, 69, 25, 181, 73, 95, 119, 143, 195, 138, 35, 39, 63, 167, 117, 57, 68, 196, 16, 19, 4, 161, 123, 148, 12, 44, 104, 164, 30, 15, 153, 165, 187, 53, 145, 121, 132, 109, 13, 84, 70, 55, 85, 162, 29, 83, 146, 111, 28, 43, 66, 158, 49, 110, 86, 115, 1, 24, 59, 21, 137, 108, 193, 74, 45, 177, 175, 27, 189, 156, 87, 176, 128, 41, 101, 141, 50, 82, 26, 3, 124, 93, 40, 131, 7, 88, 76, 94, 97, 65, 18, 47, 173, 169, 155, 56, 163, 96, 152, 133, 106], 199 : [60, 56, 82, 26, 141, 33, 94, 54, 41, 127, 99, 109, 57, 77, 63, 110, 128, 162, 182, 148, 192, 23, 112, 80, 126, 195, 161, 28, 71, 69, 9, 152, 166, 149, 180, 129, 167, 17, 7, 34, 92, 44, 79, 73, 111, 42, 32, 125, 174, 131, 177, 35, 91, 6, 115, 84, 38, 133, 66, 76, 184, 138, 18, 150, 90, 36, 122, 186, 8, 197, 178, 85, 55, 39, 147, 159, 95, 158, 146, 12, 50, 191, 175, 119, 22, 20, 37, 59, 88, 181, 196, 137, 124, 156, 48, 1, 53, 155, 62, 3, 165, 142, 193, 78, 0, 65, 68, 173, 117, 120, 30, 2, 46, 16, 176, 96, 101, 113, 189, 198, 118, 31, 29, 171, 61, 114, 75, 10, 67, 121, 145, 143, 43, 100, 187, 13, 83, 49, 154, 157, 21, 163, 64, 108, 87, 170, 123, 47, 172, 107, 188, 185, 11, 4, 104, 190, 40, 5, 164, 19, 45, 139, 93, 183, 72, 27, 98, 135, 58, 168, 144, 89, 116, 74, 102, 134, 15, 153, 151, 103, 97, 169, 105, 25, 194, 52, 179, 106, 136, 130, 51, 70, 81, 14, 24, 140, 132, 160, 86], 200 : [23, 119, 161, 146, 59, 89, 33, 144, 173, 45, 99, 81, 110, 115, 93, 114, 72, 17, 154, 56, 177, 25, 39, 164, 49, 122, 108, 127, 148, 195, 101, 147, 172, 125, 42, 145, 102, 31, 92, 80, 47, 65, 37, 41, 131, 140, 168, 52, 120, 112, 12, 62, 196, 83, 199, 136, 44, 153, 9, 176, 14, 43, 137, 34, 6, 178, 128, 88, 158, 113, 175, 27, 179, 38, 157, 8, 26, 13, 111, 60, 79, 29, 95, 74, 162, 171, 133, 55, 197, 85, 193, 71, 20, 187, 123, 1, 142, 174, 149, 156, 66, 87, 16, 5, 124, 107, 90, 46, 61, 135, 50, 4, 152, 51, 69, 191, 76, 151, 3, 183, 139, 190, 170, 182, 130, 15, 24, 86, 181, 103, 40, 189, 167, 116, 75, 163, 10, 198, 64, 118, 192, 117, 2, 77, 57, 70, 21, 18, 0, 194, 166, 138, 129, 185, 19, 169, 73, 54, 104, 36, 48, 91, 28, 98, 58, 109, 84, 134, 68, 106, 159, 186, 67, 96, 126, 165, 188, 150, 22, 63, 53, 184, 160, 94, 141, 132, 155, 180, 30, 97, 105, 82, 121, 32, 143, 11, 7, 100, 78, 35], } # print(data[4]) output_file = open("zipped_data.txt", "w") lines = [] for i in range(4, 201): this_str = ",".join(map(str, data[i])) print(this_str) lines.append(this_str) lines.append("\n") output_file.writelines(lines) output_file.close() # n = int(input()) # print(*(map(lambda x: x + 1, data[n])))
data = {4: [2, 0, 3, 1], 5: [3, 0, 2, 4, 1], 6: [3, 0, 4, 1, 5, 2], 7: [4, 0, 5, 3, 1, 6, 2], 8: [2, 4, 1, 7, 0, 6, 3, 5], 9: [3, 1, 4, 7, 0, 2, 5, 8, 6], 10: [8, 4, 0, 7, 3, 1, 6, 9, 5, 2], 11: [5, 7, 0, 3, 8, 2, 9, 6, 10, 1, 4], 12: [7, 10, 0, 2, 8, 5, 3, 1, 9, 11, 6, 4], 13: [7, 5, 2, 9, 12, 0, 4, 10, 1, 6, 11, 3, 8], 14: [6, 11, 1, 4, 9, 5, 10, 2, 0, 12, 8, 13, 3, 7], 15: [10, 8, 0, 3, 12, 2, 9, 1, 4, 11, 14, 6, 13, 5, 7], 16: [8, 15, 1, 10, 2, 9, 11, 13, 3, 12, 0, 4, 6, 14, 5, 7], 17: [9, 2, 12, 10, 7, 0, 14, 1, 4, 13, 8, 16, 5, 3, 11, 6, 15], 18: [13, 8, 1, 5, 12, 15, 11, 0, 6, 3, 14, 17, 9, 16, 4, 10, 7, 2], 19: [11, 8, 15, 7, 4, 2, 14, 17, 6, 18, 9, 12, 1, 3, 16, 0, 10, 5, 13], 20: [17, 14, 9, 7, 3, 15, 6, 2, 19, 10, 12, 5, 1, 18, 0, 13, 8, 4, 11, 16], 21: [8, 17, 14, 1, 15, 19, 6, 3, 12, 18, 7, 4, 2, 0, 9, 20, 5, 16, 10, 13, 11], 22: [9, 4, 21, 14, 8, 11, 16, 7, 3, 1, 18, 13, 19, 12, 15, 20, 5, 10, 2, 0, 6, 17], 23: [10, 14, 18, 8, 2, 9, 12, 21, 17, 3, 6, 19, 1, 16, 13, 22, 7, 5, 15, 0, 20, 11, 4], 24: [11, 23, 7, 9, 4, 13, 15, 20, 2, 16, 12, 8, 22, 17, 1, 5, 19, 0, 14, 18, 21, 10, 6, 3], 25: [17, 20, 3, 19, 8, 4, 18, 12, 15, 7, 10, 2, 21, 1, 24, 0, 9, 23, 14, 11, 22, 16, 6, 13, 5], 26: [9, 4, 14, 16, 24, 13, 6, 0, 12, 23, 17, 22, 11, 1, 20, 2, 21, 19, 7, 10, 15, 3, 18, 8, 25, 5], 27: [9, 11, 17, 7, 25, 23, 18, 13, 0, 4, 8, 5, 15, 21, 1, 6, 16, 24, 19, 12, 22, 26, 3, 20, 2, 10, 14], 28: [20, 5, 10, 2, 13, 3, 21, 9, 24, 19, 15, 8, 26, 0, 27, 7, 17, 1, 6, 25, 11, 14, 12, 23, 18, 4, 22, 16], 29: [13, 7, 10, 25, 19, 26, 16, 9, 1, 27, 11, 28, 17, 4, 23, 5, 14, 2, 0, 22, 15, 21, 18, 3, 8, 24, 12, 6, 20], 30: [20, 13, 11, 7, 25, 22, 6, 14, 18, 27, 5, 8, 23, 26, 29, 17, 15, 1, 12, 4, 2, 24, 28, 21, 0, 3, 16, 10, 19, 9], 31: [17, 6, 1, 21, 5, 27, 19, 22, 18, 13, 10, 20, 24, 3, 30, 4, 7, 25, 0, 14, 23, 28, 8, 11, 16, 12, 2, 29, 26, 9, 15], 32: [14, 22, 6, 10, 27, 15, 26, 9, 25, 28, 7, 29, 17, 2, 20, 13, 8, 18, 1, 30, 5, 0, 31, 3, 24, 21, 4, 11, 23, 16, 12, 19], 33: [21, 24, 13, 5, 30, 9, 18, 3, 28, 31, 19, 1, 20, 4, 14, 29, 2, 22, 15, 26, 7, 10, 16, 0, 25, 23, 32, 8, 27, 17, 12, 6, 11], 34: [30, 16, 20, 28, 17, 9, 14, 4, 24, 7, 31, 1, 32, 2, 13, 22, 33, 19, 6, 29, 15, 8, 25, 3, 18, 0, 27, 12, 10, 5, 21, 23, 11, 26], 35: [6, 32, 11, 22, 4, 16, 9, 21, 31, 13, 27, 33, 8, 23, 0, 28, 14, 2, 17, 26, 7, 10, 34, 25, 18, 1, 3, 19, 12, 30, 20, 24, 15, 5, 29], 36: [23, 17, 34, 16, 22, 20, 9, 32, 29, 8, 1, 3, 0, 7, 19, 15, 25, 31, 35, 12, 27, 11, 33, 21, 5, 2, 28, 24, 10, 14, 26, 4, 18, 13, 6, 30], 37: [13, 30, 12, 21, 15, 4, 1, 3, 32, 28, 24, 16, 18, 22, 35, 7, 36, 0, 25, 17, 6, 23, 26, 10, 27, 33, 2, 5, 19, 9, 11, 31, 14, 34, 8, 20, 29], 38: [24, 12, 17, 19, 25, 30, 6, 10, 3, 27, 8, 4, 21, 26, 11, 16, 33, 29, 37, 7, 28, 0, 32, 5, 14, 31, 1, 23, 15, 36, 2, 35, 13, 9, 18, 34, 22, 20], 39: [24, 11, 5, 25, 6, 14, 26, 18, 22, 9, 27, 37, 10, 34, 7, 28, 35, 29, 13, 16, 0, 8, 1, 15, 20, 2, 30, 32, 36, 12, 4, 38, 23, 21, 33, 17, 3, 31, 19], 40: [39, 35, 21, 12, 20, 16, 31, 3, 14, 7, 37, 23, 32, 0, 29, 10, 34, 25, 2, 13, 8, 38, 4, 22, 24, 15, 36, 6, 1, 26, 5, 33, 9, 18, 27, 11, 17, 28, 30, 19], 41: [27, 29, 5, 38, 15, 11, 23, 16, 13, 0, 26, 36, 33, 21, 34, 10, 30, 3, 8, 37, 22, 31, 18, 1, 39, 14, 9, 4, 25, 28, 2, 6, 17, 40, 35, 19, 7, 24, 20, 12, 32], 42: [21, 31, 10, 0, 35, 11, 28, 26, 36, 4, 9, 37, 8, 38, 17, 2, 34, 19, 23, 39, 29, 14, 3, 6, 22, 1, 41, 13, 32, 40, 15, 25, 33, 24, 18, 12, 7, 5, 16, 27, 30, 20], 43: [27, 18, 31, 23, 0, 37, 16, 38, 26, 11, 3, 6, 2, 19, 22, 41, 35, 20, 12, 30, 32, 8, 1, 36, 7, 25, 40, 42, 10, 34, 28, 4, 29, 14, 33, 5, 24, 9, 39, 15, 17, 21, 13], 44: [28, 9, 21, 32, 22, 19, 30, 24, 1, 10, 7, 14, 8, 0, 26, 36, 38, 12, 27, 29, 2, 20, 35, 43, 18, 31, 42, 11, 5, 40, 34, 16, 23, 25, 3, 37, 41, 15, 6, 4, 13, 39, 17, 33], 45: [29, 16, 21, 27, 1, 17, 19, 33, 8, 43, 0, 13, 30, 44, 42, 35, 3, 28, 9, 22, 41, 15, 31, 40, 34, 39, 12, 4, 23, 14, 38, 36, 2, 6, 26, 24, 37, 18, 10, 32, 7, 25, 20, 11, 5], 46: [34, 31, 42, 39, 17, 14, 16, 7, 32, 6, 0, 30, 41, 5, 15, 2, 12, 29, 45, 4, 35, 26, 36, 43, 13, 1, 28, 9, 21, 23, 8, 19, 27, 24, 37, 33, 40, 11, 44, 38, 20, 10, 3, 18, 25, 22], 47: [40, 22, 25, 21, 38, 1, 26, 29, 17, 20, 46, 30, 9, 2, 45, 13, 42, 44, 0, 18, 33, 36, 23, 11, 24, 27, 43, 39, 5, 14, 8, 34, 15, 6, 28, 19, 41, 7, 12, 31, 35, 10, 32, 3, 16, 4, 37], 48: [28, 23, 38, 30, 18, 26, 6, 12, 33, 25, 13, 44, 24, 8, 11, 0, 31, 35, 20, 1, 39, 9, 21, 46, 3, 45, 34, 40, 4, 22, 41, 27, 5, 17, 14, 42, 37, 43, 36, 29, 2, 15, 7, 47, 19, 16, 32, 10], 49: [19, 44, 23, 13, 38, 3, 9, 6, 43, 14, 22, 47, 28, 33, 21, 12, 34, 1, 8, 11, 37, 48, 0, 31, 15, 36, 27, 16, 32, 42, 25, 18, 5, 29, 40, 35, 45, 7, 10, 2, 26, 24, 17, 20, 46, 30, 39, 41, 4], 50: [33, 20, 14, 11, 28, 37, 19, 27, 12, 38, 45, 48, 42, 49, 21, 24, 30, 10, 23, 4, 47, 31, 0, 7, 13, 1, 44, 17, 29, 16, 41, 25, 34, 3, 26, 15, 2, 35, 5, 22, 40, 32, 6, 8, 39, 18, 43, 46, 36, 9], 51: [31, 39, 13, 46, 22, 42, 26, 47, 35, 8, 49, 18, 2, 28, 9, 7, 48, 50, 6, 29, 37, 21, 23, 12, 32, 0, 20, 41, 44, 15, 3, 34, 38, 30, 5, 1, 45, 16, 40, 43, 36, 11, 33, 19, 27, 10, 4, 14, 25, 17, 24], 52: [46, 0, 12, 41, 21, 33, 15, 10, 8, 32, 44, 17, 38, 29, 6, 34, 47, 22, 16, 26, 7, 39, 43, 25, 5, 36, 48, 3, 19, 2, 50, 9, 40, 4, 28, 1, 49, 51, 20, 13, 35, 37, 11, 27, 45, 42, 23, 30, 18, 24, 14, 31], 53: [25, 22, 13, 41, 36, 23, 30, 19, 44, 2, 47, 37, 29, 9, 33, 5, 21, 50, 15, 32, 7, 28, 38, 12, 18, 6, 48, 27, 34, 0, 8, 46, 52, 1, 11, 26, 45, 51, 17, 4, 42, 49, 43, 3, 39, 31, 20, 16, 24, 10, 14, 35, 40], 54: [33, 29, 18, 13, 38, 45, 25, 6, 39, 14, 22, 37, 7, 51, 41, 47, 20, 4, 31, 27, 21, 19, 0, 2, 48, 1, 32, 16, 46, 9, 50, 53, 49, 30, 3, 17, 8, 40, 28, 12, 5, 34, 44, 11, 15, 26, 23, 10, 42, 24, 35, 43, 52, 36], 55: [54, 43, 32, 3, 25, 4, 31, 0, 27, 44, 37, 5, 36, 26, 50, 7, 12, 45, 41, 23, 11, 35, 28, 1, 6, 13, 42, 14, 17, 46, 10, 49, 34, 19, 9, 30, 15, 20, 39, 48, 38, 22, 52, 40, 47, 53, 51, 2, 33, 18, 8, 21, 24, 29, 16], 56: [20, 26, 19, 46, 32, 0, 45, 15, 18, 36, 9, 35, 53, 3, 27, 47, 13, 40, 10, 50, 24, 43, 8, 38, 31, 54, 5, 39, 11, 55, 44, 16, 6, 49, 34, 28, 17, 21, 14, 41, 51, 2, 48, 30, 4, 25, 37, 29, 12, 1, 22, 52, 7, 42, 23, 33], 57: [37, 23, 21, 46, 32, 3, 42, 45, 20, 30, 4, 0, 13, 53, 56, 40, 25, 17, 24, 11, 33, 26, 54, 41, 55, 48, 43, 6, 52, 9, 14, 12, 27, 49, 22, 28, 38, 44, 8, 47, 51, 31, 18, 34, 10, 16, 5, 15, 35, 1, 7, 50, 19, 39, 36, 29, 2], 58: [20, 39, 19, 43, 8, 33, 11, 16, 55, 41, 23, 38, 31, 42, 22, 36, 40, 47, 49, 13, 9, 6, 56, 46, 4, 12, 28, 45, 3, 5, 18, 10, 57, 44, 24, 0, 29, 7, 37, 54, 21, 53, 34, 27, 15, 2, 14, 50, 25, 32, 48, 51, 1, 35, 26, 52, 30, 17], 59: [51, 26, 38, 57, 27, 19, 11, 7, 37, 30, 13, 23, 47, 3, 29, 34, 32, 44, 46, 2, 15, 53, 28, 14, 5, 58, 18, 25, 4, 1, 54, 49, 36, 0, 43, 55, 6, 17, 31, 16, 48, 40, 52, 50, 9, 42, 21, 10, 22, 33, 35, 24, 39, 12, 56, 41, 20, 45, 8], 60: [20, 1, 33, 15, 29, 53, 23, 8, 40, 45, 52, 41, 9, 51, 54, 24, 35, 21, 14, 37, 43, 50, 55, 4, 7, 59, 16, 13, 19, 32, 46, 5, 12, 27, 49, 57, 34, 6, 48, 26, 47, 0, 31, 3, 36, 44, 39, 58, 2, 10, 28, 56, 17, 38, 42, 11, 18, 25, 30, 22], 61: [51, 12, 9, 36, 32, 54, 3, 25, 4, 38, 50, 34, 6, 15, 23, 29, 26, 41, 30, 56, 37, 53, 21, 7, 45, 55, 14, 52, 44, 2, 57, 31, 18, 0, 47, 20, 5, 59, 8, 28, 60, 22, 35, 33, 48, 19, 24, 39, 46, 17, 58, 10, 43, 1, 49, 16, 27, 11, 40, 42, 13], 62: [45, 37, 57, 44, 19, 31, 54, 1, 22, 26, 21, 50, 12, 20, 27, 34, 24, 52, 0, 35, 7, 30, 10, 53, 56, 18, 59, 48, 11, 49, 4, 6, 36, 29, 61, 47, 41, 9, 15, 5, 32, 43, 60, 40, 14, 25, 17, 3, 16, 8, 23, 46, 55, 38, 2, 39, 42, 33, 13, 58, 51, 28], 63: [44, 57, 30, 0, 33, 52, 46, 6, 51, 18, 55, 23, 36, 34, 62, 15, 17, 47, 37, 10, 25, 53, 45, 1, 42, 61, 59, 9, 7, 24, 26, 8, 39, 21, 48, 38, 56, 50, 32, 4, 11, 49, 35, 58, 54, 5, 14, 2, 31, 13, 19, 43, 28, 40, 29, 41, 22, 27, 3, 16, 12, 20, 60], 64: [8, 29, 40, 26, 36, 53, 48, 4, 58, 16, 39, 2, 27, 62, 55, 0, 10, 44, 28, 54, 23, 11, 43, 5, 12, 56, 60, 6, 3, 41, 46, 17, 30, 1, 34, 49, 19, 42, 7, 52, 32, 61, 15, 21, 9, 51, 63, 24, 35, 38, 13, 31, 47, 14, 20, 57, 37, 50, 22, 18, 59, 45, 33, 25], 65: [13, 38, 8, 35, 16, 43, 27, 53, 19, 59, 49, 40, 3, 54, 18, 9, 33, 52, 25, 61, 6, 26, 31, 51, 1, 50, 15, 10, 36, 28, 63, 21, 34, 11, 0, 7, 56, 47, 17, 23, 32, 55, 4, 39, 29, 5, 44, 62, 64, 14, 45, 48, 2, 41, 24, 22, 30, 58, 12, 46, 60, 37, 42, 20, 57], 66: [27, 23, 9, 35, 57, 60, 16, 51, 45, 3, 11, 44, 33, 59, 40, 49, 19, 17, 2, 55, 5, 30, 28, 10, 15, 22, 14, 52, 63, 46, 58, 12, 61, 47, 36, 48, 26, 32, 62, 38, 1, 53, 18, 13, 4, 65, 25, 43, 41, 0, 7, 56, 21, 6, 31, 29, 42, 39, 50, 8, 64, 20, 24, 34, 37, 54], 67: [16, 21, 53, 44, 35, 29, 50, 7, 19, 39, 60, 57, 25, 49, 46, 9, 22, 2, 51, 48, 43, 0, 59, 38, 1, 27, 15, 8, 55, 11, 47, 18, 4, 32, 17, 54, 62, 41, 56, 6, 3, 63, 45, 33, 40, 13, 20, 61, 24, 42, 30, 37, 12, 26, 5, 52, 65, 58, 66, 64, 14, 10, 23, 34, 28, 31, 36], 68: [39, 24, 9, 46, 48, 18, 21, 34, 10, 67, 43, 23, 60, 51, 8, 44, 0, 63, 37, 11, 62, 26, 38, 20, 50, 12, 40, 5, 53, 6, 3, 7, 4, 32, 22, 65, 58, 17, 19, 47, 64, 36, 28, 25, 1, 30, 49, 16, 54, 42, 61, 41, 15, 57, 33, 29, 56, 66, 59, 55, 13, 27, 45, 52, 35, 14, 31, 2], 69: [6, 28, 43, 64, 62, 55, 22, 42, 57, 26, 14, 1, 11, 68, 39, 67, 59, 51, 4, 40, 60, 63, 33, 19, 9, 13, 36, 3, 29, 23, 48, 45, 58, 15, 17, 37, 10, 24, 31, 5, 7, 61, 50, 0, 66, 25, 41, 52, 2, 30, 21, 49, 65, 56, 54, 8, 18, 34, 47, 38, 44, 12, 53, 35, 32, 20, 27, 16, 46], 70: [60, 66, 15, 10, 40, 28, 22, 64, 34, 48, 42, 39, 6, 35, 24, 30, 47, 51, 62, 69, 7, 5, 14, 53, 17, 36, 32, 3, 61, 11, 25, 33, 37, 21, 1, 16, 56, 54, 59, 8, 44, 12, 20, 68, 2, 63, 29, 9, 46, 38, 49, 65, 27, 50, 31, 19, 26, 58, 43, 0, 13, 57, 52, 18, 67, 45, 4, 23, 41, 55], 71: [15, 48, 3, 26, 31, 18, 57, 24, 1, 25, 68, 59, 30, 44, 50, 5, 46, 9, 53, 58, 54, 29, 64, 21, 19, 22, 66, 41, 33, 11, 0, 51, 7, 70, 2, 38, 36, 8, 17, 65, 13, 52, 6, 47, 56, 69, 20, 34, 67, 40, 10, 32, 61, 16, 4, 39, 23, 42, 60, 28, 49, 37, 45, 12, 63, 43, 14, 55, 62, 27, 35], 72: [33, 28, 54, 31, 18, 60, 44, 66, 5, 32, 49, 58, 27, 30, 48, 59, 20, 68, 43, 38, 70, 50, 65, 19, 40, 12, 4, 1, 7, 9, 62, 37, 23, 14, 17, 56, 71, 57, 10, 69, 39, 26, 3, 6, 8, 21, 0, 41, 61, 67, 36, 63, 53, 22, 52, 64, 45, 24, 46, 51, 16, 2, 35, 15, 34, 55, 11, 29, 25, 13, 47, 42], 73: [57, 37, 41, 23, 54, 12, 4, 30, 56, 71, 20, 64, 15, 19, 45, 6, 62, 69, 0, 43, 46, 72, 11, 60, 26, 40, 14, 36, 33, 61, 9, 53, 50, 2, 55, 35, 32, 10, 49, 67, 1, 5, 13, 70, 58, 22, 31, 63, 47, 39, 44, 21, 65, 3, 38, 52, 48, 24, 66, 42, 16, 18, 7, 28, 59, 51, 8, 68, 17, 27, 29, 34, 25], 74: [42, 23, 52, 1, 6, 17, 51, 73, 36, 39, 35, 21, 13, 47, 38, 32, 57, 26, 9, 14, 49, 60, 28, 43, 27, 72, 10, 63, 65, 48, 4, 8, 59, 5, 15, 53, 69, 37, 3, 24, 44, 67, 58, 18, 2, 31, 19, 62, 16, 70, 46, 11, 40, 33, 68, 12, 64, 56, 71, 0, 50, 22, 25, 55, 61, 41, 45, 34, 30, 20, 29, 7, 54, 66], 75: [36, 50, 69, 13, 74, 1, 64, 62, 73, 59, 15, 33, 9, 22, 60, 34, 16, 44, 47, 40, 32, 46, 25, 53, 48, 41, 71, 29, 14, 24, 58, 8, 2, 65, 3, 20, 56, 4, 19, 72, 6, 49, 43, 21, 57, 0, 63, 70, 66, 28, 37, 31, 10, 68, 42, 61, 54, 51, 5, 30, 67, 52, 11, 17, 27, 55, 39, 35, 18, 26, 23, 12, 7, 45, 38], 76: [51, 55, 29, 35, 45, 19, 17, 10, 24, 48, 15, 66, 73, 63, 58, 46, 53, 70, 28, 25, 44, 5, 31, 14, 18, 67, 26, 2, 62, 49, 43, 50, 3, 34, 60, 56, 9, 22, 68, 41, 75, 7, 40, 65, 69, 21, 33, 0, 20, 61, 39, 12, 32, 1, 16, 47, 6, 74, 13, 42, 23, 38, 57, 59, 72, 64, 54, 8, 27, 36, 4, 52, 37, 30, 71, 11], 77: [68, 12, 10, 66, 38, 19, 26, 52, 33, 48, 37, 55, 53, 61, 70, 28, 42, 20, 22, 31, 25, 59, 65, 44, 74, 9, 75, 45, 60, 76, 24, 2, 67, 6, 4, 57, 0, 56, 62, 17, 73, 30, 41, 35, 7, 1, 18, 16, 29, 3, 5, 39, 27, 54, 40, 34, 71, 64, 15, 50, 21, 14, 8, 72, 46, 63, 51, 47, 36, 13, 32, 58, 23, 49, 69, 11, 43], 78: [23, 60, 26, 43, 21, 11, 2, 4, 24, 35, 46, 3, 53, 55, 49, 40, 61, 67, 9, 56, 69, 16, 29, 44, 36, 54, 70, 66, 59, 0, 34, 31, 1, 20, 14, 68, 37, 45, 72, 77, 19, 6, 28, 15, 5, 12, 8, 57, 32, 76, 64, 73, 63, 41, 74, 58, 71, 75, 48, 7, 38, 13, 30, 39, 17, 42, 10, 50, 18, 51, 25, 52, 65, 27, 47, 22, 33, 62], 79: [32, 1, 19, 63, 54, 41, 58, 37, 21, 28, 8, 74, 36, 66, 69, 26, 44, 42, 57, 11, 35, 48, 59, 0, 23, 71, 5, 16, 73, 49, 15, 2, 75, 39, 78, 22, 17, 51, 18, 55, 47, 50, 10, 33, 62, 68, 24, 7, 60, 13, 43, 72, 38, 20, 64, 56, 53, 14, 61, 4, 29, 34, 3, 65, 46, 40, 31, 25, 6, 30, 12, 76, 67, 77, 70, 45, 27, 9, 52], 80: [31, 17, 30, 8, 29, 44, 32, 16, 50, 3, 47, 73, 53, 51, 68, 21, 45, 61, 26, 75, 67, 13, 54, 1, 24, 38, 69, 2, 27, 46, 76, 52, 20, 78, 25, 55, 60, 6, 22, 28, 7, 15, 56, 65, 59, 40, 0, 66, 33, 5, 36, 49, 10, 63, 37, 42, 18, 23, 11, 14, 71, 79, 58, 70, 35, 62, 4, 12, 9, 72, 19, 43, 74, 77, 64, 34, 41, 57, 48, 39], 81: [44, 8, 30, 11, 26, 46, 62, 50, 42, 29, 74, 5, 7, 45, 41, 60, 19, 59, 48, 15, 0, 33, 23, 76, 12, 34, 3, 79, 75, 40, 22, 17, 72, 6, 27, 32, 35, 53, 56, 4, 65, 55, 21, 58, 49, 68, 63, 73, 67, 80, 10, 13, 36, 66, 20, 37, 14, 78, 64, 28, 2, 24, 38, 54, 1, 69, 25, 77, 57, 71, 51, 9, 39, 16, 52, 43, 47, 18, 61, 31, 70], 82: [39, 58, 65, 29, 62, 9, 41, 53, 22, 56, 79, 7, 52, 49, 80, 36, 47, 40, 17, 25, 20, 24, 50, 72, 69, 23, 44, 61, 5, 71, 67, 19, 14, 3, 27, 8, 60, 1, 63, 48, 70, 15, 74, 59, 64, 13, 38, 2, 35, 43, 28, 73, 54, 68, 26, 0, 57, 33, 16, 76, 45, 21, 75, 10, 4, 46, 37, 18, 11, 6, 81, 51, 77, 34, 30, 66, 55, 42, 31, 12, 32, 78], 83: [56, 40, 22, 44, 46, 13, 69, 62, 60, 68, 39, 49, 11, 19, 31, 24, 3, 78, 15, 8, 77, 5, 12, 76, 7, 37, 66, 28, 59, 55, 48, 58, 42, 52, 36, 71, 21, 51, 33, 4, 0, 32, 30, 65, 74, 79, 18, 72, 81, 64, 54, 14, 2, 10, 25, 41, 61, 26, 1, 35, 16, 82, 75, 17, 38, 47, 73, 34, 23, 80, 70, 63, 53, 9, 67, 6, 29, 43, 20, 57, 27, 45, 50], 84: [56, 9, 45, 63, 11, 72, 39, 10, 25, 53, 68, 50, 22, 79, 65, 34, 58, 43, 77, 3, 69, 20, 13, 47, 74, 59, 62, 64, 30, 38, 27, 51, 54, 4, 29, 67, 57, 66, 14, 80, 15, 5, 82, 71, 6, 83, 26, 78, 17, 31, 18, 8, 2, 16, 81, 44, 41, 49, 32, 12, 60, 76, 21, 1, 75, 61, 70, 73, 19, 46, 40, 37, 55, 0, 7, 42, 24, 35, 33, 28, 52, 23, 36, 48], 85: [53, 41, 80, 64, 50, 56, 54, 61, 42, 14, 23, 70, 62, 17, 3, 77, 36, 10, 59, 30, 12, 44, 82, 68, 22, 69, 84, 46, 13, 16, 48, 25, 31, 76, 4, 0, 15, 51, 45, 40, 18, 7, 75, 79, 32, 2, 72, 74, 63, 8, 78, 11, 28, 49, 60, 35, 29, 38, 6, 71, 81, 47, 57, 21, 67, 5, 27, 58, 1, 20, 37, 73, 55, 83, 26, 65, 39, 9, 34, 24, 19, 43, 66, 33, 52], 86: [70, 48, 63, 38, 33, 79, 47, 44, 34, 10, 28, 15, 55, 62, 74, 53, 31, 68, 41, 84, 52, 11, 7, 17, 32, 3, 18, 83, 45, 75, 64, 14, 23, 58, 43, 54, 80, 2, 12, 9, 36, 22, 40, 76, 39, 66, 8, 49, 16, 20, 72, 78, 0, 13, 60, 37, 56, 85, 82, 71, 1, 77, 51, 73, 67, 42, 27, 30, 81, 26, 50, 57, 65, 5, 61, 6, 25, 29, 21, 46, 59, 19, 35, 4, 24, 69], 87: [34, 65, 63, 71, 40, 32, 77, 19, 46, 55, 51, 68, 84, 8, 5, 75, 47, 25, 14, 66, 64, 61, 29, 48, 35, 31, 26, 81, 22, 57, 73, 60, 80, 16, 86, 12, 0, 23, 62, 6, 13, 54, 45, 30, 2, 59, 83, 79, 41, 9, 52, 21, 3, 72, 70, 20, 1, 10, 43, 56, 49, 36, 85, 15, 42, 69, 67, 76, 39, 7, 58, 50, 82, 4, 24, 18, 74, 33, 27, 78, 37, 11, 17, 44, 38, 53, 28], 88: [59, 15, 38, 58, 5, 32, 39, 72, 23, 26, 78, 35, 70, 73, 30, 47, 16, 63, 46, 49, 14, 42, 2, 54, 67, 69, 31, 65, 21, 37, 17, 44, 9, 40, 22, 84, 12, 56, 1, 4, 87, 82, 13, 10, 66, 79, 6, 50, 77, 34, 85, 0, 51, 76, 20, 52, 11, 27, 62, 43, 80, 57, 8, 41, 75, 71, 68, 18, 3, 48, 61, 81, 29, 55, 24, 36, 45, 86, 64, 53, 33, 28, 7, 25, 74, 83, 19, 60], 89: [6, 35, 16, 29, 54, 37, 88, 58, 4, 73, 59, 50, 60, 57, 19, 70, 31, 38, 85, 20, 8, 28, 52, 75, 32, 63, 0, 46, 84, 71, 5, 64, 67, 45, 87, 44, 27, 68, 51, 9, 86, 21, 82, 24, 22, 72, 14, 36, 65, 26, 3, 17, 62, 81, 78, 53, 15, 39, 1, 77, 33, 30, 48, 18, 43, 11, 61, 23, 79, 66, 7, 13, 34, 56, 74, 40, 25, 10, 2, 83, 12, 41, 49, 55, 76, 69, 47, 80, 42], 90: [52, 37, 29, 11, 75, 42, 81, 26, 56, 83, 17, 12, 3, 54, 60, 70, 41, 73, 8, 25, 38, 49, 19, 5, 27, 58, 89, 72, 85, 68, 16, 51, 34, 7, 57, 46, 35, 6, 67, 23, 53, 88, 74, 64, 36, 28, 22, 1, 62, 10, 50, 18, 76, 79, 71, 0, 61, 66, 20, 39, 15, 77, 84, 2, 13, 43, 55, 44, 80, 33, 14, 65, 87, 21, 30, 47, 86, 24, 63, 45, 9, 69, 32, 78, 4, 48, 59, 40, 31, 82], 91: [49, 63, 20, 53, 38, 65, 18, 28, 80, 39, 24, 5, 21, 52, 43, 71, 73, 41, 1, 12, 58, 11, 47, 76, 26, 14, 68, 82, 69, 66, 16, 90, 64, 79, 3, 89, 67, 56, 46, 35, 32, 42, 87, 8, 61, 30, 81, 54, 84, 6, 50, 10, 40, 23, 36, 4, 17, 85, 29, 7, 75, 59, 9, 83, 15, 2, 72, 48, 45, 33, 86, 27, 13, 57, 78, 70, 55, 74, 88, 37, 60, 0, 44, 51, 22, 25, 62, 31, 19, 34, 77], 92: [36, 43, 55, 23, 60, 42, 65, 15, 52, 34, 7, 27, 46, 11, 28, 62, 18, 71, 82, 30, 48, 51, 89, 58, 39, 25, 35, 49, 74, 12, 73, 91, 63, 0, 86, 59, 68, 14, 10, 79, 6, 26, 33, 31, 9, 64, 20, 76, 81, 70, 2, 90, 53, 80, 16, 24, 61, 32, 29, 38, 67, 54, 22, 44, 5, 21, 50, 45, 78, 4, 87, 83, 8, 41, 66, 3, 37, 72, 84, 69, 56, 77, 19, 13, 88, 40, 85, 57, 75, 1, 47, 17], 93: [28, 53, 42, 60, 21, 52, 33, 78, 58, 67, 7, 76, 50, 11, 35, 77, 25, 13, 34, 86, 31, 63, 9, 68, 55, 44, 89, 75, 61, 54, 8, 37, 4, 22, 90, 0, 80, 10, 74, 71, 20, 15, 57, 51, 30, 59, 72, 3, 82, 88, 32, 92, 81, 24, 46, 79, 2, 18, 39, 66, 43, 19, 85, 56, 84, 16, 5, 62, 27, 1, 70, 38, 6, 41, 49, 69, 45, 87, 91, 83, 65, 12, 26, 73, 47, 64, 36, 14, 29, 17, 23, 48, 40], 94: [17, 4, 63, 37, 92, 77, 43, 38, 10, 72, 28, 66, 74, 39, 29, 85, 26, 33, 42, 55, 7, 25, 67, 71, 20, 83, 78, 60, 56, 24, 68, 54, 32, 23, 76, 82, 5, 87, 9, 12, 75, 90, 36, 48, 18, 88, 86, 59, 40, 27, 80, 58, 93, 1, 65, 52, 41, 13, 0, 8, 19, 81, 91, 6, 11, 46, 2, 34, 31, 51, 79, 69, 44, 30, 53, 61, 14, 35, 15, 49, 64, 21, 73, 89, 45, 84, 62, 47, 50, 16, 70, 22, 3, 57], 95: [41, 37, 23, 36, 18, 91, 48, 19, 67, 44, 32, 6, 60, 43, 66, 4, 90, 86, 52, 69, 80, 45, 92, 61, 35, 70, 83, 13, 30, 38, 59, 54, 3, 89, 15, 88, 94, 65, 31, 7, 24, 51, 39, 0, 93, 49, 64, 10, 26, 1, 63, 25, 21, 68, 71, 22, 9, 29, 84, 53, 76, 2, 81, 5, 47, 14, 62, 87, 56, 72, 28, 16, 33, 46, 17, 74, 82, 78, 12, 77, 27, 58, 11, 34, 20, 85, 40, 57, 75, 79, 50, 55, 42, 8, 73], 96: [79, 71, 26, 14, 27, 72, 28, 4, 59, 21, 46, 5, 43, 95, 34, 24, 65, 70, 6, 73, 45, 63, 67, 94, 37, 44, 33, 31, 55, 93, 20, 12, 17, 83, 66, 41, 8, 75, 16, 74, 23, 78, 52, 61, 30, 15, 7, 76, 40, 36, 90, 56, 0, 22, 88, 69, 1, 39, 91, 11, 81, 32, 9, 3, 38, 82, 64, 13, 57, 85, 25, 47, 10, 53, 58, 77, 29, 92, 51, 18, 80, 84, 49, 62, 19, 86, 42, 50, 48, 2, 54, 68, 35, 89, 87, 60], 97: [68, 96, 77, 50, 95, 5, 88, 30, 54, 66, 75, 41, 36, 6, 12, 74, 61, 46, 49, 32, 45, 62, 64, 59, 1, 3, 52, 13, 63, 72, 29, 15, 34, 21, 7, 0, 92, 85, 89, 18, 80, 90, 94, 71, 27, 51, 67, 14, 58, 43, 40, 9, 24, 73, 10, 60, 65, 31, 22, 91, 57, 20, 81, 78, 82, 35, 53, 70, 2, 4, 17, 87, 83, 25, 86, 79, 33, 39, 47, 23, 76, 42, 48, 84, 55, 93, 26, 37, 56, 44, 28, 16, 19, 11, 69, 8, 38], 98: [75, 78, 34, 22, 13, 53, 93, 31, 60, 10, 41, 85, 74, 16, 92, 79, 38, 67, 55, 44, 96, 26, 42, 82, 21, 37, 89, 87, 39, 95, 46, 0, 59, 62, 88, 84, 3, 45, 40, 32, 15, 11, 65, 94, 48, 43, 14, 91, 9, 4, 71, 50, 25, 70, 2, 47, 5, 23, 72, 30, 90, 51, 8, 27, 97, 1, 17, 61, 6, 29, 76, 86, 28, 12, 7, 33, 57, 20, 64, 56, 24, 68, 77, 35, 69, 81, 58, 52, 66, 63, 19, 73, 80, 18, 83, 36, 49, 54], 99: [56, 49, 41, 55, 86, 47, 31, 98, 68, 73, 10, 62, 66, 48, 52, 76, 85, 21, 23, 32, 14, 92, 37, 0, 33, 7, 91, 38, 27, 24, 5, 18, 87, 78, 65, 36, 58, 25, 46, 29, 8, 82, 79, 83, 1, 69, 72, 53, 50, 28, 94, 9, 11, 89, 74, 15, 84, 75, 6, 22, 90, 13, 42, 30, 60, 88, 19, 2, 95, 20, 40, 17, 3, 64, 71, 59, 97, 80, 63, 4, 45, 93, 54, 44, 77, 12, 96, 51, 43, 81, 61, 57, 16, 67, 26, 34, 39, 70, 35], 100: [40, 36, 93, 54, 31, 77, 25, 89, 11, 66, 12, 63, 72, 80, 28, 76, 92, 50, 47, 61, 78, 32, 56, 43, 70, 14, 95, 59, 4, 0, 22, 94, 71, 48, 83, 35, 2, 21, 69, 51, 7, 15, 1, 30, 5, 26, 18, 64, 49, 86, 29, 3, 16, 9, 84, 8, 44, 98, 55, 75, 73, 79, 10, 91, 46, 87, 62, 65, 17, 20, 13, 41, 34, 97, 67, 82, 23, 68, 53, 88, 57, 38, 45, 33, 42, 39, 19, 60, 96, 99, 85, 90, 37, 27, 74, 81, 6, 52, 58, 24], 101: [28, 92, 32, 23, 15, 58, 61, 78, 75, 45, 93, 42, 52, 79, 27, 33, 35, 77, 63, 36, 95, 14, 11, 24, 74, 37, 30, 2, 18, 91, 44, 64, 69, 5, 68, 81, 43, 39, 85, 71, 21, 76, 96, 34, 88, 51, 20, 31, 10, 98, 7, 80, 16, 56, 70, 50, 17, 12, 99, 25, 46, 53, 83, 86, 49, 90, 9, 89, 62, 67, 41, 1, 55, 60, 13, 84, 4, 22, 47, 3, 57, 19, 40, 29, 94, 6, 82, 87, 66, 0, 38, 73, 26, 72, 59, 100, 48, 65, 54, 8, 97], 102: [75, 61, 34, 27, 96, 50, 44, 62, 65, 43, 91, 40, 74, 82, 8, 73, 51, 10, 21, 59, 93, 35, 32, 97, 36, 3, 39, 63, 76, 60, 38, 87, 48, 72, 53, 12, 101, 86, 7, 22, 37, 29, 16, 6, 88, 1, 13, 77, 24, 70, 14, 84, 99, 57, 54, 41, 98, 100, 45, 4, 56, 89, 47, 28, 66, 80, 26, 85, 95, 5, 90, 11, 71, 25, 79, 64, 55, 2, 15, 49, 46, 0, 17, 94, 23, 9, 20, 30, 68, 33, 31, 42, 83, 19, 78, 67, 18, 52, 69, 81, 92, 58], 103: [66, 0, 27, 87, 48, 77, 49, 10, 69, 78, 18, 8, 95, 43, 54, 52, 80, 24, 81, 100, 40, 23, 36, 85, 19, 34, 31, 5, 102, 96, 86, 6, 82, 13, 44, 74, 26, 3, 60, 71, 11, 42, 84, 32, 92, 90, 58, 64, 94, 35, 91, 2, 45, 16, 101, 83, 50, 93, 22, 4, 21, 67, 12, 39, 75, 89, 79, 51, 97, 65, 88, 98, 57, 99, 20, 30, 17, 9, 25, 70, 33, 46, 7, 37, 53, 72, 14, 1, 56, 28, 62, 73, 41, 55, 38, 29, 63, 76, 68, 47, 15, 59, 61], 104: [34, 50, 29, 39, 78, 82, 5, 62, 69, 59, 20, 15, 40, 28, 22, 88, 57, 74, 9, 36, 38, 8, 44, 26, 48, 64, 72, 13, 53, 10, 97, 76, 67, 30, 19, 89, 79, 7, 102, 70, 46, 37, 58, 101, 3, 35, 25, 100, 6, 41, 24, 83, 94, 51, 98, 56, 86, 80, 87, 96, 60, 4, 17, 12, 32, 11, 92, 45, 16, 81, 0, 54, 85, 75, 93, 95, 65, 42, 99, 18, 14, 90, 77, 2, 91, 47, 49, 23, 68, 73, 84, 1, 61, 33, 55, 71, 43, 63, 103, 52, 31, 21, 66, 27], 105: [29, 77, 72, 12, 40, 63, 80, 90, 24, 55, 65, 48, 100, 23, 67, 35, 66, 68, 89, 11, 50, 36, 34, 79, 30, 27, 92, 62, 101, 19, 9, 94, 17, 7, 4, 73, 54, 14, 98, 81, 87, 74, 18, 97, 39, 53, 46, 69, 93, 60, 51, 99, 59, 102, 26, 16, 13, 82, 75, 8, 31, 44, 1, 3, 58, 38, 10, 33, 91, 96, 2, 64, 22, 78, 32, 20, 104, 76, 21, 5, 83, 95, 6, 45, 103, 52, 70, 84, 56, 85, 88, 43, 57, 71, 25, 37, 0, 61, 28, 86, 47, 42, 15, 49, 41], 106: [61, 7, 33, 23, 85, 22, 90, 96, 32, 65, 70, 52, 38, 63, 81, 60, 48, 28, 30, 74, 82, 104, 37, 98, 45, 101, 51, 105, 86, 100, 58, 18, 76, 97, 56, 69, 20, 75, 89, 4, 39, 1, 5, 91, 71, 25, 0, 26, 46, 103, 50, 55, 19, 15, 84, 78, 42, 29, 93, 8, 2, 80, 99, 3, 49, 16, 41, 44, 14, 87, 31, 72, 6, 11, 9, 83, 68, 47, 67, 12, 36, 54, 35, 77, 13, 24, 64, 94, 43, 10, 59, 57, 102, 17, 53, 27, 79, 73, 21, 40, 88, 92, 66, 34, 62, 95], 107: [8, 96, 55, 42, 13, 51, 48, 29, 53, 14, 104, 90, 56, 64, 21, 32, 100, 95, 37, 74, 86, 88, 52, 41, 39, 99, 60, 17, 31, 66, 50, 57, 16, 5, 102, 97, 36, 2, 65, 80, 94, 77, 106, 30, 58, 78, 0, 15, 12, 105, 25, 45, 83, 103, 101, 76, 9, 34, 93, 11, 19, 89, 63, 4, 26, 35, 54, 73, 24, 20, 6, 70, 43, 84, 7, 68, 62, 40, 27, 91, 59, 1, 98, 75, 23, 81, 47, 85, 71, 10, 38, 3, 18, 33, 28, 69, 72, 79, 44, 46, 67, 61, 82, 92, 49, 22, 87], 108: [61, 4, 15, 32, 11, 89, 41, 38, 3, 82, 90, 101, 28, 37, 99, 71, 16, 39, 56, 62, 14, 5, 49, 80, 64, 85, 40, 102, 73, 94, 22, 42, 106, 83, 100, 72, 17, 60, 1, 26, 66, 27, 86, 76, 54, 10, 93, 77, 31, 98, 9, 25, 8, 52, 18, 23, 29, 7, 75, 67, 48, 59, 33, 12, 79, 44, 36, 95, 53, 21, 88, 46, 68, 45, 19, 107, 6, 97, 87, 13, 69, 78, 103, 63, 96, 51, 91, 35, 81, 0, 47, 34, 43, 55, 20, 50, 65, 30, 74, 57, 104, 92, 2, 70, 105, 58, 24, 84], 109: [54, 59, 40, 11, 94, 51, 58, 108, 18, 16, 43, 66, 38, 24, 90, 52, 35, 84, 71, 69, 98, 103, 26, 68, 86, 53, 95, 75, 79, 64, 57, 45, 0, 7, 105, 31, 100, 15, 1, 34, 5, 27, 48, 74, 41, 12, 102, 23, 107, 10, 73, 33, 61, 9, 83, 8, 39, 70, 47, 2, 101, 82, 13, 97, 30, 4, 96, 44, 60, 85, 49, 25, 42, 93, 72, 65, 21, 80, 14, 29, 92, 99, 81, 76, 28, 56, 20, 62, 50, 37, 19, 106, 77, 6, 22, 89, 36, 3, 55, 32, 91, 88, 104, 17, 46, 78, 87, 67, 63], 110: [76, 43, 11, 33, 57, 61, 78, 30, 47, 40, 9, 59, 53, 28, 99, 94, 35, 108, 70, 103, 101, 82, 42, 63, 74, 17, 80, 56, 72, 66, 4, 100, 92, 14, 22, 69, 18, 16, 34, 109, 6, 106, 93, 54, 107, 45, 29, 96, 60, 87, 105, 26, 8, 88, 15, 65, 2, 104, 86, 83, 20, 41, 52, 77, 90, 97, 7, 85, 39, 36, 19, 58, 10, 37, 0, 12, 73, 62, 67, 84, 1, 79, 44, 51, 27, 38, 31, 50, 5, 75, 48, 68, 95, 3, 89, 23, 32, 81, 102, 13, 91, 49, 25, 55, 98, 64, 71, 46, 24, 21], 111: [23, 83, 67, 80, 31, 39, 42, 20, 48, 34, 84, 91, 21, 61, 82, 50, 88, 46, 104, 69, 27, 87, 2, 19, 97, 35, 25, 5, 9, 60, 86, 92, 6, 17, 79, 68, 78, 74, 29, 47, 57, 105, 3, 98, 32, 75, 44, 65, 45, 100, 7, 40, 72, 15, 106, 93, 71, 62, 37, 81, 18, 107, 30, 110, 108, 66, 52, 4, 14, 36, 109, 54, 0, 8, 13, 99, 76, 22, 73, 90, 53, 95, 101, 24, 1, 16, 58, 77, 51, 64, 55, 103, 43, 96, 63, 33, 10, 41, 102, 11, 70, 94, 28, 12, 59, 38, 49, 89, 85, 56, 26], 112: [43, 74, 24, 10, 88, 100, 104, 83, 65, 69, 110, 27, 68, 58, 22, 36, 71, 57, 12, 45, 89, 56, 18, 32, 28, 97, 60, 81, 5, 92, 11, 34, 64, 16, 49, 2, 67, 35, 23, 75, 20, 38, 84, 61, 4, 70, 7, 15, 87, 79, 91, 101, 17, 77, 103, 33, 0, 76, 8, 52, 59, 78, 106, 109, 6, 3, 95, 30, 26, 102, 93, 108, 46, 9, 21, 48, 62, 29, 47, 107, 13, 86, 72, 94, 96, 99, 14, 42, 19, 53, 1, 73, 105, 55, 82, 54, 31, 50, 98, 44, 66, 90, 51, 37, 41, 111, 63, 39, 80, 25, 85, 40], 113: [42, 109, 82, 49, 78, 55, 88, 6, 48, 39, 67, 90, 13, 72, 76, 9, 91, 40, 53, 47, 112, 38, 73, 66, 89, 43, 24, 71, 30, 54, 5, 68, 1, 18, 31, 57, 0, 105, 8, 86, 27, 62, 96, 75, 102, 29, 95, 61, 28, 110, 50, 104, 100, 77, 10, 74, 87, 45, 64, 111, 21, 19, 17, 58, 97, 85, 7, 60, 94, 108, 35, 16, 99, 36, 46, 11, 2, 92, 26, 70, 56, 59, 33, 65, 51, 101, 98, 37, 93, 4, 22, 83, 52, 23, 3, 103, 69, 14, 107, 34, 79, 63, 12, 106, 81, 32, 25, 44, 20, 80, 84, 15, 41], 114: [61, 32, 54, 66, 45, 38, 78, 74, 22, 98, 60, 20, 81, 7, 71, 37, 97, 8, 35, 59, 56, 21, 113, 51, 63, 50, 91, 87, 4, 100, 92, 49, 83, 112, 1, 9, 0, 103, 3, 47, 69, 48, 52, 12, 67, 80, 36, 85, 90, 94, 18, 14, 106, 73, 42, 104, 109, 16, 41, 39, 2, 6, 108, 55, 88, 26, 53, 25, 15, 70, 27, 17, 99, 75, 46, 30, 24, 111, 82, 65, 77, 86, 19, 102, 57, 96, 68, 43, 28, 110, 79, 107, 58, 31, 10, 13, 95, 5, 29, 76, 23, 11, 62, 33, 89, 44, 84, 105, 101, 93, 72, 40, 64, 34], 115: [32, 75, 78, 66, 95, 8, 0, 63, 43, 59, 31, 39, 69, 52, 109, 58, 20, 3, 77, 7, 93, 111, 103, 6, 33, 104, 64, 97, 35, 101, 113, 16, 22, 25, 49, 96, 61, 48, 83, 23, 87, 36, 102, 45, 2, 15, 46, 67, 88, 57, 11, 50, 110, 107, 72, 9, 37, 76, 80, 41, 26, 91, 17, 92, 81, 40, 5, 79, 74, 18, 112, 38, 19, 30, 90, 106, 99, 12, 42, 70, 60, 108, 34, 54, 44, 27, 100, 24, 84, 68, 28, 89, 55, 29, 56, 71, 73, 94, 10, 86, 53, 114, 13, 1, 105, 14, 65, 47, 51, 98, 82, 62, 85, 4, 21], 116: [61, 68, 112, 36, 63, 26, 52, 42, 40, 97, 28, 35, 96, 65, 91, 4, 94, 73, 6, 69, 114, 106, 98, 30, 9, 64, 10, 24, 81, 3, 102, 48, 79, 62, 20, 80, 37, 108, 111, 47, 1, 89, 8, 53, 57, 115, 82, 110, 43, 22, 87, 85, 50, 44, 5, 99, 107, 0, 14, 59, 56, 92, 100, 77, 13, 33, 21, 45, 15, 74, 11, 23, 83, 12, 19, 25, 55, 105, 2, 95, 84, 38, 88, 109, 54, 104, 49, 16, 71, 76, 27, 60, 7, 46, 32, 72, 17, 51, 31, 70, 103, 113, 66, 75, 86, 41, 18, 34, 39, 67, 90, 101, 93, 78, 58, 29], 117: [106, 66, 50, 75, 46, 11, 24, 34, 40, 49, 2, 61, 20, 104, 109, 89, 15, 18, 35, 76, 74, 103, 55, 115, 9, 84, 86, 7, 51, 105, 25, 83, 22, 6, 98, 48, 56, 116, 67, 92, 79, 28, 87, 59, 102, 19, 95, 93, 85, 26, 38, 0, 21, 47, 110, 90, 80, 82, 96, 1, 91, 36, 8, 97, 57, 33, 71, 14, 111, 17, 4, 112, 29, 77, 81, 101, 72, 31, 13, 10, 63, 37, 44, 64, 43, 45, 39, 108, 32, 68, 23, 94, 30, 107, 16, 114, 3, 69, 65, 62, 70, 27, 100, 113, 12, 60, 5, 52, 99, 73, 88, 41, 78, 54, 42, 58, 53], 118: [106, 65, 87, 32, 40, 72, 63, 56, 24, 71, 52, 93, 17, 20, 107, 4, 103, 73, 108, 90, 44, 54, 49, 91, 37, 68, 1, 59, 39, 113, 83, 89, 13, 67, 57, 2, 21, 6, 16, 0, 117, 11, 28, 88, 15, 60, 101, 51, 102, 43, 18, 7, 47, 29, 80, 10, 46, 50, 70, 77, 19, 112, 92, 66, 74, 86, 110, 114, 99, 115, 98, 109, 22, 5, 111, 81, 76, 94, 97, 8, 42, 3, 104, 35, 26, 31, 58, 25, 45, 14, 82, 78, 9, 34, 41, 69, 116, 105, 64, 100, 30, 38, 23, 12, 62, 85, 55, 84, 96, 36, 33, 95, 75, 27, 79, 48, 61, 53], 119: [42, 70, 41, 43, 104, 102, 34, 57, 25, 73, 56, 33, 91, 62, 48, 105, 52, 97, 59, 32, 15, 37, 6, 110, 35, 54, 24, 7, 76, 61, 107, 85, 83, 118, 89, 93, 9, 90, 10, 17, 115, 101, 99, 20, 13, 117, 66, 38, 113, 49, 69, 45, 31, 0, 51, 44, 94, 75, 95, 58, 28, 64, 106, 86, 1, 112, 92, 5, 2, 22, 3, 30, 14, 40, 82, 19, 4, 16, 88, 60, 55, 11, 96, 23, 80, 116, 98, 72, 36, 8, 50, 47, 84, 114, 103, 78, 100, 29, 12, 81, 18, 46, 109, 79, 67, 111, 68, 108, 21, 63, 26, 77, 53, 87, 65, 39, 71, 74, 27], 120: [36, 109, 104, 94, 77, 37, 59, 6, 83, 17, 47, 91, 15, 70, 66, 71, 34, 106, 116, 53, 62, 40, 16, 101, 84, 93, 8, 49, 111, 39, 19, 22, 90, 68, 18, 0, 52, 14, 79, 20, 64, 21, 118, 69, 56, 54, 96, 23, 115, 110, 61, 38, 4, 108, 97, 117, 13, 105, 86, 57, 60, 29, 2, 35, 9, 80, 99, 26, 98, 27, 63, 72, 78, 112, 10, 100, 114, 51, 95, 48, 50, 28, 5, 12, 1, 73, 81, 42, 119, 85, 113, 41, 43, 76, 58, 87, 30, 102, 88, 103, 7, 67, 55, 33, 75, 65, 25, 74, 46, 82, 107, 89, 44, 92, 11, 31, 24, 32, 3, 45], 121: [7, 56, 63, 35, 62, 94, 11, 13, 106, 53, 75, 104, 58, 41, 44, 109, 68, 83, 10, 29, 108, 3, 79, 107, 19, 72, 85, 51, 70, 20, 64, 16, 59, 47, 55, 0, 117, 73, 54, 112, 27, 105, 32, 118, 17, 23, 87, 101, 4, 2, 14, 66, 69, 24, 42, 18, 116, 119, 25, 60, 99, 96, 61, 57, 15, 102, 40, 8, 1, 100, 113, 97, 65, 93, 34, 6, 84, 49, 67, 48, 76, 9, 50, 26, 86, 114, 98, 31, 110, 92, 115, 52, 71, 111, 28, 95, 82, 45, 37, 103, 80, 78, 5, 38, 30, 89, 81, 43, 21, 120, 91, 36, 88, 12, 22, 39, 33, 74, 77, 46, 90], 122: [111, 55, 38, 102, 73, 17, 82, 20, 61, 117, 42, 105, 29, 77, 36, 33, 76, 98, 85, 89, 16, 9, 13, 47, 104, 118, 78, 70, 1, 106, 115, 120, 114, 56, 60, 83, 74, 26, 49, 94, 3, 21, 100, 37, 5, 22, 15, 112, 34, 58, 99, 44, 113, 23, 0, 30, 75, 63, 48, 25, 18, 39, 72, 64, 108, 14, 6, 4, 88, 84, 121, 52, 107, 2, 95, 57, 7, 80, 119, 116, 87, 28, 35, 110, 41, 59, 27, 12, 96, 51, 24, 10, 79, 93, 8, 90, 68, 40, 31, 103, 92, 11, 19, 86, 46, 65, 62, 45, 67, 54, 109, 50, 66, 81, 69, 43, 32, 101, 97, 71, 91, 53], 123: [85, 116, 21, 25, 79, 8, 101, 13, 42, 36, 57, 81, 37, 82, 74, 4, 60, 72, 59, 105, 33, 104, 53, 63, 18, 15, 43, 64, 19, 68, 73, 89, 58, 75, 67, 103, 100, 121, 114, 23, 113, 98, 40, 61, 26, 20, 38, 119, 7, 17, 117, 110, 22, 118, 106, 71, 84, 56, 112, 9, 109, 122, 86, 1, 69, 29, 49, 115, 30, 3, 10, 31, 108, 83, 76, 70, 99, 16, 50, 80, 54, 96, 24, 27, 62, 78, 55, 91, 34, 11, 97, 120, 39, 107, 5, 14, 48, 32, 95, 52, 65, 87, 102, 46, 77, 90, 93, 35, 88, 45, 66, 92, 0, 44, 41, 111, 2, 47, 94, 28, 12, 6, 51], 124: [53, 51, 31, 75, 81, 84, 36, 62, 123, 95, 3, 99, 8, 44, 101, 19, 80, 60, 29, 92, 59, 102, 113, 21, 70, 24, 88, 120, 10, 114, 45, 33, 55, 111, 100, 117, 48, 82, 86, 49, 76, 26, 23, 56, 118, 35, 54, 107, 14, 9, 6, 12, 74, 104, 28, 73, 5, 34, 37, 47, 32, 89, 4, 58, 65, 103, 87, 94, 115, 72, 79, 106, 121, 105, 66, 109, 41, 110, 42, 18, 85, 0, 27, 7, 2, 20, 69, 25, 63, 43, 96, 116, 68, 77, 91, 119, 22, 11, 98, 46, 67, 38, 57, 30, 93, 122, 1, 64, 71, 13, 90, 97, 52, 61, 16, 83, 78, 108, 112, 39, 17, 15, 50, 40], 125: [84, 59, 98, 103, 50, 99, 39, 89, 105, 60, 55, 24, 100, 61, 25, 44, 108, 86, 97, 56, 47, 93, 87, 26, 6, 8, 27, 71, 95, 68, 64, 40, 53, 75, 52, 116, 109, 107, 18, 115, 48, 16, 83, 96, 49, 31, 121, 36, 73, 1, 29, 13, 58, 19, 94, 119, 122, 69, 0, 30, 123, 120, 88, 3, 17, 46, 33, 15, 124, 101, 85, 9, 70, 67, 21, 113, 2, 14, 102, 11, 79, 35, 37, 51, 23, 20, 63, 5, 111, 54, 106, 10, 38, 112, 72, 82, 80, 66, 62, 91, 41, 34, 92, 117, 104, 28, 78, 65, 57, 22, 12, 45, 114, 7, 77, 32, 90, 110, 43, 76, 81, 118, 42, 74, 4], 126: [61, 116, 23, 37, 73, 55, 64, 36, 0, 32, 82, 89, 74, 76, 33, 20, 99, 41, 53, 34, 47, 114, 28, 110, 9, 56, 70, 102, 66, 105, 50, 15, 5, 121, 85, 81, 26, 8, 38, 18, 72, 54, 17, 60, 25, 124, 79, 101, 84, 29, 118, 108, 68, 113, 12, 100, 45, 106, 95, 71, 115, 125, 69, 16, 78, 42, 62, 39, 96, 112, 48, 123, 11, 98, 31, 49, 35, 27, 21, 65, 13, 122, 92, 7, 3, 87, 97, 4, 10, 88, 59, 22, 58, 119, 46, 104, 40, 44, 91, 103, 67, 1, 120, 6, 52, 93, 109, 90, 43, 107, 80, 51, 94, 14, 111, 24, 117, 30, 86, 2, 75, 63, 83, 77, 19, 57], 127: [84, 52, 43, 22, 57, 23, 34, 30, 81, 66, 75, 77, 12, 121, 95, 86, 78, 2, 45, 58, 60, 110, 108, 24, 17, 103, 1, 59, 38, 36, 82, 33, 61, 87, 79, 46, 123, 41, 62, 100, 74, 28, 119, 73, 5, 25, 109, 26, 3, 54, 76, 89, 55, 99, 67, 4, 126, 10, 16, 32, 97, 21, 106, 122, 111, 107, 101, 29, 124, 112, 13, 85, 94, 50, 31, 125, 39, 93, 9, 0, 68, 70, 72, 116, 8, 37, 64, 56, 83, 48, 115, 7, 40, 69, 114, 63, 102, 118, 96, 98, 44, 18, 88, 15, 42, 6, 47, 53, 117, 65, 92, 14, 35, 80, 51, 20, 113, 71, 27, 91, 49, 105, 19, 104, 90, 11, 120], 128: [69, 116, 11, 67, 102, 61, 50, 44, 34, 112, 9, 124, 82, 62, 97, 99, 22, 90, 84, 35, 109, 18, 58, 48, 75, 8, 6, 68, 113, 126, 89, 55, 100, 28, 91, 27, 14, 56, 46, 49, 86, 123, 54, 0, 72, 92, 51, 119, 12, 87, 24, 122, 3, 70, 19, 53, 98, 33, 40, 120, 29, 121, 114, 77, 93, 95, 37, 80, 45, 65, 115, 39, 103, 31, 78, 4, 15, 10, 81, 127, 66, 1, 105, 2, 36, 16, 47, 41, 30, 42, 25, 57, 73, 104, 64, 32, 117, 52, 85, 43, 101, 94, 7, 118, 63, 17, 106, 5, 83, 71, 20, 13, 96, 26, 60, 38, 76, 108, 125, 107, 110, 88, 111, 79, 21, 59, 74, 23], 129: [77, 28, 72, 9, 23, 51, 98, 88, 103, 33, 93, 26, 78, 73, 121, 64, 124, 55, 40, 11, 109, 94, 35, 17, 74, 37, 25, 111, 82, 65, 83, 38, 125, 112, 7, 86, 66, 79, 113, 127, 15, 44, 58, 99, 118, 42, 85, 49, 2, 114, 10, 123, 107, 84, 89, 34, 70, 90, 22, 6, 3, 0, 4, 29, 59, 63, 54, 104, 126, 116, 27, 105, 12, 102, 19, 61, 80, 95, 47, 120, 101, 43, 122, 106, 21, 67, 13, 119, 60, 45, 24, 41, 30, 16, 14, 69, 48, 117, 8, 20, 18, 52, 5, 87, 115, 81, 96, 75, 71, 100, 91, 1, 53, 57, 36, 92, 62, 110, 31, 50, 68, 76, 39, 128, 56, 108, 97, 46, 32], 130: [123, 27, 70, 83, 28, 16, 34, 71, 46, 49, 98, 58, 35, 25, 111, 89, 10, 24, 95, 109, 3, 115, 125, 54, 29, 57, 1, 36, 72, 100, 81, 65, 119, 79, 30, 14, 114, 106, 124, 99, 101, 78, 31, 38, 13, 64, 44, 37, 19, 84, 53, 23, 107, 61, 11, 75, 104, 120, 21, 33, 122, 63, 92, 102, 85, 62, 22, 4, 2, 110, 15, 55, 48, 126, 42, 117, 93, 12, 128, 112, 105, 40, 118, 74, 7, 9, 129, 97, 87, 82, 96, 6, 56, 41, 8, 108, 5, 18, 47, 69, 88, 17, 103, 32, 91, 67, 121, 59, 50, 113, 77, 127, 20, 26, 94, 66, 116, 0, 45, 51, 60, 43, 76, 73, 90, 86, 52, 80, 39, 68], 131: [21, 65, 14, 81, 29, 49, 87, 116, 43, 9, 34, 78, 101, 63, 72, 33, 62, 57, 23, 6, 36, 2, 69, 76, 53, 107, 114, 122, 105, 31, 37, 94, 89, 84, 125, 11, 75, 20, 113, 71, 124, 83, 85, 7, 99, 130, 24, 48, 102, 19, 115, 96, 118, 12, 90, 54, 51, 106, 42, 129, 120, 35, 18, 38, 15, 47, 70, 27, 58, 121, 3, 0, 82, 111, 100, 108, 110, 68, 28, 4, 10, 92, 5, 45, 77, 30, 52, 79, 103, 16, 32, 17, 119, 41, 88, 60, 8, 1, 128, 97, 117, 86, 74, 50, 67, 127, 61, 22, 40, 98, 123, 46, 56, 26, 55, 64, 112, 126, 95, 59, 73, 39, 80, 66, 13, 104, 93, 25, 44, 109, 91], 132: [92, 102, 95, 23, 27, 16, 63, 1, 71, 122, 52, 85, 96, 53, 68, 119, 45, 32, 100, 28, 39, 22, 19, 4, 15, 46, 76, 83, 124, 60, 125, 110, 38, 66, 72, 79, 73, 9, 115, 13, 104, 88, 31, 94, 47, 6, 99, 18, 75, 117, 109, 50, 98, 67, 84, 0, 80, 30, 5, 126, 14, 106, 78, 49, 69, 25, 128, 11, 86, 127, 62, 59, 120, 3, 10, 111, 108, 116, 44, 21, 48, 107, 37, 33, 64, 36, 121, 77, 51, 26, 131, 2, 90, 20, 101, 12, 29, 82, 91, 58, 56, 118, 24, 70, 61, 105, 81, 17, 112, 34, 89, 40, 35, 65, 97, 54, 129, 41, 114, 8, 55, 123, 130, 57, 93, 43, 113, 103, 7, 87, 42, 74], 133: [78, 120, 98, 7, 95, 59, 61, 94, 73, 52, 25, 36, 81, 12, 121, 100, 30, 68, 31, 1, 66, 27, 60, 33, 71, 125, 50, 76, 14, 48, 106, 126, 62, 18, 115, 103, 122, 107, 88, 67, 77, 104, 20, 26, 83, 87, 91, 13, 43, 40, 47, 23, 109, 58, 0, 75, 128, 15, 110, 82, 119, 92, 3, 130, 65, 129, 132, 38, 11, 53, 37, 21, 16, 46, 22, 29, 105, 32, 96, 90, 44, 84, 123, 117, 24, 2, 45, 89, 114, 54, 97, 51, 6, 93, 127, 56, 86, 5, 79, 108, 34, 69, 64, 80, 74, 9, 57, 124, 101, 131, 10, 49, 42, 35, 19, 111, 72, 8, 116, 28, 39, 41, 17, 102, 4, 99, 113, 63, 85, 118, 55, 70, 112], 134: [124, 56, 50, 38, 67, 76, 60, 108, 114, 45, 69, 49, 74, 95, 98, 32, 16, 46, 111, 37, 13, 71, 97, 113, 122, 93, 109, 41, 10, 66, 81, 62, 48, 25, 57, 112, 42, 47, 27, 133, 59, 86, 2, 132, 28, 43, 99, 90, 73, 82, 3, 115, 7, 118, 128, 121, 14, 129, 9, 58, 104, 87, 21, 102, 0, 89, 107, 31, 36, 40, 119, 19, 80, 77, 51, 127, 54, 63, 91, 6, 83, 53, 79, 94, 23, 70, 17, 15, 8, 117, 52, 106, 126, 30, 20, 5, 123, 84, 130, 29, 120, 4, 11, 110, 105, 96, 72, 101, 12, 131, 33, 92, 88, 26, 35, 44, 125, 24, 61, 75, 85, 116, 34, 65, 103, 1, 18, 68, 39, 64, 55, 22, 78, 100], 135: [37, 77, 90, 105, 48, 59, 111, 75, 92, 21, 89, 76, 83, 35, 114, 106, 52, 1, 10, 40, 95, 84, 79, 119, 0, 20, 129, 45, 98, 18, 64, 36, 22, 126, 124, 55, 86, 7, 102, 67, 101, 28, 9, 110, 30, 117, 128, 73, 49, 100, 3, 14, 11, 26, 60, 6, 17, 87, 54, 44, 108, 130, 120, 118, 81, 33, 63, 80, 2, 125, 39, 112, 115, 132, 78, 32, 4, 122, 13, 23, 16, 88, 31, 5, 133, 93, 38, 85, 121, 15, 99, 47, 56, 53, 104, 69, 134, 91, 123, 61, 65, 34, 74, 58, 12, 29, 97, 24, 62, 109, 8, 43, 127, 116, 113, 131, 27, 19, 66, 94, 51, 42, 103, 50, 82, 107, 71, 68, 57, 72, 96, 25, 70, 46, 41], 136: [125, 130, 39, 103, 91, 51, 18, 50, 121, 99, 35, 76, 43, 15, 36, 127, 89, 61, 16, 77, 95, 59, 22, 63, 85, 67, 44, 134, 108, 42, 111, 82, 88, 115, 1, 49, 133, 56, 105, 14, 3, 6, 69, 23, 38, 100, 81, 71, 114, 58, 31, 98, 0, 112, 70, 13, 5, 2, 65, 135, 4, 30, 52, 116, 48, 12, 72, 96, 11, 119, 24, 57, 60, 25, 106, 10, 46, 62, 117, 131, 41, 92, 37, 7, 118, 19, 17, 83, 47, 21, 66, 64, 74, 97, 73, 45, 132, 90, 87, 27, 126, 129, 123, 120, 78, 110, 93, 26, 109, 8, 101, 94, 84, 33, 124, 107, 113, 40, 32, 122, 80, 9, 79, 29, 53, 28, 34, 104, 55, 128, 86, 20, 54, 75, 102, 68], 137: [125, 97, 110, 9, 19, 68, 26, 38, 64, 37, 42, 83, 51, 61, 91, 20, 121, 40, 69, 11, 1, 74, 107, 2, 103, 108, 102, 53, 30, 32, 123, 24, 76, 87, 81, 35, 31, 80, 126, 134, 16, 62, 33, 127, 106, 57, 84, 129, 65, 13, 105, 111, 12, 99, 94, 119, 86, 135, 7, 116, 101, 27, 6, 28, 72, 115, 48, 128, 56, 85, 23, 100, 44, 132, 36, 25, 0, 66, 21, 90, 117, 8, 14, 73, 88, 130, 122, 114, 59, 131, 49, 43, 67, 4, 104, 89, 120, 96, 133, 95, 118, 17, 124, 3, 45, 78, 5, 70, 18, 54, 47, 34, 109, 22, 98, 92, 63, 50, 60, 39, 46, 79, 136, 58, 93, 71, 77, 41, 82, 15, 10, 29, 112, 52, 55, 113, 75], 138: [87, 103, 36, 67, 80, 53, 107, 20, 117, 34, 123, 130, 70, 94, 102, 125, 73, 66, 2, 5, 12, 101, 24, 77, 57, 84, 29, 48, 37, 113, 81, 98, 122, 79, 96, 88, 32, 42, 23, 18, 1, 13, 110, 106, 55, 28, 131, 136, 109, 104, 21, 75, 7, 35, 128, 82, 99, 10, 74, 58, 100, 25, 43, 40, 44, 97, 92, 64, 83, 76, 27, 93, 19, 62, 126, 135, 14, 95, 116, 31, 115, 118, 16, 41, 9, 0, 60, 52, 133, 38, 6, 89, 22, 121, 26, 61, 137, 111, 17, 3, 112, 69, 4, 134, 15, 124, 114, 108, 78, 132, 120, 33, 85, 54, 45, 51, 91, 105, 63, 56, 68, 47, 65, 50, 119, 49, 59, 86, 8, 129, 39, 71, 46, 72, 90, 30, 11, 127], 139: [47, 76, 109, 64, 84, 59, 12, 74, 126, 94, 61, 0, 40, 35, 78, 15, 89, 57, 113, 37, 110, 45, 5, 132, 136, 48, 82, 98, 120, 77, 114, 3, 121, 13, 108, 134, 2, 28, 90, 115, 103, 91, 17, 39, 127, 56, 24, 55, 1, 68, 112, 32, 26, 85, 18, 54, 4, 43, 83, 80, 33, 138, 67, 22, 58, 25, 107, 30, 65, 129, 105, 41, 27, 63, 87, 117, 102, 111, 133, 8, 123, 119, 86, 100, 42, 122, 81, 97, 19, 104, 99, 137, 93, 72, 10, 62, 135, 128, 131, 46, 130, 23, 14, 88, 73, 16, 7, 69, 124, 49, 92, 9, 11, 38, 21, 34, 118, 101, 52, 95, 44, 29, 79, 51, 66, 71, 53, 36, 31, 116, 75, 96, 20, 125, 6, 106, 50, 60, 70], 140: [59, 85, 64, 109, 69, 100, 45, 53, 128, 87, 98, 138, 27, 34, 50, 5, 71, 37, 74, 51, 78, 124, 0, 17, 135, 70, 97, 8, 88, 24, 44, 107, 49, 10, 2, 86, 126, 41, 120, 113, 32, 16, 65, 84, 66, 136, 129, 21, 72, 62, 139, 63, 95, 134, 101, 127, 108, 28, 77, 75, 15, 89, 14, 61, 40, 26, 73, 13, 11, 68, 33, 80, 60, 137, 9, 19, 118, 106, 131, 112, 83, 119, 117, 6, 25, 116, 58, 93, 115, 99, 3, 31, 103, 130, 79, 7, 122, 105, 20, 133, 125, 29, 23, 90, 57, 52, 48, 22, 104, 102, 46, 35, 30, 92, 39, 54, 76, 67, 47, 110, 121, 55, 18, 96, 82, 42, 91, 1, 111, 4, 56, 12, 94, 81, 114, 132, 43, 123, 36, 38], 141: [129, 72, 59, 47, 52, 44, 38, 79, 67, 133, 57, 16, 128, 25, 93, 68, 108, 75, 98, 33, 70, 136, 106, 24, 6, 49, 10, 18, 5, 56, 13, 132, 118, 66, 12, 77, 97, 39, 60, 42, 40, 130, 138, 126, 7, 139, 2, 73, 112, 85, 65, 26, 45, 64, 4, 115, 74, 31, 50, 99, 27, 30, 1, 83, 113, 54, 122, 92, 81, 123, 34, 11, 100, 135, 62, 28, 17, 71, 101, 0, 46, 19, 61, 117, 125, 114, 76, 36, 119, 124, 127, 20, 137, 88, 140, 102, 9, 107, 41, 116, 32, 131, 110, 51, 90, 63, 105, 111, 23, 89, 91, 109, 84, 48, 69, 134, 87, 78, 35, 104, 82, 55, 29, 14, 121, 53, 96, 58, 37, 15, 8, 21, 3, 120, 22, 95, 80, 94, 103, 43, 86], 142: [109, 28, 26, 58, 69, 64, 128, 60, 70, 89, 78, 129, 30, 87, 108, 104, 37, 67, 79, 82, 17, 122, 110, 36, 102, 77, 137, 72, 2, 52, 8, 34, 23, 97, 46, 133, 92, 19, 113, 10, 51, 0, 21, 15, 114, 47, 16, 134, 130, 90, 35, 9, 112, 101, 94, 53, 93, 22, 54, 74, 85, 91, 95, 83, 71, 123, 132, 62, 106, 25, 127, 32, 39, 65, 31, 119, 115, 126, 124, 107, 80, 6, 136, 59, 131, 111, 20, 138, 5, 103, 41, 45, 3, 57, 99, 61, 105, 24, 86, 68, 116, 118, 18, 4, 66, 140, 100, 11, 29, 7, 55, 84, 75, 1, 33, 12, 117, 27, 44, 141, 139, 96, 50, 43, 76, 48, 56, 63, 13, 42, 98, 49, 81, 88, 73, 40, 135, 120, 38, 125, 121, 14], 143: [81, 138, 102, 90, 121, 50, 129, 85, 94, 135, 49, 32, 74, 141, 57, 45, 8, 66, 103, 108, 56, 58, 124, 47, 53, 98, 48, 125, 37, 0, 106, 6, 46, 16, 69, 63, 33, 142, 4, 99, 17, 5, 20, 113, 127, 27, 101, 67, 34, 126, 119, 116, 55, 3, 65, 29, 75, 107, 84, 31, 93, 76, 118, 131, 51, 30, 104, 133, 28, 71, 128, 9, 40, 140, 115, 24, 92, 95, 88, 21, 7, 43, 73, 82, 25, 44, 59, 110, 130, 136, 97, 70, 109, 41, 79, 100, 54, 19, 86, 18, 132, 10, 83, 38, 22, 139, 2, 23, 14, 122, 137, 117, 1, 114, 60, 111, 77, 112, 15, 13, 96, 91, 120, 123, 36, 61, 134, 35, 62, 52, 87, 78, 72, 26, 89, 80, 12, 39, 105, 64, 11, 42, 68], 144: [79, 107, 95, 1, 57, 115, 68, 28, 123, 131, 45, 14, 101, 73, 0, 8, 129, 124, 66, 3, 106, 126, 77, 33, 97, 108, 37, 127, 100, 141, 128, 13, 86, 12, 5, 42, 110, 105, 84, 116, 52, 69, 74, 17, 7, 46, 27, 23, 104, 55, 59, 118, 75, 137, 48, 2, 121, 32, 25, 58, 119, 15, 70, 24, 26, 98, 16, 56, 117, 130, 140, 109, 62, 102, 38, 92, 49, 4, 36, 9, 93, 138, 134, 88, 54, 10, 21, 111, 113, 35, 6, 44, 64, 50, 82, 91, 139, 99, 142, 30, 87, 18, 34, 80, 53, 120, 136, 85, 31, 94, 78, 39, 112, 61, 51, 135, 96, 83, 60, 40, 103, 143, 114, 43, 67, 90, 81, 41, 132, 20, 125, 122, 65, 72, 47, 76, 133, 71, 89, 63, 11, 19, 22, 29], 145: [82, 58, 144, 86, 65, 123, 107, 46, 143, 33, 37, 75, 110, 27, 101, 121, 57, 1, 102, 122, 16, 69, 94, 60, 36, 68, 111, 80, 95, 55, 119, 26, 136, 19, 11, 71, 41, 17, 20, 72, 137, 59, 39, 142, 98, 53, 84, 3, 134, 23, 49, 127, 73, 66, 106, 21, 130, 47, 5, 104, 35, 91, 128, 109, 74, 124, 2, 24, 93, 132, 125, 99, 141, 12, 4, 54, 38, 28, 9, 129, 138, 64, 14, 76, 85, 117, 8, 78, 29, 61, 18, 6, 112, 10, 105, 97, 83, 43, 96, 116, 131, 120, 22, 126, 63, 140, 25, 67, 115, 34, 0, 45, 81, 40, 30, 118, 42, 139, 133, 87, 44, 113, 89, 52, 31, 62, 13, 70, 7, 90, 51, 79, 103, 15, 88, 108, 114, 100, 50, 77, 92, 135, 56, 48, 32], 146: [0, 113, 98, 107, 28, 22, 76, 51, 140, 25, 85, 122, 65, 114, 104, 57, 36, 100, 105, 127, 42, 88, 34, 60, 47, 56, 21, 124, 135, 103, 99, 14, 71, 92, 118, 101, 49, 67, 81, 5, 128, 102, 136, 11, 23, 108, 38, 45, 143, 19, 106, 109, 131, 35, 126, 117, 20, 17, 33, 144, 62, 89, 16, 44, 2, 112, 24, 41, 29, 133, 61, 139, 43, 119, 13, 53, 121, 111, 97, 66, 74, 84, 142, 15, 141, 123, 72, 54, 96, 37, 115, 79, 125, 1, 30, 26, 3, 77, 95, 50, 132, 10, 4, 93, 63, 94, 83, 134, 27, 7, 32, 46, 64, 69, 86, 58, 130, 138, 48, 68, 75, 9, 87, 39, 120, 82, 12, 137, 6, 91, 55, 73, 8, 80, 52, 59, 129, 18, 145, 40, 31, 110, 70, 116, 90, 78], 147: [65, 142, 13, 104, 115, 99, 5, 90, 87, 81, 53, 40, 119, 1, 69, 85, 29, 59, 133, 108, 28, 123, 47, 44, 34, 12, 116, 109, 51, 30, 125, 122, 60, 73, 83, 38, 16, 23, 3, 101, 17, 36, 61, 7, 132, 26, 55, 100, 111, 32, 20, 107, 102, 128, 54, 57, 46, 88, 143, 91, 74, 96, 106, 48, 121, 129, 9, 145, 139, 63, 21, 18, 43, 118, 11, 112, 114, 146, 144, 138, 2, 127, 134, 4, 80, 33, 113, 84, 8, 140, 105, 95, 126, 117, 68, 19, 27, 41, 137, 78, 92, 64, 31, 76, 42, 62, 14, 67, 124, 0, 103, 93, 10, 89, 66, 45, 72, 79, 71, 136, 15, 141, 120, 6, 130, 75, 58, 94, 35, 98, 135, 25, 50, 37, 49, 70, 97, 24, 110, 39, 131, 52, 56, 77, 22, 86, 82], 148: [111, 129, 10, 72, 95, 82, 60, 107, 128, 0, 76, 44, 57, 80, 110, 61, 132, 28, 23, 43, 114, 14, 48, 84, 67, 11, 64, 41, 112, 63, 78, 70, 140, 13, 3, 30, 83, 1, 68, 22, 39, 136, 122, 6, 71, 58, 104, 7, 120, 45, 143, 100, 130, 42, 73, 91, 124, 85, 141, 51, 21, 92, 18, 126, 40, 144, 31, 119, 86, 89, 4, 17, 53, 25, 15, 46, 131, 32, 118, 139, 16, 103, 133, 115, 54, 102, 59, 146, 125, 87, 33, 88, 145, 9, 138, 5, 75, 47, 20, 36, 101, 69, 109, 97, 24, 62, 121, 116, 98, 38, 55, 77, 96, 134, 35, 26, 65, 105, 2, 135, 37, 74, 99, 123, 50, 79, 49, 12, 34, 8, 29, 137, 142, 81, 27, 93, 66, 19, 56, 113, 52, 108, 117, 147, 106, 127, 90, 94], 149: [60, 24, 110, 68, 104, 99, 63, 26, 49, 54, 74, 129, 90, 139, 109, 40, 98, 48, 108, 59, 46, 122, 124, 93, 19, 92, 15, 101, 45, 136, 83, 80, 67, 17, 85, 116, 8, 57, 72, 137, 55, 1, 130, 44, 140, 4, 114, 56, 33, 5, 25, 134, 73, 142, 70, 127, 64, 132, 10, 0, 145, 148, 28, 69, 32, 11, 102, 78, 12, 146, 51, 38, 66, 42, 3, 103, 16, 77, 75, 50, 112, 144, 52, 120, 22, 6, 113, 141, 118, 111, 89, 7, 94, 29, 133, 128, 61, 143, 41, 97, 87, 62, 65, 147, 31, 37, 30, 125, 100, 138, 20, 107, 86, 117, 119, 79, 21, 105, 95, 36, 106, 135, 9, 96, 115, 23, 84, 39, 13, 91, 43, 27, 18, 14, 82, 53, 81, 34, 131, 121, 123, 71, 2, 47, 58, 35, 88, 126, 76], 150: [86, 96, 41, 91, 71, 16, 75, 73, 87, 84, 82, 54, 148, 94, 52, 12, 119, 104, 78, 133, 44, 50, 34, 116, 145, 123, 117, 60, 98, 93, 81, 53, 74, 101, 111, 37, 5, 144, 11, 80, 149, 77, 56, 36, 128, 142, 66, 23, 76, 122, 1, 72, 6, 109, 45, 59, 90, 32, 121, 18, 9, 24, 0, 110, 114, 100, 65, 124, 33, 143, 62, 126, 43, 138, 29, 134, 147, 67, 4, 46, 8, 127, 112, 132, 92, 28, 131, 40, 20, 39, 64, 14, 69, 17, 15, 63, 42, 3, 146, 30, 47, 19, 38, 135, 89, 130, 95, 49, 25, 57, 7, 120, 115, 129, 2, 27, 61, 97, 102, 85, 10, 108, 137, 118, 125, 107, 48, 106, 88, 21, 55, 103, 113, 70, 139, 35, 31, 99, 136, 68, 140, 51, 22, 83, 13, 141, 79, 58, 105, 26], 151: [43, 101, 75, 82, 114, 31, 120, 90, 47, 77, 32, 8, 68, 139, 33, 51, 5, 98, 66, 60, 29, 48, 137, 112, 64, 103, 37, 62, 148, 122, 134, 78, 143, 20, 49, 3, 124, 74, 55, 25, 131, 24, 100, 129, 97, 147, 88, 110, 50, 21, 96, 39, 149, 125, 109, 99, 38, 127, 34, 72, 0, 45, 6, 44, 58, 30, 46, 142, 19, 79, 11, 116, 84, 18, 81, 1, 69, 128, 130, 54, 23, 80, 115, 133, 17, 119, 28, 146, 89, 7, 121, 76, 61, 117, 86, 10, 145, 126, 52, 94, 73, 22, 132, 135, 26, 12, 106, 36, 87, 57, 118, 13, 9, 111, 85, 138, 63, 53, 56, 83, 136, 16, 27, 4, 70, 150, 140, 35, 40, 59, 14, 108, 93, 65, 92, 113, 2, 141, 104, 144, 67, 91, 95, 15, 42, 102, 105, 107, 71, 123, 41], 152: [113, 105, 96, 121, 66, 27, 148, 33, 87, 13, 54, 82, 92, 40, 32, 60, 99, 93, 107, 109, 21, 38, 127, 29, 81, 133, 55, 130, 91, 36, 43, 71, 7, 52, 101, 103, 67, 74, 108, 5, 68, 136, 47, 128, 1, 106, 80, 131, 94, 72, 12, 31, 144, 34, 132, 114, 0, 22, 151, 10, 57, 11, 14, 111, 75, 23, 102, 88, 145, 53, 26, 143, 58, 120, 35, 150, 126, 76, 51, 104, 56, 2, 142, 98, 16, 48, 137, 139, 24, 42, 9, 3, 125, 147, 86, 65, 20, 46, 100, 90, 138, 6, 141, 45, 30, 146, 70, 85, 15, 119, 110, 59, 95, 19, 83, 69, 4, 28, 77, 8, 17, 61, 25, 116, 39, 63, 115, 135, 37, 123, 97, 41, 122, 78, 18, 112, 64, 149, 84, 118, 79, 49, 89, 44, 129, 140, 62, 134, 73, 117, 124, 50], 153: [103, 132, 53, 95, 25, 76, 150, 135, 130, 110, 85, 37, 100, 55, 151, 89, 84, 98, 67, 30, 102, 75, 12, 50, 139, 115, 20, 34, 15, 22, 36, 46, 143, 129, 52, 39, 122, 134, 4, 112, 146, 77, 87, 93, 149, 69, 51, 6, 43, 71, 152, 106, 131, 116, 45, 7, 104, 74, 5, 16, 48, 23, 40, 9, 18, 79, 64, 27, 121, 101, 83, 141, 11, 117, 111, 26, 142, 144, 1, 62, 119, 127, 66, 148, 107, 94, 2, 68, 145, 147, 57, 41, 108, 17, 73, 31, 21, 125, 63, 10, 138, 81, 35, 136, 124, 8, 70, 96, 56, 78, 140, 38, 137, 113, 133, 92, 126, 49, 28, 54, 3, 14, 97, 72, 0, 86, 118, 128, 24, 114, 58, 65, 105, 91, 47, 90, 99, 80, 82, 109, 32, 13, 42, 61, 120, 60, 88, 33, 29, 19, 44, 59, 123], 154: [57, 42, 138, 142, 13, 31, 95, 148, 128, 36, 110, 74, 97, 52, 44, 59, 81, 132, 66, 79, 86, 58, 39, 68, 145, 12, 5, 65, 104, 33, 88, 37, 82, 94, 87, 11, 123, 149, 108, 112, 118, 63, 135, 35, 38, 153, 23, 9, 2, 140, 16, 119, 121, 0, 103, 117, 21, 152, 70, 54, 56, 19, 137, 84, 75, 46, 4, 139, 147, 20, 18, 111, 80, 32, 107, 8, 26, 151, 64, 77, 6, 106, 85, 71, 130, 99, 14, 47, 73, 131, 25, 3, 126, 15, 43, 105, 109, 22, 62, 127, 24, 133, 29, 92, 67, 7, 141, 136, 144, 114, 53, 55, 143, 129, 50, 76, 115, 27, 101, 34, 120, 90, 28, 98, 69, 10, 49, 134, 102, 122, 60, 113, 30, 124, 45, 125, 93, 41, 72, 78, 48, 96, 1, 40, 146, 91, 116, 61, 100, 89, 51, 17, 83, 150], 155: [17, 125, 52, 78, 30, 34, 36, 77, 86, 88, 99, 59, 95, 98, 61, 119, 2, 63, 106, 25, 28, 115, 37, 138, 131, 128, 39, 139, 1, 6, 151, 51, 118, 114, 29, 107, 72, 101, 94, 112, 117, 121, 16, 136, 56, 69, 10, 84, 5, 67, 104, 149, 19, 145, 116, 7, 153, 58, 21, 46, 35, 27, 23, 3, 48, 62, 110, 141, 129, 76, 55, 31, 14, 113, 127, 18, 13, 100, 133, 8, 60, 126, 91, 45, 87, 154, 105, 65, 81, 103, 90, 143, 82, 44, 12, 93, 137, 148, 132, 49, 89, 32, 144, 152, 42, 15, 54, 22, 124, 140, 0, 64, 123, 134, 102, 109, 43, 150, 4, 146, 85, 66, 147, 79, 20, 97, 9, 96, 130, 111, 122, 135, 24, 92, 80, 71, 83, 120, 26, 33, 108, 41, 70, 40, 74, 50, 142, 38, 73, 47, 53, 75, 68, 57, 11], 156: [55, 36, 67, 60, 115, 86, 108, 24, 82, 21, 95, 50, 84, 133, 72, 18, 35, 87, 113, 92, 132, 25, 51, 74, 8, 41, 58, 140, 147, 20, 76, 44, 85, 117, 40, 91, 105, 125, 106, 70, 94, 4, 29, 142, 59, 2, 124, 129, 68, 139, 39, 130, 135, 100, 47, 57, 98, 144, 154, 80, 32, 27, 121, 127, 97, 42, 16, 65, 111, 7, 93, 123, 6, 101, 13, 54, 22, 152, 138, 90, 1, 61, 149, 64, 52, 0, 62, 46, 114, 151, 37, 131, 66, 15, 5, 83, 49, 38, 146, 137, 23, 9, 11, 81, 73, 150, 143, 112, 78, 12, 45, 53, 56, 120, 148, 10, 43, 34, 128, 102, 75, 116, 119, 141, 110, 126, 122, 88, 71, 31, 26, 104, 96, 155, 3, 89, 107, 145, 69, 153, 33, 30, 136, 14, 109, 63, 79, 19, 99, 134, 48, 118, 28, 77, 103, 17], 157: [60, 16, 49, 15, 77, 105, 93, 85, 92, 120, 84, 46, 149, 39, 47, 20, 140, 70, 133, 67, 118, 152, 138, 31, 128, 66, 72, 29, 122, 3, 88, 54, 10, 90, 109, 23, 139, 51, 97, 7, 108, 113, 73, 5, 45, 101, 28, 102, 80, 62, 131, 55, 115, 43, 9, 76, 121, 150, 74, 135, 104, 42, 151, 106, 144, 4, 64, 117, 134, 35, 8, 100, 110, 24, 156, 99, 127, 0, 27, 58, 22, 130, 71, 36, 6, 124, 155, 98, 34, 52, 82, 153, 53, 145, 13, 32, 87, 11, 65, 40, 21, 25, 132, 125, 146, 12, 38, 91, 1, 56, 37, 2, 112, 44, 86, 75, 96, 137, 83, 59, 154, 114, 18, 129, 69, 17, 111, 61, 63, 41, 116, 141, 89, 103, 143, 33, 95, 81, 107, 136, 26, 14, 119, 19, 147, 78, 94, 57, 142, 30, 123, 48, 68, 148, 79, 126, 50], 158: [72, 10, 118, 134, 93, 69, 128, 97, 32, 38, 55, 2, 138, 147, 108, 0, 83, 43, 68, 111, 80, 13, 41, 59, 42, 136, 82, 126, 140, 112, 37, 102, 71, 106, 49, 123, 139, 79, 85, 141, 62, 46, 63, 86, 57, 143, 23, 127, 30, 114, 77, 5, 153, 78, 154, 66, 96, 27, 3, 113, 137, 110, 6, 148, 7, 75, 119, 22, 74, 26, 36, 67, 21, 34, 16, 1, 120, 11, 156, 142, 18, 122, 44, 29, 135, 24, 60, 157, 104, 87, 152, 90, 124, 17, 54, 92, 48, 132, 150, 107, 47, 88, 133, 81, 52, 117, 94, 58, 146, 84, 35, 4, 145, 12, 64, 109, 20, 103, 155, 95, 8, 28, 51, 31, 89, 65, 130, 39, 100, 14, 131, 115, 101, 116, 45, 91, 33, 151, 53, 98, 129, 99, 105, 19, 50, 125, 40, 70, 9, 76, 121, 61, 25, 56, 144, 15, 149, 73], 159: [141, 29, 32, 148, 111, 42, 97, 138, 96, 143, 129, 44, 81, 26, 91, 142, 128, 27, 33, 90, 43, 125, 80, 151, 74, 88, 134, 84, 22, 45, 139, 37, 63, 23, 108, 40, 56, 9, 99, 114, 19, 140, 85, 89, 20, 67, 147, 54, 30, 11, 38, 31, 78, 137, 13, 36, 123, 0, 106, 7, 10, 100, 66, 131, 17, 103, 69, 4, 1, 86, 121, 83, 136, 46, 59, 15, 21, 133, 150, 39, 120, 35, 117, 34, 52, 2, 130, 12, 153, 144, 149, 93, 75, 94, 154, 53, 107, 3, 68, 41, 65, 122, 71, 77, 158, 5, 101, 14, 155, 105, 49, 135, 112, 127, 156, 62, 109, 115, 126, 118, 6, 110, 48, 98, 58, 18, 104, 152, 157, 113, 8, 47, 87, 16, 61, 76, 145, 25, 50, 57, 72, 51, 64, 92, 28, 132, 55, 124, 79, 73, 70, 24, 82, 116, 146, 119, 102, 95, 60], 160: [7, 143, 93, 16, 56, 31, 102, 94, 55, 49, 123, 66, 33, 15, 113, 140, 145, 42, 37, 107, 21, 125, 152, 92, 70, 36, 147, 58, 62, 41, 146, 148, 105, 114, 87, 72, 29, 47, 110, 118, 96, 139, 78, 153, 101, 53, 85, 124, 122, 91, 18, 115, 35, 69, 28, 26, 151, 149, 120, 64, 98, 136, 50, 13, 46, 60, 22, 57, 74, 27, 156, 48, 117, 20, 23, 3, 127, 34, 65, 155, 84, 10, 126, 144, 133, 54, 116, 157, 14, 106, 150, 141, 121, 39, 137, 9, 76, 86, 130, 0, 5, 159, 99, 81, 52, 132, 82, 142, 8, 68, 89, 30, 6, 79, 45, 2, 100, 135, 51, 104, 119, 61, 43, 12, 67, 111, 25, 40, 1, 138, 128, 73, 77, 17, 19, 90, 97, 75, 103, 83, 131, 80, 134, 95, 158, 108, 44, 71, 38, 11, 112, 59, 63, 32, 88, 109, 129, 24, 154, 4], 161: [90, 16, 149, 35, 38, 88, 121, 66, 11, 94, 37, 30, 58, 142, 87, 101, 97, 91, 41, 119, 6, 3, 18, 103, 60, 157, 114, 143, 59, 29, 141, 20, 140, 84, 116, 44, 9, 146, 105, 68, 106, 111, 34, 76, 45, 55, 51, 67, 19, 128, 148, 152, 112, 147, 48, 108, 78, 118, 8, 12, 73, 2, 100, 15, 22, 27, 153, 144, 63, 80, 5, 95, 102, 36, 158, 151, 56, 132, 123, 43, 40, 129, 54, 137, 83, 122, 154, 1, 150, 107, 64, 21, 156, 17, 75, 134, 62, 14, 82, 24, 104, 117, 159, 50, 26, 13, 0, 28, 125, 135, 46, 4, 25, 72, 33, 71, 130, 145, 61, 57, 69, 39, 70, 93, 115, 160, 31, 81, 126, 136, 113, 96, 138, 120, 124, 7, 32, 65, 131, 85, 74, 109, 49, 52, 86, 89, 77, 155, 99, 110, 127, 10, 47, 53, 139, 42, 79, 133, 23, 98, 92], 162: [80, 67, 104, 72, 79, 60, 94, 29, 134, 112, 8, 85, 46, 17, 97, 28, 19, 90, 100, 58, 116, 35, 141, 86, 138, 56, 87, 63, 84, 64, 117, 140, 153, 65, 6, 11, 96, 135, 129, 13, 133, 33, 127, 59, 121, 144, 36, 160, 2, 111, 7, 48, 103, 125, 95, 126, 15, 147, 47, 143, 106, 89, 73, 4, 161, 110, 53, 20, 122, 69, 149, 14, 71, 81, 49, 151, 55, 119, 66, 5, 9, 98, 131, 34, 26, 37, 124, 108, 51, 44, 40, 77, 24, 21, 109, 128, 1, 27, 10, 30, 148, 120, 145, 22, 114, 132, 130, 159, 32, 25, 88, 45, 68, 75, 158, 82, 146, 42, 136, 101, 57, 150, 107, 93, 3, 74, 152, 31, 105, 154, 16, 78, 123, 156, 118, 18, 12, 39, 102, 83, 61, 52, 115, 137, 50, 38, 155, 92, 113, 43, 41, 157, 0, 91, 76, 62, 139, 70, 54, 23, 99, 142], 163: [87, 121, 50, 42, 9, 85, 160, 76, 92, 111, 65, 68, 143, 58, 117, 11, 39, 47, 62, 119, 56, 156, 148, 120, 95, 137, 86, 30, 155, 10, 93, 105, 97, 154, 133, 113, 33, 123, 71, 19, 104, 73, 153, 102, 38, 130, 48, 59, 131, 103, 77, 159, 78, 51, 14, 40, 29, 134, 12, 94, 142, 60, 24, 63, 136, 69, 81, 31, 5, 80, 151, 22, 145, 45, 3, 141, 15, 20, 112, 28, 108, 127, 140, 124, 122, 18, 139, 37, 13, 110, 25, 101, 135, 23, 16, 162, 0, 106, 138, 161, 118, 72, 70, 152, 57, 36, 157, 82, 49, 54, 7, 74, 27, 132, 115, 128, 17, 34, 147, 46, 8, 88, 91, 109, 26, 44, 52, 55, 4, 67, 89, 83, 66, 41, 125, 2, 150, 21, 96, 100, 64, 129, 98, 43, 84, 35, 116, 126, 6, 32, 61, 99, 158, 146, 149, 1, 79, 114, 90, 53, 144, 107, 75], 164: [103, 25, 46, 85, 36, 77, 129, 88, 113, 83, 145, 118, 64, 84, 90, 30, 57, 150, 69, 143, 137, 42, 53, 117, 43, 45, 123, 154, 92, 160, 7, 116, 153, 35, 60, 141, 79, 24, 94, 139, 67, 127, 5, 131, 157, 68, 106, 87, 4, 96, 66, 142, 26, 31, 3, 14, 126, 2, 6, 21, 50, 78, 56, 140, 109, 34, 23, 97, 86, 54, 28, 158, 125, 13, 11, 16, 133, 49, 114, 40, 148, 159, 132, 105, 17, 8, 100, 63, 95, 1, 10, 74, 104, 48, 20, 22, 15, 72, 89, 147, 98, 130, 41, 55, 138, 0, 73, 37, 51, 115, 27, 19, 161, 38, 149, 9, 155, 39, 156, 12, 18, 122, 82, 61, 124, 162, 119, 91, 99, 108, 81, 128, 136, 75, 120, 59, 70, 58, 163, 71, 76, 151, 110, 93, 152, 80, 112, 135, 102, 144, 52, 29, 65, 62, 134, 101, 121, 33, 111, 32, 47, 44, 146, 107], 165: [93, 86, 56, 2, 130, 119, 28, 57, 10, 79, 47, 118, 78, 155, 53, 88, 50, 113, 159, 3, 111, 80, 110, 32, 68, 18, 153, 70, 90, 116, 49, 107, 73, 37, 92, 158, 115, 26, 36, 21, 114, 58, 9, 43, 139, 147, 69, 22, 138, 97, 103, 30, 24, 83, 87, 106, 48, 160, 65, 108, 141, 46, 75, 126, 84, 142, 149, 15, 23, 105, 154, 98, 150, 12, 102, 120, 34, 163, 109, 140, 40, 156, 134, 52, 71, 17, 8, 41, 33, 25, 122, 74, 27, 128, 151, 164, 0, 157, 51, 72, 146, 11, 61, 54, 95, 123, 96, 20, 1, 89, 6, 29, 31, 101, 38, 162, 117, 64, 55, 14, 5, 145, 127, 161, 132, 137, 13, 152, 104, 143, 42, 60, 129, 136, 77, 99, 82, 133, 100, 67, 16, 112, 63, 66, 59, 85, 4, 124, 62, 35, 144, 45, 7, 148, 135, 121, 44, 131, 39, 19, 76, 81, 125, 94, 91], 166: [65, 40, 120, 54, 39, 90, 63, 20, 25, 105, 114, 35, 82, 18, 69, 49, 136, 112, 92, 164, 30, 58, 111, 154, 2, 122, 97, 126, 78, 75, 102, 31, 140, 16, 94, 26, 34, 158, 151, 115, 12, 143, 51, 107, 117, 27, 88, 79, 95, 93, 153, 9, 133, 28, 43, 48, 157, 33, 106, 142, 119, 101, 13, 155, 38, 165, 47, 44, 70, 147, 67, 11, 149, 72, 104, 129, 138, 113, 134, 7, 148, 160, 76, 32, 57, 3, 50, 99, 141, 59, 135, 21, 108, 156, 146, 22, 163, 42, 83, 137, 96, 17, 109, 46, 52, 71, 139, 132, 130, 110, 10, 24, 161, 81, 5, 36, 14, 103, 124, 80, 55, 150, 60, 144, 68, 19, 152, 64, 116, 41, 37, 56, 74, 128, 145, 98, 23, 121, 125, 1, 87, 91, 73, 100, 29, 86, 0, 127, 45, 85, 15, 66, 131, 4, 162, 8, 159, 53, 77, 118, 62, 123, 61, 6, 84, 89], 167: [157, 101, 124, 82, 9, 132, 71, 24, 33, 48, 119, 114, 116, 126, 77, 83, 162, 105, 99, 51, 139, 106, 70, 149, 26, 53, 41, 61, 6, 0, 60, 78, 166, 107, 10, 125, 15, 121, 113, 72, 76, 112, 22, 30, 42, 56, 54, 100, 144, 65, 102, 36, 138, 165, 94, 27, 161, 88, 47, 148, 122, 134, 58, 92, 20, 84, 75, 40, 3, 37, 96, 5, 164, 31, 128, 8, 68, 17, 52, 2, 63, 118, 21, 13, 104, 136, 110, 159, 98, 46, 18, 146, 39, 81, 1, 155, 23, 158, 12, 62, 127, 32, 103, 141, 153, 7, 156, 97, 152, 25, 151, 35, 55, 135, 66, 160, 38, 130, 79, 64, 45, 90, 143, 109, 147, 69, 133, 93, 163, 44, 59, 137, 4, 108, 111, 73, 89, 34, 129, 87, 16, 50, 142, 85, 57, 140, 150, 28, 145, 14, 43, 19, 29, 11, 86, 115, 120, 49, 123, 95, 154, 131, 80, 67, 74, 91, 117], 168: [107, 32, 39, 95, 97, 84, 22, 89, 106, 48, 155, 57, 23, 146, 86, 72, 93, 128, 51, 120, 124, 110, 134, 79, 49, 54, 132, 63, 144, 30, 13, 148, 4, 33, 121, 21, 126, 88, 119, 127, 70, 165, 157, 161, 42, 131, 26, 38, 167, 91, 15, 64, 115, 60, 6, 44, 11, 59, 152, 104, 77, 14, 1, 58, 28, 71, 16, 111, 92, 166, 141, 34, 31, 153, 20, 142, 136, 50, 140, 73, 118, 3, 103, 147, 24, 45, 109, 19, 29, 138, 112, 101, 133, 154, 160, 37, 74, 151, 56, 5, 47, 159, 81, 65, 7, 114, 80, 75, 12, 143, 87, 35, 108, 25, 162, 130, 100, 149, 62, 55, 9, 125, 67, 52, 10, 17, 61, 8, 163, 78, 18, 2, 137, 90, 43, 96, 102, 27, 164, 158, 68, 0, 145, 66, 156, 116, 113, 123, 53, 139, 41, 99, 122, 69, 129, 98, 83, 94, 150, 46, 36, 117, 82, 40, 85, 76, 135, 105], 169: [82, 145, 140, 96, 50, 73, 142, 49, 133, 22, 30, 23, 77, 119, 168, 148, 70, 103, 40, 5, 15, 45, 152, 72, 86, 164, 16, 100, 24, 1, 110, 134, 141, 123, 71, 32, 150, 139, 79, 106, 153, 138, 60, 159, 122, 167, 121, 54, 166, 6, 9, 78, 129, 84, 14, 160, 104, 55, 130, 144, 33, 93, 132, 17, 127, 48, 89, 4, 19, 12, 34, 114, 97, 137, 10, 53, 67, 76, 99, 113, 146, 157, 69, 128, 124, 46, 143, 20, 0, 47, 36, 44, 8, 68, 39, 83, 154, 62, 26, 155, 21, 43, 102, 162, 35, 13, 90, 63, 3, 135, 28, 125, 147, 163, 61, 94, 105, 111, 81, 11, 37, 101, 161, 2, 25, 107, 74, 57, 136, 98, 65, 116, 165, 109, 126, 151, 51, 27, 42, 80, 7, 75, 41, 120, 18, 95, 112, 149, 158, 88, 117, 56, 156, 108, 64, 58, 118, 131, 85, 31, 92, 87, 91, 115, 66, 52, 59, 38, 29], 170: [64, 85, 120, 104, 129, 83, 95, 13, 4, 100, 149, 137, 155, 125, 16, 112, 146, 14, 106, 61, 71, 82, 7, 46, 19, 3, 70, 55, 39, 115, 80, 123, 24, 52, 139, 35, 6, 36, 68, 141, 92, 147, 152, 126, 113, 84, 49, 37, 77, 90, 159, 0, 99, 12, 48, 166, 42, 66, 114, 133, 15, 79, 122, 73, 164, 161, 121, 30, 102, 162, 107, 143, 135, 74, 18, 111, 69, 58, 1, 8, 28, 72, 150, 160, 29, 9, 144, 25, 23, 54, 105, 27, 63, 21, 34, 51, 128, 118, 151, 165, 157, 20, 148, 130, 45, 32, 119, 59, 26, 142, 40, 65, 87, 167, 134, 2, 10, 81, 163, 11, 158, 89, 94, 97, 138, 50, 38, 132, 117, 109, 33, 110, 136, 75, 156, 44, 67, 154, 96, 108, 60, 124, 140, 168, 78, 91, 153, 5, 98, 88, 47, 17, 103, 86, 131, 57, 62, 169, 145, 22, 53, 56, 31, 116, 41, 127, 76, 93, 43, 101], 171: [71, 159, 81, 30, 1, 79, 38, 87, 95, 73, 86, 62, 41, 6, 104, 50, 25, 90, 101, 111, 105, 107, 76, 93, 91, 26, 115, 129, 134, 138, 163, 59, 139, 151, 52, 75, 156, 84, 74, 13, 154, 37, 67, 121, 22, 60, 158, 12, 113, 80, 20, 100, 82, 169, 131, 150, 167, 161, 68, 64, 39, 7, 120, 157, 5, 110, 108, 165, 149, 77, 43, 46, 29, 15, 162, 132, 11, 72, 98, 135, 128, 10, 65, 126, 48, 0, 14, 8, 49, 148, 109, 51, 153, 61, 160, 106, 99, 42, 102, 143, 2, 21, 164, 66, 44, 54, 140, 144, 55, 31, 40, 118, 56, 146, 17, 96, 168, 27, 94, 145, 136, 142, 16, 103, 57, 63, 9, 125, 119, 28, 35, 97, 117, 147, 133, 127, 47, 69, 122, 34, 32, 89, 3, 114, 130, 33, 85, 19, 170, 92, 137, 88, 45, 166, 4, 36, 24, 112, 152, 141, 83, 18, 116, 23, 70, 124, 78, 155, 53, 58, 123], 172: [95, 163, 66, 141, 135, 76, 142, 81, 77, 65, 124, 122, 147, 92, 102, 28, 10, 83, 58, 99, 35, 27, 98, 69, 158, 41, 19, 5, 42, 86, 157, 164, 114, 25, 151, 93, 85, 112, 145, 131, 152, 8, 144, 48, 46, 107, 55, 162, 167, 61, 103, 11, 78, 89, 139, 39, 140, 30, 123, 84, 156, 108, 49, 14, 134, 73, 160, 57, 161, 50, 32, 51, 153, 23, 40, 143, 47, 9, 129, 62, 111, 119, 171, 0, 126, 12, 22, 159, 1, 17, 150, 136, 169, 166, 15, 36, 60, 97, 59, 100, 137, 44, 120, 170, 138, 109, 71, 128, 63, 56, 2, 18, 64, 88, 149, 20, 31, 116, 113, 7, 168, 16, 45, 67, 115, 79, 148, 33, 104, 82, 72, 90, 52, 121, 38, 43, 26, 3, 127, 118, 80, 110, 165, 74, 6, 117, 29, 154, 13, 94, 53, 133, 54, 21, 91, 125, 130, 87, 106, 155, 70, 75, 4, 34, 132, 24, 105, 101, 37, 146, 68, 96], 173: [85, 63, 117, 21, 62, 126, 115, 6, 74, 129, 112, 123, 81, 59, 82, 148, 71, 90, 94, 86, 97, 41, 70, 77, 147, 36, 122, 23, 2, 45, 137, 149, 47, 155, 25, 19, 134, 136, 113, 37, 9, 160, 66, 156, 26, 146, 7, 110, 138, 141, 95, 73, 89, 93, 114, 22, 162, 151, 43, 69, 53, 88, 142, 27, 4, 91, 49, 109, 38, 150, 16, 10, 165, 92, 157, 164, 42, 168, 64, 35, 118, 52, 111, 170, 143, 17, 130, 100, 67, 40, 120, 132, 51, 11, 32, 101, 153, 106, 12, 0, 105, 46, 57, 8, 139, 169, 31, 158, 15, 18, 54, 24, 145, 127, 108, 119, 14, 107, 161, 1, 167, 33, 84, 124, 60, 58, 68, 99, 104, 163, 133, 152, 80, 39, 5, 78, 56, 125, 28, 131, 121, 166, 154, 34, 102, 29, 65, 144, 13, 48, 3, 103, 76, 140, 171, 135, 79, 87, 75, 159, 128, 98, 55, 44, 172, 20, 116, 83, 96, 61, 72, 50, 30], 174: [81, 105, 63, 144, 66, 74, 70, 33, 140, 173, 155, 42, 110, 95, 58, 34, 22, 114, 162, 35, 150, 71, 108, 16, 118, 121, 29, 126, 60, 75, 145, 153, 45, 167, 30, 84, 57, 89, 4, 165, 158, 17, 27, 168, 36, 73, 40, 77, 160, 87, 93, 12, 51, 3, 139, 90, 112, 97, 132, 147, 169, 59, 79, 47, 137, 98, 159, 122, 32, 136, 149, 143, 43, 11, 88, 85, 9, 92, 31, 120, 2, 104, 166, 7, 23, 82, 53, 157, 146, 67, 37, 151, 65, 117, 133, 131, 6, 99, 54, 170, 14, 91, 19, 171, 152, 86, 101, 172, 135, 127, 56, 156, 154, 100, 161, 49, 1, 18, 20, 39, 61, 125, 129, 10, 113, 107, 69, 138, 111, 163, 25, 52, 141, 124, 15, 123, 8, 41, 78, 48, 0, 68, 55, 106, 103, 28, 116, 76, 148, 72, 38, 102, 83, 21, 5, 24, 164, 46, 13, 96, 26, 80, 142, 128, 64, 134, 94, 109, 44, 62, 119, 115, 50, 130], 175: [123, 18, 116, 99, 115, 41, 62, 59, 101, 162, 100, 19, 15, 98, 87, 70, 117, 77, 75, 126, 49, 110, 52, 61, 145, 138, 13, 94, 166, 83, 34, 95, 6, 28, 82, 37, 4, 69, 153, 86, 118, 147, 3, 161, 8, 33, 88, 20, 120, 129, 36, 170, 72, 156, 146, 167, 93, 97, 64, 71, 106, 104, 121, 173, 11, 149, 141, 108, 92, 44, 12, 25, 81, 152, 54, 45, 21, 142, 74, 137, 24, 17, 107, 9, 73, 135, 131, 53, 2, 140, 57, 14, 47, 51, 165, 128, 158, 160, 133, 168, 79, 63, 30, 125, 172, 10, 78, 151, 127, 39, 171, 27, 68, 23, 32, 109, 139, 148, 134, 40, 159, 105, 150, 130, 84, 143, 111, 119, 1, 48, 42, 65, 80, 29, 22, 7, 31, 96, 55, 91, 103, 132, 169, 58, 26, 5, 124, 144, 50, 164, 56, 90, 163, 60, 136, 0, 154, 114, 16, 38, 85, 102, 89, 76, 157, 155, 66, 113, 43, 46, 35, 122, 112, 67, 174], 176: [107, 137, 51, 35, 69, 43, 117, 58, 100, 97, 135, 0, 93, 130, 86, 74, 98, 143, 84, 24, 114, 71, 48, 27, 109, 31, 54, 63, 90, 156, 52, 175, 116, 89, 1, 7, 19, 76, 115, 40, 111, 94, 87, 118, 146, 29, 145, 38, 121, 150, 105, 50, 32, 151, 44, 8, 147, 73, 66, 113, 17, 173, 170, 139, 164, 144, 60, 30, 23, 96, 46, 154, 21, 103, 167, 88, 124, 138, 141, 122, 82, 102, 128, 163, 28, 59, 106, 155, 15, 10, 104, 68, 39, 47, 2, 9, 133, 171, 80, 168, 56, 132, 75, 18, 162, 12, 131, 77, 148, 169, 78, 120, 81, 14, 33, 157, 41, 11, 79, 129, 53, 140, 67, 134, 55, 159, 13, 142, 4, 136, 165, 123, 64, 16, 92, 153, 45, 166, 37, 91, 26, 70, 101, 3, 108, 126, 34, 20, 6, 65, 85, 149, 95, 5, 125, 57, 61, 174, 62, 36, 22, 161, 25, 158, 112, 127, 83, 49, 119, 172, 110, 42, 72, 160, 152, 99], 177: [29, 127, 97, 107, 23, 92, 145, 74, 125, 52, 137, 90, 43, 153, 14, 147, 60, 41, 17, 121, 26, 173, 128, 71, 110, 45, 88, 141, 120, 63, 47, 129, 84, 140, 32, 118, 27, 83, 159, 67, 165, 172, 102, 93, 77, 98, 103, 25, 20, 34, 30, 148, 136, 16, 50, 154, 69, 106, 13, 132, 116, 3, 12, 139, 51, 58, 101, 168, 49, 36, 163, 122, 82, 150, 15, 166, 158, 53, 167, 104, 2, 56, 87, 155, 111, 123, 144, 162, 5, 75, 135, 81, 37, 94, 33, 176, 79, 119, 11, 78, 161, 131, 55, 76, 146, 164, 113, 91, 10, 149, 48, 100, 73, 46, 24, 4, 64, 7, 86, 22, 156, 1, 9, 170, 28, 99, 138, 124, 54, 61, 133, 96, 134, 151, 105, 117, 19, 8, 175, 39, 6, 66, 0, 152, 42, 160, 169, 68, 72, 21, 112, 59, 44, 174, 114, 143, 18, 80, 89, 115, 130, 95, 157, 40, 108, 35, 62, 171, 126, 109, 85, 65, 57, 70, 38, 31, 142], 178: [141, 153, 117, 84, 23, 87, 156, 114, 177, 52, 124, 61, 13, 162, 19, 140, 126, 57, 53, 88, 20, 99, 95, 166, 145, 91, 72, 76, 100, 70, 118, 59, 2, 44, 7, 170, 159, 12, 171, 41, 111, 167, 125, 102, 176, 17, 147, 137, 150, 42, 31, 5, 172, 110, 105, 89, 54, 122, 68, 24, 63, 92, 94, 21, 25, 36, 108, 130, 50, 33, 103, 175, 4, 77, 62, 55, 85, 45, 163, 158, 49, 149, 15, 169, 139, 29, 14, 37, 155, 164, 3, 116, 119, 146, 86, 0, 35, 157, 106, 40, 113, 67, 6, 109, 134, 47, 80, 161, 128, 123, 132, 148, 69, 34, 51, 112, 142, 66, 96, 30, 71, 107, 11, 83, 16, 78, 165, 151, 9, 173, 28, 143, 168, 127, 43, 98, 58, 1, 64, 27, 136, 93, 133, 160, 74, 144, 75, 154, 48, 8, 129, 97, 79, 46, 22, 138, 32, 65, 174, 104, 18, 120, 82, 38, 81, 121, 101, 73, 115, 60, 56, 90, 10, 135, 26, 152, 131, 39], 179: [105, 116, 38, 96, 59, 76, 157, 30, 13, 68, 94, 86, 124, 133, 14, 177, 40, 79, 150, 57, 145, 72, 3, 1, 35, 88, 103, 15, 41, 118, 90, 130, 16, 6, 141, 115, 70, 176, 17, 64, 22, 142, 138, 97, 48, 132, 18, 0, 178, 65, 108, 101, 28, 169, 87, 52, 167, 109, 106, 123, 26, 171, 21, 4, 121, 131, 67, 140, 137, 164, 60, 2, 63, 155, 20, 156, 12, 46, 81, 31, 119, 73, 8, 166, 54, 170, 129, 163, 98, 111, 139, 24, 159, 32, 122, 114, 152, 51, 144, 146, 49, 162, 172, 23, 100, 62, 95, 136, 11, 149, 29, 113, 153, 80, 75, 7, 56, 34, 9, 83, 173, 50, 10, 19, 151, 134, 47, 110, 160, 66, 165, 168, 174, 58, 44, 82, 33, 143, 158, 55, 154, 84, 104, 27, 74, 125, 161, 37, 99, 107, 85, 36, 5, 148, 117, 89, 127, 112, 126, 71, 61, 42, 147, 25, 77, 45, 53, 69, 43, 92, 135, 93, 128, 39, 78, 102, 175, 91, 120], 180: [82, 86, 163, 95, 11, 125, 75, 31, 66, 110, 153, 42, 147, 84, 48, 57, 134, 115, 12, 97, 70, 151, 101, 113, 117, 174, 148, 87, 127, 26, 175, 78, 145, 9, 99, 30, 53, 56, 171, 136, 104, 132, 142, 96, 47, 18, 37, 32, 128, 108, 1, 3, 58, 139, 15, 157, 161, 43, 120, 162, 156, 45, 105, 7, 24, 81, 38, 140, 35, 92, 138, 14, 6, 54, 141, 46, 25, 79, 166, 107, 72, 68, 176, 144, 114, 73, 137, 98, 17, 59, 160, 100, 10, 89, 170, 4, 49, 154, 124, 65, 8, 41, 135, 80, 62, 88, 172, 40, 20, 22, 146, 149, 5, 27, 83, 169, 90, 34, 2, 50, 23, 13, 177, 164, 123, 143, 165, 167, 67, 52, 131, 158, 28, 122, 179, 103, 173, 0, 102, 94, 64, 121, 69, 133, 76, 150, 159, 77, 152, 178, 21, 36, 51, 112, 74, 130, 118, 85, 60, 116, 106, 71, 39, 119, 129, 29, 44, 33, 63, 19, 168, 109, 91, 16, 61, 111, 155, 93, 126, 55], 181: [126, 150, 140, 133, 84, 48, 29, 180, 74, 131, 109, 161, 170, 94, 154, 47, 143, 105, 81, 32, 177, 69, 38, 17, 61, 55, 95, 146, 101, 3, 14, 93, 132, 77, 33, 153, 127, 56, 66, 118, 76, 162, 91, 25, 160, 46, 114, 103, 145, 5, 59, 111, 78, 155, 11, 89, 151, 98, 141, 39, 1, 22, 2, 159, 174, 30, 119, 122, 40, 54, 43, 26, 20, 16, 4, 104, 168, 136, 71, 7, 97, 19, 120, 73, 44, 60, 28, 152, 123, 163, 115, 80, 51, 13, 148, 173, 135, 117, 67, 35, 147, 116, 72, 134, 62, 107, 124, 34, 12, 166, 171, 42, 164, 57, 23, 142, 45, 139, 110, 102, 15, 6, 10, 100, 92, 75, 129, 178, 106, 9, 144, 27, 165, 65, 50, 130, 83, 88, 52, 8, 138, 108, 53, 24, 36, 157, 0, 49, 58, 128, 121, 64, 149, 90, 37, 21, 137, 18, 112, 125, 156, 79, 172, 82, 169, 99, 87, 68, 41, 176, 63, 96, 158, 179, 86, 175, 70, 85, 113, 31, 167], 182: [80, 49, 104, 168, 30, 24, 147, 42, 123, 62, 72, 121, 90, 57, 105, 128, 152, 22, 20, 172, 127, 129, 166, 155, 125, 35, 118, 150, 39, 132, 46, 65, 114, 31, 102, 146, 126, 4, 71, 36, 3, 82, 177, 139, 33, 164, 0, 145, 9, 138, 154, 106, 21, 34, 181, 7, 59, 94, 64, 101, 74, 124, 108, 133, 52, 77, 67, 140, 1, 100, 43, 122, 148, 142, 44, 162, 19, 8, 63, 13, 55, 73, 131, 6, 10, 45, 5, 38, 23, 16, 156, 37, 120, 15, 103, 176, 153, 117, 54, 107, 130, 175, 141, 14, 17, 157, 99, 56, 144, 75, 2, 26, 91, 178, 173, 171, 180, 167, 11, 151, 165, 68, 58, 53, 92, 41, 97, 113, 83, 79, 18, 93, 32, 50, 110, 159, 161, 111, 137, 134, 25, 98, 86, 160, 51, 27, 87, 169, 135, 149, 179, 116, 66, 78, 158, 170, 109, 29, 95, 40, 119, 174, 12, 47, 136, 61, 143, 69, 96, 81, 28, 89, 70, 115, 60, 76, 85, 48, 88, 84, 112, 163], 183: [140, 47, 112, 68, 98, 131, 66, 173, 35, 77, 81, 87, 148, 22, 51, 147, 172, 101, 12, 118, 32, 110, 104, 144, 181, 91, 67, 48, 156, 55, 59, 27, 88, 50, 79, 82, 103, 17, 96, 89, 154, 122, 65, 134, 16, 24, 123, 80, 163, 149, 175, 138, 21, 2, 111, 7, 100, 49, 113, 46, 162, 97, 18, 1, 160, 127, 182, 85, 129, 143, 33, 38, 6, 8, 167, 180, 62, 125, 168, 15, 120, 115, 141, 13, 75, 5, 26, 61, 142, 30, 74, 9, 19, 86, 109, 164, 139, 54, 176, 44, 170, 0, 39, 135, 72, 3, 126, 102, 150, 108, 121, 64, 165, 152, 178, 137, 179, 136, 119, 28, 41, 29, 11, 45, 159, 174, 177, 43, 128, 105, 42, 90, 25, 20, 40, 145, 166, 69, 63, 146, 153, 52, 4, 124, 95, 10, 36, 132, 71, 34, 94, 117, 56, 161, 157, 133, 84, 76, 60, 114, 31, 53, 116, 57, 78, 169, 130, 155, 107, 93, 58, 14, 73, 37, 151, 158, 23, 92, 83, 70, 106, 171, 99], 184: [162, 139, 161, 90, 60, 44, 91, 87, 32, 81, 165, 77, 157, 67, 140, 171, 54, 30, 73, 114, 173, 82, 103, 130, 144, 146, 53, 68, 76, 37, 101, 36, 120, 5, 143, 71, 69, 102, 84, 133, 75, 51, 56, 11, 21, 62, 177, 26, 2, 6, 19, 137, 48, 46, 181, 147, 72, 168, 1, 17, 172, 63, 61, 154, 38, 129, 100, 107, 111, 58, 159, 18, 104, 117, 176, 138, 175, 0, 123, 41, 39, 15, 158, 3, 180, 110, 183, 149, 166, 163, 88, 10, 115, 113, 95, 13, 40, 35, 98, 174, 50, 12, 131, 42, 34, 152, 23, 78, 136, 179, 169, 148, 127, 28, 105, 119, 89, 9, 112, 141, 170, 142, 106, 64, 57, 22, 96, 122, 29, 155, 94, 116, 124, 65, 153, 25, 178, 74, 99, 43, 80, 150, 16, 118, 66, 52, 128, 20, 79, 55, 59, 97, 164, 160, 7, 121, 24, 8, 45, 14, 86, 109, 83, 92, 27, 47, 49, 132, 70, 93, 167, 182, 108, 151, 134, 126, 156, 31, 145, 4, 125, 33, 85, 135], 185: [96, 106, 11, 157, 147, 103, 124, 119, 84, 136, 18, 176, 126, 116, 153, 64, 149, 61, 72, 3, 86, 184, 73, 76, 21, 4, 172, 164, 105, 111, 155, 74, 117, 50, 36, 69, 51, 35, 15, 127, 25, 141, 94, 66, 179, 156, 140, 109, 2, 120, 62, 12, 63, 95, 59, 165, 28, 5, 138, 134, 92, 131, 110, 38, 52, 81, 107, 7, 142, 90, 161, 177, 17, 163, 169, 39, 42, 123, 182, 89, 48, 168, 6, 151, 148, 166, 46, 115, 53, 139, 91, 33, 8, 132, 67, 22, 125, 79, 135, 113, 23, 174, 97, 0, 40, 57, 13, 170, 49, 55, 45, 31, 68, 160, 154, 16, 181, 178, 104, 1, 77, 180, 158, 112, 30, 9, 85, 114, 183, 121, 47, 43, 162, 133, 152, 128, 58, 10, 75, 32, 175, 54, 145, 20, 102, 144, 108, 167, 173, 98, 80, 65, 146, 87, 29, 60, 34, 82, 26, 129, 78, 14, 27, 101, 93, 118, 37, 88, 137, 19, 44, 56, 70, 83, 100, 171, 143, 41, 122, 150, 99, 159, 71, 130, 24], 186: [65, 70, 23, 140, 147, 80, 11, 134, 55, 141, 163, 105, 90, 66, 161, 164, 98, 115, 59, 99, 20, 10, 126, 142, 43, 13, 0, 17, 87, 22, 16, 123, 2, 178, 143, 38, 117, 75, 5, 124, 84, 86, 8, 78, 26, 157, 125, 146, 139, 172, 102, 82, 174, 92, 33, 160, 36, 32, 71, 129, 44, 88, 170, 119, 35, 93, 169, 15, 6, 14, 25, 167, 63, 95, 111, 89, 108, 151, 12, 150, 45, 50, 77, 107, 62, 182, 120, 153, 137, 177, 1, 180, 4, 37, 7, 103, 24, 159, 156, 185, 61, 168, 21, 171, 18, 155, 3, 48, 106, 30, 34, 165, 138, 130, 113, 122, 152, 39, 133, 76, 114, 132, 109, 69, 96, 64, 118, 42, 144, 9, 148, 116, 28, 181, 40, 175, 67, 46, 101, 74, 83, 58, 184, 19, 145, 149, 176, 31, 158, 52, 179, 91, 60, 112, 53, 104, 162, 154, 135, 49, 97, 94, 56, 136, 41, 127, 51, 85, 29, 121, 128, 173, 73, 100, 183, 47, 54, 72, 131, 79, 68, 110, 27, 81, 57, 166], 187: [131, 12, 50, 132, 75, 61, 79, 76, 112, 164, 17, 165, 53, 38, 150, 97, 22, 52, 42, 71, 113, 118, 186, 161, 83, 149, 111, 13, 67, 32, 158, 51, 77, 121, 68, 145, 10, 126, 91, 34, 90, 166, 148, 31, 116, 87, 107, 63, 162, 147, 49, 127, 36, 140, 64, 20, 155, 124, 169, 174, 82, 23, 0, 137, 8, 102, 183, 185, 60, 96, 30, 135, 142, 99, 37, 41, 11, 139, 18, 40, 159, 98, 65, 104, 144, 168, 181, 74, 6, 25, 92, 129, 29, 48, 46, 108, 125, 115, 88, 69, 180, 167, 93, 33, 153, 86, 163, 19, 7, 106, 95, 44, 117, 85, 43, 62, 128, 21, 9, 182, 5, 130, 177, 47, 26, 172, 119, 35, 160, 173, 176, 28, 81, 109, 24, 175, 151, 94, 157, 70, 171, 58, 14, 143, 1, 101, 2, 72, 156, 55, 73, 184, 78, 120, 123, 103, 136, 84, 154, 66, 105, 100, 141, 152, 178, 27, 170, 4, 56, 110, 138, 114, 3, 59, 89, 146, 122, 45, 39, 57, 133, 54, 15, 134, 80, 179, 16], 188: [109, 126, 5, 74, 159, 58, 119, 139, 45, 47, 101, 85, 40, 158, 173, 22, 97, 44, 110, 105, 59, 87, 52, 15, 99, 177, 55, 103, 21, 75, 142, 31, 90, 155, 128, 41, 80, 121, 83, 93, 100, 120, 157, 17, 27, 153, 129, 174, 43, 108, 86, 115, 16, 102, 65, 35, 167, 162, 77, 141, 170, 187, 134, 166, 178, 34, 168, 0, 7, 25, 94, 122, 137, 30, 164, 37, 169, 11, 6, 64, 26, 60, 20, 181, 184, 67, 171, 2, 145, 29, 130, 9, 180, 92, 112, 165, 118, 186, 3, 104, 156, 82, 32, 123, 147, 182, 54, 13, 150, 1, 63, 33, 113, 81, 12, 18, 68, 78, 151, 10, 183, 71, 163, 42, 23, 91, 152, 114, 51, 133, 50, 144, 69, 84, 146, 39, 14, 73, 116, 111, 148, 135, 107, 127, 53, 8, 136, 89, 179, 28, 61, 185, 95, 124, 24, 49, 56, 172, 79, 161, 72, 106, 132, 76, 140, 125, 143, 96, 154, 66, 19, 57, 160, 98, 48, 138, 117, 4, 175, 36, 38, 62, 149, 70, 131, 46, 88, 176], 189: [59, 185, 81, 50, 3, 43, 118, 137, 144, 110, 70, 79, 30, 61, 135, 12, 51, 87, 57, 32, 123, 121, 112, 40, 132, 141, 11, 90, 16, 126, 108, 140, 165, 48, 54, 180, 159, 131, 160, 25, 14, 175, 177, 67, 129, 68, 72, 23, 44, 133, 2, 161, 71, 47, 52, 13, 33, 174, 178, 27, 101, 122, 107, 91, 146, 163, 157, 154, 63, 96, 106, 128, 73, 104, 17, 85, 21, 130, 115, 35, 53, 4, 103, 58, 95, 139, 158, 29, 184, 19, 82, 168, 181, 173, 76, 145, 152, 10, 167, 187, 20, 45, 38, 117, 134, 24, 31, 94, 98, 113, 153, 15, 78, 155, 120, 124, 183, 100, 164, 89, 171, 176, 188, 80, 102, 127, 66, 149, 162, 169, 179, 8, 64, 18, 60, 46, 69, 142, 182, 93, 172, 34, 83, 114, 6, 39, 28, 42, 156, 84, 41, 151, 136, 5, 9, 105, 22, 7, 55, 148, 125, 109, 0, 170, 92, 65, 88, 37, 75, 150, 119, 143, 99, 111, 77, 166, 86, 116, 49, 62, 97, 56, 36, 186, 74, 26, 1, 138, 147], 190: [40, 130, 111, 158, 92, 129, 79, 125, 168, 147, 51, 62, 80, 116, 28, 59, 186, 2, 90, 53, 110, 82, 118, 156, 81, 146, 20, 38, 58, 149, 183, 96, 69, 1, 126, 145, 119, 21, 137, 181, 134, 70, 77, 52, 97, 170, 41, 107, 0, 19, 148, 136, 29, 91, 128, 44, 66, 133, 127, 176, 9, 131, 167, 49, 179, 160, 155, 171, 46, 175, 154, 31, 3, 48, 76, 32, 112, 16, 45, 60, 10, 71, 141, 139, 165, 83, 161, 114, 185, 180, 14, 25, 99, 56, 15, 33, 189, 115, 121, 7, 108, 37, 135, 43, 105, 12, 94, 11, 54, 101, 177, 61, 35, 144, 117, 162, 132, 122, 6, 98, 74, 68, 184, 151, 173, 78, 88, 172, 23, 87, 103, 124, 13, 153, 100, 187, 27, 30, 39, 4, 188, 123, 57, 164, 63, 157, 150, 143, 104, 24, 8, 120, 18, 65, 169, 138, 85, 182, 93, 22, 36, 152, 113, 163, 89, 178, 84, 26, 142, 166, 72, 55, 34, 73, 106, 174, 140, 86, 50, 5, 102, 64, 109, 47, 95, 42, 75, 159, 17, 67], 191: [117, 99, 7, 105, 126, 92, 106, 163, 119, 169, 60, 121, 104, 138, 41, 127, 146, 172, 47, 82, 1, 103, 26, 59, 34, 81, 70, 22, 46, 66, 125, 165, 48, 44, 27, 96, 143, 107, 134, 168, 65, 80, 122, 32, 158, 18, 79, 112, 11, 40, 42, 152, 61, 190, 36, 68, 188, 12, 2, 123, 154, 120, 64, 142, 116, 63, 19, 186, 167, 114, 136, 174, 148, 140, 97, 161, 164, 77, 147, 28, 137, 38, 53, 31, 62, 100, 118, 0, 109, 29, 144, 45, 150, 83, 90, 185, 145, 5, 171, 21, 9, 89, 37, 50, 178, 153, 166, 124, 183, 156, 55, 57, 115, 133, 182, 149, 157, 33, 20, 10, 72, 98, 86, 88, 155, 76, 181, 16, 71, 130, 58, 173, 91, 15, 3, 175, 189, 8, 94, 13, 51, 111, 180, 162, 74, 132, 108, 30, 25, 17, 176, 75, 69, 139, 129, 67, 56, 4, 52, 39, 101, 160, 24, 187, 84, 35, 135, 128, 95, 87, 184, 177, 179, 141, 73, 159, 54, 78, 110, 151, 14, 6, 85, 93, 49, 43, 23, 113, 102, 131, 170], 192: [116, 126, 26, 83, 34, 82, 106, 63, 125, 130, 104, 153, 95, 89, 103, 143, 147, 114, 179, 79, 154, 139, 0, 66, 60, 174, 176, 24, 112, 120, 135, 21, 172, 189, 16, 94, 39, 107, 100, 87, 81, 8, 18, 129, 71, 49, 88, 148, 33, 156, 111, 72, 15, 25, 23, 182, 96, 190, 168, 98, 175, 110, 131, 29, 149, 117, 43, 69, 102, 85, 124, 185, 4, 163, 127, 157, 19, 68, 28, 191, 40, 37, 180, 150, 159, 3, 70, 122, 9, 155, 186, 5, 50, 31, 65, 169, 115, 54, 77, 14, 30, 99, 51, 22, 141, 64, 151, 80, 158, 164, 78, 184, 56, 67, 178, 123, 108, 2, 105, 144, 177, 7, 10, 167, 17, 136, 53, 132, 146, 38, 46, 84, 57, 166, 73, 75, 47, 152, 12, 90, 6, 140, 1, 35, 52, 74, 121, 128, 58, 13, 27, 160, 183, 32, 161, 97, 92, 55, 187, 181, 86, 42, 109, 62, 101, 188, 162, 91, 142, 134, 61, 20, 133, 44, 76, 145, 138, 165, 113, 173, 36, 11, 45, 59, 170, 137, 48, 41, 119, 93, 118, 171], 193: [60, 109, 157, 87, 104, 151, 101, 30, 34, 158, 163, 126, 66, 82, 135, 1, 41, 98, 93, 12, 27, 175, 140, 115, 53, 176, 149, 18, 47, 56, 25, 134, 102, 84, 70, 133, 76, 123, 46, 155, 168, 2, 124, 71, 183, 29, 189, 146, 96, 91, 6, 54, 24, 28, 55, 31, 191, 188, 99, 42, 170, 162, 36, 69, 78, 144, 112, 83, 120, 156, 161, 50, 185, 166, 141, 165, 187, 20, 117, 111, 16, 186, 147, 128, 114, 58, 192, 118, 173, 132, 57, 81, 0, 148, 92, 169, 23, 48, 160, 182, 26, 125, 39, 43, 180, 171, 100, 178, 8, 61, 67, 13, 51, 130, 11, 49, 94, 85, 174, 3, 122, 14, 172, 127, 90, 88, 59, 145, 5, 10, 107, 17, 154, 103, 37, 45, 68, 15, 137, 159, 63, 79, 129, 64, 72, 179, 181, 136, 7, 32, 19, 184, 190, 164, 22, 62, 97, 139, 116, 65, 152, 142, 38, 110, 106, 153, 80, 167, 21, 113, 119, 131, 77, 138, 86, 4, 121, 35, 40, 143, 89, 150, 73, 105, 95, 74, 52, 75, 44, 33, 9, 108, 177], 194: [35, 192, 75, 143, 20, 171, 130, 56, 99, 157, 1, 77, 167, 36, 175, 136, 105, 160, 111, 129, 177, 128, 91, 16, 147, 57, 112, 140, 61, 23, 145, 127, 100, 185, 9, 55, 65, 94, 85, 81, 138, 53, 88, 62, 10, 71, 188, 156, 22, 18, 95, 165, 134, 120, 116, 180, 108, 24, 76, 110, 11, 42, 159, 142, 144, 43, 31, 170, 152, 96, 6, 173, 30, 174, 69, 119, 19, 83, 0, 151, 191, 78, 70, 166, 7, 37, 39, 46, 193, 73, 146, 172, 25, 49, 15, 148, 117, 182, 59, 13, 161, 126, 150, 106, 103, 155, 68, 181, 32, 92, 51, 121, 14, 41, 115, 186, 79, 158, 21, 64, 137, 107, 133, 183, 187, 153, 2, 45, 162, 86, 169, 80, 87, 63, 139, 124, 90, 44, 3, 52, 28, 154, 40, 113, 12, 93, 4, 190, 184, 164, 67, 123, 47, 72, 34, 132, 29, 179, 189, 74, 54, 125, 176, 60, 104, 66, 82, 98, 141, 33, 97, 109, 8, 27, 84, 135, 163, 89, 149, 118, 26, 101, 178, 168, 58, 5, 38, 131, 114, 50, 122, 102, 48, 17], 195: [121, 40, 186, 159, 127, 166, 32, 37, 126, 119, 0, 82, 64, 125, 58, 48, 98, 168, 29, 31, 183, 111, 138, 61, 28, 118, 27, 97, 150, 101, 114, 25, 50, 106, 75, 91, 117, 53, 158, 143, 169, 20, 187, 132, 13, 136, 66, 55, 173, 116, 65, 139, 112, 133, 94, 4, 79, 151, 103, 134, 62, 88, 24, 148, 7, 129, 179, 96, 160, 184, 181, 23, 19, 38, 51, 174, 113, 8, 78, 54, 154, 6, 10, 108, 11, 22, 59, 33, 191, 157, 141, 45, 63, 172, 83, 102, 161, 69, 12, 18, 163, 99, 115, 70, 170, 46, 92, 47, 104, 167, 193, 93, 71, 149, 5, 165, 60, 194, 74, 107, 130, 2, 52, 177, 145, 105, 110, 189, 14, 95, 17, 140, 180, 39, 3, 44, 178, 192, 152, 100, 135, 73, 76, 41, 36, 80, 109, 21, 153, 1, 147, 72, 176, 188, 182, 15, 85, 156, 84, 81, 42, 144, 57, 43, 128, 67, 86, 137, 123, 87, 155, 16, 175, 190, 124, 162, 34, 56, 89, 185, 171, 35, 90, 30, 122, 142, 131, 120, 146, 26, 164, 68, 9, 77, 49], 196: [74, 91, 123, 164, 37, 43, 18, 162, 50, 140, 160, 38, 77, 85, 76, 35, 143, 182, 158, 98, 48, 97, 115, 4, 131, 120, 146, 82, 39, 99, 55, 194, 183, 161, 71, 116, 180, 84, 141, 16, 90, 23, 167, 40, 168, 32, 25, 135, 83, 112, 72, 24, 54, 44, 150, 177, 64, 124, 172, 139, 5, 78, 51, 87, 2, 195, 155, 171, 58, 186, 101, 8, 178, 134, 79, 63, 192, 109, 17, 179, 47, 163, 42, 191, 170, 92, 145, 121, 193, 15, 103, 49, 10, 69, 94, 57, 181, 154, 138, 118, 153, 73, 6, 176, 59, 128, 174, 165, 28, 105, 156, 189, 53, 19, 108, 144, 80, 68, 93, 185, 136, 119, 13, 187, 33, 166, 169, 75, 36, 159, 104, 88, 11, 1, 41, 89, 190, 29, 67, 125, 52, 0, 26, 96, 113, 130, 102, 9, 30, 127, 149, 22, 188, 70, 56, 147, 157, 3, 129, 142, 107, 34, 111, 20, 132, 100, 60, 95, 45, 175, 184, 81, 152, 62, 27, 31, 110, 65, 137, 21, 66, 46, 148, 14, 7, 86, 61, 133, 151, 173, 122, 12, 106, 114, 117, 126], 197: [21, 112, 190, 121, 135, 36, 136, 87, 38, 109, 75, 67, 133, 158, 100, 48, 141, 151, 164, 131, 83, 196, 129, 176, 139, 72, 170, 89, 195, 149, 106, 88, 56, 180, 42, 168, 91, 17, 70, 171, 101, 115, 29, 172, 104, 3, 71, 76, 43, 134, 39, 47, 166, 22, 105, 15, 31, 150, 97, 155, 32, 113, 4, 11, 61, 78, 160, 59, 194, 92, 74, 6, 81, 152, 73, 156, 19, 147, 126, 28, 0, 34, 23, 57, 9, 79, 10, 94, 64, 60, 162, 159, 183, 44, 161, 184, 24, 63, 124, 117, 127, 99, 65, 25, 116, 86, 52, 165, 46, 186, 2, 182, 68, 20, 119, 153, 95, 181, 167, 125, 26, 143, 90, 54, 14, 84, 140, 5, 187, 145, 40, 108, 169, 144, 1, 30, 33, 173, 50, 37, 107, 49, 51, 177, 179, 188, 111, 189, 110, 13, 120, 103, 193, 55, 132, 148, 157, 114, 122, 82, 142, 12, 146, 154, 41, 185, 93, 96, 85, 130, 27, 18, 174, 62, 58, 192, 8, 53, 128, 7, 163, 191, 118, 77, 138, 98, 16, 175, 102, 123, 137, 45, 178, 80, 35, 66, 69], 198: [194, 48, 116, 126, 23, 77, 134, 179, 142, 60, 170, 61, 72, 75, 10, 91, 2, 103, 67, 171, 188, 22, 52, 102, 144, 113, 130, 92, 33, 147, 98, 172, 32, 64, 118, 127, 107, 78, 71, 122, 120, 58, 129, 178, 100, 36, 105, 184, 0, 168, 37, 149, 34, 186, 42, 140, 14, 159, 79, 20, 190, 17, 125, 166, 174, 139, 160, 9, 81, 180, 38, 192, 185, 80, 6, 51, 99, 62, 114, 154, 54, 8, 11, 191, 46, 151, 183, 112, 157, 5, 197, 31, 90, 182, 136, 89, 150, 135, 69, 25, 181, 73, 95, 119, 143, 195, 138, 35, 39, 63, 167, 117, 57, 68, 196, 16, 19, 4, 161, 123, 148, 12, 44, 104, 164, 30, 15, 153, 165, 187, 53, 145, 121, 132, 109, 13, 84, 70, 55, 85, 162, 29, 83, 146, 111, 28, 43, 66, 158, 49, 110, 86, 115, 1, 24, 59, 21, 137, 108, 193, 74, 45, 177, 175, 27, 189, 156, 87, 176, 128, 41, 101, 141, 50, 82, 26, 3, 124, 93, 40, 131, 7, 88, 76, 94, 97, 65, 18, 47, 173, 169, 155, 56, 163, 96, 152, 133, 106], 199: [60, 56, 82, 26, 141, 33, 94, 54, 41, 127, 99, 109, 57, 77, 63, 110, 128, 162, 182, 148, 192, 23, 112, 80, 126, 195, 161, 28, 71, 69, 9, 152, 166, 149, 180, 129, 167, 17, 7, 34, 92, 44, 79, 73, 111, 42, 32, 125, 174, 131, 177, 35, 91, 6, 115, 84, 38, 133, 66, 76, 184, 138, 18, 150, 90, 36, 122, 186, 8, 197, 178, 85, 55, 39, 147, 159, 95, 158, 146, 12, 50, 191, 175, 119, 22, 20, 37, 59, 88, 181, 196, 137, 124, 156, 48, 1, 53, 155, 62, 3, 165, 142, 193, 78, 0, 65, 68, 173, 117, 120, 30, 2, 46, 16, 176, 96, 101, 113, 189, 198, 118, 31, 29, 171, 61, 114, 75, 10, 67, 121, 145, 143, 43, 100, 187, 13, 83, 49, 154, 157, 21, 163, 64, 108, 87, 170, 123, 47, 172, 107, 188, 185, 11, 4, 104, 190, 40, 5, 164, 19, 45, 139, 93, 183, 72, 27, 98, 135, 58, 168, 144, 89, 116, 74, 102, 134, 15, 153, 151, 103, 97, 169, 105, 25, 194, 52, 179, 106, 136, 130, 51, 70, 81, 14, 24, 140, 132, 160, 86], 200: [23, 119, 161, 146, 59, 89, 33, 144, 173, 45, 99, 81, 110, 115, 93, 114, 72, 17, 154, 56, 177, 25, 39, 164, 49, 122, 108, 127, 148, 195, 101, 147, 172, 125, 42, 145, 102, 31, 92, 80, 47, 65, 37, 41, 131, 140, 168, 52, 120, 112, 12, 62, 196, 83, 199, 136, 44, 153, 9, 176, 14, 43, 137, 34, 6, 178, 128, 88, 158, 113, 175, 27, 179, 38, 157, 8, 26, 13, 111, 60, 79, 29, 95, 74, 162, 171, 133, 55, 197, 85, 193, 71, 20, 187, 123, 1, 142, 174, 149, 156, 66, 87, 16, 5, 124, 107, 90, 46, 61, 135, 50, 4, 152, 51, 69, 191, 76, 151, 3, 183, 139, 190, 170, 182, 130, 15, 24, 86, 181, 103, 40, 189, 167, 116, 75, 163, 10, 198, 64, 118, 192, 117, 2, 77, 57, 70, 21, 18, 0, 194, 166, 138, 129, 185, 19, 169, 73, 54, 104, 36, 48, 91, 28, 98, 58, 109, 84, 134, 68, 106, 159, 186, 67, 96, 126, 165, 188, 150, 22, 63, 53, 184, 160, 94, 141, 132, 155, 180, 30, 97, 105, 82, 121, 32, 143, 11, 7, 100, 78, 35]} output_file = open('zipped_data.txt', 'w') lines = [] for i in range(4, 201): this_str = ','.join(map(str, data[i])) print(this_str) lines.append(this_str) lines.append('\n') output_file.writelines(lines) output_file.close()
{ "targets": [ { "target_name": "clang_indexer", "sources": [ "addon.cc" ], "include_dirs": [ "<!(node -e \"require('nan')\")", "/Users/vincentrouille/Dev/MicroStep/llvm/tools/clang/include" ], "link_settings": { "libraries": ["/Users/vincentrouille/Dev/MicroStep/llvm/build-release/lib/libclang.dylib", "-Wl,-rpath ./"] }, "cflags" : [ "-std=c++1", "-stdlib=libc++" ], "conditions": [ [ 'OS!="win"', { "cflags+": [ "-std=c++11" ], "cflags_c+": [ "-std=c++11" ], "cflags_cc+": [ "-std=c++11" ], }], [ 'OS=="mac"', { "xcode_settings": { "OTHER_CPLUSPLUSFLAGS" : [ "-std=c++11", "-stdlib=libc++" ], "OTHER_LDFLAGS": [ "-stdlib=libc++" ], "MACOSX_DEPLOYMENT_TARGET": "10.7" }, }], ], } ] }
{'targets': [{'target_name': 'clang_indexer', 'sources': ['addon.cc'], 'include_dirs': ['<!(node -e "require(\'nan\')")', '/Users/vincentrouille/Dev/MicroStep/llvm/tools/clang/include'], 'link_settings': {'libraries': ['/Users/vincentrouille/Dev/MicroStep/llvm/build-release/lib/libclang.dylib', '-Wl,-rpath ./']}, 'cflags': ['-std=c++1', '-stdlib=libc++'], 'conditions': [['OS!="win"', {'cflags+': ['-std=c++11'], 'cflags_c+': ['-std=c++11'], 'cflags_cc+': ['-std=c++11']}], ['OS=="mac"', {'xcode_settings': {'OTHER_CPLUSPLUSFLAGS': ['-std=c++11', '-stdlib=libc++'], 'OTHER_LDFLAGS': ['-stdlib=libc++'], 'MACOSX_DEPLOYMENT_TARGET': '10.7'}}]]}]}
class FileHandler: def get_data(self, path: str): contents = [] try: with open(path, 'r') as x: content = x.read().strip() contents = list(map(int, content.split(' '))) except FileNotFoundError: if path: print(f"File at location '{path}' was not found.") else: print("You must choose a file first.") except: print("File contains unrecognized characters.") return contents def save_data(self, file_path: str, data: list): try: to_save = " ".join(str(data)) with open(file_path, 'w') as x: for row in data: if row != str(data[-1]): row = str(row) + " " else: row = str(row) x.write(row) print("Saved to a file successfully.") except: print("Couldn't save to a file.")
class Filehandler: def get_data(self, path: str): contents = [] try: with open(path, 'r') as x: content = x.read().strip() contents = list(map(int, content.split(' '))) except FileNotFoundError: if path: print(f"File at location '{path}' was not found.") else: print('You must choose a file first.') except: print('File contains unrecognized characters.') return contents def save_data(self, file_path: str, data: list): try: to_save = ' '.join(str(data)) with open(file_path, 'w') as x: for row in data: if row != str(data[-1]): row = str(row) + ' ' else: row = str(row) x.write(row) print('Saved to a file successfully.') except: print("Couldn't save to a file.")
class Solution(object): def countAndSay(self, n): """ :type n: int :rtype: str """ desc = '1' if n == 1: return desc for i in range(2, n+1): last_ch = None counter = 0 last_desc = desc desc = '' for idx, ch in enumerate(last_desc): if ch == last_ch: counter += 1 if idx == 0: last_ch = ch counter = 1 if ch != last_ch: assert counter > 0 desc += '%s%s' % (counter, last_ch) counter = 1 last_ch = ch desc += '%s%s' % (counter, last_ch) return desc
class Solution(object): def count_and_say(self, n): """ :type n: int :rtype: str """ desc = '1' if n == 1: return desc for i in range(2, n + 1): last_ch = None counter = 0 last_desc = desc desc = '' for (idx, ch) in enumerate(last_desc): if ch == last_ch: counter += 1 if idx == 0: last_ch = ch counter = 1 if ch != last_ch: assert counter > 0 desc += '%s%s' % (counter, last_ch) counter = 1 last_ch = ch desc += '%s%s' % (counter, last_ch) return desc
''' import random ## random choice will choose 1 option from the list randnum = random.choice(['True', 'False']) print(randnum) ''' class Enemy: def __init__(self): pass self.health = health self.attack = attack def health(self): pass def attack(self): pass class Player(Enemy): def health(self): pass def attack(self): pass class Action(): def __init__(self): pass ## compare enemy and player attack stats def fight(self): pass ## make the w key call a class fight = input ("w to fight ") if fight == "w": print(fight) #Action.fight() else: print("else") #else action
""" import random ## random choice will choose 1 option from the list randnum = random.choice(['True', 'False']) print(randnum) """ class Enemy: def __init__(self): pass self.health = health self.attack = attack def health(self): pass def attack(self): pass class Player(Enemy): def health(self): pass def attack(self): pass class Action: def __init__(self): pass def fight(self): pass fight = input('w to fight ') if fight == 'w': print(fight) else: print('else')
ids = [ "elrond", "gandalf", "galadriel", "celeborn", "aragorn", "arwen", "glorfindel", "legolas", "thorin", "balin", "gloin", "gimli", "denethor", "boromir", "faramir", "theoden", "eomer", "eowyn", "bilbo", "frodo", "sam", "pipin", "merry", "sauron", "mordu", "witchking", "nazgul", "azog", "ugluk", "mauhur", "shagrat", "gorbag", "grishnagh", "shelob", "grima", "saruman", "radagast", "gollum", "tom", "human", "elf", "dwarf", "hobit", "orc", "spider", ] if __name__ == "__main__": for x in ids: print("\\{}name & & \\{}faction & \\{}aura & \\{}ability & \\{}task \\\\ \\hline".format(x, x, x, x, x))
ids = ['elrond', 'gandalf', 'galadriel', 'celeborn', 'aragorn', 'arwen', 'glorfindel', 'legolas', 'thorin', 'balin', 'gloin', 'gimli', 'denethor', 'boromir', 'faramir', 'theoden', 'eomer', 'eowyn', 'bilbo', 'frodo', 'sam', 'pipin', 'merry', 'sauron', 'mordu', 'witchking', 'nazgul', 'azog', 'ugluk', 'mauhur', 'shagrat', 'gorbag', 'grishnagh', 'shelob', 'grima', 'saruman', 'radagast', 'gollum', 'tom', 'human', 'elf', 'dwarf', 'hobit', 'orc', 'spider'] if __name__ == '__main__': for x in ids: print('\\{}name & & \\{}faction & \\{}aura & \\{}ability & \\{}task \\\\ \\hline'.format(x, x, x, x, x))
# -*- coding: utf-8 -*- """ pepipost This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ). """ class DomainStruct(object): """Implementation of the 'DomainStruct' model. Domain Modal Attributes: domain (string): The domain you wish to include in the 'From' header of your emails. envelope_name (string): The subdomain which will be used for tracking opens, clicks and unsubscribe """ # Create a mapping from Model property names to API property names _names = { "domain":'domain', "envelope_name":'envelopeName' } def __init__(self, domain=None, envelope_name=None): """Constructor for the DomainStruct class""" # Initialize members of the class self.domain = domain self.envelope_name = envelope_name @classmethod def from_dictionary(cls, dictionary): """Creates an instance of this model from a dictionary Args: dictionary (dictionary): A dictionary representation of the object as obtained from the deserialization of the server's response. The keys MUST match property names in the API description. Returns: object: An instance of this structure class. """ if dictionary is None: return None # Extract variables from the dictionary domain = dictionary.get('domain') envelope_name = dictionary.get('envelopeName') # Return an object of this model return cls(domain, envelope_name)
""" pepipost This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ). """ class Domainstruct(object): """Implementation of the 'DomainStruct' model. Domain Modal Attributes: domain (string): The domain you wish to include in the 'From' header of your emails. envelope_name (string): The subdomain which will be used for tracking opens, clicks and unsubscribe """ _names = {'domain': 'domain', 'envelope_name': 'envelopeName'} def __init__(self, domain=None, envelope_name=None): """Constructor for the DomainStruct class""" self.domain = domain self.envelope_name = envelope_name @classmethod def from_dictionary(cls, dictionary): """Creates an instance of this model from a dictionary Args: dictionary (dictionary): A dictionary representation of the object as obtained from the deserialization of the server's response. The keys MUST match property names in the API description. Returns: object: An instance of this structure class. """ if dictionary is None: return None domain = dictionary.get('domain') envelope_name = dictionary.get('envelopeName') return cls(domain, envelope_name)
#Author: ahmelq - github.com/ahmedelq/ #License: MIT #this is a solution of https://old.reddit.com/r/dailyprogrammer/comments/aphavc/20190211_challenge_375_easy_print_a_new_number_by/ # -- coding: utf-8 -- def exoticNum(n): return ''.join([ str(int(num) + 1) for num in list(str(n))]) if __name__ == "__main__": print( exoticNum(998) )
def exotic_num(n): return ''.join([str(int(num) + 1) for num in list(str(n))]) if __name__ == '__main__': print(exotic_num(998))
#!/usr/bin/env python # -*- coding: UTF-8 -*- class BaseAnonymizor(object): '''BaseType for anonymizers of the *data-migrator*. Instantiate the anonymizer and definition and call the instantiation at translation time. Implement the :meth:`~.__call__` method to implement your specific anonymizor. ''' def __call__(self, v): '''output the anonymized object. Args: v: object to anonymize Returns: anonymized value ''' raise NotImplementedError
class Baseanonymizor(object): """BaseType for anonymizers of the *data-migrator*. Instantiate the anonymizer and definition and call the instantiation at translation time. Implement the :meth:`~.__call__` method to implement your specific anonymizor. """ def __call__(self, v): """output the anonymized object. Args: v: object to anonymize Returns: anonymized value """ raise NotImplementedError
# -*- coding: utf-8 -*- def test_chat_delete(slack_time): assert slack_time.chat.delete def test_chat_delete_scheduled_message(slack_time): assert slack_time.chat.delete_scheduled_message def test_chat_get_permalink(slack_time): assert slack_time.chat.get_permalink def test_chat_me_message(slack_time): assert slack_time.chat.me_message def test_chat_post_ephemeral(slack_time): assert slack_time.chat.post_ephemeral def test_chat_post_message(slack_time): assert slack_time.chat.post_message def test_chat_schedule_message(slack_time): assert slack_time.chat.schedule_message def test_chat_unfurl(slack_time): assert slack_time.chat.unfurl def test_chat_update(slack_time): assert slack_time.chat.update def test_chat_scheduled_messages_list(slack_time): assert slack_time.chat.scheduled_messages.list
def test_chat_delete(slack_time): assert slack_time.chat.delete def test_chat_delete_scheduled_message(slack_time): assert slack_time.chat.delete_scheduled_message def test_chat_get_permalink(slack_time): assert slack_time.chat.get_permalink def test_chat_me_message(slack_time): assert slack_time.chat.me_message def test_chat_post_ephemeral(slack_time): assert slack_time.chat.post_ephemeral def test_chat_post_message(slack_time): assert slack_time.chat.post_message def test_chat_schedule_message(slack_time): assert slack_time.chat.schedule_message def test_chat_unfurl(slack_time): assert slack_time.chat.unfurl def test_chat_update(slack_time): assert slack_time.chat.update def test_chat_scheduled_messages_list(slack_time): assert slack_time.chat.scheduled_messages.list
for _ in range(int(input())): n = int(input()) s = input() count_prev = 0 count = 0 changes = 0 for i in s: if i == "(": count -= 1 else: count += 1 if count>0 and count>count_prev: #print(i, count) changes += 1 count_prev = count print(changes)
for _ in range(int(input())): n = int(input()) s = input() count_prev = 0 count = 0 changes = 0 for i in s: if i == '(': count -= 1 else: count += 1 if count > 0 and count > count_prev: changes += 1 count_prev = count print(changes)
a='platzi' a=list(a) #Convierto a lista, porque una lista si se puede modificar a[0]='c' #Realizo el cambio que necesito a=''.join(a) #Concateno para obtener nuevamente el string print(a)
a = 'platzi' a = list(a) a[0] = 'c' a = ''.join(a) print(a)
# -*- coding: utf-8 -*- """ Assessments Module - Controllers @author: Fran Boon @see: http://eden.sahanafoundation.org/wiki/Pakistan @ToDo: Rename as 'assessment' (Deprioritised due to Data Migration issues being distracting for us currently) """ module = request.controller if module not in deployment_settings.modules: session.error = T("Module disabled!") redirect(URL(r=request, c="default", f="index")) # Options Menu (available in all Functions' Views) response.menu_options = [ [T("Assessments"), False, URL(r=request, f="assessment"),[ [T("List"), False, URL(r=request, f="assessment")], [T("Add"), False, URL(r=request, f="assessment", args="create")], #[T("Search"), False, URL(r=request, f="assessment", args="search")] ]], [T("Schools"), False, URL(r=request, f="school_district"),[ [T("List"), False, URL(r=request, f="school_district")], [T("Add"), False, URL(r=request, f="school_district", args="create")], #[T("Search"), False, URL(r=request, f="school_district", args="search")] ]], #[T("Map"), False, URL(r=request, f="maps")], ] def index(): """ Custom View """ module_name = deployment_settings.modules[module].name_nice return dict(module_name=module_name) def maps(): """ Show a Map of all Assessments """ freports = db(db.gis_location.id == db.sitrep_freport.location_id).select() freport_popup_url = URL(r=request, f="freport", args="read.popup?freport.location_id=") map = gis.show_map(feature_queries = [{"name":Tstr("Flood Reports"), "query":freports, "active":True, "popup_url": freport_popup_url}], window=True) return dict(map=map) def assessment(): """ Assessments, RESTful controller """ resource = request.function tablename = "%s_%s" % (module, resource) table = db[tablename] # Villages only table.location_id.requires = IS_NULL_OR(IS_ONE_OF(db(db.gis_location.level == "L5"), "gis_location.id", repr_select, sort=True)) # Don't send the locations list to client (pulled by AJAX instead) table.location_id.requires = IS_NULL_OR(IS_ONE_OF_EMPTY(db, "gis_location.id")) # Pre-processor def prep(r): if r.method == "update": # Disable legacy fields, unless updating, so the data can be manually transferred to new fields table.source.readable = table.source.writable = False return True response.s3.prep = prep # Post-processor def user_postp(jr, output): shn_action_buttons(jr, deletable=False) return output response.s3.postp = user_postp response.s3.pagination = True output = shn_rest_controller(module, resource) return output def school_district(): """ REST Controller @ToDo: Move to CR """ resource = request.function tablename = "%s_%s" % (module, resource) table = db[tablename] # Districts only table.location_id.requires = IS_NULL_OR(IS_ONE_OF(db(db.gis_location.level == "L2"), "gis_location.id", repr_select, sort=True)) table.location_id.comment = DIV(A(ADD_LOCATION, _class="colorbox", _href=URL(r=request, c="gis", f="location", args="create", vars=dict(format="popup")), _target="top", _title=ADD_LOCATION), DIV( _class="tooltip", _title=Tstr("District") + "|" + Tstr("The District for this Report."))), # Pre-processor def prep(r): if r.method == "update": # Disable legacy fields, unless updating, so the data can be manually transferred to new fields table.document.readable = table.document.writable = False return True response.s3.prep = prep # Post-processor def user_postp(jr, output): shn_action_buttons(jr, deletable=False) return output response.s3.postp = user_postp rheader = lambda r: shn_sitrep_rheader(r, tabs = [(T("Basic Details"), None), (T("School Reports"), "school_report") ]) response.s3.pagination = True output = shn_rest_controller(module, resource, rheader=rheader) return output # ----------------------------------------------------------------------------- def school_report(): """ REST Controller Needed for Map Popups @ToDo: Move to CR """ resource = request.function tablename = "%s_%s" % (module, resource) table = db[tablename] # Post-processor def user_postp(jr, output): shn_action_buttons(jr, deletable=False) return output response.s3.postp = user_postp response.s3.pagination = True output = shn_rest_controller(module, resource) return output # ----------------------------------------------------------------------------- def download(): """ Download a file """ return response.download(request, db) # ----------------------------------------------------------------------------- def shn_sitrep_rheader(r, tabs=[]): """ Resource Headers """ if r.representation == "html": rheader_tabs = shn_rheader_tabs(r, tabs) if r.name == "school_district": report = r.record doc_url = URL(r=request, f="download", args=[report.document]) try: doc_name, file = r.table.document.retrieve(report.document) if hasattr(file, "close"): file.close() except: doc_name = report.document rheader = DIV(TABLE( TR( TH(Tstr("Date") + ": "), report.date ), TR( TH(Tstr("Document") + ": "), A(doc_name, _href=doc_url) ) ), rheader_tabs) return rheader else: return None
""" Assessments Module - Controllers @author: Fran Boon @see: http://eden.sahanafoundation.org/wiki/Pakistan @ToDo: Rename as 'assessment' (Deprioritised due to Data Migration issues being distracting for us currently) """ module = request.controller if module not in deployment_settings.modules: session.error = t('Module disabled!') redirect(url(r=request, c='default', f='index')) response.menu_options = [[t('Assessments'), False, url(r=request, f='assessment'), [[t('List'), False, url(r=request, f='assessment')], [t('Add'), False, url(r=request, f='assessment', args='create')]]], [t('Schools'), False, url(r=request, f='school_district'), [[t('List'), False, url(r=request, f='school_district')], [t('Add'), False, url(r=request, f='school_district', args='create')]]]] def index(): """ Custom View """ module_name = deployment_settings.modules[module].name_nice return dict(module_name=module_name) def maps(): """ Show a Map of all Assessments """ freports = db(db.gis_location.id == db.sitrep_freport.location_id).select() freport_popup_url = url(r=request, f='freport', args='read.popup?freport.location_id=') map = gis.show_map(feature_queries=[{'name': tstr('Flood Reports'), 'query': freports, 'active': True, 'popup_url': freport_popup_url}], window=True) return dict(map=map) def assessment(): """ Assessments, RESTful controller """ resource = request.function tablename = '%s_%s' % (module, resource) table = db[tablename] table.location_id.requires = is_null_or(is_one_of(db(db.gis_location.level == 'L5'), 'gis_location.id', repr_select, sort=True)) table.location_id.requires = is_null_or(is_one_of_empty(db, 'gis_location.id')) def prep(r): if r.method == 'update': table.source.readable = table.source.writable = False return True response.s3.prep = prep def user_postp(jr, output): shn_action_buttons(jr, deletable=False) return output response.s3.postp = user_postp response.s3.pagination = True output = shn_rest_controller(module, resource) return output def school_district(): """ REST Controller @ToDo: Move to CR """ resource = request.function tablename = '%s_%s' % (module, resource) table = db[tablename] table.location_id.requires = is_null_or(is_one_of(db(db.gis_location.level == 'L2'), 'gis_location.id', repr_select, sort=True)) table.location_id.comment = (div(a(ADD_LOCATION, _class='colorbox', _href=url(r=request, c='gis', f='location', args='create', vars=dict(format='popup')), _target='top', _title=ADD_LOCATION), div(_class='tooltip', _title=tstr('District') + '|' + tstr('The District for this Report.'))),) def prep(r): if r.method == 'update': table.document.readable = table.document.writable = False return True response.s3.prep = prep def user_postp(jr, output): shn_action_buttons(jr, deletable=False) return output response.s3.postp = user_postp rheader = lambda r: shn_sitrep_rheader(r, tabs=[(t('Basic Details'), None), (t('School Reports'), 'school_report')]) response.s3.pagination = True output = shn_rest_controller(module, resource, rheader=rheader) return output def school_report(): """ REST Controller Needed for Map Popups @ToDo: Move to CR """ resource = request.function tablename = '%s_%s' % (module, resource) table = db[tablename] def user_postp(jr, output): shn_action_buttons(jr, deletable=False) return output response.s3.postp = user_postp response.s3.pagination = True output = shn_rest_controller(module, resource) return output def download(): """ Download a file """ return response.download(request, db) def shn_sitrep_rheader(r, tabs=[]): """ Resource Headers """ if r.representation == 'html': rheader_tabs = shn_rheader_tabs(r, tabs) if r.name == 'school_district': report = r.record doc_url = url(r=request, f='download', args=[report.document]) try: (doc_name, file) = r.table.document.retrieve(report.document) if hasattr(file, 'close'): file.close() except: doc_name = report.document rheader = div(table(tr(th(tstr('Date') + ': '), report.date), tr(th(tstr('Document') + ': '), a(doc_name, _href=doc_url))), rheader_tabs) return rheader else: return None
var1 = [0,1,2,3,4,5] for x in var1: var1[x] = x*x for x in "123456": print(x) #While loop someval = 1 while someval<1000: someval *= 2
var1 = [0, 1, 2, 3, 4, 5] for x in var1: var1[x] = x * x for x in '123456': print(x) someval = 1 while someval < 1000: someval *= 2
class Rod: def __init__(self, length, boost_begin, boost_count, ang_acc): self.length = length self.boost_begin = boost_begin self.boost_count = boost_count self.ang_acc = ang_acc self.ang_vel = 0 self.ang_pos = 0
class Rod: def __init__(self, length, boost_begin, boost_count, ang_acc): self.length = length self.boost_begin = boost_begin self.boost_count = boost_count self.ang_acc = ang_acc self.ang_vel = 0 self.ang_pos = 0
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ''' QSDsan: Quantitative Sustainable Design for sanitation and resource recovery systems This module is developed by: Yalin Li <zoe.yalin.li@gmail.com> This module is under the University of Illinois/NCSA Open Source License. Please refer to https://github.com/QSD-Group/QSDsan/blob/master/LICENSE.txt for license details. ''' # %% __all__ = ('AttrSetter', 'AttrFuncSetter', 'DictAttrSetter') setattr = setattr getattr = getattr isinstance = isinstance class AttrSetter: __slots__ = ('obj', 'attrs') def __init__(self, obj, attrs): self.obj = obj if isinstance(attrs, str): attrs = (attrs,) self.attrs = attrs def __call__(self, value): for attr in self.attrs: setattr(self.obj, attr, value) class AttrFuncSetter: __slots__ = ('obj', 'attrs', 'funcs') def __init__(self, obj, attrs, funcs): self.obj = obj if isinstance(attrs, str): attrs = (attrs,) if callable(funcs): funcs = (funcs,) self.attrs = attrs self.funcs = funcs def __call__(self, value): attrs = self.attrs funcs = self.funcs obj = self.obj if len(funcs) == 1: func = funcs[0] for attr in attrs: setattr(obj, attr, func(value)) elif len(funcs) == len(attrs): for num, func in enumerate(funcs): setattr(obj, attrs[num], func(value)) else: raise ValueError('Number of functions does not match number of attributes.') class DictAttrSetter: __slots__ = ('obj', 'dict_attr', 'keys') def __init__(self, obj, dict_attr, keys): self.dict_attr = getattr(obj, dict_attr) if isinstance(keys, str): keys = (keys,) self.keys = keys def __call__(self, value): for key in self.keys: self.dict_attr[key] = value
""" QSDsan: Quantitative Sustainable Design for sanitation and resource recovery systems This module is developed by: Yalin Li <zoe.yalin.li@gmail.com> This module is under the University of Illinois/NCSA Open Source License. Please refer to https://github.com/QSD-Group/QSDsan/blob/master/LICENSE.txt for license details. """ __all__ = ('AttrSetter', 'AttrFuncSetter', 'DictAttrSetter') setattr = setattr getattr = getattr isinstance = isinstance class Attrsetter: __slots__ = ('obj', 'attrs') def __init__(self, obj, attrs): self.obj = obj if isinstance(attrs, str): attrs = (attrs,) self.attrs = attrs def __call__(self, value): for attr in self.attrs: setattr(self.obj, attr, value) class Attrfuncsetter: __slots__ = ('obj', 'attrs', 'funcs') def __init__(self, obj, attrs, funcs): self.obj = obj if isinstance(attrs, str): attrs = (attrs,) if callable(funcs): funcs = (funcs,) self.attrs = attrs self.funcs = funcs def __call__(self, value): attrs = self.attrs funcs = self.funcs obj = self.obj if len(funcs) == 1: func = funcs[0] for attr in attrs: setattr(obj, attr, func(value)) elif len(funcs) == len(attrs): for (num, func) in enumerate(funcs): setattr(obj, attrs[num], func(value)) else: raise value_error('Number of functions does not match number of attributes.') class Dictattrsetter: __slots__ = ('obj', 'dict_attr', 'keys') def __init__(self, obj, dict_attr, keys): self.dict_attr = getattr(obj, dict_attr) if isinstance(keys, str): keys = (keys,) self.keys = keys def __call__(self, value): for key in self.keys: self.dict_attr[key] = value
class SingleNode: def __init__(self, key, next=None): self.key = key self.next = None def __repr__(self): return f"Node: key={self.key}, next={self.next.key if self.next is not None else None}" class SinglyLinkedList: def __init__(self): self.sentinel = SingleNode(None) def insert(self, x): x.next = self.sentinel.next self.sentinel.next = x def delete(self, x): node = self.sentinel found = False while node and not found: if node.next != x: node = node.next else: found = True if not found: raise Exception("Node not in list") node.next = x.next def search(self, key): node = self.head found = False while node and not found: if node.key == key: found = True else: node = node.next return node if found else None def listit(self): node = self.head l = [] while node: l.append(node.key) node = node.next return l def reverse(self): prev = None curr = self.head nex = self.head.next while curr: curr.next = prev prev = curr curr = nex if nex: nex = nex.next self.sentinel.next = prev @property def head(self): return self.sentinel.next def __repr__(self): return f"Singly linked list : {self.listit()}"
class Singlenode: def __init__(self, key, next=None): self.key = key self.next = None def __repr__(self): return f'Node: key={self.key}, next={(self.next.key if self.next is not None else None)}' class Singlylinkedlist: def __init__(self): self.sentinel = single_node(None) def insert(self, x): x.next = self.sentinel.next self.sentinel.next = x def delete(self, x): node = self.sentinel found = False while node and (not found): if node.next != x: node = node.next else: found = True if not found: raise exception('Node not in list') node.next = x.next def search(self, key): node = self.head found = False while node and (not found): if node.key == key: found = True else: node = node.next return node if found else None def listit(self): node = self.head l = [] while node: l.append(node.key) node = node.next return l def reverse(self): prev = None curr = self.head nex = self.head.next while curr: curr.next = prev prev = curr curr = nex if nex: nex = nex.next self.sentinel.next = prev @property def head(self): return self.sentinel.next def __repr__(self): return f'Singly linked list : {self.listit()}'
# Your code here s=str(input()) n=len(s) for i in range(n): print(s[0],end="")
s = str(input()) n = len(s) for i in range(n): print(s[0], end='')
# from Attributes_and_Methods.movie_world_02E.project.customer import Customer # from Attributes_and_Methods.movie_world_02E.project.dvd import DVD class MovieWorld: def __init__(self, name: str): self.name = name self.customers = [] self.dvds = [] @staticmethod def dvd_capacity(): return 15 @staticmethod def customer_capacity(): return 10 def add_customer(self, customer): if len(self.customers) < 10: self.customers.append(customer) def add_dvd(self, dvd): if len(self.dvds) < 15: self.dvds.append(dvd) def rent_dvd(self, customer_id: int, dvd_id: int): customer = [c for c in self.customers if c.id == customer_id][0] dvd = [d for d in self.dvds if d.id == dvd_id][0] if dvd in customer.rented_dvds: return f"{customer.name} has already rented {dvd.name}" if dvd.is_rented: return "DVD is already rented" if customer.age < dvd.age_restriction: return f"{customer.name} should be at least {dvd.age_restriction} to rent this movie" dvd.is_rented = True customer.rented_dvds.append(dvd) return f"{customer.name} has successfully rented {dvd.name}" def return_dvd(self, customer_id, dvd_id): customer = [c for c in self.customers if c.id == customer_id][0] dvd = [d for d in self.dvds if d.id == dvd_id][0] if dvd not in customer.rented_dvds: return f"{customer.name} does not have that DVD" customer.rented_dvds.remove(dvd) dvd.is_rented = False return f"{customer.name} has successfully returned {dvd.name}" def __repr__(self): result = '' for c in self.customers: result += f'{c}\n' for d in self.dvds: result += f'{d}\n' return result # # c1 = Customer("John", 16, 1) # c2 = Customer("Anna", 55, 2) # # d1 = DVD("Black Widow", 1, 2020, "April", 18) # d2 = DVD.from_date(2, "The Croods 2", "23.12.2020", 3) # # movie_world = MovieWorld("The Best Movie Shop") # # movie_world.add_customer(c1) # movie_world.add_customer(c2) # # movie_world.add_dvd(d1) # movie_world.add_dvd(d2) # # print(movie_world.rent_dvd(1, 1)) # print(movie_world.rent_dvd(2, 1)) # print(movie_world.rent_dvd(1, 2)) # # print(movie_world)
class Movieworld: def __init__(self, name: str): self.name = name self.customers = [] self.dvds = [] @staticmethod def dvd_capacity(): return 15 @staticmethod def customer_capacity(): return 10 def add_customer(self, customer): if len(self.customers) < 10: self.customers.append(customer) def add_dvd(self, dvd): if len(self.dvds) < 15: self.dvds.append(dvd) def rent_dvd(self, customer_id: int, dvd_id: int): customer = [c for c in self.customers if c.id == customer_id][0] dvd = [d for d in self.dvds if d.id == dvd_id][0] if dvd in customer.rented_dvds: return f'{customer.name} has already rented {dvd.name}' if dvd.is_rented: return 'DVD is already rented' if customer.age < dvd.age_restriction: return f'{customer.name} should be at least {dvd.age_restriction} to rent this movie' dvd.is_rented = True customer.rented_dvds.append(dvd) return f'{customer.name} has successfully rented {dvd.name}' def return_dvd(self, customer_id, dvd_id): customer = [c for c in self.customers if c.id == customer_id][0] dvd = [d for d in self.dvds if d.id == dvd_id][0] if dvd not in customer.rented_dvds: return f'{customer.name} does not have that DVD' customer.rented_dvds.remove(dvd) dvd.is_rented = False return f'{customer.name} has successfully returned {dvd.name}' def __repr__(self): result = '' for c in self.customers: result += f'{c}\n' for d in self.dvds: result += f'{d}\n' return result
print("Welcome to Python Prizza Deliveries!") size = input("What size pirzza do you want? S, M, L \n") add_pepperoni = input("Do you want pepperoni? Y or N \n") extra_cheese = input("Do you want extra cheese? Y or N \n") bill = 0 if size=="S" | "s": bill += 15 if add_pepperoni == "Y": bill += 2 elif size == "M" | "m": bill += 20 if add_pepperoni == "Y": bill += 3 elif size == "L" | "l": bill += 25 if extra_cheese == "Y" | "y": bill += 1 print(f"Your final bill is : ${bill}")
print('Welcome to Python Prizza Deliveries!') size = input('What size pirzza do you want? S, M, L \n') add_pepperoni = input('Do you want pepperoni? Y or N \n') extra_cheese = input('Do you want extra cheese? Y or N \n') bill = 0 if size == 'S' | 's': bill += 15 if add_pepperoni == 'Y': bill += 2 elif size == 'M' | 'm': bill += 20 if add_pepperoni == 'Y': bill += 3 elif size == 'L' | 'l': bill += 25 if extra_cheese == 'Y' | 'y': bill += 1 print(f'Your final bill is : ${bill}')
class Solution: def nextGreaterElement(self, nums1, nums2): # Write your code here answer = {} stack = [] for x in nums2: while stack and stack[-1] < x: answer[stack[-1]] = x del stack[-1] stack.append(x) for x in stack: answer[x] = -1 return [answer[x] for x in nums1]
class Solution: def next_greater_element(self, nums1, nums2): answer = {} stack = [] for x in nums2: while stack and stack[-1] < x: answer[stack[-1]] = x del stack[-1] stack.append(x) for x in stack: answer[x] = -1 return [answer[x] for x in nums1]
""" escopo """ variavel = 'valor' def func(): print(variavel) def func2(): global variavel variavel = 'outro valor' print(variavel) def func3(): print(variavel) func() func2() func3()
""" escopo """ variavel = 'valor' def func(): print(variavel) def func2(): global variavel variavel = 'outro valor' print(variavel) def func3(): print(variavel) func() func2() func3()
def move_disk(fp,tp): print("moving disk from",fp,"to",tp) def move_tower(heigth,from_pole,to_pole,with_pole): if heigth>=1: move_tower(heigth-1,from_pole, with_pole, to_pole) move_disk(from_pole,to_pole) move_tower(heigth-1,with_pole,to_pole,from_pole) def move_disk(fp,tp): print("moving disk from",fp,"to",tp) move_tower(3,"A","B","C")
def move_disk(fp, tp): print('moving disk from', fp, 'to', tp) def move_tower(heigth, from_pole, to_pole, with_pole): if heigth >= 1: move_tower(heigth - 1, from_pole, with_pole, to_pole) move_disk(from_pole, to_pole) move_tower(heigth - 1, with_pole, to_pole, from_pole) def move_disk(fp, tp): print('moving disk from', fp, 'to', tp) move_tower(3, 'A', 'B', 'C')
## Beginner Series #3 Sum of Numbers ## 7 kyu ## https://www.codewars.com/kata/55f2b110f61eb01779000053 def get_sum(a,b): if a == b: return a elif a < b: return sum([i for i in range(a, b+1)]) elif b < a: return sum([i for i in range(b, a+1)])
def get_sum(a, b): if a == b: return a elif a < b: return sum([i for i in range(a, b + 1)]) elif b < a: return sum([i for i in range(b, a + 1)])
load(":repositories.bzl", "csharp_repos") # NOTE: THE RULES IN THIS FILE ARE KEPT FOR BACKWARDS COMPATIBILITY ONLY. # Please use the rules in repositories.bzl def csharp_proto_compile(**kwargs): print("Import of rules in deps.bzl is deprecated, please use repositories.bzl") csharp_repos(**kwargs) def csharp_grpc_compile(**kwargs): print("Import of rules in deps.bzl is deprecated, please use repositories.bzl") csharp_repos(**kwargs) def csharp_proto_library(**kwargs): print("Import of rules in deps.bzl is deprecated, please use repositories.bzl") csharp_repos(**kwargs) def csharp_grpc_library(**kwargs): print("Import of rules in deps.bzl is deprecated, please use repositories.bzl") csharp_repos(**kwargs)
load(':repositories.bzl', 'csharp_repos') def csharp_proto_compile(**kwargs): print('Import of rules in deps.bzl is deprecated, please use repositories.bzl') csharp_repos(**kwargs) def csharp_grpc_compile(**kwargs): print('Import of rules in deps.bzl is deprecated, please use repositories.bzl') csharp_repos(**kwargs) def csharp_proto_library(**kwargs): print('Import of rules in deps.bzl is deprecated, please use repositories.bzl') csharp_repos(**kwargs) def csharp_grpc_library(**kwargs): print('Import of rules in deps.bzl is deprecated, please use repositories.bzl') csharp_repos(**kwargs)
def count(): x=1 while x<10000: yield x x+=1 for x in count(): print(x)
def count(): x = 1 while x < 10000: yield x x += 1 for x in count(): print(x)
#sorted(iterable, key=key, reverse=reverse) # List x = ['q', 'w', 'r', 'e', 't', 'y'] print (sorted(x)) # Tuple x = ('q', 'w', 'e', 'r', 't', 'y') print (sorted(x)) # String-sorted based on ASCII translations x = "python" print (sorted(x)) # Dictionary x = {'q':1, 'w':2, 'e':3, 'r':4, 't':5, 'y':6} print (sorted(x)) # Set x = {'q', 'w', 'e', 'r', 't', 'y'} print (sorted(x)) # Frozen Set x = frozenset(('q', 'w', 'e', 'r', 't', 'y')) print (sorted(x)) # Using Key Parameter L = ["cccc", "b", "dd", "aaa"] print ("Normal sort :", sorted(L)) print ("Sort with len :", sorted(L, key = len)) # Sort a list of integers based on # their remainder on dividing from 7 def func(x): return x % 7 L = [15, 3, 11, 7] print ("Normal sort :", sorted(L)) print ("Sorted with key:", sorted(L, key = func))
x = ['q', 'w', 'r', 'e', 't', 'y'] print(sorted(x)) x = ('q', 'w', 'e', 'r', 't', 'y') print(sorted(x)) x = 'python' print(sorted(x)) x = {'q': 1, 'w': 2, 'e': 3, 'r': 4, 't': 5, 'y': 6} print(sorted(x)) x = {'q', 'w', 'e', 'r', 't', 'y'} print(sorted(x)) x = frozenset(('q', 'w', 'e', 'r', 't', 'y')) print(sorted(x)) l = ['cccc', 'b', 'dd', 'aaa'] print('Normal sort :', sorted(L)) print('Sort with len :', sorted(L, key=len)) def func(x): return x % 7 l = [15, 3, 11, 7] print('Normal sort :', sorted(L)) print('Sorted with key:', sorted(L, key=func))
class Graph(object): """docstring for Graph""" def __init__(self): self.edges = {} self.numVertices = 0 self.start = "" self.end = "" def neighbors(self, id): return self.edges[id] def cost(self, current, next): for x in self.edges[current]: if x[1] == next: return x[0]
class Graph(object): """docstring for Graph""" def __init__(self): self.edges = {} self.numVertices = 0 self.start = '' self.end = '' def neighbors(self, id): return self.edges[id] def cost(self, current, next): for x in self.edges[current]: if x[1] == next: return x[0]
# python 3 # (C) Simon Gawlik # started 8/1/2015 n = 20 #232792560 primes = [] non_primes = [] # find prime numbers up to n def primes_lt_n (n): for num in range (2, n + 1): is_prime = True for i in range (2, num): if num % i == 0: is_prime = False if is_prime: primes.append(num) else: non_primes.append(num) primes_lt_n (n) #print (primes) #print (non_primes) # find the product of all the positive integers smaller than or equal to number def get_max_product (number): if number <= 2: return (number) else: max_product = 1 for counter in range (1, number + 1): max_product = max_product * counter return (max_product) # tests assert get_max_product (0) == 0 assert get_max_product (1) == 1 assert get_max_product (2) == 2 assert get_max_product (3) == 6 assert get_max_product (10) == 3628800 assert get_max_product (11) == 39916800 max_product_n = get_max_product (n) # check if a number is divisible by all the numbers in a given list def has_divisors_in (number, lst): for member in lst: if number % member != 0: return (False) break return (True) # main for counter in range (n, max_product_n): if (has_divisors_in (counter, primes) and # check for primes first has_divisors_in (counter, non_primes)): print (counter) break
n = 20 primes = [] non_primes = [] def primes_lt_n(n): for num in range(2, n + 1): is_prime = True for i in range(2, num): if num % i == 0: is_prime = False if is_prime: primes.append(num) else: non_primes.append(num) primes_lt_n(n) def get_max_product(number): if number <= 2: return number else: max_product = 1 for counter in range(1, number + 1): max_product = max_product * counter return max_product assert get_max_product(0) == 0 assert get_max_product(1) == 1 assert get_max_product(2) == 2 assert get_max_product(3) == 6 assert get_max_product(10) == 3628800 assert get_max_product(11) == 39916800 max_product_n = get_max_product(n) def has_divisors_in(number, lst): for member in lst: if number % member != 0: return False break return True for counter in range(n, max_product_n): if has_divisors_in(counter, primes) and has_divisors_in(counter, non_primes): print(counter) break
ages = [34, 87, 35, 31, 19, 44, 16] odds = [age for age in ages if age % 2 == 1] print(odds) friends = ['Rolf', 'james', 'Sam', 'alex', 'Louise'] guests = ['jose', 'benjamin', 'Mark', 'Alex', 'Sophie', 'michelle', 'rolf'] lower_case_friends = [friend.lower() for friend in friends] lower_case_guests = [guest.lower() for guest in guests] present_friends = [ name for name in lower_case_guests if name in lower_case_friends ] print(present_friends)
ages = [34, 87, 35, 31, 19, 44, 16] odds = [age for age in ages if age % 2 == 1] print(odds) friends = ['Rolf', 'james', 'Sam', 'alex', 'Louise'] guests = ['jose', 'benjamin', 'Mark', 'Alex', 'Sophie', 'michelle', 'rolf'] lower_case_friends = [friend.lower() for friend in friends] lower_case_guests = [guest.lower() for guest in guests] present_friends = [name for name in lower_case_guests if name in lower_case_friends] print(present_friends)
# -*- coding: utf-8 -*- ############################################################################## # # This file is part of web_readonly_bypass, # an Odoo module. # # Copyright (c) 2015 ACSONE SA/NV (<http://acsone.eu>) # # web_readonly_bypass is free software: # you can redistribute it and/or modify it under the terms of the GNU # Affero General Public License as published by the Free Software # Foundation,either version 3 of the License, or (at your option) any # later version. # # web_readonly_bypass is distributed # in the hope that it will be useful, but WITHOUT ANY WARRANTY; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR # PURPOSE. See the GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with web_readonly_bypass. # If not, see <http://www.gnu.org/licenses/>. # ############################################################################## { 'name': 'Read Only ByPass', 'version': '8.0.1.0.1', "author": "ACSONE SA/NV, Odoo Community Association (OCA)", "maintainer": "ACSONE SA/NV,Odoo Community Association (OCA)", "website": "http://www.acsone.eu", 'category': 'Technical Settings', 'depends': [ 'web', ], 'summary': 'Allow to save onchange modifications to readonly fields', 'data': [ 'views/readonly_bypass.xml', ], 'installable': True, 'auto_install': False, }
{'name': 'Read Only ByPass', 'version': '8.0.1.0.1', 'author': 'ACSONE SA/NV, Odoo Community Association (OCA)', 'maintainer': 'ACSONE SA/NV,Odoo Community Association (OCA)', 'website': 'http://www.acsone.eu', 'category': 'Technical Settings', 'depends': ['web'], 'summary': 'Allow to save onchange modifications to readonly fields', 'data': ['views/readonly_bypass.xml'], 'installable': True, 'auto_install': False}
# # PySNMP MIB module POLICY-BASED-MANAGEMENT-MIB (http://pysnmp.sf.net) # ASN.1 source http://mibs.snmplabs.com:80/asn1/POLICY-BASED-MANAGEMENT-MIB # Produced by pysmi-0.0.7 at Sun Feb 14 00:23:59 2016 # On host bldfarm platform Linux version 4.1.13-100.fc21.x86_64 by user goose # Using Python version 3.5.0 (default, Jan 5 2016, 17:11:52) # ( OctetString, Integer, ObjectIdentifier, ) = mibBuilder.importSymbols("ASN1", "OctetString", "Integer", "ObjectIdentifier") ( NamedValues, ) = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ( ConstraintsUnion, ValueSizeConstraint, SingleValueConstraint, ValueRangeConstraint, ConstraintsIntersection, ) = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ValueSizeConstraint", "SingleValueConstraint", "ValueRangeConstraint", "ConstraintsIntersection") ( SnmpAdminString, ) = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "SnmpAdminString") ( NotificationGroup, ModuleCompliance, ObjectGroup, ) = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance", "ObjectGroup") ( Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, Gauge32, IpAddress, ObjectIdentity, ModuleIdentity, mib_2, TimeTicks, Counter64, iso, Unsigned32, Bits, MibIdentifier, Counter32, NotificationType, ) = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Gauge32", "IpAddress", "ObjectIdentity", "ModuleIdentity", "mib-2", "TimeTicks", "Counter64", "iso", "Unsigned32", "Bits", "MibIdentifier", "Counter32", "NotificationType") ( DisplayString, RowStatus, TextualConvention, DateAndTime, RowPointer, StorageType, ) = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "RowStatus", "TextualConvention", "DateAndTime", "RowPointer", "StorageType") pmMib = ModuleIdentity((1, 3, 6, 1, 2, 1, 124)).setRevisions(("2005-02-07 00:00",)) if mibBuilder.loadTexts: pmMib.setLastUpdated('200502070000Z') if mibBuilder.loadTexts: pmMib.setOrganization('IETF SNMP Configuration Working Group') if mibBuilder.loadTexts: pmMib.setContactInfo('\n\n\n\n\n Steve Waldbusser\n Phone: +1-650-948-6500\n Fax: +1-650-745-0671\n Email: waldbusser@nextbeacon.com\n\n Jon Saperia (WG Co-chair)\n JDS Consulting, Inc.\n 84 Kettell Plain Road.\n Stow MA 01775\n USA\n Phone: +1-978-461-0249\n Fax: +1-617-249-0874\n Email: saperia@jdscons.com\n\n Thippanna Hongal\n Riverstone Networks, Inc.\n 5200 Great America Parkway\n Santa Clara, CA, 95054\n USA\n\n Phone: +1-408-878-6562\n Fax: +1-408-878-6501\n Email: hongal@riverstonenet.com\n\n David Partain (WG Co-chair)\n Postal: Ericsson AB\n P.O. Box 1248\n SE-581 12 Linkoping\n Sweden\n Tel: +46 13 28 41 44\n E-mail: David.Partain@ericsson.com\n\n Any questions or comments about this document can also be\n directed to the working group at snmpconf@snmp.com.') if mibBuilder.loadTexts: pmMib.setDescription('The MIB module for policy-based configuration of SNMP\n infrastructures.\n\n Copyright (C) The Internet Society (2005). This version of\n this MIB module is part of RFC 4011; see the RFC itself for\n full legal notices.') class PmUTF8String(OctetString, TextualConvention): subtypeSpec = OctetString.subtypeSpec+ValueSizeConstraint(0,65535) pmPolicyTable = MibTable((1, 3, 6, 1, 2, 1, 124, 1), ) if mibBuilder.loadTexts: pmPolicyTable.setDescription('The policy table. A policy is a pairing of a\n policyCondition and a policyAction that is used to apply the\n action to a selected set of elements.') pmPolicyEntry = MibTableRow((1, 3, 6, 1, 2, 1, 124, 1, 1), ).setIndexNames((0, "POLICY-BASED-MANAGEMENT-MIB", "pmPolicyAdminGroup"), (0, "POLICY-BASED-MANAGEMENT-MIB", "pmPolicyIndex")) if mibBuilder.loadTexts: pmPolicyEntry.setDescription('An entry in the policy table representing one policy.') pmPolicyAdminGroup = MibTableColumn((1, 3, 6, 1, 2, 1, 124, 1, 1, 1), PmUTF8String().subtype(subtypeSpec=ValueSizeConstraint(0,32))) if mibBuilder.loadTexts: pmPolicyAdminGroup.setDescription('An administratively assigned string that can be used to group\n policies for convenience, for readability, or to simplify\n configuration of access control.\n\n The value of this string does not affect policy processing in\n any way. If grouping is not desired or necessary, this object\n may be set to a zero-length string.') pmPolicyIndex = MibTableColumn((1, 3, 6, 1, 2, 1, 124, 1, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1,4294967295))) if mibBuilder.loadTexts: pmPolicyIndex.setDescription('A unique index for this policy entry, unique among all\n policies regardless of administrative group.') pmPolicyPrecedenceGroup = MibTableColumn((1, 3, 6, 1, 2, 1, 124, 1, 1, 3), PmUTF8String().subtype(subtypeSpec=ValueSizeConstraint(0,32))).setMaxAccess("readcreate") if mibBuilder.loadTexts: pmPolicyPrecedenceGroup.setDescription('An administratively assigned string that is used to group\n policies. For each element, only one policy in the same\n precedence group may be active on that element. If multiple\n policies would be active on an element (because their\n conditions return non-zero), the execution environment will\n only allow the policy with the highest value of\n pmPolicyPrecedence to be active.\n\n All values of this object must have been successfully\n transformed by Stringprep RFC 3454. Management stations\n must perform this translation and must only set this object to\n string values that have been transformed.') pmPolicyPrecedence = MibTableColumn((1, 3, 6, 1, 2, 1, 124, 1, 1, 4), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0,65535))).setMaxAccess("readcreate") if mibBuilder.loadTexts: pmPolicyPrecedence.setDescription("If, while checking to see which policy conditions match an\n element, 2 or more ready policies in the same precedence group\n match the same element, the pmPolicyPrecedence object provides\n the rule to arbitrate which single policy will be active on\n 'this element'. Of policies in the same precedence group, only\n the ready and matching policy with the highest precedence\n value (e.g., 2 is higher than 1) will have its policy action\n periodically executed on 'this element'.\n\n When a policy is active on an element but the condition ceases\n to match the element, its action (if currently running) will\n be allowed to finish and then the condition-matching ready\n policy with the next-highest precedence will immediately\n become active (and have its action run immediately). If the\n condition of a higher-precedence ready policy suddenly begins\n matching an element, the previously-active policy's action (if\n currently running) will be allowed to finish and then the\n higher precedence policy will immediately become active. Its\n action will run immediately, and any lower-precedence matching\n policy will not be active anymore.\n\n In the case where multiple ready policies share the highest\n value, it is an implementation-dependent matter as to which\n single policy action will be chosen.\n\n Note that if it is necessary to take certain actions after a\n policy is no longer active on an element, these actions should\n be included in a lower-precedence policy that is in the same\n precedence group.") pmPolicySchedule = MibTableColumn((1, 3, 6, 1, 2, 1, 124, 1, 1, 5), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1,4294967295))).setMaxAccess("readcreate") if mibBuilder.loadTexts: pmPolicySchedule.setDescription("This policy will be ready if any of the associated schedule\n entries are active.\n\n If the value of this object is 0, this policy is always\n ready.\n\n If the value of this object is non-zero but doesn't\n refer to a schedule group that includes an active schedule,\n then the policy will not be ready, even if this is due to a\n misconfiguration of this object or the pmSchedTable.") pmPolicyElementTypeFilter = MibTableColumn((1, 3, 6, 1, 2, 1, 124, 1, 1, 6), PmUTF8String().subtype(subtypeSpec=ValueSizeConstraint(0,128))).setMaxAccess("readcreate") if mibBuilder.loadTexts: pmPolicyElementTypeFilter.setDescription("This object specifies the element types for which this policy\n can be executed.\n\n The format of this object will be a sequence of\n pmElementTypeRegOIDPrefix values, encoded in the following\n BNF form:\n\n elementTypeFilter: oid [ ';' oid ]*\n oid: subid [ '.' subid ]*\n subid: '0' | decimal_constant\n\n For example, to register for the policy to be run on all\n interface elements, the 'ifEntry' element type will be\n registered as '1.3.6.1.2.1.2.2.1'.\n\n If a value is included that does not represent a registered\n pmElementTypeRegOIDPrefix, then that value will be ignored.") pmPolicyConditionScriptIndex = MibTableColumn((1, 3, 6, 1, 2, 1, 124, 1, 1, 7), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1,4294967295))).setMaxAccess("readonly") if mibBuilder.loadTexts: pmPolicyConditionScriptIndex.setDescription("A pointer to the row or rows in the pmPolicyCodeTable that\n contain the condition code for this policy. When a policy\n entry is created, a pmPolicyCodeIndex value unused by this\n policy's adminGroup will be assigned to this object.\n\n A policy condition is one or more PolicyScript statements\n that result(s) in a boolean value that represents whether\n an element is a member of a set of elements upon which an\n action is to be performed. If a policy is ready and the\n condition returns true for an element of a proper element\n type, and if no higher-precedence policy should be active,\n then the policy is active on that element.\n\n Condition evaluation stops immediately when any run-time\n exception is detected, and the policyAction is not executed.\n\n The policyCondition is evaluated for various elements. Any\n element for which the policyCondition returns any nonzero value\n will match the condition and will have the associated\n\n\n\n policyAction executed on that element unless a\n higher-precedence policy in the same precedence group also\n matches 'this element'.\n\n If the condition object is empty (contains no code) or\n otherwise does not return a value, the element will not be\n matched.\n\n When this condition is executed, if SNMP requests are made to\n the local system and secModel/secName/secLevel aren't\n specified, access to objects is under the security\n credentials of the requester who most recently modified the\n associated pmPolicyAdminStatus object. If SNMP requests are\n made in which secModel/secName/secLevel are specified, then\n the specified credentials are retrieved from the local\n configuration datastore only if VACM is configured to\n allow access to the requester who most recently modified the\n associated pmPolicyAdminStatus object. See the Security\n Considerations section for more information.") pmPolicyActionScriptIndex = MibTableColumn((1, 3, 6, 1, 2, 1, 124, 1, 1, 8), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1,4294967295))).setMaxAccess("readonly") if mibBuilder.loadTexts: pmPolicyActionScriptIndex.setDescription("A pointer to the row or rows in the pmPolicyCodeTable that\n contain the action code for this policy. When a policy entry\n is created, a pmPolicyCodeIndex value unused by this policy's\n adminGroup will be assigned to this object.\n\n A PolicyAction is an operation performed on a\n set of elements for which the policy is active.\n\n Action evaluation stops immediately when any run-time\n exception is detected.\n\n When this condition is executed, if SNMP requests are made to\n the local system and secModel/secName/secLevel aren't\n specified, access to objects is under the security\n credentials of the requester who most recently modified the\n associated pmPolicyAdminStatus object. If SNMP requests are\n made in which secModel/secName/secLevel are specified, then\n the specified credentials are retrieved from the local\n configuration datastore only if VACM is configured to\n allow access to the requester who most recently modified the\n associated pmPolicyAdminStatus object. See the Security\n Considerations section for more information.") pmPolicyParameters = MibTableColumn((1, 3, 6, 1, 2, 1, 124, 1, 1, 9), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0,65535))).setMaxAccess("readcreate") if mibBuilder.loadTexts: pmPolicyParameters.setDescription('From time to time, policy scripts may seek one or more\n parameters (e.g., site-specific constants). These parameters\n may be installed with the script in this object and are\n accessible to the script via the getParameters() function. If\n it is necessary for multiple parameters to be passed to the\n script, the script can choose whatever encoding/delimiting\n mechanism is most appropriate.') pmPolicyConditionMaxLatency = MibTableColumn((1, 3, 6, 1, 2, 1, 124, 1, 1, 10), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0,2147483647))).setUnits('milliseconds').setMaxAccess("readcreate") if mibBuilder.loadTexts: pmPolicyConditionMaxLatency.setDescription('Every element under the control of this agent is\n re-checked periodically to see whether it is under control\n of this policy by re-running the condition for this policy.\n This object lets the manager control the maximum amount of\n time that may pass before an element is re-checked.\n\n In other words, in any given interval of this duration, all\n elements must be re-checked. Note that how the policy agent\n schedules the checking of various elements within this\n interval is an implementation-dependent matter.\n Implementations may wish to re-run a condition more\n quickly if they note a change to the role strings for an\n element.') pmPolicyActionMaxLatency = MibTableColumn((1, 3, 6, 1, 2, 1, 124, 1, 1, 11), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0,2147483647))).setUnits('milliseconds').setMaxAccess("readcreate") if mibBuilder.loadTexts: pmPolicyActionMaxLatency.setDescription("Every element that matches this policy's condition and is\n therefore under control of this policy will have this policy's\n action executed periodically to ensure that the element\n remains in the state dictated by the policy.\n This object lets the manager control the maximum amount of\n\n\n\n time that may pass before an element has the action run on\n it.\n\n In other words, in any given interval of this duration, all\n elements under control of this policy must have the action run\n on them. Note that how the policy agent schedules the policy\n action on various elements within this interval is an\n implementation-dependent matter.") pmPolicyMaxIterations = MibTableColumn((1, 3, 6, 1, 2, 1, 124, 1, 1, 12), Unsigned32()).setMaxAccess("readcreate") if mibBuilder.loadTexts: pmPolicyMaxIterations.setDescription("If a condition or action script iterates in loops too many\n times in one invocation, the execution environment may\n consider it in an infinite loop or otherwise not acting\n as intended and may be terminated by the execution\n environment. The execution environment will count the\n cumulative number of times all 'for' or 'while' loops iterated\n and will apply a threshold to determine when to terminate the\n script. What threshold the execution environment uses is an\n implementation-dependent manner, but the value of\n this object SHOULD be the basis for choosing the threshold for\n each script. The value of this object represents a\n policy-specific threshold and can be tuned for policies of\n varying workloads. If this value is zero, no\n threshold will be enforced except for any\n implementation-dependent maximum. Regardless of this value,\n the agent is allowed to terminate any script invocation that\n exceeds a local CPU or memory limitation.\n\n Note that the condition and action invocations are tracked\n separately.") pmPolicyDescription = MibTableColumn((1, 3, 6, 1, 2, 1, 124, 1, 1, 13), PmUTF8String()).setMaxAccess("readcreate") if mibBuilder.loadTexts: pmPolicyDescription.setDescription('A description of this rule and its significance, typically\n provided by a human.') pmPolicyMatches = MibTableColumn((1, 3, 6, 1, 2, 1, 124, 1, 1, 14), Gauge32()).setUnits('elements').setMaxAccess("readonly") if mibBuilder.loadTexts: pmPolicyMatches.setDescription('The number of elements that, in their most recent execution\n of the associated condition, were matched by the condition.') pmPolicyAbnormalTerminations = MibTableColumn((1, 3, 6, 1, 2, 1, 124, 1, 1, 15), Gauge32()).setUnits('elements').setMaxAccess("readonly") if mibBuilder.loadTexts: pmPolicyAbnormalTerminations.setDescription('The number of elements that, in their most recent execution\n of the associated condition or action, have experienced a\n run-time exception and terminated abnormally. Note that if a\n policy was experiencing a run-time exception while processing\n a particular element but runs normally on a subsequent\n invocation, this number can decline.') pmPolicyExecutionErrors = MibTableColumn((1, 3, 6, 1, 2, 1, 124, 1, 1, 16), Counter32()).setUnits('errors').setMaxAccess("readonly") if mibBuilder.loadTexts: pmPolicyExecutionErrors.setDescription("The total number of times that execution of this policy's\n condition or action has been terminated due to run-time\n exceptions.") pmPolicyDebugging = MibTableColumn((1, 3, 6, 1, 2, 1, 124, 1, 1, 17), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2,))).clone(namedValues=NamedValues(("off", 1), ("on", 2),)).clone('off')).setMaxAccess("readcreate") if mibBuilder.loadTexts: pmPolicyDebugging.setDescription('The status of debugging for this policy. If this is turned\n on(2), log entries will be created in the pmDebuggingTable\n for each run-time exception that is experienced by this\n policy.') pmPolicyAdminStatus = MibTableColumn((1, 3, 6, 1, 2, 1, 124, 1, 1, 18), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3,))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2), ("enabledAutoRemove", 3),))).setMaxAccess("readcreate") if mibBuilder.loadTexts: pmPolicyAdminStatus.setDescription('The administrative status of this policy.\n\n The policy will be valid only if the associated\n pmPolicyRowStatus is set to active(1) and this object is set\n to enabled(2) or enabledAutoRemove(3).\n\n If this object is set to enabledAutoRemove(3), the next time\n the associated schedule moves from the active state to the\n inactive state, this policy will immediately be deleted,\n including any associated entries in the pmPolicyCodeTable.\n\n The following related objects may not be changed unless this\n object is set to disabled(1):\n pmPolicyPrecedenceGroup, pmPolicyPrecedence,\n pmPolicySchedule, pmPolicyElementTypeFilter,\n pmPolicyConditionScriptIndex, pmPolicyActionScriptIndex,\n pmPolicyParameters, and any pmPolicyCodeTable row\n referenced by this policy.\n In order to change any of these parameters, the policy must\n be moved to the disabled(1) state, changed, and then\n re-enabled.\n\n When this policy moves to either enabled state from the\n disabled state, any cached values of policy condition must be\n erased, and any Policy or PolicyElement scratchpad values for\n this policy should be removed. Policy execution will begin by\n testing the policy condition on all appropriate elements.') pmPolicyStorageType = MibTableColumn((1, 3, 6, 1, 2, 1, 124, 1, 1, 19), StorageType()).setMaxAccess("readcreate") if mibBuilder.loadTexts: pmPolicyStorageType.setDescription("This object defines whether this policy and any associated\n entries in the pmPolicyCodeTable are kept in volatile storage\n and lost upon reboot or if this row is backed up by\n non-volatile or permanent storage.\n\n\n\n\n If the value of this object is 'permanent', the values for\n the associated pmPolicyAdminStatus object must remain\n writable.") pmPolicyRowStatus = MibTableColumn((1, 3, 6, 1, 2, 1, 124, 1, 1, 20), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: pmPolicyRowStatus.setDescription('The row status of this pmPolicyEntry.\n\n The status may not be set to active if any of the related\n entries in the pmPolicyCode table do not have a status of\n active or if any of the objects in this row are not set to\n valid values. Only the following objects may be modified\n while in the active state:\n pmPolicyParameters\n pmPolicyConditionMaxLatency\n pmPolicyActionMaxLatency\n pmPolicyDebugging\n pmPolicyAdminStatus\n\n If this row is deleted, any associated entries in the\n pmPolicyCodeTable will be deleted as well.') pmPolicyCodeTable = MibTable((1, 3, 6, 1, 2, 1, 124, 2), ) if mibBuilder.loadTexts: pmPolicyCodeTable.setDescription("The pmPolicyCodeTable stores the code for policy conditions and\n actions.\n\n An example of the relationships between the code table and the\n policy table follows:\n\n pmPolicyTable\n AdminGroup Index ConditionScriptIndex ActionScriptIndex\n A '' 1 1 2\n B 'oper' 1 1 2\n C 'oper' 2 3 4\n\n pmPolicyCodeTable\n AdminGroup ScriptIndex Segment Note\n\n\n\n '' 1 1 Filter for policy A\n '' 2 1 Action for policy A\n 'oper' 1 1 Filter for policy B\n 'oper' 2 1 Action 1/2 for policy B\n 'oper' 2 2 Action 2/2 for policy B\n 'oper' 3 1 Filter for policy C\n 'oper' 4 1 Action for policy C\n\n In this example, there are 3 policies: 1 in the '' adminGroup,\n and 2 in the 'oper' adminGroup. Policy A has been assigned\n script indexes 1 and 2 (these script indexes are assigned out of\n a separate pool per adminGroup), with 1 code segment each for\n the filter and the action. Policy B has been assigned script\n indexes 1 and 2 (out of the pool for the 'oper' adminGroup).\n While the filter has 1 segment, the action is longer and is\n loaded into 2 segments. Finally, Policy C has been assigned\n script indexes 3 and 4, with 1 code segment each for the filter\n and the action.") pmPolicyCodeEntry = MibTableRow((1, 3, 6, 1, 2, 1, 124, 2, 1), ).setIndexNames((0, "POLICY-BASED-MANAGEMENT-MIB", "pmPolicyAdminGroup"), (0, "POLICY-BASED-MANAGEMENT-MIB", "pmPolicyCodeScriptIndex"), (0, "POLICY-BASED-MANAGEMENT-MIB", "pmPolicyCodeSegment")) if mibBuilder.loadTexts: pmPolicyCodeEntry.setDescription('An entry in the policy code table representing one code\n segment. Entries that share a common AdminGroup/ScriptIndex\n pair make up a single script. Valid values of ScriptIndex are\n retrieved from pmPolicyConditionScriptIndex and\n pmPolicyActionScriptIndex after a pmPolicyEntry is\n created. Segments of code can then be written to this table\n with the learned ScriptIndex values.\n\n The StorageType of this entry is determined by the value of\n the associated pmPolicyStorageType.\n\n The pmPolicyAdminGroup element of the index represents the\n administrative group of the policy of which this code entry is\n a part.') pmPolicyCodeScriptIndex = MibTableColumn((1, 3, 6, 1, 2, 1, 124, 2, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1,4294967295))) if mibBuilder.loadTexts: pmPolicyCodeScriptIndex.setDescription('A unique index for each policy condition or action. The code\n for each such condition or action may be composed of multiple\n entries in this table if the code cannot fit in one entry.\n Values of pmPolicyCodeScriptIndex may not be used unless\n they have previously been assigned in the\n pmPolicyConditionScriptIndex or pmPolicyActionScriptIndex\n objects.') pmPolicyCodeSegment = MibTableColumn((1, 3, 6, 1, 2, 1, 124, 2, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1,4294967295))) if mibBuilder.loadTexts: pmPolicyCodeSegment.setDescription('A unique index for each segment of a policy condition or\n action.\n\n When a policy condition or action spans multiple entries in\n this table, the code of that policy starts from the\n lowest-numbered segment and continues with increasing segment\n values until it ends with the highest-numbered segment.') pmPolicyCodeText = MibTableColumn((1, 3, 6, 1, 2, 1, 124, 2, 1, 3), PmUTF8String().subtype(subtypeSpec=ValueSizeConstraint(1,1024))).setMaxAccess("readcreate") if mibBuilder.loadTexts: pmPolicyCodeText.setDescription('A segment of policy code (condition or action). Lengthy\n Policy conditions or actions may be stored in multiple\n segments in this table that share the same value of\n pmPolicyCodeScriptIndex. When multiple segments are used, it\n is recommended that each segment be as large as is practical.\n\n Entries in this table are associated with policies by values\n of the pmPolicyConditionScriptIndex and\n pmPolicyActionScriptIndex objects. If the status of the\n related policy is active, then this object may not be\n modified.') pmPolicyCodeStatus = MibTableColumn((1, 3, 6, 1, 2, 1, 124, 2, 1, 4), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: pmPolicyCodeStatus.setDescription('The status of this code entry.\n\n Entries in this table are associated with policies by values\n of the pmPolicyConditionScriptIndex and\n pmPolicyActionScriptIndex objects. If the status of the\n related policy is active, then this object can not be\n modified (i.e., deleted or set to notInService), nor may new\n entries be created.\n\n If the status of this object is active, no objects in this\n row may be modified.') pmElementTypeRegTable = MibTable((1, 3, 6, 1, 2, 1, 124, 3), ) if mibBuilder.loadTexts: pmElementTypeRegTable.setDescription("A registration table for element types managed by this\n system.\n\n The Element Type Registration table allows the manager to\n learn what element types are being managed by the system and\n to register new types, if necessary. An element type is\n registered by providing the OID of an SNMP object (i.e.,\n without the instance). Each SNMP instance that exists under\n that object is a distinct element. The index of the element is\n the index part of the discovered OID. This index will be\n supplied to policy conditions and actions so that this code\n can inspect and configure the element.\n\n For example, this table might contain the following entries.\n The first three are agent-installed, and the 4th was\n downloaded by a management station:\n\n OIDPrefix MaxLatency Description StorageType\n ifEntry 100 mS interfaces - builtin readOnly\n 0.0 100 mS system element - builtin readOnly\n frCircuitEntry 100 mS FR Circuits - builtin readOnly\n hrSWRunEntry 60 sec Running Processes volatile\n\n\n\n\n Note that agents may automatically configure elements in this\n table for frequently used element types (interfaces, circuits,\n etc.). In particular, it may configure elements for whom\n discovery is optimized in one or both of the following ways:\n\n 1. The agent may discover elements by scanning internal data\n structures as opposed to issuing local SNMP requests. It is\n possible to recreate the exact semantics described in this\n table even if local SNMP requests are not issued.\n\n 2. The agent may receive asynchronous notification of new\n elements (for example, 'card inserted') and use that\n information to instantly create elements rather than\n through polling. A similar feature might be available for\n the deletion of elements.\n\n Note that the disposition of agent-installed entries is\n described by the pmPolicyStorageType object.") pmElementTypeRegEntry = MibTableRow((1, 3, 6, 1, 2, 1, 124, 3, 1), ).setIndexNames((0, "POLICY-BASED-MANAGEMENT-MIB", "pmElementTypeRegOIDPrefix")) if mibBuilder.loadTexts: pmElementTypeRegEntry.setDescription("A registration of an element type.\n\n Note that some values of this table's index may result in an\n instance name that exceeds a length of 128 sub-identifiers,\n which exceeds the maximum for the SNMP protocol.\n Implementations should take care to avoid such values.") pmElementTypeRegOIDPrefix = MibTableColumn((1, 3, 6, 1, 2, 1, 124, 3, 1, 2), ObjectIdentifier()) if mibBuilder.loadTexts: pmElementTypeRegOIDPrefix.setDescription("This OBJECT IDENTIFIER value identifies a table in which all\n\n\n\n elements of this type will be found. Every row in the\n referenced table will be treated as an element for the\n period of time that it remains in the table. The agent will\n then execute policy conditions and actions as appropriate on\n each of these elements.\n\n This object identifier value is specified down to the 'entry'\n component (e.g., ifEntry) of the identifier.\n\n The index of each discovered row will be passed to each\n invocation of the policy condition and policy action.\n\n The actual mechanism by which instances are discovered is\n implementation dependent. Periodic walks of the table to\n discover the rows in the table is one such mechanism. This\n mechanism has the advantage that it can be performed by an\n agent with no knowledge of the names, syntax, or semantics\n of the MIB objects in the table. This mechanism also serves as\n the reference design. Other implementation-dependent\n mechanisms may be implemented that are more efficient (perhaps\n because they are hard coded) or that don't require polling.\n These mechanisms must discover the same elements as would the\n table-walking reference design.\n\n This object can contain a OBJECT IDENTIFIER, '0.0'.\n '0.0' represents the single instance of the system\n itself and provides an execution context for policies to\n operate on the 'system element' and on MIB objects\n modeled as scalars. For example, '0.0' gives an execution\n context for policy-based selection of the operating system\n code version (likely modeled as a scalar MIB object). The\n element type '0.0' always exists; as a consequence, no actual\n discovery will take place, and the pmElementTypeRegMaxLatency\n object will have no effect for the '0.0' element\n type. However, if the '0.0' element type is not registered in\n the table, policies will not be executed on the '0.0' element.\n\n When a policy is invoked on behalf of a '0.0' entry in this\n table, the element name will be '0.0', and there is no index\n of 'this element' (in other words, it has zero length).\n\n As this object is used in the index for the\n pmElementTypeRegTable, users of this table should be careful\n not to create entries that would result in instance names with\n more than 128 sub-identifiers.") pmElementTypeRegMaxLatency = MibTableColumn((1, 3, 6, 1, 2, 1, 124, 3, 1, 3), Unsigned32()).setUnits('milliseconds').setMaxAccess("readcreate") if mibBuilder.loadTexts: pmElementTypeRegMaxLatency.setDescription('The PM agent is responsible for discovering new elements of\n types that are registered. This object lets the manager\n control the maximum amount of time that may pass between the\n time an element is created and when it is discovered.\n\n In other words, in any given interval of this duration, all\n new elements must be discovered. Note that how the policy\n agent schedules the checking of various elements within this\n interval is an implementation-dependent matter.') pmElementTypeRegDescription = MibTableColumn((1, 3, 6, 1, 2, 1, 124, 3, 1, 4), PmUTF8String().subtype(subtypeSpec=ValueSizeConstraint(0,64))).setMaxAccess("readcreate") if mibBuilder.loadTexts: pmElementTypeRegDescription.setDescription('A descriptive label for this registered type.') pmElementTypeRegStorageType = MibTableColumn((1, 3, 6, 1, 2, 1, 124, 3, 1, 5), StorageType()).setMaxAccess("readcreate") if mibBuilder.loadTexts: pmElementTypeRegStorageType.setDescription("This object defines whether this row is kept\n in volatile storage and lost upon reboot or\n backed up by non-volatile or permanent storage.\n\n If the value of this object is 'permanent', no values in the\n associated row have to be writable.") pmElementTypeRegRowStatus = MibTableColumn((1, 3, 6, 1, 2, 1, 124, 3, 1, 6), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: pmElementTypeRegRowStatus.setDescription('The status of this registration entry.\n\n If the value of this object is active, no objects in this row\n may be modified.') pmRoleTable = MibTable((1, 3, 6, 1, 2, 1, 124, 4), ) if mibBuilder.loadTexts: pmRoleTable.setDescription("The pmRoleTable is a read-create table that organizes role\n strings sorted by element. This table is used to create and\n modify role strings and their associations, as well as to allow\n a management station to learn about the existence of roles and\n their associations.\n\n It is the responsibility of the agent to keep track of any\n re-indexing of the underlying SNMP elements and to continue to\n associate role strings with the element with which they were\n initially configured.\n\n Policy MIB agents that have elements in multiple local SNMP\n contexts have to allow some roles to be assigned to elements\n in particular contexts. This is particularly true when some\n elements have the same names in different contexts and the\n context is required to disambiguate them. In those situations,\n a value for the pmRoleContextName may be provided. When a\n pmRoleContextName value is not provided, the assignment is to\n the element in the default context.\n\n Policy MIB agents that discover elements on other systems and\n execute policies on their behalf need to have access to role\n information for these remote elements. In such situations,\n role assignments for other systems can be stored in this table\n by providing values for the pmRoleContextEngineID parameters.\n\n For example:\n Example:\n element role context ctxEngineID #comment\n ifindex.1 gold local, default context\n ifindex.2 gold local, default context\n repeaterid.1 foo rptr1 local, rptr1 context\n repeaterid.1 bar rptr2 local, rptr2 context\n ifindex.1 gold '' A different system\n ifindex.1 gold '' B different system\n\n The agent must store role string associations in non-volatile\n storage.") pmRoleEntry = MibTableRow((1, 3, 6, 1, 2, 1, 124, 4, 1), ).setIndexNames((0, "POLICY-BASED-MANAGEMENT-MIB", "pmRoleElement"), (0, "POLICY-BASED-MANAGEMENT-MIB", "pmRoleContextName"), (0, "POLICY-BASED-MANAGEMENT-MIB", "pmRoleContextEngineID"), (0, "POLICY-BASED-MANAGEMENT-MIB", "pmRoleString")) if mibBuilder.loadTexts: pmRoleEntry.setDescription('A role string entry associates a role string with an\n individual element.\n\n Note that some combinations of index values may result in an\n instance name that exceeds a length of 128 sub-identifiers,\n which exceeds the maximum for the SNMP\n protocol. Implementations should take care to avoid such\n combinations.') pmRoleElement = MibTableColumn((1, 3, 6, 1, 2, 1, 124, 4, 1, 1), RowPointer()) if mibBuilder.loadTexts: pmRoleElement.setDescription("The element with which this role string is associated.\n\n For example, if the element is interface 3, then this object\n will contain the OID for 'ifIndex.3'.\n\n If the agent assigns new indexes in the MIB table to\n represent the same underlying element (re-indexing), the\n agent will modify this value to contain the new index for the\n underlying element.\n\n As this object is used in the index for the pmRoleTable,\n users of this table should be careful not to create entries\n that would result in instance names with more than 128\n sub-identifiers.") pmRoleContextName = MibTableColumn((1, 3, 6, 1, 2, 1, 124, 4, 1, 2), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(0,32))) if mibBuilder.loadTexts: pmRoleContextName.setDescription('If the associated element is not in the default SNMP context\n for the target system, this object is used to identify the\n context. If the element is in the default context, this object\n is equal to the empty string.') pmRoleContextEngineID = MibTableColumn((1, 3, 6, 1, 2, 1, 124, 4, 1, 3), OctetString().subtype(subtypeSpec=ConstraintsUnion(ValueSizeConstraint(0,0),ValueSizeConstraint(5,32),))) if mibBuilder.loadTexts: pmRoleContextEngineID.setDescription('If the associated element is on a remote system, this object\n is used to identify the remote system. This object contains\n the contextEngineID of the system for which this role string\n assignment is valid. If the element is on the local system\n this object will be the empty string.') pmRoleString = MibTableColumn((1, 3, 6, 1, 2, 1, 124, 4, 1, 4), PmUTF8String().subtype(subtypeSpec=ValueSizeConstraint(0,64))) if mibBuilder.loadTexts: pmRoleString.setDescription('The role string that is associated with an element through\n this table. All role strings must have been successfully\n transformed by Stringprep RFC 3454. Management stations\n must perform this translation and must only set this object\n to string values that have been transformed.\n\n A role string is an administratively specified characteristic\n of a managed element (for example, an interface). It is a\n selector for policy rules, that determines the applicability of\n the rule to a particular managed element.') pmRoleStatus = MibTableColumn((1, 3, 6, 1, 2, 1, 124, 4, 1, 5), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: pmRoleStatus.setDescription('The status of this role string.\n\n\n\n\n\n If the value of this object is active, no object in this row\n may be modified.') pmCapabilitiesTable = MibTable((1, 3, 6, 1, 2, 1, 124, 5), ) if mibBuilder.loadTexts: pmCapabilitiesTable.setDescription("The pmCapabilitiesTable contains a description of\n the inherent capabilities of the system so that\n management stations can learn of an agent's capabilities and\n differentially install policies based on the capabilities.\n\n Capabilities are expressed at the system level. There can be\n variation in how capabilities are realized from one vendor or\n model to the next. Management systems should consider these\n differences before selecting which policy to install in a\n system.") pmCapabilitiesEntry = MibTableRow((1, 3, 6, 1, 2, 1, 124, 5, 1), ).setIndexNames((0, "POLICY-BASED-MANAGEMENT-MIB", "pmCapabilitiesType")) if mibBuilder.loadTexts: pmCapabilitiesEntry.setDescription("A capabilities entry holds an OID indicating support for a\n particular capability. Capabilities may include hardware and\n software functions and the implementation of MIB\n Modules. The semantics of the OID are defined in the\n description of pmCapabilitiesType.\n\n Entries appear in this table if any element in the system has\n a specific capability. A capability should appear in this\n table only once, regardless of the number of elements in the\n system with that capability. An entry is removed from this\n table when the last element in the system that has the\n capability is removed. In some cases, capabilities are\n dynamic and exist only in software. This table should have an\n entry for the capability even if there are no current\n instances. Examples include systems with database or WEB\n services. While the system has the ability to create new\n databases or WEB services, the entry should exist. In these\n cases, the ability to create these services could come from\n other processes that are running in the system, even though\n there are no currently open databases or WEB servers running.\n\n\n\n Capabilities may include the implementation of MIB Modules\n but need not be limited to those that represent MIB Modules\n with one or more configurable objects. It may also be\n valuable to include entries for capabilities that do not\n include configuration objects, as that information, in\n combination with other entries in this table, might be used\n by the management software to determine whether to\n install a policy.\n\n Vendor software may also add entries in this table to express\n capabilities from their private branch.\n\n Note that some values of this table's index may result in an\n instance name that exceeds a length of 128 sub-identifiers,\n which exceeds the maximum for the SNMP\n protocol. Implementations should take care to avoid such\n values.") pmCapabilitiesType = MibTableColumn((1, 3, 6, 1, 2, 1, 124, 5, 1, 1), ObjectIdentifier()).setMaxAccess("readonly") if mibBuilder.loadTexts: pmCapabilitiesType.setDescription("There are three types of OIDs that may be present in the\n pmCapabilitiesType object:\n\n 1) The OID of a MODULE-COMPLIANCE macro that represents the\n highest level of compliance realized by the agent for that\n MIB Module. For example, an agent that implements the OSPF\n MIB Module at the highest level of compliance would have the\n value of '1.3.6.1.2.1.14.15.2' in the pmCapabilitiesType\n object. For software that realizes standard MIB\n Modules that do not have compliance statements, the base OID\n of the MIB Module should be used instead. If the OSPF MIB\n Module had not been created with a compliance statement, then\n the correct value of the pmCapabilitiesType would be\n '1.3.6.1.2.1.14'. In the cases where multiple compliance\n statements in a MIB Module are supported by the agent, and\n where one compliance statement does not by definition include\n the other, each of the compliance OIDs would have entries in\n this table.\n\n\n\n\n MIB Documents can contain more than one MIB Module. In the\n case of OSPF, there is a second MIB Module\n that describes notifications for the OSPF Version 2 Protocol.\n If the agent also realizes these functions, an entry will\n also exist for those capabilities in this table.\n\n 2) Vendors should install OIDs in this table that represent\n vendor-specific capabilities. These capabilities can be\n expressed just as those described above for MIB Modules on\n the standards track. In addition, vendors may install any\n OID they desire from their registered branch. The OIDs may be\n at any level of granularity, from the root of their entire\n branch to an instance of a single OID. There is no\n restriction on the number of registrations they may make,\n though care should be taken to avoid unnecessary entries.\n\n 3) OIDs that represent one capability or a collection of\n capabilities that could be any collection of MIB Objects or\n hardware or software functions may be created in working\n groups and registered in a MIB Module. Other entities (e.g.,\n vendors) may also make registrations. Software will register\n these standard capability OIDs, as well as vendor specific\n OIDs.\n\n If the OID for a known capability is not present in the\n table, then it should be assumed that the capability is not\n implemented.\n\n As this object is used in the index for the\n pmCapabilitiesTable, users of this table should be careful\n not to create entries that would result in instance names\n with more than 128 sub-identifiers.") pmCapabilitiesOverrideTable = MibTable((1, 3, 6, 1, 2, 1, 124, 6), ) if mibBuilder.loadTexts: pmCapabilitiesOverrideTable.setDescription('The pmCapabilitiesOverrideTable allows management stations\n to override pmCapabilitiesTable entries that have been\n registered by the agent. This facility can be used to avoid\n situations in which managers in the network send policies to\n a system that has advertised a capability in the\n pmCapabilitiesTable but that should not be installed on this\n particular system. One example could be newly deployed\n\n\n\n equipment that is still in a trial state in a trial state or\n resources reserved for some other administrative reason.\n This table can also be used to override entries in the\n pmCapabilitiesTable through the use of the\n pmCapabilitiesOverrideState object. Capabilities can also be\n declared available in this table that were not registered in\n the pmCapabilitiesTable. A management application can make\n an entry in this table for any valid OID and declare the\n capability available by setting the\n pmCapabilitiesOverrideState for that row to valid(1).') pmCapabilitiesOverrideEntry = MibTableRow((1, 3, 6, 1, 2, 1, 124, 6, 1), ).setIndexNames((0, "POLICY-BASED-MANAGEMENT-MIB", "pmCapabilitiesOverrideType")) if mibBuilder.loadTexts: pmCapabilitiesOverrideEntry.setDescription("An entry in this table indicates whether a particular\n capability is valid or invalid.\n\n Note that some values of this table's index may result in an\n instance name that exceeds a length of 128 sub-identifiers,\n which exceeds the maximum for the SNMP\n protocol. Implementations should take care to avoid such\n values.") pmCapabilitiesOverrideType = MibTableColumn((1, 3, 6, 1, 2, 1, 124, 6, 1, 1), ObjectIdentifier()) if mibBuilder.loadTexts: pmCapabilitiesOverrideType.setDescription('This is the OID of the capability that is declared valid or\n invalid by the pmCapabilitiesOverrideState value for this\n row. Any valid OID, as described in the pmCapabilitiesTable,\n is permitted in the pmCapabilitiesOverrideType object. This\n means that capabilities can be expressed at any level, from a\n specific instance of an object to a table or entire module.\n There are no restrictions on whether these objects are from\n standards track MIB documents or in the private branch of the\n MIB.\n\n\n\n If an entry exists in this table for which there is a\n corresponding entry in the pmCapabilitiesTable, then this entry\n shall have precedence over the entry in the\n pmCapabilitiesTable. All entries in this table must be\n preserved across reboots.\n\n As this object is used in the index for the\n pmCapabilitiesOverrideTable, users of this table should be\n careful not to create entries that would result in instance\n names with more than 128 sub-identifiers.') pmCapabilitiesOverrideState = MibTableColumn((1, 3, 6, 1, 2, 1, 124, 6, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2,))).clone(namedValues=NamedValues(("invalid", 1), ("valid", 2),))).setMaxAccess("readcreate") if mibBuilder.loadTexts: pmCapabilitiesOverrideState.setDescription('A pmCapabilitiesOverrideState of invalid indicates that\n management software should not send policies to this system\n for the capability identified in the\n pmCapabilitiesOverrideType for this row of the table. This\n behavior is the same whether the capability represented by\n the pmCapabilitiesOverrideType exists only in this table\n (that is, it was installed by an external management\n application) or exists in this table as well as the\n pmCapabilitiesTable. This would be the case when a manager\n wanted to disable a capability that the native management\n system found and registered in the pmCapabilitiesTable.\n\n An entry in this table that has a pmCapabilitiesOverrideState\n of valid should be treated as though it appeared in the\n pmCapabilitiesTable. If the entry also exists in the\n pmCapabilitiesTable in the pmCapabilitiesType object, and if\n the value of this object is valid, then the system shall\n operate as though this entry did not exist and policy\n installations and executions will continue in a normal\n fashion.') pmCapabilitiesOverrideRowStatus = MibTableColumn((1, 3, 6, 1, 2, 1, 124, 6, 1, 3), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: pmCapabilitiesOverrideRowStatus.setDescription('The row status of this pmCapabilitiesOverrideEntry.\n\n\n\n If the value of this object is active, no object in this row\n may be modified.') pmSchedLocalTime = MibScalar((1, 3, 6, 1, 2, 1, 124, 7), DateAndTime().subtype(subtypeSpec=ValueSizeConstraint(11,11)).setFixedLength(11)).setMaxAccess("readonly") if mibBuilder.loadTexts: pmSchedLocalTime.setDescription('The local time used by the scheduler. Schedules that\n refer to calendar time will use the local time indicated\n by this object. An implementation MUST return all 11 bytes\n of the DateAndTime textual-convention so that a manager\n may retrieve the offset from GMT time.') pmSchedTable = MibTable((1, 3, 6, 1, 2, 1, 124, 8), ) if mibBuilder.loadTexts: pmSchedTable.setDescription('This table defines schedules for policies.') pmSchedEntry = MibTableRow((1, 3, 6, 1, 2, 1, 124, 8, 1), ).setIndexNames((0, "POLICY-BASED-MANAGEMENT-MIB", "pmSchedIndex")) if mibBuilder.loadTexts: pmSchedEntry.setDescription('An entry describing a particular schedule.\n\n Unless noted otherwise, writable objects of this row can be\n modified independently of the current value of pmSchedRowStatus,\n pmSchedAdminStatus and pmSchedOperStatus. In particular, it\n is legal to modify pmSchedWeekDay, pmSchedMonth, and\n pmSchedDay when pmSchedRowStatus is active.') pmSchedIndex = MibTableColumn((1, 3, 6, 1, 2, 1, 124, 8, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1,4294967295))) if mibBuilder.loadTexts: pmSchedIndex.setDescription('The locally unique, administratively assigned index for this\n scheduling entry.') pmSchedGroupIndex = MibTableColumn((1, 3, 6, 1, 2, 1, 124, 8, 1, 2), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1,4294967295))).setMaxAccess("readcreate") if mibBuilder.loadTexts: pmSchedGroupIndex.setDescription('The locally unique, administratively assigned index for the\n schedule group this scheduling entry belongs to.\n\n To assign multiple schedule entries to the same group, the\n pmSchedGroupIndex of each entry in the group will be set to\n the same value. This pmSchedGroupIndex value must be equal to\n the pmSchedIndex of one of the entries in the group. If the\n entry whose pmSchedIndex equals the pmSchedGroupIndex\n for the group is deleted, the agent will assign a new\n pmSchedGroupIndex to all remaining members of the group.\n\n If an entry is not a member of a group, its pmSchedGroupIndex\n must be assigned to the value of its pmSchedIndex.\n\n Policies that are controlled by a group of schedule entries\n are active when any schedule in the group is active.') pmSchedDescr = MibTableColumn((1, 3, 6, 1, 2, 1, 124, 8, 1, 3), PmUTF8String().clone(hexValue="")).setMaxAccess("readcreate") if mibBuilder.loadTexts: pmSchedDescr.setDescription('The human-readable description of the purpose of this\n scheduling entry.') pmSchedTimePeriod = MibTableColumn((1, 3, 6, 1, 2, 1, 124, 8, 1, 4), PmUTF8String().subtype(subtypeSpec=ValueSizeConstraint(0,31))).setMaxAccess("readcreate") if mibBuilder.loadTexts: pmSchedTimePeriod.setDescription("The overall range of calendar dates and times over which this\n schedule is active. It is stored in a slightly extended version\n of the format for a 'period-explicit' defined in RFC 2445.\n This format is expressed as a string representing the\n starting date and time, in which the character 'T' indicates\n the beginning of the time portion, followed by the solidus\n character, '/', followed by a similar string representing an\n end date and time. The start of the period MUST be before the\n end of the period. Date-Time values are expressed as\n substrings of the form 'yyyymmddThhmmss'. For example:\n\n 20000101T080000/20000131T130000\n\n January 1, 2000, 0800 through January 31, 2000, 1PM\n\n The 'Date with UTC time' format defined in RFC 2445 in which\n the Date-Time string ends with the character 'Z' is not\n allowed.\n\n This 'period-explicit' format is also extended to allow two\n special cases in which one of the Date-Time strings is\n replaced with a special string defined in RFC 2445:\n\n 1. If the first Date-Time value is replaced with the string\n 'THISANDPRIOR', then the value indicates that the schedule\n is active at any time prior to the Date-Time that appears\n after the '/'.\n\n 2. If the second Date-Time is replaced with the string\n 'THISANDFUTURE', then the value indicates that the schedule\n is active at any time after the Date-Time that appears\n before the '/'.\n\n\n\n\n Note that although RFC 2445 defines these two strings, they are\n not specified for use in the 'period-explicit' format. The use\n of these strings represents an extension to the\n 'period-explicit' format.") pmSchedMonth = MibTableColumn((1, 3, 6, 1, 2, 1, 124, 8, 1, 5), Bits().clone(namedValues=NamedValues(("january", 0), ("february", 1), ("march", 2), ("april", 3), ("may", 4), ("june", 5), ("july", 6), ("august", 7), ("september", 8), ("october", 9), ("november", 10), ("december", 11),)).clone(namedValues=NamedValues(("january", 0), ("february", 1), ("march", 2), ("april", 3), ("may", 4), ("june", 5), ("july", 6), ("august", 7), ("september", 8), ("october", 9), ("november", 10), ("december", 11),))).setMaxAccess("readcreate") if mibBuilder.loadTexts: pmSchedMonth.setDescription('Within the overall time period specified in the\n pmSchedTimePeriod object, the value of this object specifies\n the specific months within that time period when the schedule\n is active. Setting all bits will cause the schedule to act\n independently of the month.') pmSchedDay = MibTableColumn((1, 3, 6, 1, 2, 1, 124, 8, 1, 6), Bits().clone(namedValues=NamedValues(("d1", 0), ("d2", 1), ("d3", 2), ("d4", 3), ("d5", 4), ("d6", 5), ("d7", 6), ("d8", 7), ("d9", 8), ("d10", 9), ("d11", 10), ("d12", 11), ("d13", 12), ("d14", 13), ("d15", 14), ("d16", 15), ("d17", 16), ("d18", 17), ("d19", 18), ("d20", 19), ("d21", 20), ("d22", 21), ("d23", 22), ("d24", 23), ("d25", 24), ("d26", 25), ("d27", 26), ("d28", 27), ("d29", 28), ("d30", 29), ("d31", 30), ("r1", 31), ("r2", 32), ("r3", 33), ("r4", 34), ("r5", 35), ("r6", 36), ("r7", 37), ("r8", 38), ("r9", 39), ("r10", 40), ("r11", 41), ("r12", 42), ("r13", 43), ("r14", 44), ("r15", 45), ("r16", 46), ("r17", 47), ("r18", 48), ("r19", 49), ("r20", 50), ("r21", 51), ("r22", 52), ("r23", 53), ("r24", 54), ("r25", 55), ("r26", 56), ("r27", 57), ("r28", 58), ("r29", 59), ("r30", 60), ("r31", 61),)).clone(namedValues=NamedValues(("d1", 0), ("d2", 1), ("d3", 2), ("d4", 3), ("d5", 4), ("d6", 5), ("d7", 6), ("d8", 7), ("d9", 8), ("d10", 9), ("d11", 10), ("d12", 11), ("d13", 12), ("d14", 13), ("d15", 14), ("d16", 15), ("d17", 16), ("d18", 17), ("d19", 18), ("d20", 19), ("d21", 20), ("d22", 21), ("d23", 22), ("d24", 23), ("d25", 24), ("d26", 25), ("d27", 26), ("d28", 27), ("d29", 28), ("d30", 29), ("d31", 30), ("r1", 31), ("r2", 32), ("r3", 33), ("r4", 34), ("r5", 35), ("r6", 36), ("r7", 37), ("r8", 38), ("r9", 39), ("r10", 40), ("r11", 41), ("r12", 42), ("r13", 43), ("r14", 44), ("r15", 45), ("r16", 46), ("r17", 47), ("r18", 48), ("r19", 49), ("r20", 50), ("r21", 51), ("r22", 52), ("r23", 53), ("r24", 54), ("r25", 55), ("r26", 56), ("r27", 57), ("r28", 58), ("r29", 59), ("r30", 60), ("r31", 61),))).setMaxAccess("readcreate") if mibBuilder.loadTexts: pmSchedDay.setDescription("Within the overall time period specified in the\n pmSchedTimePeriod object, the value of this object specifies\n the specific days of the month within that time period when\n the schedule is active.\n\n There are two sets of bits one can use to define the day\n within a month:\n\n Enumerations starting with the letter 'd' indicate a\n day in a month relative to the first day of a month.\n The first day of the month can therefore be specified\n by setting the bit d1(0), and d31(30) means the last\n day of a month with 31 days.\n\n Enumerations starting with the letter 'r' indicate a\n day in a month in reverse order, relative to the last\n day of a month. The last day in the month can therefore\n be specified by setting the bit r1(31), and r31(61) means\n the first day of a month with 31 days.\n\n Setting multiple bits will include several days in the set\n of possible days for this schedule. Setting all bits starting\n with the letter 'd' or all bits starting with the letter 'r'\n will cause the schedule to act independently of the day of the\n month.") pmSchedWeekDay = MibTableColumn((1, 3, 6, 1, 2, 1, 124, 8, 1, 7), Bits().clone(namedValues=NamedValues(("sunday", 0), ("monday", 1), ("tuesday", 2), ("wednesday", 3), ("thursday", 4), ("friday", 5), ("saturday", 6),)).clone(namedValues=NamedValues(("sunday", 0), ("monday", 1), ("tuesday", 2), ("wednesday", 3), ("thursday", 4), ("friday", 5), ("saturday", 6),))).setMaxAccess("readcreate") if mibBuilder.loadTexts: pmSchedWeekDay.setDescription('Within the overall time period specified in the\n pmSchedTimePeriod object, the value of this object specifies\n the specific days of the week within that time period when\n the schedule is active. Setting all bits will cause the\n schedule to act independently of the day of the week.') pmSchedTimeOfDay = MibTableColumn((1, 3, 6, 1, 2, 1, 124, 8, 1, 8), PmUTF8String().subtype(subtypeSpec=ValueSizeConstraint(0,15)).clone(hexValue="543030303030302F54323335393539")).setMaxAccess("readcreate") if mibBuilder.loadTexts: pmSchedTimeOfDay.setDescription("Within the overall time period specified in the\n pmSchedTimePeriod object, the value of this object specifies\n the range of times in a day when the schedule is active.\n\n This value is stored in a format based on the RFC 2445 format\n for 'time': The character 'T' followed by a 'time' string,\n followed by the solidus character, '/', followed by the\n character 'T', followed by a second time string. The first time\n indicates the beginning of the range, and the second time\n indicates the end. Thus, this value takes the following\n form:\n\n 'Thhmmss/Thhmmss'.\n\n The second substring always identifies a later time than the\n first substring. To allow for ranges that span midnight,\n however, the value of the second string may be smaller than\n the value of the first substring. Thus, 'T080000/T210000'\n identifies the range from 0800 until 2100, whereas\n 'T210000/T080000' identifies the range from 2100 until 0800 of\n the following day.\n\n When a range spans midnight, by definition it includes parts\n of two successive days. When one of these days is also\n selected by either the MonthOfYearMask, DayOfMonthMask, and/or\n DayOfWeekMask, but the other day is not, then the policy is\n active only during the portion of the range that falls on the\n selected day. For example, if the range extends from 2100\n\n\n\n until 0800, and the day of week mask selects Monday and\n Tuesday, then the policy is active during the following three\n intervals:\n\n From midnight Sunday until 0800 Monday\n From 2100 Monday until 0800 Tuesday\n From 2100 Tuesday until 23:59:59 Tuesday\n\n Setting this value to 'T000000/T235959' will cause the\n schedule to act independently of the time of day.") pmSchedLocalOrUtc = MibTableColumn((1, 3, 6, 1, 2, 1, 124, 8, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2,))).clone(namedValues=NamedValues(("localTime", 1), ("utcTime", 2),)).clone('utcTime')).setMaxAccess("readcreate") if mibBuilder.loadTexts: pmSchedLocalOrUtc.setDescription('This object indicates whether the times represented in the\n TimePeriod object and in the various Mask objects represent\n local times or UTC times.') pmSchedStorageType = MibTableColumn((1, 3, 6, 1, 2, 1, 124, 8, 1, 10), StorageType().clone('volatile')).setMaxAccess("readcreate") if mibBuilder.loadTexts: pmSchedStorageType.setDescription("This object defines whether this schedule entry is kept\n in volatile storage and lost upon reboot or\n backed up by non-volatile or permanent storage.\n\n Conceptual rows having the value 'permanent' must allow write\n access to the columnar objects pmSchedDescr, pmSchedWeekDay,\n pmSchedMonth, and pmSchedDay.\n\n If the value of this object is 'permanent', no values in the\n associated row have to be writable.") pmSchedRowStatus = MibTableColumn((1, 3, 6, 1, 2, 1, 124, 8, 1, 11), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: pmSchedRowStatus.setDescription('The status of this schedule entry.\n\n If the value of this object is active, no object in this row\n may be modified.') pmTrackingPETable = MibTable((1, 3, 6, 1, 2, 1, 124, 9), ) if mibBuilder.loadTexts: pmTrackingPETable.setDescription('The pmTrackingPETable describes what elements\n are active (under control of) a policy. This table is indexed\n in order to optimize retrieval of the entire status for a\n given policy.') pmTrackingPEEntry = MibTableRow((1, 3, 6, 1, 2, 1, 124, 9, 1), ).setIndexNames((0, "POLICY-BASED-MANAGEMENT-MIB", "pmPolicyIndex"), (0, "POLICY-BASED-MANAGEMENT-MIB", "pmTrackingPEElement"), (0, "POLICY-BASED-MANAGEMENT-MIB", "pmTrackingPEContextName"), (0, "POLICY-BASED-MANAGEMENT-MIB", "pmTrackingPEContextEngineID")) if mibBuilder.loadTexts: pmTrackingPEEntry.setDescription('An entry in the pmTrackingPETable. The pmPolicyIndex in\n the index specifies the policy tracked by this entry.\n\n Note that some combinations of index values may result in an\n instance name that exceeds a length of 128 sub-identifiers,\n which exceeds the maximum for the SNMP\n protocol. Implementations should take care to avoid such\n combinations.') pmTrackingPEElement = MibTableColumn((1, 3, 6, 1, 2, 1, 124, 9, 1, 1), RowPointer()) if mibBuilder.loadTexts: pmTrackingPEElement.setDescription('The element that is acted upon by the associated policy.\n\n As this object is used in the index for the\n pmTrackingPETable, users of this table should be careful not\n to create entries that would result in instance names with\n more than 128 sub-identifiers.') pmTrackingPEContextName = MibTableColumn((1, 3, 6, 1, 2, 1, 124, 9, 1, 2), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(0,32))) if mibBuilder.loadTexts: pmTrackingPEContextName.setDescription('If the associated element is not in the default SNMP context\n for the target system, this object is used to identify the\n context. If the element is in the default context, this object\n is equal to the empty string.') pmTrackingPEContextEngineID = MibTableColumn((1, 3, 6, 1, 2, 1, 124, 9, 1, 3), OctetString().subtype(subtypeSpec=ConstraintsUnion(ValueSizeConstraint(0,0),ValueSizeConstraint(5,32),))) if mibBuilder.loadTexts: pmTrackingPEContextEngineID.setDescription('If the associated element is on a remote system, this object\n is used to identify the remote system. This object contains\n the contextEngineID of the system on which the associated\n element resides. If the element is on the local system,\n this object will be the empty string.') pmTrackingPEInfo = MibTableColumn((1, 3, 6, 1, 2, 1, 124, 9, 1, 4), Bits().clone(namedValues=NamedValues(("actionSkippedDueToPrecedence", 0), ("conditionRunTimeException", 1), ("conditionUserSignal", 2), ("actionRunTimeException", 3), ("actionUserSignal", 4),))).setMaxAccess("readonly") if mibBuilder.loadTexts: pmTrackingPEInfo.setDescription("This object returns information about the previous policy\n script executions.\n\n If the actionSkippedDueToPrecedence(1) bit is set, the last\n execution of the associated policy condition returned non-zero,\n but the action is not active, because it was trumped by a\n matching policy condition in the same precedence group with a\n higher precedence value.\n\n If the conditionRunTimeException(2) bit is set, the last\n execution of the associated policy condition encountered a\n run-time exception and aborted.\n\n If the conditionUserSignal(3) bit is set, the last\n execution of the associated policy condition called the\n signalError() function.\n\n If the actionRunTimeException(4) bit is set, the last\n execution of the associated policy action encountered a\n run-time exception and aborted.\n\n If the actionUserSignal(5) bit is set, the last\n execution of the associated policy action called the\n signalError() function.\n\n Entries will only exist in this table of one or more bits are\n set. In particular, if an entry does not exist for a\n particular policy/element combination, it can be assumed that\n the policy's condition did not match 'this element'.") pmTrackingEPTable = MibTable((1, 3, 6, 1, 2, 1, 124, 10), ) if mibBuilder.loadTexts: pmTrackingEPTable.setDescription('The pmTrackingEPTable describes what policies\n are controlling an element. This table is indexed in\n order to optimize retrieval of the status of all policies\n active for a given element.') pmTrackingEPEntry = MibTableRow((1, 3, 6, 1, 2, 1, 124, 10, 1), ).setIndexNames((0, "POLICY-BASED-MANAGEMENT-MIB", "pmTrackingEPElement"), (0, "POLICY-BASED-MANAGEMENT-MIB", "pmTrackingEPContextName"), (0, "POLICY-BASED-MANAGEMENT-MIB", "pmTrackingEPContextEngineID"), (0, "POLICY-BASED-MANAGEMENT-MIB", "pmPolicyIndex")) if mibBuilder.loadTexts: pmTrackingEPEntry.setDescription("An entry in the pmTrackingEPTable. Entries exist for all\n element/policy combinations for which the policy's condition\n matches and only if the schedule for the policy is active.\n\n The pmPolicyIndex in the index specifies the policy\n tracked by this entry.\n\n Note that some combinations of index values may result in an\n instance name that exceeds a length of 128 sub-identifiers,\n which exceeds the maximum for the SNMP protocol.\n Implementations should take care to avoid such combinations.") pmTrackingEPElement = MibTableColumn((1, 3, 6, 1, 2, 1, 124, 10, 1, 1), RowPointer()) if mibBuilder.loadTexts: pmTrackingEPElement.setDescription('The element acted upon by the associated policy.\n\n As this object is used in the index for the\n pmTrackingEPTable, users of this table should be careful\n not to create entries that would result in instance names\n with more than 128 sub-identifiers.') pmTrackingEPContextName = MibTableColumn((1, 3, 6, 1, 2, 1, 124, 10, 1, 2), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(0,32))) if mibBuilder.loadTexts: pmTrackingEPContextName.setDescription('If the associated element is not in the default SNMP context\n\n\n\n for the target system, this object is used to identify the\n context. If the element is in the default context, this object\n is equal to the empty string.') pmTrackingEPContextEngineID = MibTableColumn((1, 3, 6, 1, 2, 1, 124, 10, 1, 3), OctetString().subtype(subtypeSpec=ConstraintsUnion(ValueSizeConstraint(0,0),ValueSizeConstraint(5,32),))) if mibBuilder.loadTexts: pmTrackingEPContextEngineID.setDescription('If the associated element is on a remote system, this object\n is used to identify the remote system. This object contains\n the contextEngineID of the system on which the associated\n element resides. If the element is on the local system,\n this object will be the empty string.') pmTrackingEPStatus = MibTableColumn((1, 3, 6, 1, 2, 1, 124, 10, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2,))).clone(namedValues=NamedValues(("on", 1), ("forceOff", 2),))).setMaxAccess("readwrite") if mibBuilder.loadTexts: pmTrackingEPStatus.setDescription("This entry will only exist if the calendar for the policy is\n active and if the associated policyCondition returned 1 for\n 'this element'.\n\n A policy can be forcibly disabled on a particular element\n by setting this value to forceOff(2). The agent should then\n act as though the policyCondition failed for 'this element'.\n The forceOff(2) state will persist (even across reboots) until\n this value is set to on(1) by a management request. The\n forceOff(2) state may be set even if the entry does not\n previously exist so that future policy invocations can be\n avoided.\n\n Unless forcibly disabled, if this entry exists, its value\n will be on(1).") pmDebuggingTable = MibTable((1, 3, 6, 1, 2, 1, 124, 11), ) if mibBuilder.loadTexts: pmDebuggingTable.setDescription('Policies that have debugging turned on will generate a log\n entry in the policy debugging table for every runtime\n exception that occurs in either the condition or action\n code.\n\n The pmDebuggingTable logs debugging messages when\n policies experience run-time exceptions in either the condition\n or action code and the associated pmPolicyDebugging object\n has been turned on.\n\n The maximum number of debugging entries that will be stored\n and the maximum length of time an entry will be kept are an\n implementation-dependent manner. If entries must\n be discarded to make room for new entries, the oldest entries\n must be discarded first.\n\n If the system restarts, all debugging entries may be deleted.') pmDebuggingEntry = MibTableRow((1, 3, 6, 1, 2, 1, 124, 11, 1), ).setIndexNames((0, "POLICY-BASED-MANAGEMENT-MIB", "pmPolicyIndex"), (0, "POLICY-BASED-MANAGEMENT-MIB", "pmDebuggingElement"), (0, "POLICY-BASED-MANAGEMENT-MIB", "pmDebuggingContextName"), (0, "POLICY-BASED-MANAGEMENT-MIB", "pmDebuggingContextEngineID"), (0, "POLICY-BASED-MANAGEMENT-MIB", "pmDebuggingLogIndex")) if mibBuilder.loadTexts: pmDebuggingEntry.setDescription('An entry in the pmDebuggingTable. The pmPolicyIndex in the\n index specifies the policy that encountered the exception\n that led to this log entry.\n\n Note that some combinations of index values may result in an\n instance name that exceeds a length of 128 sub-identifiers,\n which exceeds the maximum for the SNMP protocol.\n Implementations should take care to avoid such combinations.') pmDebuggingElement = MibTableColumn((1, 3, 6, 1, 2, 1, 124, 11, 1, 1), RowPointer()) if mibBuilder.loadTexts: pmDebuggingElement.setDescription("The element the policy was executing on when it encountered\n the error that led to this log entry.\n\n For example, if the element is interface 3, then this object\n will contain the OID for 'ifIndex.3'.\n\n As this object is used in the index for the\n pmDebuggingTable, users of this table should be careful\n not to create entries that would result in instance names\n with more than 128 sub-identifiers.") pmDebuggingContextName = MibTableColumn((1, 3, 6, 1, 2, 1, 124, 11, 1, 2), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(0,32))) if mibBuilder.loadTexts: pmDebuggingContextName.setDescription('If the associated element is not in the default SNMP context\n for the target system, this object is used to identify the\n context. If the element is in the default context, this object\n is equal to the empty string.') pmDebuggingContextEngineID = MibTableColumn((1, 3, 6, 1, 2, 1, 124, 11, 1, 3), OctetString().subtype(subtypeSpec=ConstraintsUnion(ValueSizeConstraint(0,0),ValueSizeConstraint(5,32),))) if mibBuilder.loadTexts: pmDebuggingContextEngineID.setDescription('If the associated element is on a remote system, this object\n is used to identify the remote system. This object contains\n the contextEngineID of the system on which the associated\n element resides. If the element is on the local system,\n this object will be the empty string.') pmDebuggingLogIndex = MibTableColumn((1, 3, 6, 1, 2, 1, 124, 11, 1, 4), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1,4294967295))) if mibBuilder.loadTexts: pmDebuggingLogIndex.setDescription('A unique index for this log entry among other log entries\n for this policy/element combination.') pmDebuggingMessage = MibTableColumn((1, 3, 6, 1, 2, 1, 124, 11, 1, 5), PmUTF8String().subtype(subtypeSpec=ValueSizeConstraint(0,128))).setMaxAccess("readonly") if mibBuilder.loadTexts: pmDebuggingMessage.setDescription('An error message generated by the policy execution\n environment. It is recommended that this message include the\n time of day when the message was generated, if known.') pmNotifications = MibIdentifier((1, 3, 6, 1, 2, 1, 124, 0)) pmNewRoleNotification = NotificationType((1, 3, 6, 1, 2, 1, 124, 0, 1)).setObjects(*(("POLICY-BASED-MANAGEMENT-MIB", "pmRoleStatus"),)) if mibBuilder.loadTexts: pmNewRoleNotification.setDescription('The pmNewRoleNotification is sent when an agent is configured\n with its first instance of a previously unused role string\n (not every time a new element is given a particular role).\n\n An instance of the pmRoleStatus object is sent containing\n the new roleString in its index. In the event that two or\n more elements are given the same role simultaneously, it is an\n implementation-dependent matter as to which pmRoleTable\n instance will be included in the notification.') pmNewCapabilityNotification = NotificationType((1, 3, 6, 1, 2, 1, 124, 0, 2)).setObjects(*(("POLICY-BASED-MANAGEMENT-MIB", "pmCapabilitiesType"),)) if mibBuilder.loadTexts: pmNewCapabilityNotification.setDescription('The pmNewCapabilityNotification is sent when an agent\n gains a new capability that did not previously exist in any\n element on the system (not every time an element gains a\n particular capability).\n\n An instance of the pmCapabilitiesType object is sent containing\n the identity of the new capability. In the event that two or\n more elements gain the same capability simultaneously, it is an\n implementation-dependent matter as to which pmCapabilitiesType\n instance will be included in the notification.') pmAbnormalTermNotification = NotificationType((1, 3, 6, 1, 2, 1, 124, 0, 3)).setObjects(*(("POLICY-BASED-MANAGEMENT-MIB", "pmTrackingPEInfo"),)) if mibBuilder.loadTexts: pmAbnormalTermNotification.setDescription("The pmAbnormalTermNotification is sent when a policy's\n pmPolicyAbnormalTerminations gauge value changes from zero to\n any value greater than zero and no such notification has been\n sent for that policy in the last 5 minutes.\n\n The notification contains an instance of the pmTrackingPEInfo\n object where the pmPolicyIndex component of the index\n identifies the associated policy and the rest of the index\n identifies an element on which the policy failed.") pmConformance = MibIdentifier((1, 3, 6, 1, 2, 1, 124, 12)) pmCompliances = MibIdentifier((1, 3, 6, 1, 2, 1, 124, 12, 1)) pmGroups = MibIdentifier((1, 3, 6, 1, 2, 1, 124, 12, 2)) pmCompliance = ModuleCompliance((1, 3, 6, 1, 2, 1, 124, 12, 1, 1)).setObjects(*(("POLICY-BASED-MANAGEMENT-MIB", "pmPolicyManagementGroup"), ("POLICY-BASED-MANAGEMENT-MIB", "pmSchedGroup"), ("POLICY-BASED-MANAGEMENT-MIB", "pmNotificationGroup"),)) if mibBuilder.loadTexts: pmCompliance.setDescription('Describes the requirements for conformance to\n the Policy-Based Management MIB') pmPolicyManagementGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 124, 12, 2, 1)).setObjects(*(("POLICY-BASED-MANAGEMENT-MIB", "pmPolicyPrecedenceGroup"), ("POLICY-BASED-MANAGEMENT-MIB", "pmPolicyPrecedence"), ("POLICY-BASED-MANAGEMENT-MIB", "pmPolicySchedule"), ("POLICY-BASED-MANAGEMENT-MIB", "pmPolicyElementTypeFilter"), ("POLICY-BASED-MANAGEMENT-MIB", "pmPolicyConditionScriptIndex"), ("POLICY-BASED-MANAGEMENT-MIB", "pmPolicyActionScriptIndex"), ("POLICY-BASED-MANAGEMENT-MIB", "pmPolicyParameters"), ("POLICY-BASED-MANAGEMENT-MIB", "pmPolicyConditionMaxLatency"), ("POLICY-BASED-MANAGEMENT-MIB", "pmPolicyActionMaxLatency"), ("POLICY-BASED-MANAGEMENT-MIB", "pmPolicyMaxIterations"), ("POLICY-BASED-MANAGEMENT-MIB", "pmPolicyDescription"), ("POLICY-BASED-MANAGEMENT-MIB", "pmPolicyMatches"), ("POLICY-BASED-MANAGEMENT-MIB", "pmPolicyAbnormalTerminations"), ("POLICY-BASED-MANAGEMENT-MIB", "pmPolicyExecutionErrors"), ("POLICY-BASED-MANAGEMENT-MIB", "pmPolicyDebugging"), ("POLICY-BASED-MANAGEMENT-MIB", "pmPolicyStorageType"), ("POLICY-BASED-MANAGEMENT-MIB", "pmPolicyAdminStatus"), ("POLICY-BASED-MANAGEMENT-MIB", "pmPolicyRowStatus"), ("POLICY-BASED-MANAGEMENT-MIB", "pmPolicyCodeText"), ("POLICY-BASED-MANAGEMENT-MIB", "pmPolicyCodeStatus"), ("POLICY-BASED-MANAGEMENT-MIB", "pmElementTypeRegMaxLatency"), ("POLICY-BASED-MANAGEMENT-MIB", "pmElementTypeRegDescription"), ("POLICY-BASED-MANAGEMENT-MIB", "pmElementTypeRegStorageType"), ("POLICY-BASED-MANAGEMENT-MIB", "pmElementTypeRegRowStatus"), ("POLICY-BASED-MANAGEMENT-MIB", "pmRoleStatus"), ("POLICY-BASED-MANAGEMENT-MIB", "pmCapabilitiesType"), ("POLICY-BASED-MANAGEMENT-MIB", "pmCapabilitiesOverrideState"), ("POLICY-BASED-MANAGEMENT-MIB", "pmCapabilitiesOverrideRowStatus"), ("POLICY-BASED-MANAGEMENT-MIB", "pmTrackingPEInfo"), ("POLICY-BASED-MANAGEMENT-MIB", "pmTrackingEPStatus"), ("POLICY-BASED-MANAGEMENT-MIB", "pmDebuggingMessage"),)) if mibBuilder.loadTexts: pmPolicyManagementGroup.setDescription('Objects that allow for the creation and management of\n configuration policies.') pmSchedGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 124, 12, 2, 2)).setObjects(*(("POLICY-BASED-MANAGEMENT-MIB", "pmSchedLocalTime"), ("POLICY-BASED-MANAGEMENT-MIB", "pmSchedGroupIndex"), ("POLICY-BASED-MANAGEMENT-MIB", "pmSchedDescr"), ("POLICY-BASED-MANAGEMENT-MIB", "pmSchedTimePeriod"), ("POLICY-BASED-MANAGEMENT-MIB", "pmSchedMonth"), ("POLICY-BASED-MANAGEMENT-MIB", "pmSchedDay"), ("POLICY-BASED-MANAGEMENT-MIB", "pmSchedWeekDay"), ("POLICY-BASED-MANAGEMENT-MIB", "pmSchedTimeOfDay"), ("POLICY-BASED-MANAGEMENT-MIB", "pmSchedLocalOrUtc"), ("POLICY-BASED-MANAGEMENT-MIB", "pmSchedStorageType"), ("POLICY-BASED-MANAGEMENT-MIB", "pmSchedRowStatus"),)) if mibBuilder.loadTexts: pmSchedGroup.setDescription('Objects that allow for the scheduling of policies.') pmNotificationGroup = NotificationGroup((1, 3, 6, 1, 2, 1, 124, 12, 2, 3)).setObjects(*(("POLICY-BASED-MANAGEMENT-MIB", "pmNewRoleNotification"), ("POLICY-BASED-MANAGEMENT-MIB", "pmNewCapabilityNotification"), ("POLICY-BASED-MANAGEMENT-MIB", "pmAbnormalTermNotification"),)) if mibBuilder.loadTexts: pmNotificationGroup.setDescription('Notifications sent by an Policy MIB agent.') pmBaseFunctionLibrary = MibIdentifier((1, 3, 6, 1, 2, 1, 124, 12, 2, 4)) mibBuilder.exportSymbols("POLICY-BASED-MANAGEMENT-MIB", pmRoleString=pmRoleString, pmSchedIndex=pmSchedIndex, pmCapabilitiesOverrideEntry=pmCapabilitiesOverrideEntry, pmPolicyActionMaxLatency=pmPolicyActionMaxLatency, pmSchedTimeOfDay=pmSchedTimeOfDay, pmTrackingPEContextEngineID=pmTrackingPEContextEngineID, pmPolicyDescription=pmPolicyDescription, PmUTF8String=PmUTF8String, pmDebuggingMessage=pmDebuggingMessage, pmElementTypeRegRowStatus=pmElementTypeRegRowStatus, pmDebuggingContextName=pmDebuggingContextName, pmPolicyCodeSegment=pmPolicyCodeSegment, pmPolicyManagementGroup=pmPolicyManagementGroup, pmPolicyMaxIterations=pmPolicyMaxIterations, pmPolicyExecutionErrors=pmPolicyExecutionErrors, pmCompliance=pmCompliance, PYSNMP_MODULE_ID=pmMib, pmPolicyPrecedenceGroup=pmPolicyPrecedenceGroup, pmPolicyMatches=pmPolicyMatches, pmPolicySchedule=pmPolicySchedule, pmNewRoleNotification=pmNewRoleNotification, pmPolicyDebugging=pmPolicyDebugging, pmAbnormalTermNotification=pmAbnormalTermNotification, pmCapabilitiesOverrideState=pmCapabilitiesOverrideState, pmTrackingEPContextName=pmTrackingEPContextName, pmPolicyAdminStatus=pmPolicyAdminStatus, pmSchedEntry=pmSchedEntry, pmSchedLocalTime=pmSchedLocalTime, pmPolicyConditionScriptIndex=pmPolicyConditionScriptIndex, pmCapabilitiesOverrideRowStatus=pmCapabilitiesOverrideRowStatus, pmPolicyCodeStatus=pmPolicyCodeStatus, pmElementTypeRegTable=pmElementTypeRegTable, pmSchedTimePeriod=pmSchedTimePeriod, pmRoleContextName=pmRoleContextName, pmTrackingEPEntry=pmTrackingEPEntry, pmRoleContextEngineID=pmRoleContextEngineID, pmDebuggingElement=pmDebuggingElement, pmDebuggingContextEngineID=pmDebuggingContextEngineID, pmElementTypeRegMaxLatency=pmElementTypeRegMaxLatency, pmPolicyEntry=pmPolicyEntry, pmPolicyElementTypeFilter=pmPolicyElementTypeFilter, pmMib=pmMib, pmSchedDay=pmSchedDay, pmCapabilitiesTable=pmCapabilitiesTable, pmCompliances=pmCompliances, pmPolicyAdminGroup=pmPolicyAdminGroup, pmCapabilitiesOverrideTable=pmCapabilitiesOverrideTable, pmNotifications=pmNotifications, pmTrackingEPStatus=pmTrackingEPStatus, pmTrackingPEElement=pmTrackingPEElement, pmRoleTable=pmRoleTable, pmConformance=pmConformance, pmDebuggingTable=pmDebuggingTable, pmPolicyPrecedence=pmPolicyPrecedence, pmPolicyCodeEntry=pmPolicyCodeEntry, pmSchedTable=pmSchedTable, pmCapabilitiesType=pmCapabilitiesType, pmSchedGroup=pmSchedGroup, pmPolicyCodeText=pmPolicyCodeText, pmRoleStatus=pmRoleStatus, pmTrackingPETable=pmTrackingPETable, pmRoleElement=pmRoleElement, pmSchedWeekDay=pmSchedWeekDay, pmPolicyCodeTable=pmPolicyCodeTable, pmElementTypeRegEntry=pmElementTypeRegEntry, pmTrackingEPTable=pmTrackingEPTable, pmPolicyIndex=pmPolicyIndex, pmElementTypeRegOIDPrefix=pmElementTypeRegOIDPrefix, pmPolicyActionScriptIndex=pmPolicyActionScriptIndex, pmSchedGroupIndex=pmSchedGroupIndex, pmNewCapabilityNotification=pmNewCapabilityNotification, pmDebuggingEntry=pmDebuggingEntry, pmRoleEntry=pmRoleEntry, pmPolicyCodeScriptIndex=pmPolicyCodeScriptIndex, pmSchedStorageType=pmSchedStorageType, pmTrackingEPContextEngineID=pmTrackingEPContextEngineID, pmPolicyTable=pmPolicyTable, pmTrackingPEContextName=pmTrackingPEContextName, pmPolicyStorageType=pmPolicyStorageType, pmSchedLocalOrUtc=pmSchedLocalOrUtc, pmBaseFunctionLibrary=pmBaseFunctionLibrary, pmNotificationGroup=pmNotificationGroup, pmDebuggingLogIndex=pmDebuggingLogIndex, pmGroups=pmGroups, pmCapabilitiesEntry=pmCapabilitiesEntry, pmPolicyAbnormalTerminations=pmPolicyAbnormalTerminations, pmSchedMonth=pmSchedMonth, pmSchedDescr=pmSchedDescr, pmElementTypeRegDescription=pmElementTypeRegDescription, pmPolicyParameters=pmPolicyParameters, pmElementTypeRegStorageType=pmElementTypeRegStorageType, pmPolicyConditionMaxLatency=pmPolicyConditionMaxLatency, pmTrackingEPElement=pmTrackingEPElement, pmPolicyRowStatus=pmPolicyRowStatus, pmTrackingPEInfo=pmTrackingPEInfo, pmSchedRowStatus=pmSchedRowStatus, pmCapabilitiesOverrideType=pmCapabilitiesOverrideType, pmTrackingPEEntry=pmTrackingPEEntry)
(octet_string, integer, object_identifier) = mibBuilder.importSymbols('ASN1', 'OctetString', 'Integer', 'ObjectIdentifier') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_union, value_size_constraint, single_value_constraint, value_range_constraint, constraints_intersection) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'ValueSizeConstraint', 'SingleValueConstraint', 'ValueRangeConstraint', 'ConstraintsIntersection') (snmp_admin_string,) = mibBuilder.importSymbols('SNMP-FRAMEWORK-MIB', 'SnmpAdminString') (notification_group, module_compliance, object_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance', 'ObjectGroup') (integer32, mib_scalar, mib_table, mib_table_row, mib_table_column, gauge32, ip_address, object_identity, module_identity, mib_2, time_ticks, counter64, iso, unsigned32, bits, mib_identifier, counter32, notification_type) = mibBuilder.importSymbols('SNMPv2-SMI', 'Integer32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Gauge32', 'IpAddress', 'ObjectIdentity', 'ModuleIdentity', 'mib-2', 'TimeTicks', 'Counter64', 'iso', 'Unsigned32', 'Bits', 'MibIdentifier', 'Counter32', 'NotificationType') (display_string, row_status, textual_convention, date_and_time, row_pointer, storage_type) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'RowStatus', 'TextualConvention', 'DateAndTime', 'RowPointer', 'StorageType') pm_mib = module_identity((1, 3, 6, 1, 2, 1, 124)).setRevisions(('2005-02-07 00:00',)) if mibBuilder.loadTexts: pmMib.setLastUpdated('200502070000Z') if mibBuilder.loadTexts: pmMib.setOrganization('IETF SNMP Configuration Working Group') if mibBuilder.loadTexts: pmMib.setContactInfo('\n\n\n\n\n Steve Waldbusser\n Phone: +1-650-948-6500\n Fax: +1-650-745-0671\n Email: waldbusser@nextbeacon.com\n\n Jon Saperia (WG Co-chair)\n JDS Consulting, Inc.\n 84 Kettell Plain Road.\n Stow MA 01775\n USA\n Phone: +1-978-461-0249\n Fax: +1-617-249-0874\n Email: saperia@jdscons.com\n\n Thippanna Hongal\n Riverstone Networks, Inc.\n 5200 Great America Parkway\n Santa Clara, CA, 95054\n USA\n\n Phone: +1-408-878-6562\n Fax: +1-408-878-6501\n Email: hongal@riverstonenet.com\n\n David Partain (WG Co-chair)\n Postal: Ericsson AB\n P.O. Box 1248\n SE-581 12 Linkoping\n Sweden\n Tel: +46 13 28 41 44\n E-mail: David.Partain@ericsson.com\n\n Any questions or comments about this document can also be\n directed to the working group at snmpconf@snmp.com.') if mibBuilder.loadTexts: pmMib.setDescription('The MIB module for policy-based configuration of SNMP\n infrastructures.\n\n Copyright (C) The Internet Society (2005). This version of\n this MIB module is part of RFC 4011; see the RFC itself for\n full legal notices.') class Pmutf8String(OctetString, TextualConvention): subtype_spec = OctetString.subtypeSpec + value_size_constraint(0, 65535) pm_policy_table = mib_table((1, 3, 6, 1, 2, 1, 124, 1)) if mibBuilder.loadTexts: pmPolicyTable.setDescription('The policy table. A policy is a pairing of a\n policyCondition and a policyAction that is used to apply the\n action to a selected set of elements.') pm_policy_entry = mib_table_row((1, 3, 6, 1, 2, 1, 124, 1, 1)).setIndexNames((0, 'POLICY-BASED-MANAGEMENT-MIB', 'pmPolicyAdminGroup'), (0, 'POLICY-BASED-MANAGEMENT-MIB', 'pmPolicyIndex')) if mibBuilder.loadTexts: pmPolicyEntry.setDescription('An entry in the policy table representing one policy.') pm_policy_admin_group = mib_table_column((1, 3, 6, 1, 2, 1, 124, 1, 1, 1), pm_utf8_string().subtype(subtypeSpec=value_size_constraint(0, 32))) if mibBuilder.loadTexts: pmPolicyAdminGroup.setDescription('An administratively assigned string that can be used to group\n policies for convenience, for readability, or to simplify\n configuration of access control.\n\n The value of this string does not affect policy processing in\n any way. If grouping is not desired or necessary, this object\n may be set to a zero-length string.') pm_policy_index = mib_table_column((1, 3, 6, 1, 2, 1, 124, 1, 1, 2), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4294967295))) if mibBuilder.loadTexts: pmPolicyIndex.setDescription('A unique index for this policy entry, unique among all\n policies regardless of administrative group.') pm_policy_precedence_group = mib_table_column((1, 3, 6, 1, 2, 1, 124, 1, 1, 3), pm_utf8_string().subtype(subtypeSpec=value_size_constraint(0, 32))).setMaxAccess('readcreate') if mibBuilder.loadTexts: pmPolicyPrecedenceGroup.setDescription('An administratively assigned string that is used to group\n policies. For each element, only one policy in the same\n precedence group may be active on that element. If multiple\n policies would be active on an element (because their\n conditions return non-zero), the execution environment will\n only allow the policy with the highest value of\n pmPolicyPrecedence to be active.\n\n All values of this object must have been successfully\n transformed by Stringprep RFC 3454. Management stations\n must perform this translation and must only set this object to\n string values that have been transformed.') pm_policy_precedence = mib_table_column((1, 3, 6, 1, 2, 1, 124, 1, 1, 4), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readcreate') if mibBuilder.loadTexts: pmPolicyPrecedence.setDescription("If, while checking to see which policy conditions match an\n element, 2 or more ready policies in the same precedence group\n match the same element, the pmPolicyPrecedence object provides\n the rule to arbitrate which single policy will be active on\n 'this element'. Of policies in the same precedence group, only\n the ready and matching policy with the highest precedence\n value (e.g., 2 is higher than 1) will have its policy action\n periodically executed on 'this element'.\n\n When a policy is active on an element but the condition ceases\n to match the element, its action (if currently running) will\n be allowed to finish and then the condition-matching ready\n policy with the next-highest precedence will immediately\n become active (and have its action run immediately). If the\n condition of a higher-precedence ready policy suddenly begins\n matching an element, the previously-active policy's action (if\n currently running) will be allowed to finish and then the\n higher precedence policy will immediately become active. Its\n action will run immediately, and any lower-precedence matching\n policy will not be active anymore.\n\n In the case where multiple ready policies share the highest\n value, it is an implementation-dependent matter as to which\n single policy action will be chosen.\n\n Note that if it is necessary to take certain actions after a\n policy is no longer active on an element, these actions should\n be included in a lower-precedence policy that is in the same\n precedence group.") pm_policy_schedule = mib_table_column((1, 3, 6, 1, 2, 1, 124, 1, 1, 5), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4294967295))).setMaxAccess('readcreate') if mibBuilder.loadTexts: pmPolicySchedule.setDescription("This policy will be ready if any of the associated schedule\n entries are active.\n\n If the value of this object is 0, this policy is always\n ready.\n\n If the value of this object is non-zero but doesn't\n refer to a schedule group that includes an active schedule,\n then the policy will not be ready, even if this is due to a\n misconfiguration of this object or the pmSchedTable.") pm_policy_element_type_filter = mib_table_column((1, 3, 6, 1, 2, 1, 124, 1, 1, 6), pm_utf8_string().subtype(subtypeSpec=value_size_constraint(0, 128))).setMaxAccess('readcreate') if mibBuilder.loadTexts: pmPolicyElementTypeFilter.setDescription("This object specifies the element types for which this policy\n can be executed.\n\n The format of this object will be a sequence of\n pmElementTypeRegOIDPrefix values, encoded in the following\n BNF form:\n\n elementTypeFilter: oid [ ';' oid ]*\n oid: subid [ '.' subid ]*\n subid: '0' | decimal_constant\n\n For example, to register for the policy to be run on all\n interface elements, the 'ifEntry' element type will be\n registered as '1.3.6.1.2.1.2.2.1'.\n\n If a value is included that does not represent a registered\n pmElementTypeRegOIDPrefix, then that value will be ignored.") pm_policy_condition_script_index = mib_table_column((1, 3, 6, 1, 2, 1, 124, 1, 1, 7), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4294967295))).setMaxAccess('readonly') if mibBuilder.loadTexts: pmPolicyConditionScriptIndex.setDescription("A pointer to the row or rows in the pmPolicyCodeTable that\n contain the condition code for this policy. When a policy\n entry is created, a pmPolicyCodeIndex value unused by this\n policy's adminGroup will be assigned to this object.\n\n A policy condition is one or more PolicyScript statements\n that result(s) in a boolean value that represents whether\n an element is a member of a set of elements upon which an\n action is to be performed. If a policy is ready and the\n condition returns true for an element of a proper element\n type, and if no higher-precedence policy should be active,\n then the policy is active on that element.\n\n Condition evaluation stops immediately when any run-time\n exception is detected, and the policyAction is not executed.\n\n The policyCondition is evaluated for various elements. Any\n element for which the policyCondition returns any nonzero value\n will match the condition and will have the associated\n\n\n\n policyAction executed on that element unless a\n higher-precedence policy in the same precedence group also\n matches 'this element'.\n\n If the condition object is empty (contains no code) or\n otherwise does not return a value, the element will not be\n matched.\n\n When this condition is executed, if SNMP requests are made to\n the local system and secModel/secName/secLevel aren't\n specified, access to objects is under the security\n credentials of the requester who most recently modified the\n associated pmPolicyAdminStatus object. If SNMP requests are\n made in which secModel/secName/secLevel are specified, then\n the specified credentials are retrieved from the local\n configuration datastore only if VACM is configured to\n allow access to the requester who most recently modified the\n associated pmPolicyAdminStatus object. See the Security\n Considerations section for more information.") pm_policy_action_script_index = mib_table_column((1, 3, 6, 1, 2, 1, 124, 1, 1, 8), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4294967295))).setMaxAccess('readonly') if mibBuilder.loadTexts: pmPolicyActionScriptIndex.setDescription("A pointer to the row or rows in the pmPolicyCodeTable that\n contain the action code for this policy. When a policy entry\n is created, a pmPolicyCodeIndex value unused by this policy's\n adminGroup will be assigned to this object.\n\n A PolicyAction is an operation performed on a\n set of elements for which the policy is active.\n\n Action evaluation stops immediately when any run-time\n exception is detected.\n\n When this condition is executed, if SNMP requests are made to\n the local system and secModel/secName/secLevel aren't\n specified, access to objects is under the security\n credentials of the requester who most recently modified the\n associated pmPolicyAdminStatus object. If SNMP requests are\n made in which secModel/secName/secLevel are specified, then\n the specified credentials are retrieved from the local\n configuration datastore only if VACM is configured to\n allow access to the requester who most recently modified the\n associated pmPolicyAdminStatus object. See the Security\n Considerations section for more information.") pm_policy_parameters = mib_table_column((1, 3, 6, 1, 2, 1, 124, 1, 1, 9), octet_string().subtype(subtypeSpec=value_size_constraint(0, 65535))).setMaxAccess('readcreate') if mibBuilder.loadTexts: pmPolicyParameters.setDescription('From time to time, policy scripts may seek one or more\n parameters (e.g., site-specific constants). These parameters\n may be installed with the script in this object and are\n accessible to the script via the getParameters() function. If\n it is necessary for multiple parameters to be passed to the\n script, the script can choose whatever encoding/delimiting\n mechanism is most appropriate.') pm_policy_condition_max_latency = mib_table_column((1, 3, 6, 1, 2, 1, 124, 1, 1, 10), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))).setUnits('milliseconds').setMaxAccess('readcreate') if mibBuilder.loadTexts: pmPolicyConditionMaxLatency.setDescription('Every element under the control of this agent is\n re-checked periodically to see whether it is under control\n of this policy by re-running the condition for this policy.\n This object lets the manager control the maximum amount of\n time that may pass before an element is re-checked.\n\n In other words, in any given interval of this duration, all\n elements must be re-checked. Note that how the policy agent\n schedules the checking of various elements within this\n interval is an implementation-dependent matter.\n Implementations may wish to re-run a condition more\n quickly if they note a change to the role strings for an\n element.') pm_policy_action_max_latency = mib_table_column((1, 3, 6, 1, 2, 1, 124, 1, 1, 11), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 2147483647))).setUnits('milliseconds').setMaxAccess('readcreate') if mibBuilder.loadTexts: pmPolicyActionMaxLatency.setDescription("Every element that matches this policy's condition and is\n therefore under control of this policy will have this policy's\n action executed periodically to ensure that the element\n remains in the state dictated by the policy.\n This object lets the manager control the maximum amount of\n\n\n\n time that may pass before an element has the action run on\n it.\n\n In other words, in any given interval of this duration, all\n elements under control of this policy must have the action run\n on them. Note that how the policy agent schedules the policy\n action on various elements within this interval is an\n implementation-dependent matter.") pm_policy_max_iterations = mib_table_column((1, 3, 6, 1, 2, 1, 124, 1, 1, 12), unsigned32()).setMaxAccess('readcreate') if mibBuilder.loadTexts: pmPolicyMaxIterations.setDescription("If a condition or action script iterates in loops too many\n times in one invocation, the execution environment may\n consider it in an infinite loop or otherwise not acting\n as intended and may be terminated by the execution\n environment. The execution environment will count the\n cumulative number of times all 'for' or 'while' loops iterated\n and will apply a threshold to determine when to terminate the\n script. What threshold the execution environment uses is an\n implementation-dependent manner, but the value of\n this object SHOULD be the basis for choosing the threshold for\n each script. The value of this object represents a\n policy-specific threshold and can be tuned for policies of\n varying workloads. If this value is zero, no\n threshold will be enforced except for any\n implementation-dependent maximum. Regardless of this value,\n the agent is allowed to terminate any script invocation that\n exceeds a local CPU or memory limitation.\n\n Note that the condition and action invocations are tracked\n separately.") pm_policy_description = mib_table_column((1, 3, 6, 1, 2, 1, 124, 1, 1, 13), pm_utf8_string()).setMaxAccess('readcreate') if mibBuilder.loadTexts: pmPolicyDescription.setDescription('A description of this rule and its significance, typically\n provided by a human.') pm_policy_matches = mib_table_column((1, 3, 6, 1, 2, 1, 124, 1, 1, 14), gauge32()).setUnits('elements').setMaxAccess('readonly') if mibBuilder.loadTexts: pmPolicyMatches.setDescription('The number of elements that, in their most recent execution\n of the associated condition, were matched by the condition.') pm_policy_abnormal_terminations = mib_table_column((1, 3, 6, 1, 2, 1, 124, 1, 1, 15), gauge32()).setUnits('elements').setMaxAccess('readonly') if mibBuilder.loadTexts: pmPolicyAbnormalTerminations.setDescription('The number of elements that, in their most recent execution\n of the associated condition or action, have experienced a\n run-time exception and terminated abnormally. Note that if a\n policy was experiencing a run-time exception while processing\n a particular element but runs normally on a subsequent\n invocation, this number can decline.') pm_policy_execution_errors = mib_table_column((1, 3, 6, 1, 2, 1, 124, 1, 1, 16), counter32()).setUnits('errors').setMaxAccess('readonly') if mibBuilder.loadTexts: pmPolicyExecutionErrors.setDescription("The total number of times that execution of this policy's\n condition or action has been terminated due to run-time\n exceptions.") pm_policy_debugging = mib_table_column((1, 3, 6, 1, 2, 1, 124, 1, 1, 17), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('off', 1), ('on', 2))).clone('off')).setMaxAccess('readcreate') if mibBuilder.loadTexts: pmPolicyDebugging.setDescription('The status of debugging for this policy. If this is turned\n on(2), log entries will be created in the pmDebuggingTable\n for each run-time exception that is experienced by this\n policy.') pm_policy_admin_status = mib_table_column((1, 3, 6, 1, 2, 1, 124, 1, 1, 18), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2), ('enabledAutoRemove', 3)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: pmPolicyAdminStatus.setDescription('The administrative status of this policy.\n\n The policy will be valid only if the associated\n pmPolicyRowStatus is set to active(1) and this object is set\n to enabled(2) or enabledAutoRemove(3).\n\n If this object is set to enabledAutoRemove(3), the next time\n the associated schedule moves from the active state to the\n inactive state, this policy will immediately be deleted,\n including any associated entries in the pmPolicyCodeTable.\n\n The following related objects may not be changed unless this\n object is set to disabled(1):\n pmPolicyPrecedenceGroup, pmPolicyPrecedence,\n pmPolicySchedule, pmPolicyElementTypeFilter,\n pmPolicyConditionScriptIndex, pmPolicyActionScriptIndex,\n pmPolicyParameters, and any pmPolicyCodeTable row\n referenced by this policy.\n In order to change any of these parameters, the policy must\n be moved to the disabled(1) state, changed, and then\n re-enabled.\n\n When this policy moves to either enabled state from the\n disabled state, any cached values of policy condition must be\n erased, and any Policy or PolicyElement scratchpad values for\n this policy should be removed. Policy execution will begin by\n testing the policy condition on all appropriate elements.') pm_policy_storage_type = mib_table_column((1, 3, 6, 1, 2, 1, 124, 1, 1, 19), storage_type()).setMaxAccess('readcreate') if mibBuilder.loadTexts: pmPolicyStorageType.setDescription("This object defines whether this policy and any associated\n entries in the pmPolicyCodeTable are kept in volatile storage\n and lost upon reboot or if this row is backed up by\n non-volatile or permanent storage.\n\n\n\n\n If the value of this object is 'permanent', the values for\n the associated pmPolicyAdminStatus object must remain\n writable.") pm_policy_row_status = mib_table_column((1, 3, 6, 1, 2, 1, 124, 1, 1, 20), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: pmPolicyRowStatus.setDescription('The row status of this pmPolicyEntry.\n\n The status may not be set to active if any of the related\n entries in the pmPolicyCode table do not have a status of\n active or if any of the objects in this row are not set to\n valid values. Only the following objects may be modified\n while in the active state:\n pmPolicyParameters\n pmPolicyConditionMaxLatency\n pmPolicyActionMaxLatency\n pmPolicyDebugging\n pmPolicyAdminStatus\n\n If this row is deleted, any associated entries in the\n pmPolicyCodeTable will be deleted as well.') pm_policy_code_table = mib_table((1, 3, 6, 1, 2, 1, 124, 2)) if mibBuilder.loadTexts: pmPolicyCodeTable.setDescription("The pmPolicyCodeTable stores the code for policy conditions and\n actions.\n\n An example of the relationships between the code table and the\n policy table follows:\n\n pmPolicyTable\n AdminGroup Index ConditionScriptIndex ActionScriptIndex\n A '' 1 1 2\n B 'oper' 1 1 2\n C 'oper' 2 3 4\n\n pmPolicyCodeTable\n AdminGroup ScriptIndex Segment Note\n\n\n\n '' 1 1 Filter for policy A\n '' 2 1 Action for policy A\n 'oper' 1 1 Filter for policy B\n 'oper' 2 1 Action 1/2 for policy B\n 'oper' 2 2 Action 2/2 for policy B\n 'oper' 3 1 Filter for policy C\n 'oper' 4 1 Action for policy C\n\n In this example, there are 3 policies: 1 in the '' adminGroup,\n and 2 in the 'oper' adminGroup. Policy A has been assigned\n script indexes 1 and 2 (these script indexes are assigned out of\n a separate pool per adminGroup), with 1 code segment each for\n the filter and the action. Policy B has been assigned script\n indexes 1 and 2 (out of the pool for the 'oper' adminGroup).\n While the filter has 1 segment, the action is longer and is\n loaded into 2 segments. Finally, Policy C has been assigned\n script indexes 3 and 4, with 1 code segment each for the filter\n and the action.") pm_policy_code_entry = mib_table_row((1, 3, 6, 1, 2, 1, 124, 2, 1)).setIndexNames((0, 'POLICY-BASED-MANAGEMENT-MIB', 'pmPolicyAdminGroup'), (0, 'POLICY-BASED-MANAGEMENT-MIB', 'pmPolicyCodeScriptIndex'), (0, 'POLICY-BASED-MANAGEMENT-MIB', 'pmPolicyCodeSegment')) if mibBuilder.loadTexts: pmPolicyCodeEntry.setDescription('An entry in the policy code table representing one code\n segment. Entries that share a common AdminGroup/ScriptIndex\n pair make up a single script. Valid values of ScriptIndex are\n retrieved from pmPolicyConditionScriptIndex and\n pmPolicyActionScriptIndex after a pmPolicyEntry is\n created. Segments of code can then be written to this table\n with the learned ScriptIndex values.\n\n The StorageType of this entry is determined by the value of\n the associated pmPolicyStorageType.\n\n The pmPolicyAdminGroup element of the index represents the\n administrative group of the policy of which this code entry is\n a part.') pm_policy_code_script_index = mib_table_column((1, 3, 6, 1, 2, 1, 124, 2, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4294967295))) if mibBuilder.loadTexts: pmPolicyCodeScriptIndex.setDescription('A unique index for each policy condition or action. The code\n for each such condition or action may be composed of multiple\n entries in this table if the code cannot fit in one entry.\n Values of pmPolicyCodeScriptIndex may not be used unless\n they have previously been assigned in the\n pmPolicyConditionScriptIndex or pmPolicyActionScriptIndex\n objects.') pm_policy_code_segment = mib_table_column((1, 3, 6, 1, 2, 1, 124, 2, 1, 2), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4294967295))) if mibBuilder.loadTexts: pmPolicyCodeSegment.setDescription('A unique index for each segment of a policy condition or\n action.\n\n When a policy condition or action spans multiple entries in\n this table, the code of that policy starts from the\n lowest-numbered segment and continues with increasing segment\n values until it ends with the highest-numbered segment.') pm_policy_code_text = mib_table_column((1, 3, 6, 1, 2, 1, 124, 2, 1, 3), pm_utf8_string().subtype(subtypeSpec=value_size_constraint(1, 1024))).setMaxAccess('readcreate') if mibBuilder.loadTexts: pmPolicyCodeText.setDescription('A segment of policy code (condition or action). Lengthy\n Policy conditions or actions may be stored in multiple\n segments in this table that share the same value of\n pmPolicyCodeScriptIndex. When multiple segments are used, it\n is recommended that each segment be as large as is practical.\n\n Entries in this table are associated with policies by values\n of the pmPolicyConditionScriptIndex and\n pmPolicyActionScriptIndex objects. If the status of the\n related policy is active, then this object may not be\n modified.') pm_policy_code_status = mib_table_column((1, 3, 6, 1, 2, 1, 124, 2, 1, 4), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: pmPolicyCodeStatus.setDescription('The status of this code entry.\n\n Entries in this table are associated with policies by values\n of the pmPolicyConditionScriptIndex and\n pmPolicyActionScriptIndex objects. If the status of the\n related policy is active, then this object can not be\n modified (i.e., deleted or set to notInService), nor may new\n entries be created.\n\n If the status of this object is active, no objects in this\n row may be modified.') pm_element_type_reg_table = mib_table((1, 3, 6, 1, 2, 1, 124, 3)) if mibBuilder.loadTexts: pmElementTypeRegTable.setDescription("A registration table for element types managed by this\n system.\n\n The Element Type Registration table allows the manager to\n learn what element types are being managed by the system and\n to register new types, if necessary. An element type is\n registered by providing the OID of an SNMP object (i.e.,\n without the instance). Each SNMP instance that exists under\n that object is a distinct element. The index of the element is\n the index part of the discovered OID. This index will be\n supplied to policy conditions and actions so that this code\n can inspect and configure the element.\n\n For example, this table might contain the following entries.\n The first three are agent-installed, and the 4th was\n downloaded by a management station:\n\n OIDPrefix MaxLatency Description StorageType\n ifEntry 100 mS interfaces - builtin readOnly\n 0.0 100 mS system element - builtin readOnly\n frCircuitEntry 100 mS FR Circuits - builtin readOnly\n hrSWRunEntry 60 sec Running Processes volatile\n\n\n\n\n Note that agents may automatically configure elements in this\n table for frequently used element types (interfaces, circuits,\n etc.). In particular, it may configure elements for whom\n discovery is optimized in one or both of the following ways:\n\n 1. The agent may discover elements by scanning internal data\n structures as opposed to issuing local SNMP requests. It is\n possible to recreate the exact semantics described in this\n table even if local SNMP requests are not issued.\n\n 2. The agent may receive asynchronous notification of new\n elements (for example, 'card inserted') and use that\n information to instantly create elements rather than\n through polling. A similar feature might be available for\n the deletion of elements.\n\n Note that the disposition of agent-installed entries is\n described by the pmPolicyStorageType object.") pm_element_type_reg_entry = mib_table_row((1, 3, 6, 1, 2, 1, 124, 3, 1)).setIndexNames((0, 'POLICY-BASED-MANAGEMENT-MIB', 'pmElementTypeRegOIDPrefix')) if mibBuilder.loadTexts: pmElementTypeRegEntry.setDescription("A registration of an element type.\n\n Note that some values of this table's index may result in an\n instance name that exceeds a length of 128 sub-identifiers,\n which exceeds the maximum for the SNMP protocol.\n Implementations should take care to avoid such values.") pm_element_type_reg_oid_prefix = mib_table_column((1, 3, 6, 1, 2, 1, 124, 3, 1, 2), object_identifier()) if mibBuilder.loadTexts: pmElementTypeRegOIDPrefix.setDescription("This OBJECT IDENTIFIER value identifies a table in which all\n\n\n\n elements of this type will be found. Every row in the\n referenced table will be treated as an element for the\n period of time that it remains in the table. The agent will\n then execute policy conditions and actions as appropriate on\n each of these elements.\n\n This object identifier value is specified down to the 'entry'\n component (e.g., ifEntry) of the identifier.\n\n The index of each discovered row will be passed to each\n invocation of the policy condition and policy action.\n\n The actual mechanism by which instances are discovered is\n implementation dependent. Periodic walks of the table to\n discover the rows in the table is one such mechanism. This\n mechanism has the advantage that it can be performed by an\n agent with no knowledge of the names, syntax, or semantics\n of the MIB objects in the table. This mechanism also serves as\n the reference design. Other implementation-dependent\n mechanisms may be implemented that are more efficient (perhaps\n because they are hard coded) or that don't require polling.\n These mechanisms must discover the same elements as would the\n table-walking reference design.\n\n This object can contain a OBJECT IDENTIFIER, '0.0'.\n '0.0' represents the single instance of the system\n itself and provides an execution context for policies to\n operate on the 'system element' and on MIB objects\n modeled as scalars. For example, '0.0' gives an execution\n context for policy-based selection of the operating system\n code version (likely modeled as a scalar MIB object). The\n element type '0.0' always exists; as a consequence, no actual\n discovery will take place, and the pmElementTypeRegMaxLatency\n object will have no effect for the '0.0' element\n type. However, if the '0.0' element type is not registered in\n the table, policies will not be executed on the '0.0' element.\n\n When a policy is invoked on behalf of a '0.0' entry in this\n table, the element name will be '0.0', and there is no index\n of 'this element' (in other words, it has zero length).\n\n As this object is used in the index for the\n pmElementTypeRegTable, users of this table should be careful\n not to create entries that would result in instance names with\n more than 128 sub-identifiers.") pm_element_type_reg_max_latency = mib_table_column((1, 3, 6, 1, 2, 1, 124, 3, 1, 3), unsigned32()).setUnits('milliseconds').setMaxAccess('readcreate') if mibBuilder.loadTexts: pmElementTypeRegMaxLatency.setDescription('The PM agent is responsible for discovering new elements of\n types that are registered. This object lets the manager\n control the maximum amount of time that may pass between the\n time an element is created and when it is discovered.\n\n In other words, in any given interval of this duration, all\n new elements must be discovered. Note that how the policy\n agent schedules the checking of various elements within this\n interval is an implementation-dependent matter.') pm_element_type_reg_description = mib_table_column((1, 3, 6, 1, 2, 1, 124, 3, 1, 4), pm_utf8_string().subtype(subtypeSpec=value_size_constraint(0, 64))).setMaxAccess('readcreate') if mibBuilder.loadTexts: pmElementTypeRegDescription.setDescription('A descriptive label for this registered type.') pm_element_type_reg_storage_type = mib_table_column((1, 3, 6, 1, 2, 1, 124, 3, 1, 5), storage_type()).setMaxAccess('readcreate') if mibBuilder.loadTexts: pmElementTypeRegStorageType.setDescription("This object defines whether this row is kept\n in volatile storage and lost upon reboot or\n backed up by non-volatile or permanent storage.\n\n If the value of this object is 'permanent', no values in the\n associated row have to be writable.") pm_element_type_reg_row_status = mib_table_column((1, 3, 6, 1, 2, 1, 124, 3, 1, 6), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: pmElementTypeRegRowStatus.setDescription('The status of this registration entry.\n\n If the value of this object is active, no objects in this row\n may be modified.') pm_role_table = mib_table((1, 3, 6, 1, 2, 1, 124, 4)) if mibBuilder.loadTexts: pmRoleTable.setDescription("The pmRoleTable is a read-create table that organizes role\n strings sorted by element. This table is used to create and\n modify role strings and their associations, as well as to allow\n a management station to learn about the existence of roles and\n their associations.\n\n It is the responsibility of the agent to keep track of any\n re-indexing of the underlying SNMP elements and to continue to\n associate role strings with the element with which they were\n initially configured.\n\n Policy MIB agents that have elements in multiple local SNMP\n contexts have to allow some roles to be assigned to elements\n in particular contexts. This is particularly true when some\n elements have the same names in different contexts and the\n context is required to disambiguate them. In those situations,\n a value for the pmRoleContextName may be provided. When a\n pmRoleContextName value is not provided, the assignment is to\n the element in the default context.\n\n Policy MIB agents that discover elements on other systems and\n execute policies on their behalf need to have access to role\n information for these remote elements. In such situations,\n role assignments for other systems can be stored in this table\n by providing values for the pmRoleContextEngineID parameters.\n\n For example:\n Example:\n element role context ctxEngineID #comment\n ifindex.1 gold local, default context\n ifindex.2 gold local, default context\n repeaterid.1 foo rptr1 local, rptr1 context\n repeaterid.1 bar rptr2 local, rptr2 context\n ifindex.1 gold '' A different system\n ifindex.1 gold '' B different system\n\n The agent must store role string associations in non-volatile\n storage.") pm_role_entry = mib_table_row((1, 3, 6, 1, 2, 1, 124, 4, 1)).setIndexNames((0, 'POLICY-BASED-MANAGEMENT-MIB', 'pmRoleElement'), (0, 'POLICY-BASED-MANAGEMENT-MIB', 'pmRoleContextName'), (0, 'POLICY-BASED-MANAGEMENT-MIB', 'pmRoleContextEngineID'), (0, 'POLICY-BASED-MANAGEMENT-MIB', 'pmRoleString')) if mibBuilder.loadTexts: pmRoleEntry.setDescription('A role string entry associates a role string with an\n individual element.\n\n Note that some combinations of index values may result in an\n instance name that exceeds a length of 128 sub-identifiers,\n which exceeds the maximum for the SNMP\n protocol. Implementations should take care to avoid such\n combinations.') pm_role_element = mib_table_column((1, 3, 6, 1, 2, 1, 124, 4, 1, 1), row_pointer()) if mibBuilder.loadTexts: pmRoleElement.setDescription("The element with which this role string is associated.\n\n For example, if the element is interface 3, then this object\n will contain the OID for 'ifIndex.3'.\n\n If the agent assigns new indexes in the MIB table to\n represent the same underlying element (re-indexing), the\n agent will modify this value to contain the new index for the\n underlying element.\n\n As this object is used in the index for the pmRoleTable,\n users of this table should be careful not to create entries\n that would result in instance names with more than 128\n sub-identifiers.") pm_role_context_name = mib_table_column((1, 3, 6, 1, 2, 1, 124, 4, 1, 2), snmp_admin_string().subtype(subtypeSpec=value_size_constraint(0, 32))) if mibBuilder.loadTexts: pmRoleContextName.setDescription('If the associated element is not in the default SNMP context\n for the target system, this object is used to identify the\n context. If the element is in the default context, this object\n is equal to the empty string.') pm_role_context_engine_id = mib_table_column((1, 3, 6, 1, 2, 1, 124, 4, 1, 3), octet_string().subtype(subtypeSpec=constraints_union(value_size_constraint(0, 0), value_size_constraint(5, 32)))) if mibBuilder.loadTexts: pmRoleContextEngineID.setDescription('If the associated element is on a remote system, this object\n is used to identify the remote system. This object contains\n the contextEngineID of the system for which this role string\n assignment is valid. If the element is on the local system\n this object will be the empty string.') pm_role_string = mib_table_column((1, 3, 6, 1, 2, 1, 124, 4, 1, 4), pm_utf8_string().subtype(subtypeSpec=value_size_constraint(0, 64))) if mibBuilder.loadTexts: pmRoleString.setDescription('The role string that is associated with an element through\n this table. All role strings must have been successfully\n transformed by Stringprep RFC 3454. Management stations\n must perform this translation and must only set this object\n to string values that have been transformed.\n\n A role string is an administratively specified characteristic\n of a managed element (for example, an interface). It is a\n selector for policy rules, that determines the applicability of\n the rule to a particular managed element.') pm_role_status = mib_table_column((1, 3, 6, 1, 2, 1, 124, 4, 1, 5), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: pmRoleStatus.setDescription('The status of this role string.\n\n\n\n\n\n If the value of this object is active, no object in this row\n may be modified.') pm_capabilities_table = mib_table((1, 3, 6, 1, 2, 1, 124, 5)) if mibBuilder.loadTexts: pmCapabilitiesTable.setDescription("The pmCapabilitiesTable contains a description of\n the inherent capabilities of the system so that\n management stations can learn of an agent's capabilities and\n differentially install policies based on the capabilities.\n\n Capabilities are expressed at the system level. There can be\n variation in how capabilities are realized from one vendor or\n model to the next. Management systems should consider these\n differences before selecting which policy to install in a\n system.") pm_capabilities_entry = mib_table_row((1, 3, 6, 1, 2, 1, 124, 5, 1)).setIndexNames((0, 'POLICY-BASED-MANAGEMENT-MIB', 'pmCapabilitiesType')) if mibBuilder.loadTexts: pmCapabilitiesEntry.setDescription("A capabilities entry holds an OID indicating support for a\n particular capability. Capabilities may include hardware and\n software functions and the implementation of MIB\n Modules. The semantics of the OID are defined in the\n description of pmCapabilitiesType.\n\n Entries appear in this table if any element in the system has\n a specific capability. A capability should appear in this\n table only once, regardless of the number of elements in the\n system with that capability. An entry is removed from this\n table when the last element in the system that has the\n capability is removed. In some cases, capabilities are\n dynamic and exist only in software. This table should have an\n entry for the capability even if there are no current\n instances. Examples include systems with database or WEB\n services. While the system has the ability to create new\n databases or WEB services, the entry should exist. In these\n cases, the ability to create these services could come from\n other processes that are running in the system, even though\n there are no currently open databases or WEB servers running.\n\n\n\n Capabilities may include the implementation of MIB Modules\n but need not be limited to those that represent MIB Modules\n with one or more configurable objects. It may also be\n valuable to include entries for capabilities that do not\n include configuration objects, as that information, in\n combination with other entries in this table, might be used\n by the management software to determine whether to\n install a policy.\n\n Vendor software may also add entries in this table to express\n capabilities from their private branch.\n\n Note that some values of this table's index may result in an\n instance name that exceeds a length of 128 sub-identifiers,\n which exceeds the maximum for the SNMP\n protocol. Implementations should take care to avoid such\n values.") pm_capabilities_type = mib_table_column((1, 3, 6, 1, 2, 1, 124, 5, 1, 1), object_identifier()).setMaxAccess('readonly') if mibBuilder.loadTexts: pmCapabilitiesType.setDescription("There are three types of OIDs that may be present in the\n pmCapabilitiesType object:\n\n 1) The OID of a MODULE-COMPLIANCE macro that represents the\n highest level of compliance realized by the agent for that\n MIB Module. For example, an agent that implements the OSPF\n MIB Module at the highest level of compliance would have the\n value of '1.3.6.1.2.1.14.15.2' in the pmCapabilitiesType\n object. For software that realizes standard MIB\n Modules that do not have compliance statements, the base OID\n of the MIB Module should be used instead. If the OSPF MIB\n Module had not been created with a compliance statement, then\n the correct value of the pmCapabilitiesType would be\n '1.3.6.1.2.1.14'. In the cases where multiple compliance\n statements in a MIB Module are supported by the agent, and\n where one compliance statement does not by definition include\n the other, each of the compliance OIDs would have entries in\n this table.\n\n\n\n\n MIB Documents can contain more than one MIB Module. In the\n case of OSPF, there is a second MIB Module\n that describes notifications for the OSPF Version 2 Protocol.\n If the agent also realizes these functions, an entry will\n also exist for those capabilities in this table.\n\n 2) Vendors should install OIDs in this table that represent\n vendor-specific capabilities. These capabilities can be\n expressed just as those described above for MIB Modules on\n the standards track. In addition, vendors may install any\n OID they desire from their registered branch. The OIDs may be\n at any level of granularity, from the root of their entire\n branch to an instance of a single OID. There is no\n restriction on the number of registrations they may make,\n though care should be taken to avoid unnecessary entries.\n\n 3) OIDs that represent one capability or a collection of\n capabilities that could be any collection of MIB Objects or\n hardware or software functions may be created in working\n groups and registered in a MIB Module. Other entities (e.g.,\n vendors) may also make registrations. Software will register\n these standard capability OIDs, as well as vendor specific\n OIDs.\n\n If the OID for a known capability is not present in the\n table, then it should be assumed that the capability is not\n implemented.\n\n As this object is used in the index for the\n pmCapabilitiesTable, users of this table should be careful\n not to create entries that would result in instance names\n with more than 128 sub-identifiers.") pm_capabilities_override_table = mib_table((1, 3, 6, 1, 2, 1, 124, 6)) if mibBuilder.loadTexts: pmCapabilitiesOverrideTable.setDescription('The pmCapabilitiesOverrideTable allows management stations\n to override pmCapabilitiesTable entries that have been\n registered by the agent. This facility can be used to avoid\n situations in which managers in the network send policies to\n a system that has advertised a capability in the\n pmCapabilitiesTable but that should not be installed on this\n particular system. One example could be newly deployed\n\n\n\n equipment that is still in a trial state in a trial state or\n resources reserved for some other administrative reason.\n This table can also be used to override entries in the\n pmCapabilitiesTable through the use of the\n pmCapabilitiesOverrideState object. Capabilities can also be\n declared available in this table that were not registered in\n the pmCapabilitiesTable. A management application can make\n an entry in this table for any valid OID and declare the\n capability available by setting the\n pmCapabilitiesOverrideState for that row to valid(1).') pm_capabilities_override_entry = mib_table_row((1, 3, 6, 1, 2, 1, 124, 6, 1)).setIndexNames((0, 'POLICY-BASED-MANAGEMENT-MIB', 'pmCapabilitiesOverrideType')) if mibBuilder.loadTexts: pmCapabilitiesOverrideEntry.setDescription("An entry in this table indicates whether a particular\n capability is valid or invalid.\n\n Note that some values of this table's index may result in an\n instance name that exceeds a length of 128 sub-identifiers,\n which exceeds the maximum for the SNMP\n protocol. Implementations should take care to avoid such\n values.") pm_capabilities_override_type = mib_table_column((1, 3, 6, 1, 2, 1, 124, 6, 1, 1), object_identifier()) if mibBuilder.loadTexts: pmCapabilitiesOverrideType.setDescription('This is the OID of the capability that is declared valid or\n invalid by the pmCapabilitiesOverrideState value for this\n row. Any valid OID, as described in the pmCapabilitiesTable,\n is permitted in the pmCapabilitiesOverrideType object. This\n means that capabilities can be expressed at any level, from a\n specific instance of an object to a table or entire module.\n There are no restrictions on whether these objects are from\n standards track MIB documents or in the private branch of the\n MIB.\n\n\n\n If an entry exists in this table for which there is a\n corresponding entry in the pmCapabilitiesTable, then this entry\n shall have precedence over the entry in the\n pmCapabilitiesTable. All entries in this table must be\n preserved across reboots.\n\n As this object is used in the index for the\n pmCapabilitiesOverrideTable, users of this table should be\n careful not to create entries that would result in instance\n names with more than 128 sub-identifiers.') pm_capabilities_override_state = mib_table_column((1, 3, 6, 1, 2, 1, 124, 6, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('invalid', 1), ('valid', 2)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: pmCapabilitiesOverrideState.setDescription('A pmCapabilitiesOverrideState of invalid indicates that\n management software should not send policies to this system\n for the capability identified in the\n pmCapabilitiesOverrideType for this row of the table. This\n behavior is the same whether the capability represented by\n the pmCapabilitiesOverrideType exists only in this table\n (that is, it was installed by an external management\n application) or exists in this table as well as the\n pmCapabilitiesTable. This would be the case when a manager\n wanted to disable a capability that the native management\n system found and registered in the pmCapabilitiesTable.\n\n An entry in this table that has a pmCapabilitiesOverrideState\n of valid should be treated as though it appeared in the\n pmCapabilitiesTable. If the entry also exists in the\n pmCapabilitiesTable in the pmCapabilitiesType object, and if\n the value of this object is valid, then the system shall\n operate as though this entry did not exist and policy\n installations and executions will continue in a normal\n fashion.') pm_capabilities_override_row_status = mib_table_column((1, 3, 6, 1, 2, 1, 124, 6, 1, 3), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: pmCapabilitiesOverrideRowStatus.setDescription('The row status of this pmCapabilitiesOverrideEntry.\n\n\n\n If the value of this object is active, no object in this row\n may be modified.') pm_sched_local_time = mib_scalar((1, 3, 6, 1, 2, 1, 124, 7), date_and_time().subtype(subtypeSpec=value_size_constraint(11, 11)).setFixedLength(11)).setMaxAccess('readonly') if mibBuilder.loadTexts: pmSchedLocalTime.setDescription('The local time used by the scheduler. Schedules that\n refer to calendar time will use the local time indicated\n by this object. An implementation MUST return all 11 bytes\n of the DateAndTime textual-convention so that a manager\n may retrieve the offset from GMT time.') pm_sched_table = mib_table((1, 3, 6, 1, 2, 1, 124, 8)) if mibBuilder.loadTexts: pmSchedTable.setDescription('This table defines schedules for policies.') pm_sched_entry = mib_table_row((1, 3, 6, 1, 2, 1, 124, 8, 1)).setIndexNames((0, 'POLICY-BASED-MANAGEMENT-MIB', 'pmSchedIndex')) if mibBuilder.loadTexts: pmSchedEntry.setDescription('An entry describing a particular schedule.\n\n Unless noted otherwise, writable objects of this row can be\n modified independently of the current value of pmSchedRowStatus,\n pmSchedAdminStatus and pmSchedOperStatus. In particular, it\n is legal to modify pmSchedWeekDay, pmSchedMonth, and\n pmSchedDay when pmSchedRowStatus is active.') pm_sched_index = mib_table_column((1, 3, 6, 1, 2, 1, 124, 8, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4294967295))) if mibBuilder.loadTexts: pmSchedIndex.setDescription('The locally unique, administratively assigned index for this\n scheduling entry.') pm_sched_group_index = mib_table_column((1, 3, 6, 1, 2, 1, 124, 8, 1, 2), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4294967295))).setMaxAccess('readcreate') if mibBuilder.loadTexts: pmSchedGroupIndex.setDescription('The locally unique, administratively assigned index for the\n schedule group this scheduling entry belongs to.\n\n To assign multiple schedule entries to the same group, the\n pmSchedGroupIndex of each entry in the group will be set to\n the same value. This pmSchedGroupIndex value must be equal to\n the pmSchedIndex of one of the entries in the group. If the\n entry whose pmSchedIndex equals the pmSchedGroupIndex\n for the group is deleted, the agent will assign a new\n pmSchedGroupIndex to all remaining members of the group.\n\n If an entry is not a member of a group, its pmSchedGroupIndex\n must be assigned to the value of its pmSchedIndex.\n\n Policies that are controlled by a group of schedule entries\n are active when any schedule in the group is active.') pm_sched_descr = mib_table_column((1, 3, 6, 1, 2, 1, 124, 8, 1, 3), pm_utf8_string().clone(hexValue='')).setMaxAccess('readcreate') if mibBuilder.loadTexts: pmSchedDescr.setDescription('The human-readable description of the purpose of this\n scheduling entry.') pm_sched_time_period = mib_table_column((1, 3, 6, 1, 2, 1, 124, 8, 1, 4), pm_utf8_string().subtype(subtypeSpec=value_size_constraint(0, 31))).setMaxAccess('readcreate') if mibBuilder.loadTexts: pmSchedTimePeriod.setDescription("The overall range of calendar dates and times over which this\n schedule is active. It is stored in a slightly extended version\n of the format for a 'period-explicit' defined in RFC 2445.\n This format is expressed as a string representing the\n starting date and time, in which the character 'T' indicates\n the beginning of the time portion, followed by the solidus\n character, '/', followed by a similar string representing an\n end date and time. The start of the period MUST be before the\n end of the period. Date-Time values are expressed as\n substrings of the form 'yyyymmddThhmmss'. For example:\n\n 20000101T080000/20000131T130000\n\n January 1, 2000, 0800 through January 31, 2000, 1PM\n\n The 'Date with UTC time' format defined in RFC 2445 in which\n the Date-Time string ends with the character 'Z' is not\n allowed.\n\n This 'period-explicit' format is also extended to allow two\n special cases in which one of the Date-Time strings is\n replaced with a special string defined in RFC 2445:\n\n 1. If the first Date-Time value is replaced with the string\n 'THISANDPRIOR', then the value indicates that the schedule\n is active at any time prior to the Date-Time that appears\n after the '/'.\n\n 2. If the second Date-Time is replaced with the string\n 'THISANDFUTURE', then the value indicates that the schedule\n is active at any time after the Date-Time that appears\n before the '/'.\n\n\n\n\n Note that although RFC 2445 defines these two strings, they are\n not specified for use in the 'period-explicit' format. The use\n of these strings represents an extension to the\n 'period-explicit' format.") pm_sched_month = mib_table_column((1, 3, 6, 1, 2, 1, 124, 8, 1, 5), bits().clone(namedValues=named_values(('january', 0), ('february', 1), ('march', 2), ('april', 3), ('may', 4), ('june', 5), ('july', 6), ('august', 7), ('september', 8), ('october', 9), ('november', 10), ('december', 11))).clone(namedValues=named_values(('january', 0), ('february', 1), ('march', 2), ('april', 3), ('may', 4), ('june', 5), ('july', 6), ('august', 7), ('september', 8), ('october', 9), ('november', 10), ('december', 11)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: pmSchedMonth.setDescription('Within the overall time period specified in the\n pmSchedTimePeriod object, the value of this object specifies\n the specific months within that time period when the schedule\n is active. Setting all bits will cause the schedule to act\n independently of the month.') pm_sched_day = mib_table_column((1, 3, 6, 1, 2, 1, 124, 8, 1, 6), bits().clone(namedValues=named_values(('d1', 0), ('d2', 1), ('d3', 2), ('d4', 3), ('d5', 4), ('d6', 5), ('d7', 6), ('d8', 7), ('d9', 8), ('d10', 9), ('d11', 10), ('d12', 11), ('d13', 12), ('d14', 13), ('d15', 14), ('d16', 15), ('d17', 16), ('d18', 17), ('d19', 18), ('d20', 19), ('d21', 20), ('d22', 21), ('d23', 22), ('d24', 23), ('d25', 24), ('d26', 25), ('d27', 26), ('d28', 27), ('d29', 28), ('d30', 29), ('d31', 30), ('r1', 31), ('r2', 32), ('r3', 33), ('r4', 34), ('r5', 35), ('r6', 36), ('r7', 37), ('r8', 38), ('r9', 39), ('r10', 40), ('r11', 41), ('r12', 42), ('r13', 43), ('r14', 44), ('r15', 45), ('r16', 46), ('r17', 47), ('r18', 48), ('r19', 49), ('r20', 50), ('r21', 51), ('r22', 52), ('r23', 53), ('r24', 54), ('r25', 55), ('r26', 56), ('r27', 57), ('r28', 58), ('r29', 59), ('r30', 60), ('r31', 61))).clone(namedValues=named_values(('d1', 0), ('d2', 1), ('d3', 2), ('d4', 3), ('d5', 4), ('d6', 5), ('d7', 6), ('d8', 7), ('d9', 8), ('d10', 9), ('d11', 10), ('d12', 11), ('d13', 12), ('d14', 13), ('d15', 14), ('d16', 15), ('d17', 16), ('d18', 17), ('d19', 18), ('d20', 19), ('d21', 20), ('d22', 21), ('d23', 22), ('d24', 23), ('d25', 24), ('d26', 25), ('d27', 26), ('d28', 27), ('d29', 28), ('d30', 29), ('d31', 30), ('r1', 31), ('r2', 32), ('r3', 33), ('r4', 34), ('r5', 35), ('r6', 36), ('r7', 37), ('r8', 38), ('r9', 39), ('r10', 40), ('r11', 41), ('r12', 42), ('r13', 43), ('r14', 44), ('r15', 45), ('r16', 46), ('r17', 47), ('r18', 48), ('r19', 49), ('r20', 50), ('r21', 51), ('r22', 52), ('r23', 53), ('r24', 54), ('r25', 55), ('r26', 56), ('r27', 57), ('r28', 58), ('r29', 59), ('r30', 60), ('r31', 61)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: pmSchedDay.setDescription("Within the overall time period specified in the\n pmSchedTimePeriod object, the value of this object specifies\n the specific days of the month within that time period when\n the schedule is active.\n\n There are two sets of bits one can use to define the day\n within a month:\n\n Enumerations starting with the letter 'd' indicate a\n day in a month relative to the first day of a month.\n The first day of the month can therefore be specified\n by setting the bit d1(0), and d31(30) means the last\n day of a month with 31 days.\n\n Enumerations starting with the letter 'r' indicate a\n day in a month in reverse order, relative to the last\n day of a month. The last day in the month can therefore\n be specified by setting the bit r1(31), and r31(61) means\n the first day of a month with 31 days.\n\n Setting multiple bits will include several days in the set\n of possible days for this schedule. Setting all bits starting\n with the letter 'd' or all bits starting with the letter 'r'\n will cause the schedule to act independently of the day of the\n month.") pm_sched_week_day = mib_table_column((1, 3, 6, 1, 2, 1, 124, 8, 1, 7), bits().clone(namedValues=named_values(('sunday', 0), ('monday', 1), ('tuesday', 2), ('wednesday', 3), ('thursday', 4), ('friday', 5), ('saturday', 6))).clone(namedValues=named_values(('sunday', 0), ('monday', 1), ('tuesday', 2), ('wednesday', 3), ('thursday', 4), ('friday', 5), ('saturday', 6)))).setMaxAccess('readcreate') if mibBuilder.loadTexts: pmSchedWeekDay.setDescription('Within the overall time period specified in the\n pmSchedTimePeriod object, the value of this object specifies\n the specific days of the week within that time period when\n the schedule is active. Setting all bits will cause the\n schedule to act independently of the day of the week.') pm_sched_time_of_day = mib_table_column((1, 3, 6, 1, 2, 1, 124, 8, 1, 8), pm_utf8_string().subtype(subtypeSpec=value_size_constraint(0, 15)).clone(hexValue='543030303030302F54323335393539')).setMaxAccess('readcreate') if mibBuilder.loadTexts: pmSchedTimeOfDay.setDescription("Within the overall time period specified in the\n pmSchedTimePeriod object, the value of this object specifies\n the range of times in a day when the schedule is active.\n\n This value is stored in a format based on the RFC 2445 format\n for 'time': The character 'T' followed by a 'time' string,\n followed by the solidus character, '/', followed by the\n character 'T', followed by a second time string. The first time\n indicates the beginning of the range, and the second time\n indicates the end. Thus, this value takes the following\n form:\n\n 'Thhmmss/Thhmmss'.\n\n The second substring always identifies a later time than the\n first substring. To allow for ranges that span midnight,\n however, the value of the second string may be smaller than\n the value of the first substring. Thus, 'T080000/T210000'\n identifies the range from 0800 until 2100, whereas\n 'T210000/T080000' identifies the range from 2100 until 0800 of\n the following day.\n\n When a range spans midnight, by definition it includes parts\n of two successive days. When one of these days is also\n selected by either the MonthOfYearMask, DayOfMonthMask, and/or\n DayOfWeekMask, but the other day is not, then the policy is\n active only during the portion of the range that falls on the\n selected day. For example, if the range extends from 2100\n\n\n\n until 0800, and the day of week mask selects Monday and\n Tuesday, then the policy is active during the following three\n intervals:\n\n From midnight Sunday until 0800 Monday\n From 2100 Monday until 0800 Tuesday\n From 2100 Tuesday until 23:59:59 Tuesday\n\n Setting this value to 'T000000/T235959' will cause the\n schedule to act independently of the time of day.") pm_sched_local_or_utc = mib_table_column((1, 3, 6, 1, 2, 1, 124, 8, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('localTime', 1), ('utcTime', 2))).clone('utcTime')).setMaxAccess('readcreate') if mibBuilder.loadTexts: pmSchedLocalOrUtc.setDescription('This object indicates whether the times represented in the\n TimePeriod object and in the various Mask objects represent\n local times or UTC times.') pm_sched_storage_type = mib_table_column((1, 3, 6, 1, 2, 1, 124, 8, 1, 10), storage_type().clone('volatile')).setMaxAccess('readcreate') if mibBuilder.loadTexts: pmSchedStorageType.setDescription("This object defines whether this schedule entry is kept\n in volatile storage and lost upon reboot or\n backed up by non-volatile or permanent storage.\n\n Conceptual rows having the value 'permanent' must allow write\n access to the columnar objects pmSchedDescr, pmSchedWeekDay,\n pmSchedMonth, and pmSchedDay.\n\n If the value of this object is 'permanent', no values in the\n associated row have to be writable.") pm_sched_row_status = mib_table_column((1, 3, 6, 1, 2, 1, 124, 8, 1, 11), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: pmSchedRowStatus.setDescription('The status of this schedule entry.\n\n If the value of this object is active, no object in this row\n may be modified.') pm_tracking_pe_table = mib_table((1, 3, 6, 1, 2, 1, 124, 9)) if mibBuilder.loadTexts: pmTrackingPETable.setDescription('The pmTrackingPETable describes what elements\n are active (under control of) a policy. This table is indexed\n in order to optimize retrieval of the entire status for a\n given policy.') pm_tracking_pe_entry = mib_table_row((1, 3, 6, 1, 2, 1, 124, 9, 1)).setIndexNames((0, 'POLICY-BASED-MANAGEMENT-MIB', 'pmPolicyIndex'), (0, 'POLICY-BASED-MANAGEMENT-MIB', 'pmTrackingPEElement'), (0, 'POLICY-BASED-MANAGEMENT-MIB', 'pmTrackingPEContextName'), (0, 'POLICY-BASED-MANAGEMENT-MIB', 'pmTrackingPEContextEngineID')) if mibBuilder.loadTexts: pmTrackingPEEntry.setDescription('An entry in the pmTrackingPETable. The pmPolicyIndex in\n the index specifies the policy tracked by this entry.\n\n Note that some combinations of index values may result in an\n instance name that exceeds a length of 128 sub-identifiers,\n which exceeds the maximum for the SNMP\n protocol. Implementations should take care to avoid such\n combinations.') pm_tracking_pe_element = mib_table_column((1, 3, 6, 1, 2, 1, 124, 9, 1, 1), row_pointer()) if mibBuilder.loadTexts: pmTrackingPEElement.setDescription('The element that is acted upon by the associated policy.\n\n As this object is used in the index for the\n pmTrackingPETable, users of this table should be careful not\n to create entries that would result in instance names with\n more than 128 sub-identifiers.') pm_tracking_pe_context_name = mib_table_column((1, 3, 6, 1, 2, 1, 124, 9, 1, 2), snmp_admin_string().subtype(subtypeSpec=value_size_constraint(0, 32))) if mibBuilder.loadTexts: pmTrackingPEContextName.setDescription('If the associated element is not in the default SNMP context\n for the target system, this object is used to identify the\n context. If the element is in the default context, this object\n is equal to the empty string.') pm_tracking_pe_context_engine_id = mib_table_column((1, 3, 6, 1, 2, 1, 124, 9, 1, 3), octet_string().subtype(subtypeSpec=constraints_union(value_size_constraint(0, 0), value_size_constraint(5, 32)))) if mibBuilder.loadTexts: pmTrackingPEContextEngineID.setDescription('If the associated element is on a remote system, this object\n is used to identify the remote system. This object contains\n the contextEngineID of the system on which the associated\n element resides. If the element is on the local system,\n this object will be the empty string.') pm_tracking_pe_info = mib_table_column((1, 3, 6, 1, 2, 1, 124, 9, 1, 4), bits().clone(namedValues=named_values(('actionSkippedDueToPrecedence', 0), ('conditionRunTimeException', 1), ('conditionUserSignal', 2), ('actionRunTimeException', 3), ('actionUserSignal', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: pmTrackingPEInfo.setDescription("This object returns information about the previous policy\n script executions.\n\n If the actionSkippedDueToPrecedence(1) bit is set, the last\n execution of the associated policy condition returned non-zero,\n but the action is not active, because it was trumped by a\n matching policy condition in the same precedence group with a\n higher precedence value.\n\n If the conditionRunTimeException(2) bit is set, the last\n execution of the associated policy condition encountered a\n run-time exception and aborted.\n\n If the conditionUserSignal(3) bit is set, the last\n execution of the associated policy condition called the\n signalError() function.\n\n If the actionRunTimeException(4) bit is set, the last\n execution of the associated policy action encountered a\n run-time exception and aborted.\n\n If the actionUserSignal(5) bit is set, the last\n execution of the associated policy action called the\n signalError() function.\n\n Entries will only exist in this table of one or more bits are\n set. In particular, if an entry does not exist for a\n particular policy/element combination, it can be assumed that\n the policy's condition did not match 'this element'.") pm_tracking_ep_table = mib_table((1, 3, 6, 1, 2, 1, 124, 10)) if mibBuilder.loadTexts: pmTrackingEPTable.setDescription('The pmTrackingEPTable describes what policies\n are controlling an element. This table is indexed in\n order to optimize retrieval of the status of all policies\n active for a given element.') pm_tracking_ep_entry = mib_table_row((1, 3, 6, 1, 2, 1, 124, 10, 1)).setIndexNames((0, 'POLICY-BASED-MANAGEMENT-MIB', 'pmTrackingEPElement'), (0, 'POLICY-BASED-MANAGEMENT-MIB', 'pmTrackingEPContextName'), (0, 'POLICY-BASED-MANAGEMENT-MIB', 'pmTrackingEPContextEngineID'), (0, 'POLICY-BASED-MANAGEMENT-MIB', 'pmPolicyIndex')) if mibBuilder.loadTexts: pmTrackingEPEntry.setDescription("An entry in the pmTrackingEPTable. Entries exist for all\n element/policy combinations for which the policy's condition\n matches and only if the schedule for the policy is active.\n\n The pmPolicyIndex in the index specifies the policy\n tracked by this entry.\n\n Note that some combinations of index values may result in an\n instance name that exceeds a length of 128 sub-identifiers,\n which exceeds the maximum for the SNMP protocol.\n Implementations should take care to avoid such combinations.") pm_tracking_ep_element = mib_table_column((1, 3, 6, 1, 2, 1, 124, 10, 1, 1), row_pointer()) if mibBuilder.loadTexts: pmTrackingEPElement.setDescription('The element acted upon by the associated policy.\n\n As this object is used in the index for the\n pmTrackingEPTable, users of this table should be careful\n not to create entries that would result in instance names\n with more than 128 sub-identifiers.') pm_tracking_ep_context_name = mib_table_column((1, 3, 6, 1, 2, 1, 124, 10, 1, 2), snmp_admin_string().subtype(subtypeSpec=value_size_constraint(0, 32))) if mibBuilder.loadTexts: pmTrackingEPContextName.setDescription('If the associated element is not in the default SNMP context\n\n\n\n for the target system, this object is used to identify the\n context. If the element is in the default context, this object\n is equal to the empty string.') pm_tracking_ep_context_engine_id = mib_table_column((1, 3, 6, 1, 2, 1, 124, 10, 1, 3), octet_string().subtype(subtypeSpec=constraints_union(value_size_constraint(0, 0), value_size_constraint(5, 32)))) if mibBuilder.loadTexts: pmTrackingEPContextEngineID.setDescription('If the associated element is on a remote system, this object\n is used to identify the remote system. This object contains\n the contextEngineID of the system on which the associated\n element resides. If the element is on the local system,\n this object will be the empty string.') pm_tracking_ep_status = mib_table_column((1, 3, 6, 1, 2, 1, 124, 10, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('on', 1), ('forceOff', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: pmTrackingEPStatus.setDescription("This entry will only exist if the calendar for the policy is\n active and if the associated policyCondition returned 1 for\n 'this element'.\n\n A policy can be forcibly disabled on a particular element\n by setting this value to forceOff(2). The agent should then\n act as though the policyCondition failed for 'this element'.\n The forceOff(2) state will persist (even across reboots) until\n this value is set to on(1) by a management request. The\n forceOff(2) state may be set even if the entry does not\n previously exist so that future policy invocations can be\n avoided.\n\n Unless forcibly disabled, if this entry exists, its value\n will be on(1).") pm_debugging_table = mib_table((1, 3, 6, 1, 2, 1, 124, 11)) if mibBuilder.loadTexts: pmDebuggingTable.setDescription('Policies that have debugging turned on will generate a log\n entry in the policy debugging table for every runtime\n exception that occurs in either the condition or action\n code.\n\n The pmDebuggingTable logs debugging messages when\n policies experience run-time exceptions in either the condition\n or action code and the associated pmPolicyDebugging object\n has been turned on.\n\n The maximum number of debugging entries that will be stored\n and the maximum length of time an entry will be kept are an\n implementation-dependent manner. If entries must\n be discarded to make room for new entries, the oldest entries\n must be discarded first.\n\n If the system restarts, all debugging entries may be deleted.') pm_debugging_entry = mib_table_row((1, 3, 6, 1, 2, 1, 124, 11, 1)).setIndexNames((0, 'POLICY-BASED-MANAGEMENT-MIB', 'pmPolicyIndex'), (0, 'POLICY-BASED-MANAGEMENT-MIB', 'pmDebuggingElement'), (0, 'POLICY-BASED-MANAGEMENT-MIB', 'pmDebuggingContextName'), (0, 'POLICY-BASED-MANAGEMENT-MIB', 'pmDebuggingContextEngineID'), (0, 'POLICY-BASED-MANAGEMENT-MIB', 'pmDebuggingLogIndex')) if mibBuilder.loadTexts: pmDebuggingEntry.setDescription('An entry in the pmDebuggingTable. The pmPolicyIndex in the\n index specifies the policy that encountered the exception\n that led to this log entry.\n\n Note that some combinations of index values may result in an\n instance name that exceeds a length of 128 sub-identifiers,\n which exceeds the maximum for the SNMP protocol.\n Implementations should take care to avoid such combinations.') pm_debugging_element = mib_table_column((1, 3, 6, 1, 2, 1, 124, 11, 1, 1), row_pointer()) if mibBuilder.loadTexts: pmDebuggingElement.setDescription("The element the policy was executing on when it encountered\n the error that led to this log entry.\n\n For example, if the element is interface 3, then this object\n will contain the OID for 'ifIndex.3'.\n\n As this object is used in the index for the\n pmDebuggingTable, users of this table should be careful\n not to create entries that would result in instance names\n with more than 128 sub-identifiers.") pm_debugging_context_name = mib_table_column((1, 3, 6, 1, 2, 1, 124, 11, 1, 2), snmp_admin_string().subtype(subtypeSpec=value_size_constraint(0, 32))) if mibBuilder.loadTexts: pmDebuggingContextName.setDescription('If the associated element is not in the default SNMP context\n for the target system, this object is used to identify the\n context. If the element is in the default context, this object\n is equal to the empty string.') pm_debugging_context_engine_id = mib_table_column((1, 3, 6, 1, 2, 1, 124, 11, 1, 3), octet_string().subtype(subtypeSpec=constraints_union(value_size_constraint(0, 0), value_size_constraint(5, 32)))) if mibBuilder.loadTexts: pmDebuggingContextEngineID.setDescription('If the associated element is on a remote system, this object\n is used to identify the remote system. This object contains\n the contextEngineID of the system on which the associated\n element resides. If the element is on the local system,\n this object will be the empty string.') pm_debugging_log_index = mib_table_column((1, 3, 6, 1, 2, 1, 124, 11, 1, 4), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4294967295))) if mibBuilder.loadTexts: pmDebuggingLogIndex.setDescription('A unique index for this log entry among other log entries\n for this policy/element combination.') pm_debugging_message = mib_table_column((1, 3, 6, 1, 2, 1, 124, 11, 1, 5), pm_utf8_string().subtype(subtypeSpec=value_size_constraint(0, 128))).setMaxAccess('readonly') if mibBuilder.loadTexts: pmDebuggingMessage.setDescription('An error message generated by the policy execution\n environment. It is recommended that this message include the\n time of day when the message was generated, if known.') pm_notifications = mib_identifier((1, 3, 6, 1, 2, 1, 124, 0)) pm_new_role_notification = notification_type((1, 3, 6, 1, 2, 1, 124, 0, 1)).setObjects(*(('POLICY-BASED-MANAGEMENT-MIB', 'pmRoleStatus'),)) if mibBuilder.loadTexts: pmNewRoleNotification.setDescription('The pmNewRoleNotification is sent when an agent is configured\n with its first instance of a previously unused role string\n (not every time a new element is given a particular role).\n\n An instance of the pmRoleStatus object is sent containing\n the new roleString in its index. In the event that two or\n more elements are given the same role simultaneously, it is an\n implementation-dependent matter as to which pmRoleTable\n instance will be included in the notification.') pm_new_capability_notification = notification_type((1, 3, 6, 1, 2, 1, 124, 0, 2)).setObjects(*(('POLICY-BASED-MANAGEMENT-MIB', 'pmCapabilitiesType'),)) if mibBuilder.loadTexts: pmNewCapabilityNotification.setDescription('The pmNewCapabilityNotification is sent when an agent\n gains a new capability that did not previously exist in any\n element on the system (not every time an element gains a\n particular capability).\n\n An instance of the pmCapabilitiesType object is sent containing\n the identity of the new capability. In the event that two or\n more elements gain the same capability simultaneously, it is an\n implementation-dependent matter as to which pmCapabilitiesType\n instance will be included in the notification.') pm_abnormal_term_notification = notification_type((1, 3, 6, 1, 2, 1, 124, 0, 3)).setObjects(*(('POLICY-BASED-MANAGEMENT-MIB', 'pmTrackingPEInfo'),)) if mibBuilder.loadTexts: pmAbnormalTermNotification.setDescription("The pmAbnormalTermNotification is sent when a policy's\n pmPolicyAbnormalTerminations gauge value changes from zero to\n any value greater than zero and no such notification has been\n sent for that policy in the last 5 minutes.\n\n The notification contains an instance of the pmTrackingPEInfo\n object where the pmPolicyIndex component of the index\n identifies the associated policy and the rest of the index\n identifies an element on which the policy failed.") pm_conformance = mib_identifier((1, 3, 6, 1, 2, 1, 124, 12)) pm_compliances = mib_identifier((1, 3, 6, 1, 2, 1, 124, 12, 1)) pm_groups = mib_identifier((1, 3, 6, 1, 2, 1, 124, 12, 2)) pm_compliance = module_compliance((1, 3, 6, 1, 2, 1, 124, 12, 1, 1)).setObjects(*(('POLICY-BASED-MANAGEMENT-MIB', 'pmPolicyManagementGroup'), ('POLICY-BASED-MANAGEMENT-MIB', 'pmSchedGroup'), ('POLICY-BASED-MANAGEMENT-MIB', 'pmNotificationGroup'))) if mibBuilder.loadTexts: pmCompliance.setDescription('Describes the requirements for conformance to\n the Policy-Based Management MIB') pm_policy_management_group = object_group((1, 3, 6, 1, 2, 1, 124, 12, 2, 1)).setObjects(*(('POLICY-BASED-MANAGEMENT-MIB', 'pmPolicyPrecedenceGroup'), ('POLICY-BASED-MANAGEMENT-MIB', 'pmPolicyPrecedence'), ('POLICY-BASED-MANAGEMENT-MIB', 'pmPolicySchedule'), ('POLICY-BASED-MANAGEMENT-MIB', 'pmPolicyElementTypeFilter'), ('POLICY-BASED-MANAGEMENT-MIB', 'pmPolicyConditionScriptIndex'), ('POLICY-BASED-MANAGEMENT-MIB', 'pmPolicyActionScriptIndex'), ('POLICY-BASED-MANAGEMENT-MIB', 'pmPolicyParameters'), ('POLICY-BASED-MANAGEMENT-MIB', 'pmPolicyConditionMaxLatency'), ('POLICY-BASED-MANAGEMENT-MIB', 'pmPolicyActionMaxLatency'), ('POLICY-BASED-MANAGEMENT-MIB', 'pmPolicyMaxIterations'), ('POLICY-BASED-MANAGEMENT-MIB', 'pmPolicyDescription'), ('POLICY-BASED-MANAGEMENT-MIB', 'pmPolicyMatches'), ('POLICY-BASED-MANAGEMENT-MIB', 'pmPolicyAbnormalTerminations'), ('POLICY-BASED-MANAGEMENT-MIB', 'pmPolicyExecutionErrors'), ('POLICY-BASED-MANAGEMENT-MIB', 'pmPolicyDebugging'), ('POLICY-BASED-MANAGEMENT-MIB', 'pmPolicyStorageType'), ('POLICY-BASED-MANAGEMENT-MIB', 'pmPolicyAdminStatus'), ('POLICY-BASED-MANAGEMENT-MIB', 'pmPolicyRowStatus'), ('POLICY-BASED-MANAGEMENT-MIB', 'pmPolicyCodeText'), ('POLICY-BASED-MANAGEMENT-MIB', 'pmPolicyCodeStatus'), ('POLICY-BASED-MANAGEMENT-MIB', 'pmElementTypeRegMaxLatency'), ('POLICY-BASED-MANAGEMENT-MIB', 'pmElementTypeRegDescription'), ('POLICY-BASED-MANAGEMENT-MIB', 'pmElementTypeRegStorageType'), ('POLICY-BASED-MANAGEMENT-MIB', 'pmElementTypeRegRowStatus'), ('POLICY-BASED-MANAGEMENT-MIB', 'pmRoleStatus'), ('POLICY-BASED-MANAGEMENT-MIB', 'pmCapabilitiesType'), ('POLICY-BASED-MANAGEMENT-MIB', 'pmCapabilitiesOverrideState'), ('POLICY-BASED-MANAGEMENT-MIB', 'pmCapabilitiesOverrideRowStatus'), ('POLICY-BASED-MANAGEMENT-MIB', 'pmTrackingPEInfo'), ('POLICY-BASED-MANAGEMENT-MIB', 'pmTrackingEPStatus'), ('POLICY-BASED-MANAGEMENT-MIB', 'pmDebuggingMessage'))) if mibBuilder.loadTexts: pmPolicyManagementGroup.setDescription('Objects that allow for the creation and management of\n configuration policies.') pm_sched_group = object_group((1, 3, 6, 1, 2, 1, 124, 12, 2, 2)).setObjects(*(('POLICY-BASED-MANAGEMENT-MIB', 'pmSchedLocalTime'), ('POLICY-BASED-MANAGEMENT-MIB', 'pmSchedGroupIndex'), ('POLICY-BASED-MANAGEMENT-MIB', 'pmSchedDescr'), ('POLICY-BASED-MANAGEMENT-MIB', 'pmSchedTimePeriod'), ('POLICY-BASED-MANAGEMENT-MIB', 'pmSchedMonth'), ('POLICY-BASED-MANAGEMENT-MIB', 'pmSchedDay'), ('POLICY-BASED-MANAGEMENT-MIB', 'pmSchedWeekDay'), ('POLICY-BASED-MANAGEMENT-MIB', 'pmSchedTimeOfDay'), ('POLICY-BASED-MANAGEMENT-MIB', 'pmSchedLocalOrUtc'), ('POLICY-BASED-MANAGEMENT-MIB', 'pmSchedStorageType'), ('POLICY-BASED-MANAGEMENT-MIB', 'pmSchedRowStatus'))) if mibBuilder.loadTexts: pmSchedGroup.setDescription('Objects that allow for the scheduling of policies.') pm_notification_group = notification_group((1, 3, 6, 1, 2, 1, 124, 12, 2, 3)).setObjects(*(('POLICY-BASED-MANAGEMENT-MIB', 'pmNewRoleNotification'), ('POLICY-BASED-MANAGEMENT-MIB', 'pmNewCapabilityNotification'), ('POLICY-BASED-MANAGEMENT-MIB', 'pmAbnormalTermNotification'))) if mibBuilder.loadTexts: pmNotificationGroup.setDescription('Notifications sent by an Policy MIB agent.') pm_base_function_library = mib_identifier((1, 3, 6, 1, 2, 1, 124, 12, 2, 4)) mibBuilder.exportSymbols('POLICY-BASED-MANAGEMENT-MIB', pmRoleString=pmRoleString, pmSchedIndex=pmSchedIndex, pmCapabilitiesOverrideEntry=pmCapabilitiesOverrideEntry, pmPolicyActionMaxLatency=pmPolicyActionMaxLatency, pmSchedTimeOfDay=pmSchedTimeOfDay, pmTrackingPEContextEngineID=pmTrackingPEContextEngineID, pmPolicyDescription=pmPolicyDescription, PmUTF8String=PmUTF8String, pmDebuggingMessage=pmDebuggingMessage, pmElementTypeRegRowStatus=pmElementTypeRegRowStatus, pmDebuggingContextName=pmDebuggingContextName, pmPolicyCodeSegment=pmPolicyCodeSegment, pmPolicyManagementGroup=pmPolicyManagementGroup, pmPolicyMaxIterations=pmPolicyMaxIterations, pmPolicyExecutionErrors=pmPolicyExecutionErrors, pmCompliance=pmCompliance, PYSNMP_MODULE_ID=pmMib, pmPolicyPrecedenceGroup=pmPolicyPrecedenceGroup, pmPolicyMatches=pmPolicyMatches, pmPolicySchedule=pmPolicySchedule, pmNewRoleNotification=pmNewRoleNotification, pmPolicyDebugging=pmPolicyDebugging, pmAbnormalTermNotification=pmAbnormalTermNotification, pmCapabilitiesOverrideState=pmCapabilitiesOverrideState, pmTrackingEPContextName=pmTrackingEPContextName, pmPolicyAdminStatus=pmPolicyAdminStatus, pmSchedEntry=pmSchedEntry, pmSchedLocalTime=pmSchedLocalTime, pmPolicyConditionScriptIndex=pmPolicyConditionScriptIndex, pmCapabilitiesOverrideRowStatus=pmCapabilitiesOverrideRowStatus, pmPolicyCodeStatus=pmPolicyCodeStatus, pmElementTypeRegTable=pmElementTypeRegTable, pmSchedTimePeriod=pmSchedTimePeriod, pmRoleContextName=pmRoleContextName, pmTrackingEPEntry=pmTrackingEPEntry, pmRoleContextEngineID=pmRoleContextEngineID, pmDebuggingElement=pmDebuggingElement, pmDebuggingContextEngineID=pmDebuggingContextEngineID, pmElementTypeRegMaxLatency=pmElementTypeRegMaxLatency, pmPolicyEntry=pmPolicyEntry, pmPolicyElementTypeFilter=pmPolicyElementTypeFilter, pmMib=pmMib, pmSchedDay=pmSchedDay, pmCapabilitiesTable=pmCapabilitiesTable, pmCompliances=pmCompliances, pmPolicyAdminGroup=pmPolicyAdminGroup, pmCapabilitiesOverrideTable=pmCapabilitiesOverrideTable, pmNotifications=pmNotifications, pmTrackingEPStatus=pmTrackingEPStatus, pmTrackingPEElement=pmTrackingPEElement, pmRoleTable=pmRoleTable, pmConformance=pmConformance, pmDebuggingTable=pmDebuggingTable, pmPolicyPrecedence=pmPolicyPrecedence, pmPolicyCodeEntry=pmPolicyCodeEntry, pmSchedTable=pmSchedTable, pmCapabilitiesType=pmCapabilitiesType, pmSchedGroup=pmSchedGroup, pmPolicyCodeText=pmPolicyCodeText, pmRoleStatus=pmRoleStatus, pmTrackingPETable=pmTrackingPETable, pmRoleElement=pmRoleElement, pmSchedWeekDay=pmSchedWeekDay, pmPolicyCodeTable=pmPolicyCodeTable, pmElementTypeRegEntry=pmElementTypeRegEntry, pmTrackingEPTable=pmTrackingEPTable, pmPolicyIndex=pmPolicyIndex, pmElementTypeRegOIDPrefix=pmElementTypeRegOIDPrefix, pmPolicyActionScriptIndex=pmPolicyActionScriptIndex, pmSchedGroupIndex=pmSchedGroupIndex, pmNewCapabilityNotification=pmNewCapabilityNotification, pmDebuggingEntry=pmDebuggingEntry, pmRoleEntry=pmRoleEntry, pmPolicyCodeScriptIndex=pmPolicyCodeScriptIndex, pmSchedStorageType=pmSchedStorageType, pmTrackingEPContextEngineID=pmTrackingEPContextEngineID, pmPolicyTable=pmPolicyTable, pmTrackingPEContextName=pmTrackingPEContextName, pmPolicyStorageType=pmPolicyStorageType, pmSchedLocalOrUtc=pmSchedLocalOrUtc, pmBaseFunctionLibrary=pmBaseFunctionLibrary, pmNotificationGroup=pmNotificationGroup, pmDebuggingLogIndex=pmDebuggingLogIndex, pmGroups=pmGroups, pmCapabilitiesEntry=pmCapabilitiesEntry, pmPolicyAbnormalTerminations=pmPolicyAbnormalTerminations, pmSchedMonth=pmSchedMonth, pmSchedDescr=pmSchedDescr, pmElementTypeRegDescription=pmElementTypeRegDescription, pmPolicyParameters=pmPolicyParameters, pmElementTypeRegStorageType=pmElementTypeRegStorageType, pmPolicyConditionMaxLatency=pmPolicyConditionMaxLatency, pmTrackingEPElement=pmTrackingEPElement, pmPolicyRowStatus=pmPolicyRowStatus, pmTrackingPEInfo=pmTrackingPEInfo, pmSchedRowStatus=pmSchedRowStatus, pmCapabilitiesOverrideType=pmCapabilitiesOverrideType, pmTrackingPEEntry=pmTrackingPEEntry)
""" Given a positive integer num, output its complement number. The complement strategy is to flip the bits of its binary representation. """ class Solution: def findComplement(self, num: int) -> int: bin_num = bin(num)[2:] return int(str(int(len(bin_num) * '1') - int(bin_num)), 2)
""" Given a positive integer num, output its complement number. The complement strategy is to flip the bits of its binary representation. """ class Solution: def find_complement(self, num: int) -> int: bin_num = bin(num)[2:] return int(str(int(len(bin_num) * '1') - int(bin_num)), 2)
#!/usr/bin/env python3 def reverse(input: str) -> str: if len(input) < 2: return input return input[-1] + reverse(input[1:-1]) + input[0] def reverse_iter(input: str) -> str: ret = "" for i in range(len(input)): ret += input[len(input)-1-i] return ret if __name__ == '__main__': string = input("String to be reversed: ") print(reverse(string))
def reverse(input: str) -> str: if len(input) < 2: return input return input[-1] + reverse(input[1:-1]) + input[0] def reverse_iter(input: str) -> str: ret = '' for i in range(len(input)): ret += input[len(input) - 1 - i] return ret if __name__ == '__main__': string = input('String to be reversed: ') print(reverse(string))
#cubes list = [] for number in range(1,11): list.append(number**3) for number in list: print(number)
list = [] for number in range(1, 11): list.append(number ** 3) for number in list: print(number)
class decorate: def __init__(self, arg1=None, arg2=None): self.arg1 = arg1 self.arg2 = arg2 def __call__(self, method): def wrapper(): print('ARG1 = %s, ARG2 = %s' % ( str(self.arg1), str(self.arg2)) ) method() return wrapper @decorate('the decoration', 34) def test(): print('test method') test()
class Decorate: def __init__(self, arg1=None, arg2=None): self.arg1 = arg1 self.arg2 = arg2 def __call__(self, method): def wrapper(): print('ARG1 = %s, ARG2 = %s' % (str(self.arg1), str(self.arg2))) method() return wrapper @decorate('the decoration', 34) def test(): print('test method') test()
class Team: """ A class for creating a team with an attacking, defending and overall attribute""" def __init__(self, name, player1, player2, player3, player4, player5): self.name = name self.player1 = player1 self.player2 = player2 self.player3 = player3 self.player4 = player4 self.player5 = player5 self.overall = int((player1.overall + player2.overall + player3.overall + player4.overall + player5.overall)/5) self.defending = int((player1.overall + player2.defending + player3.defending + player4.defending + player5.defending)/5) self.attacking = int((player2.attacking + player3.attacking + player4.attacking + player5.attacking)/4) def __repr__(self): return repr((self.name, self.overall, self.player1, self.player2, self.player3, self.player4, self.player5))
class Team: """ A class for creating a team with an attacking, defending and overall attribute""" def __init__(self, name, player1, player2, player3, player4, player5): self.name = name self.player1 = player1 self.player2 = player2 self.player3 = player3 self.player4 = player4 self.player5 = player5 self.overall = int((player1.overall + player2.overall + player3.overall + player4.overall + player5.overall) / 5) self.defending = int((player1.overall + player2.defending + player3.defending + player4.defending + player5.defending) / 5) self.attacking = int((player2.attacking + player3.attacking + player4.attacking + player5.attacking) / 4) def __repr__(self): return repr((self.name, self.overall, self.player1, self.player2, self.player3, self.player4, self.player5))
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' ***************************************** Author: zhlinh Email: zhlinhng@gmail.com Version: 0.0.1 Created Time: 2016-03-10 Last_modify: 2016-03-10 ****************************************** ''' ''' Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may complete as many transactions as you like (ie, buy one and sell one share of the stock multiple times). However, you may not engage in multiple transactions at the same time (ie, you must sell the stock before you buy again). ''' class Solution(object): def maxProfit(self, prices): """ :type prices: List[int] :rtype: int """ maxProfit = 0 for i in range(1, len(prices)): diff = prices[i] - prices[i-1] if diff > 0: maxProfit += diff return maxProfit
""" ***************************************** Author: zhlinh Email: zhlinhng@gmail.com Version: 0.0.1 Created Time: 2016-03-10 Last_modify: 2016-03-10 ****************************************** """ '\nSay you have an array for which the ith element is the price of\na given stock on day i.\n\nDesign an algorithm to find the maximum profit.\nYou may complete as many transactions as you like\n(ie, buy one and sell one share of the stock multiple times).\nHowever, you may not engage in multiple transactions at the\nsame time (ie, you must sell the stock before you buy again).\n' class Solution(object): def max_profit(self, prices): """ :type prices: List[int] :rtype: int """ max_profit = 0 for i in range(1, len(prices)): diff = prices[i] - prices[i - 1] if diff > 0: max_profit += diff return maxProfit
def Typename(name): class TypeN(type): def __repr__(cls): return name return TypeN
def typename(name): class Typen(type): def __repr__(cls): return name return TypeN
# https://leetcode.com/problems/maximum-number-of-balls-in-a-box def get_box(ball): count = 0 while ball > 0: count += ball % 10 ball //= 10 return count def count_balls(low_limit, high_limit): hash_counter = {} for ball in range(low_limit, high_limit + 1): box = get_box(ball) if box in hash_counter: hash_counter[box] += 1 else: hash_counter[box] = 1 max_balls = float('-Inf') for key, value in hash_counter.items(): max_balls = max(max_balls, value) return max_balls
def get_box(ball): count = 0 while ball > 0: count += ball % 10 ball //= 10 return count def count_balls(low_limit, high_limit): hash_counter = {} for ball in range(low_limit, high_limit + 1): box = get_box(ball) if box in hash_counter: hash_counter[box] += 1 else: hash_counter[box] = 1 max_balls = float('-Inf') for (key, value) in hash_counter.items(): max_balls = max(max_balls, value) return max_balls
""" Problem #5 """ # cons implementation def cons(a,b): return lambda f: f(a,b) def car(func): f1 = lambda a,b :a return func(f1) def cdr(func): f2 = lambda a,b:b return func(f2) if __name__ == "__main__": assert car(cons(3,4)) == 3 assert cdr(cons(3,4)) == 4
""" Problem #5 """ def cons(a, b): return lambda f: f(a, b) def car(func): f1 = lambda a, b: a return func(f1) def cdr(func): f2 = lambda a, b: b return func(f2) if __name__ == '__main__': assert car(cons(3, 4)) == 3 assert cdr(cons(3, 4)) == 4
def removeDuplicates(nums): if not nums: return 0 slow = 1 for fast in range(1, len(nums)): if nums[fast] != nums[slow-1]: nums[slow] = nums[fast] slow += 1 return slow if __name__ == '__main__': print(removeDuplicates([0,0,1,1,1,2,2,3,3,4])) print(removeDuplicates([1,1,2]))
def remove_duplicates(nums): if not nums: return 0 slow = 1 for fast in range(1, len(nums)): if nums[fast] != nums[slow - 1]: nums[slow] = nums[fast] slow += 1 return slow if __name__ == '__main__': print(remove_duplicates([0, 0, 1, 1, 1, 2, 2, 3, 3, 4])) print(remove_duplicates([1, 1, 2]))
# Magnum IO Developer Environment container recipe Stage0 += comment('GENERATED FILE, DO NOT EDIT') Stage0 += baseimage(image='nvcr.io/nvidia/cuda:11.4.0-devel-ubuntu20.04') # GDS 1.0 is part of the CUDA base image Stage0 += nsight_systems(cli=True, version='2021.2.1') Stage0 += mlnx_ofed(version='5.3-1.0.0.1') Stage0 += gdrcopy(ldconfig=True, version='2.2') Stage0 += ucx(version='1.10.1', cuda=True, gdrcopy='/usr/local/gdrcopy', ldconfig=True, disable_static=True, enable_mt=True) Stage0 += nvshmem(version='2.2.1') # See hack in instaler.sh for 2.2.1 artifact renaming Stage0 += nccl(cuda='11.4', version='2.10.3-1') Stage0 += apt_get(ospackages=['cuda-tools-11-4']) Stage0 += copy(src=['magnum-io.Dockerfile', 'third_party.txt', 'README.md'], dest='/') Stage0 += environment(variables={'MAGNUM_IO_VERSION': '21.07'}) Stage0 += raw(docker='SHELL ["/bin/bash", "-c"]\n\ CMD ["/bin/bash" ]')
stage0 += comment('GENERATED FILE, DO NOT EDIT') stage0 += baseimage(image='nvcr.io/nvidia/cuda:11.4.0-devel-ubuntu20.04') stage0 += nsight_systems(cli=True, version='2021.2.1') stage0 += mlnx_ofed(version='5.3-1.0.0.1') stage0 += gdrcopy(ldconfig=True, version='2.2') stage0 += ucx(version='1.10.1', cuda=True, gdrcopy='/usr/local/gdrcopy', ldconfig=True, disable_static=True, enable_mt=True) stage0 += nvshmem(version='2.2.1') stage0 += nccl(cuda='11.4', version='2.10.3-1') stage0 += apt_get(ospackages=['cuda-tools-11-4']) stage0 += copy(src=['magnum-io.Dockerfile', 'third_party.txt', 'README.md'], dest='/') stage0 += environment(variables={'MAGNUM_IO_VERSION': '21.07'}) stage0 += raw(docker='SHELL ["/bin/bash", "-c"]\nCMD ["/bin/bash" ]')
class IterationTimeoutError(Exception): pass class AlreadyRunningError(Exception): pass class TimeoutError(Exception): pass class MissingCredentialsError(Exception): pass class IncompleteCredentialsError(Exception): pass class FileNotFoundError(Exception): pass
class Iterationtimeouterror(Exception): pass class Alreadyrunningerror(Exception): pass class Timeouterror(Exception): pass class Missingcredentialserror(Exception): pass class Incompletecredentialserror(Exception): pass class Filenotfounderror(Exception): pass
class Solution(object): def isValid(self, s): stack = [] for word in s: #print word if word == "{" or word == "[" or word == "(": stack.append(word) elif word == "}" or word == "]"or word == ")": if len(stack)==0: return False if stack[len(stack)-1]=="{" and word == "}": stack.pop() elif stack[len(stack)-1]=="[" and word == "]": stack.pop() elif stack[len(stack)-1]=="(" and word == ")": stack.pop() else: return False if stack != []: return False #print "Valid String" return True
class Solution(object): def is_valid(self, s): stack = [] for word in s: if word == '{' or word == '[' or word == '(': stack.append(word) elif word == '}' or word == ']' or word == ')': if len(stack) == 0: return False if stack[len(stack) - 1] == '{' and word == '}': stack.pop() elif stack[len(stack) - 1] == '[' and word == ']': stack.pop() elif stack[len(stack) - 1] == '(' and word == ')': stack.pop() else: return False if stack != []: return False return True