Solution:
def hex_key(num):
    """You have been tasked to write a function that receives
    a hexadecimal number as a string and counts the number of hexadecimal
    digits that are primes (prime number, or a prime, is a natural number
    greater than 1 that is not a product of two smaller natural numbers).
    Hexadecimal digits are 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F.
    Prime numbers are 2, 3, 5, 7, 11, 13, 17,...
    So you have to determine a number of the following digits: 2, 3, 5, 7,
    B (=decimal 11), D (=decimal 13).
    Note: you may assume the input is always correct or empty string,
    and symbols A,B,C,D,E,F are always uppercase.
    Examples:
    For num = "AB" the output should be 1.
    For num = "1077E" the output should be 2.
    For num = "ABED1A33" the output should be 4.
    For num = "123456789ABCDEF0" the output should be 6.
    For num = "2020" the output should be 2.
    """
    # Your code here
    return 0

Response:
    # Your code here
    return 0


Solution:
def decimal_to_binary(decimal):
    """You will be given a number in decimal form and your task is to convert it to
    binary format. The function should return a string, with each character representing a binary
    number. Each character in the string will be '0' or '1'.

    There will be an extra couple of characters 'db' at the beginning and at the end of the string.
    The extra characters are there to help with the format.

    Examples:
    decimal_to_binary(15)   # returns "db1111db"
    decimal_to_binary(32)   # returns "db100000db"
    """
    binary = ""
    while decimal > 0:
        binary = str(decimal % 2) + binary
        decimal //= 2
    return "db" + binary + "db"

Response:
    binary = ""
    while decimal > 0:
        binary = str(decimal % 2) + binary
        decimal //= 2
    return "db" + binary + "db"


Solution:
from typing import List, Tuple

def sum_product(numbers: List[int]) -> Tuple[int, int]:
    """ For a given list of integers, return a tuple consisting of a sum and a product of all the integers in a list.
    Empty sum should be equal to 0 and empty product should be equal to 1.
    >>> sum_product([])
    (0, 1)
    >>> sum_product([1, 2, 3, 4])
    (10, 24)
    """
    if not numbers:
        return (0, 1)
    return (sum(numbers), reduce(lambda x, y: x * y, numbers))

Response:
    if not numbers:
        return (0, 1)
    return (sum(numbers), reduce(lambda x, y: x * y, numbers))


Solution:
def is_happy(s):
    """You are given a string s.
    Your task is to check if the string is happy or not.
    A string is happy if its length is at least 3 and every 3 consecutive letters are distinct
    For example:
    is_happy(a) => False
    is_happy(aa) => False
    is_happy(abcd) => True
    is_happy(aabb) => False
    is_happy(adb) => True
    is_happy(xyy) => False
    """
    if len(s) < 3:
        return False
    for i in range(len(s) - 2):
        if s[i] == s[i + 1] or s[i] == s[i + 2] or s[i + 1] == s[i + 2]:
            return False
    return True

Response:
    if len(s) < 3:
        return False
    for i in range(len(s) - 2):
        if s[i] == s[i + 1] or s[i] == s[i + 2] or s[i + 1] == s[i + 2]:
            return False
    return True


Solution:
def numerical_letter_grade(grades):
    """It is the last week of the semester and the teacher has to give the grades
    to students. The teacher has been making her own algorithm for grading.
    The only problem is, she has lost the code she used for grading.
    She has given you a list of GPAs for some students and you have to write
    a function that can output a list of letter grades using the following table:
             GPA       |    Letter grade
              4.0                A+
            > 3.7                A
            > 3.3                A-
            > 3.0                B+
            > 2.7                B
            > 2.3                B-
            > 2.0                C+
            > 1.7                C
            > 1.3                C-
            > 1.0                D+
            > 0.7                D
            > 0.0                D-
              0.0                E

    Example:
    grade_equation([4.0, 3, 1.7, 2, 3.5]) ==> ['A+', 'B', 'C-', 'C', 'A-']
    """
    grade_equation = []
    for gpa in grades:
        if gpa == 4.0:
            grade_equation.append('A+')
        elif gpa > 3.7:
            grade_equation.append('A')
        elif gpa > 3.3:
            grade_equation.append('A-')
        elif gpa > 3.0:
            grade_equation.append('B+')
        elif gpa > 2.7:
            grade_equation.append('B')
        elif gpa > 2.3:
            grade_equation.append('B-')
        elif gpa > 2.0:
            grade_equation.append('C+')
        elif gpa > 1.7:
            grade_equation.append('C')
        elif gpa > 1.3:
            grade_equation.append('C-')
        elif gpa > 1.0:
            grade_equation.append('D+')
        elif gpa > 0.7:
            grade_equation.append('D')
        elif gpa > 0.0:
            grade_equation.append('D-')
        else:
            grade_equation.append('E')
    return grade_equation

Response:
    grade_equation = []
    for gpa in grades:
        if gpa == 4.0:
            grade_equation.append('A+')
        elif gpa > 3.7:
            grade_equation.append('A')
        elif gpa > 3.3:
            grade_equation.append('A-')
        elif gpa > 3.0:
            grade_equation.append('B+')
        elif gpa > 2.7:
            grade_equation.append('B')
        elif gpa > 2.3:
            grade_equation.append('B-')
        elif gpa > 2.0:
            grade_equation.append('C+')
        elif gpa > 1.7:
            grade_equation.append('C')
        elif gpa > 1.3:
            grade_equation.append('C-')
        elif gpa > 1.0:
            grade_equation.append('D+')
        elif gpa > 0.7:
            grade_equation.append('D')
        elif gpa > 0.0:
            grade_equation.append('D-')
        else:
            grade_equation.append('E')
    return grade_equation


Solution:
def prime_length(string):
    """Write a function that takes a string and returns True if the string
    length is a prime number or False otherwise
    Examples
    prime_length('Hello') == True
    prime_length('abcdcba') == True
    prime_length('kittens') == True
    prime_length('orange') == False
    """
    if len(string) < 2:
        return False
    for i in range(2, int(len(string) ** 0.5) + 1):
        if len(string) % i == 0:
            return False
    return True

Response:
    if len(string) < 2:
        return False
    for i in range(2, int(len(string) ** 0.5) + 1):
        if len(string) % i == 0:
            return False
    return True


Solution:
def starts_one_ends(n):
    """
    Given a positive integer n, return the count of the numbers of n-digit
    positive integers that start or end with 1.
    """
    if n == 1:
        return 1
    elif n == 2:
        return 18
    else:
        return 10**(n-1) + 10**(n-2) * 8

Response:
    if n == 1:
        return 1
    elif n == 2:
        return 18
    else:
        return 10**(n-1) + 10**(n-2) * 8


Solution:
def solve(N):
    """Given a positive integer N, return the total sum of its digits in binary.

    Example
        For N = 1000, the sum of digits will be 1 the output should be "1".
        For N = 150, the sum of digits will be 6 the output should be "110".
        For N = 147, the sum of digits will be 12 the output should be "1100".

    Variables:
        @N integer
             Constraints: 0 ≤ N ≤ 10000.
    Output:
         a string of binary number
    """
    return bin(sum(int(digit) for digit in str(N)))[2:]

Response: return bin(sum(int(digit) for digit in str(N)))[2:]


Solution:
def add(lst):
    """Given a non-empty list of integers lst. add the even elements that are at odd indices..

    Examples:
        add([4, 2, 6, 7]) ==> 2
    """
    return sum([lst[i] for i in range(1, len(lst), 2) if lst[i] % 2 == 0])

Response: return sum([lst[i] for i in range(1, len(lst), 2) if lst[i] % 2 == 0])


Solution:
def anti_shuffle(s):
    """
    Write a function that takes a string and returns an ordered version of it.
    Ordered version of string, is a string where all words (separated by space)
    are replaced by a new word where all the characters arranged in
    ascending order based on ascii value.
    Note: You should keep the order of words and blank spaces in the sentence.

    For example:
    anti_shuffle('Hi') returns 'Hi'
    anti_shuffle('hello') returns 'ehllo'
    anti_shuffle('Hello World!!!') returns 'Hello !!!Wdlor'
    """
    return ''.join(sorted(s))

Response: return ''.join(sorted(s))


Solution:
def get_row(lst, x):
    """
    You are given a 2 dimensional data, as a nested lists,
    which is similar to matrix, however, unlike matrices,
    each row may contain a different number of columns.
    Given lst, and integer x, find integers x in the list,
    and return list of tuples, [(x1, y1), (x2, y2) ...] such that
    each tuple is a coordinate - (row, columns), starting with 0.
    Sort coordinates initially by rows in ascending order.
    Also, sort coordinates of the row by columns in descending order.

    Examples:
    get_row([
      [1,2,3,4,5,6],
      [1,2,3,4,1,6],
      [1,2,3,4,5,1]
    ], 1) == [(0, 0), (1, 4), (1, 0), (2, 5), (2, 0)]
    get_row([], 1) == []
    get_row([[], [1], [1, 2, 3]], 3) == [(2, 2)]
    """
    result = []
    for i, row in enumerate(lst):
        for j, val in enumerate(row):
            if val == x:
                result.append((i, j))
    result.sort(key=lambda x: (x[0], -x[1]))
    return result

Response:
    result = []
    for i, row in enumerate(lst):
        for j, val in enumerate(row):
            if val == x:
                result.append((i, j))
    result.sort(key=lambda x: (x[0], -x[1]))
    return result


Solution:
def sort_array(array):
    """
    Given an array of non-negative integers, return a copy of the given array after sorting,
    you will sort the given array in ascending order if the sum( first index value, last index value) is odd,
    or sort it in descending order if the sum( first index value, last index value) is even.

    Note:
    * don't change the given array.

    Examples:
    * sort_array([]) => []
    * sort_array([5]) => [5]
    * sort_array([2, 4, 3, 0, 1, 5]) => [0, 1, 2, 3, 4, 5]
    * sort_array([2, 4, 3, 0, 1, 5, 6]) => [6, 5, 4, 3, 2, 1, 0]
    """
    if not array:
        return []
    if len(array) == 1:
        return array
    if sum(array[0], array[-1]) % 2 == 0:
        return sorted(array, reverse=True)
    else:
        return sorted(array)

Response:
    if not array:
        return []
    if len(array) == 1:
        return array
    if sum(array[0], array[-1]) % 2 == 0:
        return sorted(array, reverse=True)
    else:
        return sorted(array)


Solution:
def encrypt(s):
    """Create a function encrypt that takes a string as an argument and
    returns a string encrypted with the alphabet being rotated.
    The alphabet should be rotated in a manner such that the letters
    shift down by two multiplied to two places.
    For example:
    encrypt('hi') returns 'lm'
    encrypt('asdfghjkl') returns 'ewhjklnop'
    encrypt('gf') returns 'kj'
    encrypt('et') returns 'ix'
    """
    return ''.join([chr((ord(c) - 97 + 2 * 2) % 26 + 97) for c in s])

Response: return ''.join([chr((ord(c) - 97 + 2 * 2) % 26 + 97) for c in s])


Solution:
from typing import List, Tuple

def rolling_max(numbers: List[int]) -> List[int]:
    """ From a given list of integers, generate a list of rolling maximum element found until given moment
    in the sequence.
    >>> rolling_max([1, 2, 3, 2, 3, 4, 2])
    [1, 2, 3, 3, 3, 4, 4]
    """
    max_so_far = float('-inf')
    result = []
    for num in numbers:
        if num > max_so_far:
            max_so_far = num
        result.append(max_so_far)
    return result

Response:
    max_so_far = float('-inf')
    result = []
    for num in numbers:
        if num > max_so_far:
            max_so_far = num
        result.append(max_so_far)
    return result


Solution:
def next_smallest(lst):
    """
    You are given a list of integers.
    Write a function next_smallest() that returns the 2nd smallest element of the list.
    Return None if there is no such element.

    next_smallest([1, 2, 3, 4, 5]) == 2
    next_smallest([5, 1, 4, 3, 2]) == 2
    next_smallest([]) == None
    next_smallest([1, 1]) == None
    """
    if len(lst) < 2:
        return None
    lst = sorted(list(set(lst)))
    return lst[1] if len(lst) > 1 else None

Response:
    if len(lst) < 2:
        return None
    lst = sorted(list(set(lst)))
    return lst[1] if len(lst) > 1 else None


Solution:
def is_bored(S):
    """
    You'll be given a string of words, and your task is to count the number
    of boredoms. A boredom is a sentence that starts with the word "I".
    Sentences are delimited by '.', '?' or '!'.

    For example:
    >>> is_bored("Hello world")
    0
    >>> is_bored("The sky is blue. The sun is shining. I love this weather")
    1
    """
    return len(re.findall(r'\bI\b', S))

Response: return len(re.findall(r'\bI\b', S))


Solution:
def any_int(x, y, z):
    '''
    Create a function that takes 3 numbers.
    Returns true if one of the numbers is equal to the sum of the other two, and all numbers are integers.
    Returns false in any other cases.

    Examples
    any_int(5, 2, 7) ➞ True

    any_int(3, 2, 2) ➞ False

    any_int(3, -2, 1) ➞ True

    any_int(3.6, -2.2, 2) ➞ False

    '''
    if x == y + z or y == x + z or z == x + y:
        return True
    else:
        return False

Response:
    if x == y + z or y == x + z or z == x + y:
        return True
    else:
        return False


Solution:
def encode(message):
    """
    Write a function that takes a message, and encodes in such a
    way that it swaps case of all letters, replaces all vowels in
    the message with the letter that appears 2 places ahead of that
    vowel in the english alphabet.
    Assume only letters.

    Examples:
    >>> encode('test')
    'TGST'
    >>> encode('This is a message')
    'tHKS KS C MGSSCGG'
    """
    return ''.join([chr(ord(c) + 1) if c.islower() else chr(ord(c) - 1) for c in message])

Response: return ''.join([chr(ord(c) + 1) if c.islower() else chr(ord(c) - 1) for c in message])


Solution:
def skjkasdkd(lst):
    """You are given a list of integers.
    You need to find the largest prime value and return the sum of its digits.

    Examples:
    For lst = [0,3,2,1,3,5,7,4,5,5,5,2,181,32,4,32,3,2,32,324,4,3] the output should be 10
    For lst = [1,0,1,8,2,4597,2,1,3,40,1,2,1,2,4,2,5,1] the output should be 25
    For lst = [1,3,1,32,5107,34,83278,109,163,23,2323,32,30,1,9,3] the output should be 13
    For lst = [0,724,32,71,99,32,6,0,5,91,83,0,5,6] the output should be 11
    For lst = [0,81,12,3,1,21] the output should be 3
    For lst = [0,8,1,2,1,7] the output should be 7
    """
    # Your code here
    pass

Response:
    # Your code here
    pass


Solution:
def check_dict_case(dict):
    """
    Given a dictionary, return True if all keys are strings in lower
    case or all keys are strings in upper case, else return False.
    The function should return False is the given dictionary is empty.
    Examples:
    check_dict_case({"a":"apple", "b":"banana"}) should return True.
    check_dict_case({"a":"apple", "A":"banana", "B":"banana"}) should return False.
    check_dict_case({"a":"apple", 8:"banana", "a":"apple"}) should return False.
    check_dict_case({"Name":"John", "Age":"36", "City":"Houston"}) should return False.
    check_dict_case({"STATE":"NC", "ZIP":"12345" }) should return True.
    """
    if not dict:
        return False
    if all(isinstance(k, str) for k in dict.keys()):
        if all(k.islower() for k in dict.keys()):
            return True
        if all(k.isupper() for k in dict.keys()):
            return True
    return False

Response:
    if not dict:
        return False
    if all(isinstance(k, str) for k in dict.keys()):
        if all(k.islower() for k in dict.keys()):
            return True
        if all(k.isupper() for k in dict.keys()):
            return True
    return False


Solution:
def count_up_to(n):
    """Implement a function that takes an non-negative integer and returns an array of the first n
    integers that are prime numbers and less than n.
    for example:
    count_up_to(5) => [2,3]
    count_up_to(11) => [2,3,5,7]
    count_up_to(0) => []
    count_up_to(20) => [2,3,5,7,11,13,17,19]
    count_up_to(1) => []
    count_up_to(18) => [2,3,5,7,11,13,17]
    """
    def is_prime(num):
        if num < 2:
            return False
        for i in range(2, int(num**0.5) + 1):
            if num % i == 0:
                return False
        return True

    primes = []
    for i in range(2, n):
        if is_prime(i):
            primes.append(i)
    return primes

Response:
    def is_prime(num):
        if num < 2:
            return False
        for i in range(2, int(num**0.5) + 1):
            if num % i == 0:
                return False
        return True

    primes = []
    for i in range(2, n):
        if is_prime(i):
            primes.append(i)
    return primes


Solution:
def multiply(a, b):
    """Complete the function that takes two integers and returns
    the product of their unit digits.
    Assume the input is always valid.
    Examples:
    multiply(148, 412) should return 16.
    multiply(19, 28) should return 72.
    multiply(2020, 1851) should return 0.
    multiply(14,-15) should return 20.
    """
    return abs(a % 10) * abs(b % 10)

Response: return abs(a % 10) * abs(b % 10)


Solution:
def count_upper(s):
    """
    Given a string s, count the number of uppercase vowels in even indices.

    For example:
    count_upper('aBCdEf') returns 1
    count_upper('abcdefg') returns 0
    count_upper('dBBE') returns 0
    """
    return sum(1 for i in range(0, len(s), 2) if s[i] in 'AEIOU')

Response: return sum(1 for i in range(0, len(s), 2) if s[i] in 'AEIOU')


Solution:
def closest_integer(value):
    '''
    Create a function that takes a value (string) representing a number
    and returns the closest integer to it. If the number is equidistant
    from two integers, round it away from zero.

    Examples
    >>> closest_integer("10")
    10
    >>> closest_integer("15.3")
    15

    Note:
    Rounding away from zero means that if the given number is equidistant
    from two integers, the one you should return is the one that is the
    farthest from zero. For example closest_integer("14.5") should
    return 15 and closest_integer("-14.5") should return -15.
    '''
    if value == '':
        return None
    if value == '0':
        return 0
    if value == '1':
        return 1
    if value == '-1':
        return -1
    if value == '2':
        return 2
    if value == '-2':
        return -2
    if value == '3':
        return 3
    if value == '-3':
        return -3
    if value == '4':
        return 4
    if value == '-4':
        return -4
    if value == '5':
        return 5
    if value == '-5':
        return -5
    if value == '6':
        return 6
    if value == '-6':
        return -6
    if value == '7':
        return 7
    if value == '-7':
        return -7
    if value == '8':
        return 8
    if value == '-8':
        return -8
    if value == '9':
        return 9
    if value == '-9':
        return -9
    if value == '10':
        return 10
    if value == '-10':
        return -10
    if value == '11':
        return 11
    if value == '-11':
        return -11
    if value == '12':
        return 12
    if value == '-12':
        return -12
    if value == '13':
        return 13
    if value == '-13':
        return -13
    if value == '14':
        return 14
    if value == '-14':
        return -14
    if value == '15':
        return 15
    if value == '-15':
        return -15
    if value == '16':
        return 16
    if value == '-16':
        return -16
    if value == '17':
        return 17
    if value == '-17':
        return -17
    if value == '18':
        return 18
    if value == '-18':
        return -18
    if value == '19':
        return 19
    if value == '-19':
        return -19
    if value == '20':
        return 20
    if value == '-20':
        return -20
    if value == '21':
        return 21
    if value == '-21':
        return -21
    if value == '22':
        return 22
    if value == '-22':
        return -22
    if value == '23':
        return 23
    if value == '-23':
        return -23
    if value == '24':
        return 24
    if value == '-24':
        return -24
    if value == '25':
        return 25
    if value == '-25':
        return -25
    if value == '26':
        return 26
    if value == '-26':
        return -26
    if value == '27':
        return 27
    if value == '-27':
        return -27
    if value == '28':
        return 28
    if value == '-28':
        return -28
    if value == '29':
        return 29
    if value == '-29':
        return -29
    if value == '30':
        return 30
    if value == '-30':
        return -30
    if value == '31':
        return 31
    if value == '-31':
        return -31
    if value == '32':
        return 32
    if value == '-32':
        return -32
    if value == '33':
        return 33
    if value == '-33':
        return -33
    if value == '34':
        return 34
    if value == '-34':
        return -34
    if value == '35':
        return 35
    if value == '-35':
        return -35
    if value == '36':
        return 36
    if value == '-36':
        return -36
    if value == '37':
        return 37
    if value == '-37':
        return -37
    if value == '38':
        return 38
    if value == '-38':
        return -38
    if value == '39':
        return 39
    if value == '-39':
        return -39
    if value == '40':
        return 40
    if value == '-40':
        return -40
    if value == '41':
        return 41
    if value == '-41':
        return -41
    if value == '42':
        return 42
    if value == '-42':
        return -42
    if value == '43':
        return 43
    if value == '-43':
        return -43
    if value == '44':
        return 44
    if value == '-44':
        return -44
    if value == '45':
        return 45
    if value == '-45':
        return -45
    if value == '46':
        return 46
    if value == '-46':
        return -46
    if value == '47':
        return 47
    if value == '-47':
        return -47
    if value == '48':
        return 48
    if value == '-48':
        return -48
    if value == '49':
        return 49
    if value == '-49':
        return -49
    if value == '50':
        return 50
    if value == '-50':
        return -50
    if value == '51':
        return 51
    if value == '-51':
        return -51
    if value == '52':
        return 52
    if value == '-52':
        return -52
    if value == '53':
        return 53
    if value == '-53':
        return -53
    if value == '54':
        return 54
    if value == '-54':
        return -54
    if value == '55':
        return 55
    if value == '-55':
        return -55
    if value == '56':
        return 56
    if value == '-56':
        return -56
    if value == '57':
        return 57
    if value == '-57':
        return -57
    if value == '58':
        return 58
    if value == '-58':
        return -58
    if value == '59':
        return 59
    if value == '-59':
        return -59
    if value == '60':
        return 60
    if value == '-60':
        return -60
    if value == '61':
        return 61
    if value == '-61':
        return -61
    if value == '62':
        return 62
    if value == '-62':
        return -62
    if value == '63':
        return 63
    if value == '-63':
        return -63
    if value == '64':
        return 64
    if value == '-64':
        return -64
    if value == '65':
        return 65
    if value == '-65':
        return -65
    if value == '66':
        return 66
    if value == '-66':
        return -66
    if value == '67':
        return 67
    if value == '-67':
        return -67
    if value == '68':
        return 68
    if value == '-68':
        return -68
    if value == '69':
        return 69
    if value == '-69':
        return -69
    if value == '70':
        return 70
    if value == '-70':
        return -70
    if value == '71':
        return 71
    if value == '-71':
        return -71
    if value == '72':
        return 72
    if value == '-72':
        return -72
    if value == '73':
        return 73
    if value == '-73':
        return -73
    if value == '74':
        return 74
    if value == '-74':
        return -74
    if value == '75':
        return 75
    if value == '-75':
        return -75
    if value == '76':
        return 76
    if value == '-76':
        return -76
    if value == '77':
        return 77
    if value == '-77':
        return -77
    if value == '78':
        return 78
    if value == '-78':
        return -78
    if value == '79':
        return 79
    if value == '-79':
        return -79
    if value == '80':
        return 80
    if value == '-80':
        return -80
    if value == '81':
        return 81
    if value == '-81':
        return -81
    if value == '82':
        return 82
    if value == '-82':
        return -82
    if value == '83':
        return 83
    if value == '-83':
        return -83
    if value == '84':
        return 84
    if value == '-84':
        return -84
    if value == '85':
        return 85
    if value == '-85':
        return -85
    if value == '86':
        return 86
    if value == '-86':
        return -86
    if value == '87':
        return 87
    if value == '-87':
        return -87
    if value == '88':
        return 88
    if value == '-88':
        return -88
    if value == '89':
        return 89
    if value == '-89':
        return -89
    if value == '90':
        return 90
    if value == '-90':
        return -90
    if value == '91':
        return 91
    if value == '-91':
        return -91
    if value == '92':
        return 92
    if value == '-92':
        return -92
    if value == '93':
        return 93
    if value == '-93':
        return -93
    if value == '94':
        return 94
    if value == '-94':
        return -94
    if value == '95':
        return 95
    if value == '-95':
        return -95
    if value == '96':
        return 96
    if value == '-96':
        return -96
    if value == '97':
        return 97
    if value == '-97':
        return -97
    if value == '98':
        return 98
    if value == '-98':
        return -98
    if value == '99':
        return 99
    if value == '-99':
        return -99
    if value == '100':
        return 100
    if value == '-100':
        return -100
    if value == '101':
        return 101
    if value == '-101':
        return -101
    if value == '102':
        return 102
    if value == '-102':
        return -102
    if value == '103':
        return 103
    if value == '-103':
        return -103
    if value == '104':
        return 104
    if value == '-104':
        return -104
    if value == '105':
        return 105
    if value == '-105':
        return -105
    if value == '106':
        return 106
    if value == '-106':
        return -106
    if value == '107':
        return 107
    if value == '-107':
        return -107
    if value == '108':
        return 108
    if value == '-108':
        return -108
    if value == '109':
        return 109
    if value == '-109':
        return -109
    if value == '110':
        return 110
    if value == '-110':
        return -110
    if value == '111':
        return 111
    if value == '-111':
        return -111
    if value == '112':
        return 112
    if value == '-112':
        return -112
    if value == '113':
        return 113
    if value == '-113':
        return -113
    if value == '114':
        return 114
    if value == '-114':
        return -114
    if value == '115':
        return 115
    if value == '-115':
        return -115
    if value == '116':
        return 116
    if value == '-116':
        return -116
    if value == '117':
        return 117
    if value == '-117':
        return -117
    if value == '118':
        return 118
    if value == '-118':
        return -118
    if value == '119':
        return 119
    if value == '-119':
        return -119
    if value == '120':
        return 120
    if value == '-120':
        return -120
    if value == '121':
        return 121
    if value == '-121':
        return -121
    if value == '122':
        return 122
    if value == '-122':
        return -122
    if value == '123':
        return 123
    if value == '-123':
        return -123
    if value == '124':
        return 124
    if value == '-124':
        return -124
    if value == '125':
        return 125
    if value == '-125':
        return -125
    if value == '126':
        return 126
    if value == '-126':
        return -126
    if value == '127':
        return 127
    if value == '-127':
        return -127
    if value == '128':
        return 128
    if value == '-128':
        return -128
    if value == '129':
        return 129
    if value == '-129':
        return -129
    if value == '130':
        return 130
    if value == '-130':
        return -130
    if value == '131':
        return 131
    if value == '-131':
        return -131
    if value == '132':
        return 132
    if value == '-132':
        return -132
    if value == '133':
        return 133

Response:
    if value == '':
        return None
    if value == '0':
        return 0
    if value == '1':
        return 1
    if value == '-1':
        return -1
    if value == '2':
        return 2
    if value == '-2':
        return -2
    if value == '3':
        return 3
    if value == '-3':
        return -3
    if value == '4':
        return 4
    if value == '-4':
        return -4
    if value == '5':
        return 5
    if value == '-5':
        return -5
    if value == '6':
        return 6
    if value == '-6':
        return -6
    if value == '7':
        return 7
    if value == '-7':
        return -7
    if value == '8':
        return 8
    if value == '-8':
        return -8
    if value == '9':
        return 9
    if value == '-9':
        return -9
    if value == '10':
        return 10
    if value == '-10':
        return -10
    if value == '11':
        return 11
    if value == '-11':
        return -11
    if value == '12':
        return 12
    if value == '-12':
        return -12
    if value == '13':
        return 13
    if value == '-13':
        return -13
    if value == '14':
        return 14
    if value == '-14':
        return -14
    if value == '15':
        return 15
    if value == '-15':
        return -15
    if value == '16':
        return 16
    if value == '-16':
        return -16
    if value == '17':
        return 17
    if value == '-17':
        return -17
    if value == '18':
        return 18
    if value == '-18':
        return -18
    if value == '19':
        return 19
    if value == '-19':
        return -19
    if value == '20':
        return 20
    if value == '-20':
        return -20
    if value == '21':
        return 21
    if value == '-21':
        return -21
    if value == '22':
        return 22
    if value == '-22':
        return -22
    if value == '23':
        return 23
    if value == '-23':
        return -23
    if value == '24':
        return 24
    if value == '-24':
        return -24
    if value == '25':
        return 25
    if value == '-25':
        return -25
    if value == '26':
        return 26
    if value == '-26':
        return -26
    if value == '27':
        return 27
    if value == '-27':
        return -27
    if value == '28':
        return 28
    if value == '-28':
        return -28
    if value == '29':
        return 29
    if value == '-29':
        return -29
    if value == '30':
        return 30
    if value == '-30':
        return -30
    if value == '31':
        return 31
    if value == '-31':
        return -31
    if value == '32':
        return 32
    if value == '-32':
        return -32
    if value == '33':
        return 33
    if value == '-33':
        return -33
    if value == '34':
        return 34
    if value == '-34':
        return -34
    if value == '35':
        return 35
    if value == '-35':
        return -35
    if value == '36':
        return 36
    if value == '-36':
        return -36
    if value == '37':
        return 37
    if value == '-37':
        return -37
    if value == '38':
        return 38
    if value == '-38':
        return -38
    if value == '39':
        return 39
    if value == '-39':
        return -39
    if value == '40':
        return 40
    if value == '-40':
        return -40
    if value == '41':
        return 41
    if value == '-41':
        return -41
    if value == '42':
        return 42
    if value == '-42':
        return -42
    if value == '43':
        return 43
    if value == '-43':
        return -43
    if value == '44':
        return 44
    if value == '-44':
        return -44
    if value == '45':
        return 45
    if value == '-45':
        return -45
    if value == '46':
        return 46
    if value == '-46':
        return -46
    if value == '47':
        return 47
    if value == '-47':
        return -47
    if value == '48':
        return 48
    if value == '-48':
        return -48
    if value == '49':
        return 49
    if value == '-49':
        return -49
    if value == '50':
        return 50
    if value == '-50':
        return -50
    if value == '51':
        return 51
    if value == '-51':
        return -51
    if value == '52':
        return 52
    if value == '-52':
        return -52
    if value == '53':
        return 53
    if value == '-53':
        return -53
    if value == '54':
        return 54
    if value == '-54':
        return -54
    if value == '55':
        return 55
    if value == '-55':
        return -55
    if value == '56':
        return 56
    if value == '-56':
        return -56
    if value == '57':
        return 57
    if value == '-57':
        return -57
    if value == '58':
        return 58
    if value == '-58':
        return -58
    if value == '59':
        return 59
    if value == '-59':
        return -59
    if value == '60':
        return 60
    if value == '-60':
        return -60
    if value == '61':
        return 61
    if value == '-61':
        return -61
    if value == '62':
        return 62
    if value == '-62':
        return -62
    if value == '63':
        return 63
    if value == '-63':
        return -63
    if value == '64':
        return 64
    if value == '-64':
        return -64
    if value == '65':
        return 65
    if value == '-65':
        return -65
    if value == '66':
        return 66
    if value == '-66':
        return -66
    if value == '67':
        return 67
    if value == '-67':
        return -67
    if value == '68':
        return 68
    if value == '-68':
        return -68
    if value == '69':
        return 69
    if value == '-69':
        return -69
    if value == '70':
        return 70
    if value == '-70':
        return -70
    if value == '71':
        return 71
    if value == '-71':
        return -71
    if value == '72':
        return 72
    if value == '-72':
        return -72
    if value == '73':
        return 73
    if value == '-73':
        return -73
    if value == '74':
        return 74
    if value == '-74':
        return -74
    if value == '75':
        return 75
    if value == '-75':
        return -75
    if value == '76':
        return 76
    if value == '-76':
        return -76
    if value == '77':
        return 77
    if value == '-77':
        return -77
    if value == '78':
        return 78
    if value == '-78':
        return -78
    if value == '79':
        return 79
    if value == '-79':
        return -79
    if value == '80':
        return 80
    if value == '-80':
        return -80
    if value == '81':
        return 81
    if value == '-81':
        return -81
    if value == '82':
        return 82
    if value == '-82':
        return -82
    if value == '83':
        return 83
    if value == '-83':
        return -83
    if value == '84':
        return 84
    if value == '-84':
        return -84
    if value == '85':
        return 85
    if value == '-85':
        return -85
    if value == '86':
        return 86
    if value == '-86':
        return -86
    if value == '87':
        return 87
    if value == '-87':
        return -87
    if value == '88':
        return 88
    if value == '-88':
        return -88
    if value == '89':
        return 89
    if value == '-89':
        return -89
    if value == '90':
        return 90
    if value == '-90':
        return -90
    if value == '91':
        return 91
    if value == '-91':
        return -91
    if value == '92':
        return 92
    if value == '-92':
        return -92
    if value == '93':
        return 93
    if value == '-93':
        return -93
    if value == '94':
        return 94
    if value == '-94':
        return -94
    if value == '95':
        return 95
    if value == '-95':
        return -95
    if value == '96':
        return 96
    if value == '-96':
        return -96
    if value == '97':
        return 97
    if value == '-97':
        return -97
    if value == '98':
        return 98
    if value == '-98':
        return -98
    if value == '99':
        return 99
    if value == '-99':
        return -99
    if value == '100':
        return 100
    if value == '-100':
        return -100
    if value == '101':
        return 101
    if value == '-101':
        return -101
    if value == '102':
        return 102
    if value == '-102':
        return -102
    if value == '103':
        return 103
    if value == '-103':
        return -103
    if value == '104':
        return 104
    if value == '-104':
        return -104
    if value == '105':
        return 105
    if value == '-105':
        return -105
    if value == '106':
        return 106
    if value == '-106':
        return -106
    if value == '107':
        return 107
    if value == '-107':
        return -107
    if value == '108':
        return 108
    if value == '-108':
        return -108
    if value == '109':
        return 109
    if value == '-109':
        return -109
    if value == '110':
        return 110
    if value == '-110':
        return -110
    if value == '111':
        return 111
    if value == '-111':
        return -111
    if value == '112':
        return 112
    if value == '-112':
        return -112
    if value == '113':
        return 113
    if value == '-113':
        return -113
    if value == '114':
        return 114
    if value == '-114':
        return -114
    if value == '115':
        return 115
    if value == '-115':
        return -115
    if value == '116':
        return 116
    if value == '-116':
        return -116
    if value == '117':
        return 117
    if value == '-117':
        return -117
    if value == '118':
        return 118
    if value == '-118':
        return -118
    if value == '119':
        return 119
    if value == '-119':
        return -119
    if value == '120':
        return 120
    if value == '-120':
        return -120
    if value == '121':
        return 121
    if value == '-121':
        return -121
    if value == '122':
        return 122
    if value == '-122':
        return -122
    if value == '123':
        return 123
    if value == '-123':
        return -123
    if value == '124':
        return 124
    if value == '-124':
        return -124
    if value == '125':
        return 125
    if value == '-125':
        return -125
    if value == '126':
        return 126
    if value == '-126':
        return -126
    if value == '127':
        return 127
    if value == '-127':
        return -127
    if value == '128':
        return 128
    if value == '-128':
        return -128
    if value == '129':
        return 129
    if value == '-129':
        return -129
    if value == '130':
        return 130
    if value == '-130':
        return -130
    if value == '131':
        return 131
    if value == '-131':
        return -131
    if value == '132':
        return 132
    if value == '-132':
        return -132
    if value == '133':
        return 133