def while_loop_reference(cond, body, carry):
    while cond(carry):
        carry = body(carry)
    return carry
def while_loop_reference(cond, body, carry):
    while cond(carry):
        carry = body(carry)
    return carry