def convert_to_int(byte_arr):
    """Converts an array of bytes into an array of integers"""
    result = []
    for i in byte_arr:
        result.append(int.from_bytes(i, byteorder='big'))

    #introducem termenul liber
    result.insert(0, 1)

   # print(result)
    return result