async def separate_rating_and_tags(args):
    """
    Separates out the rating and tags from the arguments.
    """

    rating = 0
    tags = []
    for arg in args:
        if arg.isdigit():
            rating = int(arg)
        else:
            tags.append(arg)

    return rating, tags