using C=System.Console;class M{static void Main(){var s=C.ReadLine()+"\n";for(int i=51,j=0,c;j<51;C.Write((char)c))for(c=s[j++];c!=32&&s[i%51]!=(c=i++/51^32););Main();}}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).