import numpy
x = [1,1,1,1,1]
times = 16
n=0
while (n<times):    
    x[0]=(x[1]+x[4])%2
    print "x: ", x
    x[1:5] = x[0:4] 
    n+=1