n;main(d,k,j,i){gets(&n);for(i=48;n+d>49&i++<51;main(d-1,j,i))printf(d?"%%7c.%c."-d:"%2$4c.",k,j),puts(&i);}