def szuszik(a, b):
    """
    Szuszik's pairing algorithm is a map from a pair of natural numbers to a unique
    natural number.
        $\\mathcal{N}\times\\mathcal{N}\\mapsto N$.

    Args:
        a: int
            first integer
        b: int
            second integer
    Returns:
        int
            Szuszik's algorithm result

    """
    if a != max(a, b):
        map_key = pow(b, 2) + a
    else:
        map_key = pow(a, 2) + a + b

    return map_key