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.

Vagesh Verma | 98 |

UrGuru | 98 |

chaolinyu | 84 |

prernaus24 | 83 |

devendrachoudhary5485 | 74 |

abducodes | 624 |

harshtyagi36 | 298 |

highway_to_hell | 252 |

rajeswarii | 248 |

arpit_anshuman | 240 |

blackshadows | 5331 |

Ibrahim Nash | 5219 |

akhayrutdinov | 5111 |

mb1973 | 4929 |

Quandray | 4567 |

Login to report an issue on this page.