You will be given two numbers **A** and **B**. Your task is to print 1 if **A** < **B**, print 2 if **A** > **B** and print 3 if **A** = **B**.

**Input: **

The first line of input contains a single integer **T** denoting the number of test cases. Then **T** test cases follow. Each test case consists of two lines. The first line of each test case contains an integer A and the second line of each test case contains an integer B. There might be leading zeros.

**Output:**

Corresponding to each test case, in a new line, print 1, 2 or 3 accordingly if **A** < **B**, **A** > **B** or **A** = **B**.

**Constraints:**

1 ≤ **T** ≤ 100

0 ≤ **A**, **B** ≤ 10^{155 }

**Example:**

**Input**

3

1234

12345

100

1

00999

100

**Output**

1

2

2

If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.

bhatabhi554 | 317 |

hardikJain5 | 306 |

CodeBuddy | 293 |

Akkki111 | 233 |

clone | 230 |

KshatriyaYash | 1932 |

nikhil_sojan | 1374 |

lonecoder | 1236 |

mazumderrohit8 | 1176 |

RemoveTLE | 1144 |

blackshadows | 5327 |

Ibrahim Nash | 5219 |

akhayrutdinov | 5111 |

mb1973 | 4605 |

Quandray | 4444 |

Login to report an issue on this page.