enum X{X;{String s=" world",a[]={s," hello",s+"!"};for(int i=0,r;i<100;System.out.println(s.trim()),s="")for(r=i++;r>0;r/=3)s=a[r%3]+s;}}