You have been recently hired as a developer in CodeChef. Your first mission is to implement a feature that will determine the number of submissions that were judged late in a contest.
There are $N$ submissions, numbered $1$ through $N$. For each valid $i$, the $i$-th submission was submitted at time $S_i$ and judged at time $J_i$ (in minutes). Submitting and judging both take zero time. Please determine how many submissions received their verdicts after a delay of more than $5$ minutes.

-----Input-----
- The first line of the input contains a single integer $T$ denoting the number of test cases. The description of $T$ test cases follows.
- The first line of the input contains a single integer $N$.
- $N$ lines follow. For each valid $i$, the $i$-th of these lines contains two space-separated integers $S_i$ and $J_i$.

-----Output-----
For each test case, print a single line containing one integer — the number of submissions for which the judging was delayed by more than 5 minutes.

-----Constraints-----
- $1 \le T \le 100$
- $1 \le N \le 100$
- $1 \le S_i \le J_i \le 300$ for each valid $i$

-----Subtasks-----
Subtask #1 (100 points): original constraints

-----Example Input-----
1
5
1 3
4 4
4 10
1 11
2 7

-----Example Output-----
2

-----Explanation-----
Example case 1: The delays of the respective submissions are $2$ minutes, $0$ minutes, $6$ minutes, $10$ minutes and $5$ minutes. Only submissions $3$ and $4$ are delayed by more than $5$ minutes, hence the answer is $2$.

Starter code:

Solutions:
# cook your dish here
for t in range(int(input())):
 c=0
 for i in range(int(input())):
  s,j=list(map(int,input().split()))
  if (j-s)>5:
   c+=1 
 print(c)
   


for _ in range(int(input())):
 n = int(input())

 cnt = 0
 for _ in range(n):
  s, j = map(int, input().split())

  if j - s > 5:   cnt += 1

 print(cnt)

# cook your dish here
for i in range(int(input())):
 count=0
 for j in range(int(input())):
  XY=input().split()
  X=int(XY[0])
  Y=int(XY[1])
  if Y-X>5 or X-Y>5:
   count+=1 
 print(count)


# cook your dish here
for _ in range(int(input())):
 n=int(input())
 c=0
 for i in range(n):
  s,j=map(int,input().split())
  if abs(s-j)>5:
   c=c+1 
 print(c)

T = int(input())
for i in range(T):
 N = int(input())
 co=0
 for j in range(N):
  a,b=map(int,input().split())
  if b-a>5:
   co+=1 
 print(co)

t=int(input())
for i in range(t):
 n=int(input())
 p=0
 for i in range(n):
  s,j=[int(x) for x in input().split()]
  if j-s>5:
   p+=1
 print(p)

t=int(input())
for i in range(t):
 n=int(input())
 a=0
 for i in range(n):
  s,j=[int(x) for x in input().split()]
  if j-s>5:
   a+=1
 print(a)


# cook your dish here
t = int(input())
for z in range(t) :
 n = int(input())
 c = 0
 for i in range(n) :
  s,j = [int(x) for x in input().split()]
  if j-s > 5 :
   c+= 1 
 print(c)

for t in range(int(input())):
 numberlist =0
 for n in range(int(input())):
  n , k = list(map(int,input().split()))
  if abs(n - k ) >5 :
   numberlist +=1
 print(numberlist)



# cook your dish here
for _ in range(int(input())):
 c=0
 for i in range(int(input())):
  s,j=[int(x)for x in input().split()]
  if (j-s)>5:
   c+=1 
 print(c)

# cook your dish here
for t in range(int(input())):
 c=0
 for i in range(int(input())):
  s,j=[int(x)for x in input().rstrip().split()]
  if (j-s)>5:
   c+=1 
 print(c)

# cook your dish here
for _ in range(int(input())):
 n=int(input())
 s=0
 for i in range(n):
  a,j=map(int,input().split())
  if j-a >5:
   s=s+1 
 print(s)

t=int(input())
while(t!=0):
 a = int(input())
 count = 0
 for i in range(a):
  c,b = list(map(int,input().split()))
  d = b-c
  if(d>5):
   count+=1
 print(count)
 t=t-1


# cook your dish here
for _ in range(int(input())):
 c=0
 for __ in range(int(input())):
  a,b=map(int,(input().split()))
  if((b-a)>5):
   c+=1
 print(c)

# cook your dish here
for _ in range(int(input())):
 n=int(input())
 count=0
 for i in range(n):
  a,b=list(map(int,input().split()))
  if abs(a-b)>5:
   count+=1
 print(count)


# cook your dish here
for _ in range(int(input())):
 n = int(input())
 c = 0
 for i in range(n):
  S,J = map(int,input().split())
  if (J-S)>5:
   c+=1
 print(c)

t=int(input())
for i in range(t):
 n=int(input())
 count=0
 for i in range(n):
  a,b=map(int,input().split())
  if(b-a>5):
   count=count+1
 print(count)

# cook your dish here
t=int(input());
for i in range(t):
 n=int(input());
 new=[];
 d=0;
 for i in range(n):
  s,j=list(map(int,input().split()));
  c=j-s;
  new.append(c);
 #print(new);
 for i in new:
  if i>5:
   d=d+1;
 print(d);
   
  


t=int(input())
while(t>0):
 s=int(0)
 n=int(input())
 while(n>0):
  a,b=list(map(int,input().split()))
  if(b-a>5):
   s=s+1
  n=n-1
 t=t-1
 print(s)


# cook your dish here
for _ in range(int(input())):
 n=int(input())
 count=0
 for i in range(n):
  x,y=list(map(int,input().split()))
  if y-x>5:
   count+=1
 print(count)


T=int(input())
for i in range(T):
 N=int(input())
 S=[]
 J=[]
 c=0
 for j in range(N):
  a,b=list(map(int,input().split()))
  S.append(a)
  J.append(b)
  if abs(J[j]-S[j]>5):
   c+=1
 print(c)


T=int(input())
for i in range(T):
 N=int(input())
 S=[]
 J=[]
 c=0
 for j in range(N):
  a,b=map(int,input().split())
  S.append(a)
  J.append(b)
  if abs(J[j]-S[j]>5):
   c+=1
 print(c)

# cook your dish here
cases = int(input())
for case in range(cases):
 N = int(input())
 count = 0
 for _ in range(N):
  S,J = list(map(int,input().split()))
  if abs(J-S) > 5:
   count += 1
 print(count)
  


# cook your dish here
for _ in range(int(input())):
 count=0
 n=int(input())
 for i in range(n):
  x,y=list(map(int,input().split()))
  if y-x>5:
   count=count+1
 print(count)