enum M{M;System z;{try{for(byte[]a=new byte[51];;){int i=49*z.in.read(a);for(int b:a){for(;b>48%i&&a[i%51]!=(b=i++/51););z.out.write(b);}}}catch(Exception e){}}}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).