Cyael is a teacher at a very famous school in Byteland and she is known by her students for being very polite to them and also to encourage them to get good marks on their tests.
Then, if they get good marks she will reward them with candies :) However, she knows they are all very good at Mathematics, so she decided to split the candies evenly to all the students she considers worth of receiving them, so they don't fight with each other. 
She has a bag which initially contains N candies and she intends to split the candies evenly to K students. To do this she will proceed as follows: while she has more than K candies she will give exactly 1 candy to each student until she has less than K candies. On this situation, as she can't split candies equally among all students she will keep the remaining candies to herself.
Your job is to tell how many candies will each student and the teacher
receive after the splitting is performed.

-----Input-----
The first line of the input contains an integer T denoting the number of test cases. The description of T test cases follows.
Each test case will consist of 2 space separated integers, N and K denoting the number of candies and the number of students as described above.

-----Output-----
For each test case, output a single line containing two space separated integers, the first one being the number of candies each student will get, followed by the number of candies the teacher will get.

-----Constraints-----
-  T<=100 in each test file 
- 0 <= N,K <= 233 - 1 

-----Example-----Input:
2
10 2
100 3

Output:
5 0
33 1

-----Explanation-----
For the first test case, all students can get an equal number of candies and teacher receives no candies at all 
For the second test case, teacher can give 33 candies to each student and keep 1 candy to herselfUpdate:
There may be multiple whitespaces before, after or between the numbers in input.

Starter code:

Solutions:
# cook your dish here
try:
 t = int(input())
 for _ in range(t):
  n, k = map(int, input().split())
  if k == 0:
   print(0, n)
  else:
   print(n//k, n%k)
except:
 pass

T = int(input())

for _ in range(T):
 N, K = map(int, input().split())
 if K == 0:
  print(0, N)
 else:
  print(N//K, N % K)

T = int(input())

for _ in range(T):
 N, K = map(int, input().split())
 if K == 0:
  print(0, N)
 else:
  print(N//K, N % K)

# cook your dish here
for i in range(int(input())):
 a,b=list(map(int,input().split()))
 if b==0:print(0,a)
 else:
  print(a//b,a%b)


# cook your dish here
for x in range(int(input())):
 n,k=input().strip(' ').split()
 n=int(n)
 k=int(k)
 if k==0:
  print(0,n)
 else:
  n=int(n)
  k=int(k)
  print(n//k,n%k)

for _ in range(int(input())):
 a,b=map(int,input().split())
 if(b==0):
  print('{} {}'.format(0,a))
 else:
  print('{} {}'.format(a//b,a%b))

for _ in range(int(input())):
 N, K = map(int, input().strip().split())
 if K == 0:
  print(0, N)
 else:
  print(N//K, N%K)

for _ in range(int(input())):
 N, K = map(int, input().strip().split())
 if K == 0:
  print(0, N)
 else:
  print(N//K, N%K)

T = int(input())

for i in range(T):
 (N, K) = map(int, input().split())
 
 if K != 0:
  studCandle = N % K
  print(N // K, studCandle)
  
 if K == 0:
  print(K, N)

T = int(input())

for i in range(T):
 (N, K) = map(int, input().split())
 
 if K != 0:
  studCandle = N % K
  print(N//K, studCandle)
  
 if K == 0:
  print(K, N)

# cook your dish here
T= int(input())
for i in range(T):
 N, K= list(map(int,input().strip().split()))
 if K!=0:
  x=N%K 
  print(int(N//K),int(x))

 if K==0:
  print(K,N)
  


# cook your dish here
for i in range(int(input())):
 n,k = map(int,input().split())
 if(k!=0):
  s = n//k
  t = n%k 
  print(s,t)
 elif(k==0):
  print(0,n)

# cook your dish here
T=int(input().strip())
for tc in range(T):
 N,K=map(int,input().strip().split())
 if K==0:
  print(0,N)
 else:
  print(N//K,N%K)

# cook your dish here
for _ in range(int(input())):
 n,k=list(map(int,input().split()))
 if k==0:
  print(0,n)
 else:
  print(n//k,n%k)


#SPCANDY

t = int(input())
A = []; B = []
for i in range(0, t, 1):
 n, k = input().split()
 n = int(n); k = int(k)
 if k != 0:
  A.append(n//k); B.append(n%k)
 else:
  A.append(0); B.append(n)
for i in range(0, t, 1):
 print(A[i], B[i])

# cook your dish here
for i in range(int(input())):
 n,k=list(map(int,input().split()))
 if n==0:
  print(0,0)
 elif k==0:
  print(0,n)
 else:
  print(n//k,n%k)
   


for _ in range(int(input())):
 a,b=list(map(int,input().split()))
 if a == 0:
  print(0, 0)
 elif b == 0:
  print(0, a)
 else:
  print(a//b,a%b)


t = int(input())
for _ in range(t):
 n, k = map(int, input().split())
 if n == 0:
  print(0, 0)
 elif k == 0:
  print(0, n)
 else:
  print(n//k, n%k)

t = int(input())
for i in range(t):
 n,k = list(map(int, input().split()))
 if(n==0):
  teacher = 0
  candies = 0
 elif(k==0):
  candies =0
  teacher = n
 else:
  teacher = n%k
  candies = n//k
 print(candies, teacher)


# cook your dish here
for _ in range (int(input())):
 n,k=map(int,input().split())
 if k==0:
  print(0,n)
  continue
 r=n%k
 stu=(n-r)//k
 print(stu,r)

# cook your dish here
t=int(input())
while t>0:
 n,k=map(int,input().split())
 if k==0:
  print(0,n)
 else:
  c=n//k
  q=n%k
  print(c,q)
 t=t-1

t = int(input())

for _ in range(t):
 n, k = map(int, input().split())
 if k == 0:
  print(0, n)
 else:
  print(n//k, n%k)

# cook your dish here
t=int(input())
for i in range(t):
 candies,student=map(int,input().split())
 if student==0:
  print(0,candies)
 else:
  each_student=candies//student
  teachers=candies%student
  print(each_student,teachers)