Given two numbers A and B and task is to check whether A is greater than or less than or equals to B.
 
Example 1:
Input:
A = 2, B = 5
Output:
2 is less than 5
Explanation:
The output is self- 
explanatory.
 
Example 2:
Input:
A = 6, B = 3
Output:
6 is greater than 3
Explanation:
The output is self- 
explanatory.
 
Your Task:
You don't need to read input or print anything. Your task is to complete the function compareNum() which takes two integers A and B, if
If A > B then print "A is greater than B" without quotes
If A < B then print "A is less than B" without quotes
if A = B then print "A is equals to B" without quotes.
 
Expected Time Complexity: O(1)
Expected Auxiliary Space: O(1)
Constraints:
1<=A<=10000
1<=B<=10000

Difficulty: EASY
Expected Time Complexity: O(1)
Expected Auxiliary Space: O(1)

Starter code:
#User function Template for python3

class Solution:

    def compareNum (ob,A,B):

        # code here 

Solutions:
class Solution:

	def compareNum(ob, A, B):
		if A > B:
			return str(A) + ' is greater than ' + str(B)
		elif A < B:
			return str(A) + ' is less than ' + str(B)
		else:
			return str(A) + ' is equals to ' + str(B)


class Solution:

	def compareNum(ob, A, B):
		if A < B:
			return '{} is less than {}'.format(A, B)
		elif B < A:
			return '{} is greater than {}'.format(A, B)
		elif A == B:
			return '{} is equals to {}'.format(A, B)


class Solution:

	def compareNum(ob0, A, B):
		if A > B:
			D = str(A)
			E = str(B)
			a = D + ' is greater than ' + E
			return a
		elif A == B:
			A = str(A)
			B = str(B)
			return A + ' is equals to ' + B
		else:
			D = str(A)
			E = str(B)
			c = D + ' is less than ' + E
			return c


class Solution:

	def compareNum(ob, a, b):
		k = str(a)
		j = str(b)
		if a > b:
			return k + ' is greater than ' + j
		elif a < b:
			return k + ' is less than ' + j
		else:
			return k + ' is equals to ' + j


class Solution:

	def compareNum(o, a, b):
		if a > b:
			return str(a) + ' is greater than ' + str(b)
		elif a < b:
			return str(a) + ' is less than ' + str(b)
		else:
			return str(a) + ' is equals to ' + str(b)


class Solution:

	def compareNum(ob, f, g):
		if f > g:
			return str(f) + ' is greater than ' + str(g)
		elif f == g:
			return str(f) + ' is equals to ' + str(g)
		else:
			return str(f) + ' is less than ' + str(g)


class Solution:

	def compareNum(ob, A, B):
		while True:
			if A > B:
				A = str(A)
				B = str(B)
				C = ' is greater than '
				return A + C + B
			if A < B:
				A = str(A)
				B = str(B)
				C = ' is less than '
				return A + C + B
			if A == B:
				A = str(A)
				B = str(B)
				C = ' is equals to '
				return A + C + B


class Solution:

	def compareNum(ob, A, B):
		if A > B:
			print(A, 'is greater than', B)
		elif A < B:
			print(A, 'is less than', B)
		elif A == B:
			print(A, 'is equals to', B)
if __name__ == '__main__':
	t = int(input())
	for _ in range(t):
		(A, B) = map(int, input().strip().split(' '))
		ob = Solution()
		ob.compareNum(A, B)


class Solution:

	def compareNum(ob, A, B):
		f = ''
		if A > B:
			f = str(A) + ' is greater than ' + str(B)
		if A < B:
			f = str(A) + ' is less than ' + str(B)
		if A == B:
			f = str(A) + ' is equals to ' + str(B)
		return f


class Solution:

	def compareNum(ob, A, B):
		if A > B:
			x = str(A) + ' is greater than ' + str(B)
			return x
		elif A < B:
			y = str(A) + ' is less than ' + str(B)
			return y
		elif A == B:
			z = str(A) + ' is equals to ' + str(B)
			return z
if __name__ == '__main__':
	t = int(input())
	for _ in range(t):
		(A, B) = map(int, input().strip().split(' '))
		ob = Solution()
		print(ob.compareNum(A, B))