<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def drift(stack, region, profile):
 """ Produce a CloudFormation drift report for the given stack. """

    logging.debug('finding drift - stack: {}'.format(stack))
    logging.debug('region: {}'.format(region))
    logging.debug('profile: {}'.format(profile))
    tool = DriftTool(
        Stack=stack,
        Region=region,
        Profile=profile,
        Verbose=True
    )

    if tool.determine_drift():
        sys.exit(0)
    else:
        sys.exit(1)