void f(int i,string s){if(i>0)for(int x;++x<4;f(i-1," "+s+string(x)+"."))write(s,x);};f((int)stdin,"");