350_C. Bombs
You've got a robot, its task is destroying bombs on a square plane. Specifically, the square plane contains n bombs, the i-th bomb is at point with coordinates (xi, yi). We know that no two bombs are at the same point and that no bomb is at point with coordinates (0, 0). Initially, the robot is at point with coordinates (0, 0). Also, let's mark the robot's current position as (x, y). In order to destroy all the bombs, the robot can perform three types of operations:

  1. Operation has format "1 k dir". To perform the operation robot have to move in direction dir k (k ≥ 1) times. There are only 4 directions the robot can move in: "R", "L", "U", "D". During one move the robot can move from the current point to one of following points: (x + 1, y), (x - 1, y), (x, y + 1), (x, y - 1) (corresponding to directions). It is forbidden to move from point (x, y), if at least one point on the path (besides the destination point) contains a bomb. 
  2. Operation has format "2". To perform the operation robot have to pick a bomb at point (x, y) and put it in a special container. Thus, the robot can carry the bomb from any point to any other point. The operation cannot be performed if point (x, y) has no bomb. It is forbidden to pick a bomb if the robot already has a bomb in its container. 
  3. Operation has format "3". To perform the operation robot have to take a bomb out of the container and destroy it. You are allowed to perform this operation only if the robot is at point (0, 0). It is forbidden to perform the operation if the container has no bomb. 



Help the robot and find the shortest possible sequence of operations he can perform to destroy all bombs on the coordinate plane.

Input

The first line contains a single integer n (1 ≤ n ≤ 105) — the number of bombs on the coordinate plane. Next n lines contain two integers each. The i-th line contains numbers (xi, yi) ( - 109 ≤ xi, yi ≤ 109) — the coordinates of the i-th bomb. It is guaranteed that no two bombs are located at the same point and no bomb is at point (0, 0). 

Output

In a single line print a single integer k — the minimum number of operations needed to destroy all bombs. On the next lines print the descriptions of these k operations. If there are multiple sequences, you can print any of them. It is guaranteed that there is the solution where k ≤ 106.

Examples

Input

2
1 1
-1 -1


Output

12
1 1 R
1 1 U
2
1 1 L
1 1 D
3
1 1 L
1 1 D
2
1 1 R
1 1 U
3


Input

3
5 0
0 5
1 0


Output

12
1 1 R
2
1 1 L
3
1 5 R
2
1 5 L
3
1 5 U
2
1 5 D
3
```python
import os,sys
from io import BytesIO, IOBase
BUFSIZE = 8192
class FastIO(IOBase):
    newlines = 0
    def __init__(self, file):
        self._fd = file.fileno()
        self.buffer = BytesIO()
        self.writable = "x" in file.mode or "r" not in file.mode
        self.write = self.buffer.write if self.writable else None
    def read(self):
        while True:
            b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
            if not b:
                break
            ptr = self.buffer.tell()
            self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr)
        self.newlines = 0
        return self.buffer.read()
    def readline(self):
        while self.newlines == 0:
            b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
            self.newlines = b.count(b"\n") + (not b)
            ptr = self.buffer.tell()
            self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr)
        self.newlines -= 1
        return self.buffer.readline()
    def flush(self):
        if self.writable:
            os.write(self._fd, self.buffer.getvalue())
            self.buffer.truncate(0), self.buffer.seek(0)
class IOWrapper(IOBase):
    def __init__(self, file):
        self.buffer = FastIO(file)
        self.flush = self.buffer.flush
        self.writable = self.buffer.writable
        self.write = lambda s: self.buffer.write(s.encode("ascii"))
        self.read = lambda: self.buffer.read().decode("ascii")
        self.readline = lambda: self.buffer.readline().decode("ascii")

def print(*args, **kwargs):
    """Prints the values to a stream, or to sys.stdout by default."""
    sep, file = kwargs.pop("sep", " "), kwargs.pop("file", sys.stdout)
    at_start = True
    for x in args:
        if not at_start:
            file.write(sep)
        file.write(str(x))
        at_start = False
    file.write(kwargs.pop("end", "\n"))
    if kwargs.pop("flush", False):
        file.flush()

sys.stdin, sys.stdout = IOWrapper(sys.stdin), IOWrapper(sys.stdout)
input = lambda: sys.stdin.readline().rstrip("\r\n")

n=int(input())
bomb=[]
for i in range(n):
    x,y=map(int,input().split())
    a=((x**2+y**2)**0.5,x,y)
    bomb.append(a)
bomb.sort()
c=0
res=[]
for i in range(n):
    if(bomb[i][1]==0):
        if(bomb[i][2]>0):
            res.append([1,abs(bomb[i][2]),'U'])
            res.append([2])
            res.append([1,abs(bomb[i][2]),'D'])
            res.append([3])
            c+=4
        else:
            res.append([1,abs(bomb[i][2]),'D'])
            res.append([2])
            res.append([1,abs(bomb[i][2]),'U'])
            res.append([3])
            c+=4
    elif(bomb[i][2]==0):
        if(bomb[i][1]>0):
            res.append([1,abs(bomb[i][1]),'R'])
            res.append([2])
            res.append([1,abs(bomb[i][1]),'L'])
            res.append([3])
            c+=4
        else:
            res.append([1,abs(bomb[i][1]),'L'])
            res.append([2])
            res.append([1,abs(bomb[i][1]),'R'])
            res.append([3])
            c+=4
    else:
        if(bomb[i][1]>0 and bomb[i][2]>0):
            res.append([1,abs(bomb[i][1]),'R'])
            res.append([1,abs(bomb[i][2]),'U'])
            res.append([2])
            res.append([1,abs(bomb[i][1]),'L'])
            res.append([1,abs(bomb[i][2]),'D'])
            res.append([3])
            c+=6
        elif(bomb[i][1]>0 and bomb[i][2]<0):
            res.append([1,abs(bomb[i][1]),'R'])
            res.append([1,abs(bomb[i][2]),'D'])
            res.append([2])
            res.append([1,abs(bomb[i][1]),'L'])
            res.append([1,abs(bomb[i][2]),'U'])
            res.append([3])
            c+=6
        elif(bomb[i][1]<0 and bomb[i][2]<0):
            res.append([1,abs(bomb[i][1]),'L'])
            res.append([1,abs(bomb[i][2]),'D'])
            res.append([2])
            res.append([1,abs(bomb[i][1]),'R'])
            res.append([1,abs(bomb[i][2]),'U'])
            res.append([3])
            c+=6
        else:
            res.append([1,abs(bomb[i][1]),'L'])
            res.append([1,abs(bomb[i][2]),'U'])
            res.append([2])
            res.append([1,abs(bomb[i][1]),'R'])
            res.append([1,abs(bomb[i][2]),'D'])
            res.append([3])
            c+=6
         
print(c)
for i in res:
    print(*i)
```