#include <bits/stdc++.h>
using namespace std;

int main(){
  int sx, sy, tx, ty;
  cin >> sx >> sy >> tx >> ty;
  
  int dx = tx - sx, dy = ty - sy;
  string ans = "";
  for (int i = 0; i < dx; i++) ans += "R";
  for (int i = 0; i < dy; i++) ans += "U";
  for (int i = 0; i < dx; i++) ans += "L";
  for (int i = 0; i < dy + 1; i++) ans += "D";
  for (int i = 0; i < dx + 1; i++) ans += "R";
  for (int i = 0; i < dy + 1; i++) ans += "U";
  for (int i = 0; i < 1; i++) ans += "LU";
  for (int i = 0; i < dx + 1; i++) ans += "L";
  for (int i = 0; i < dy + 1; i++) ans += "D";
  for (int i = 0; i < 1; i++) ans += "R";
  
  cout << ans << endl;
}
#include<iostream>
using namespace std;
int main(void){

    int n;
    cin >> n;
    int a,b,c,d;
    int score[1000]={0};
    int count=0;
    for(int i=0;i<n*(n-1)/2;i++){
        cin>>a>>b>>c>>d;
        if(c>d)score[a]+=3;
        else if(c<d)score[b]+=3;
        else if(c==d)score[a]++,score[b]++;

    }
    for(int i=1;i<=n;i++){
        count = 1;
        for(int j=1;j<=n;j++){
            if(score[i]<score[j])count++;
        }
        cout<<count<<endl;
    }


    return 0;
}