def METHOD_NAME(filename, path, prefix, first, last, quality=12):
    '''
    Return a parameter file (file contents).
    '''
    return INPUT_TEMPLATE % (
        filename,
        path,
        prefix,
        first,
        last,
        min(quality, 31),
        min(quality + 1, 31),
        min(quality + 2, 31),
    )