- Time limit: 1.00 s
- Memory limit: 512 MB
Maija is playing with a weird chess board. She is trying to find a way to tour all the squares on the board by moving a pawn up, down, left or right. The pawn should visit each square exactly once. The board is squares tall and squares wide. The board's upper left corner has coordinates and the lower right corner is at . Find a sequence of moves that starts and ends in and visits all the squares or report that no such sequence exists.
Input
A single line contains two integer and .
Output
Print a string of length that describes the tour: the -th letter is "L" if the -th move is left. "R" corresponds to right, "U" to up and "D" to down. Otherwise, print "-1" if there are no suitable sequences.
Constraints
Example 1
Input:
4 2
Output:
DDDRUUUL
Example 2
Input:
3 3
Output:
-1