def carry_around_add(a, b):
    """
    Helper function for checksum calculation.
    :param a: operand
    :param b: operand
    :return addition result
    """
    c = a + b
    return (c & 0xffff) + (c >> 16)