import ipaddress


def get_gateway(subnet):
    """
    Function which returns the gateway of a given subnet.

    :param subnet:
    :return: gateway
    """

    subnet, __prefix = subnet.split("/")
    gateway = ipaddress.ip_address(subnet) + 1

    return str(gateway)