def matching_tag(tag):
    """Returns matching tag to the one given

    Args:
        tag (str): Given tag

    Returns:
        str: Matching tag to the one given
    """
    if tag[1] == '/':
        return "<" + tag[2:]
    return "</" + tag[1:]