def f(d,p): for s in'123'*(d>0):print p+s;f(d-1,' '+p+s+'.') f(input(),'')