E,N,W,S=*0..3x,y,i=eval"a="+getsgets.bytes{|c|x+=c%2*1.i**i=i+1-c&3}$><<[(x+y.i).rect,"NWSE"[i]]*?,
1,2,N MRMLM
2,4,N
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!