#include #define rep(i,n) for(int i = 0; i < (int)(n); i++) using namespace std; using LL = long long; using P = pair; using vv = vector>; const int INF = (int)1e9; const LL LINF = (LL)1e18; int main(){ int H, W, p; cin >> H >> W >> p; rep(i,1001){ string ans; rep(j,19) ans += 'R'; rep(j,19) ans += 'D'; cout << ans << endl; int res; cin >> res; cerr << res << endl; if(res == -1) break; } return 0; }