def process_group(grp):
    """

    Given a list of list of ints,
    find the first record with the property
    that it cannot be represented as a paired
    sum of 25 consecutive records above it.

    :param grp: The list of list of ints.
    :return: The first entry that satisfies
    the given property.

    """

    def check_preamble(_pr, _num):
        """
        Given a list of 25 consecutive entries,
        compute if there exist two distinct entries
        that sum to `_num`.

        :param _pr: A sublist of `grp`.
        :param _num: The target sum.

        """
        for i in range(25):
            for j in range(i + 1, 25):
                if _pr[i] + _pr[j] == _num:
                    return True
        return False

    grp = list(map(int, grp))
    _preamble = list(map(int, grp[:25]))

    for i in range(25, len(grp)):
        current = grp[i]
        if not check_preamble(_preamble, current):
            return current
        else:
            _preamble.pop(0)
            _preamble.append(int(current))

    return -1