#!/bin/python import sys def printShortestPath(n, x1,y1,x2,y2): c=0 l=[] k=0 if (x1y2: x1=x1+2 y1=y1+1 l.append('LR') elif y1==y2: k=k+1 x1=x1+2 if k%2!=0: l.append('LR') else: l.append('LL') c=c+1 if(x1==x2)and(y1==y2): print c print " ".join(l) elif (x1>x2): while (x1>x2): if(y1y2: x1=x1-2 y1=y1-1 l.append('UL') elif y1==y2: k=k+1 x1=x1+2 if k%2!=0: l.append('UR') else: l.append('UL') c=c+1 if(y1>y2): while y1>y2: y1=y1-2 l.append('L') c=c+1 if(y1