#include <stdio.h> #include <math.h> #include <stdlib.h> int main() { int x, y, x1, y1; scanf("%d %d\n", &x, &y); scanf("%d %d", &x1, &y1); if (abs(x1 - x) + abs(y1 - y) == 1) { if (y1 - y == 1) { printf("u"); } else if (y - y1 == 1) { printf("d"); } else if (x1 - x == 1) { printf("r"); } else if (x - x1 == 1) { printf("i"); } } return 0; }