def stable(n):
    a = 0.5
    b = 0.5
    for i in range(2,n+1):
        a = 0.5 * a + 0.4
        b = 1 - a

    return a,b
