<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def worker(n):
 """Spend some time calculating exponentials."""

    for _ in xrange(999999):
        a = exp(n)
        b = exp(2*n)
    return n, a