def get_input_artifact_location(job):
    """
    Returns the S3 location of the input artifact.

    """

    input_artifact = job["data"]["inputArtifacts"][0]
    input_location = input_artifact["location"]["s3Location"]
    input_bucket = input_location["bucketName"]
    input_key = input_location["objectKey"]
    return (input_bucket, input_key)