loop{n=eval gets puts"  .. (( ".map{|l|(l[0,1]*(n/5)+l[n%5,n**4%5]).unpack('B*')[0][1,30].tr'01',' *'}}