def get_output(items):
    """Generate correct program output according to specs"""
    brought = ''
    if len(items) == 1:
        brought = items[0]
    elif len(items) == 2:
        brought = ' and '.join(items)
    elif len(items) >= 3:
        items[-1] = 'and ' + items[-1]
        brought = ', '.join(items)
    return f'You are bringing {brought}.'