function f(i,s)for c=1,3*i/i do print(s..c)f(i-1," "..s..c..".")end end f(io.read(),"")