b=length(a=fgetl(0));for y=b:-1:1for x=y:b disp(a(y:x))end end