def N(p,d=id(0)%3):print p;[N(" %s."%p+n,d-1)for n in"123"if d] map(N,"123")