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.

jhasaurabh312 | 138 |

Aaaaarohiiii | 136 |

Harsha_kunchala | 128 |

tushki | 124 |

RajaRajput | 117 |

ARUN_PUNDIR | 617 |

manishgupta8497 | 607 |

Abhimanyu_kumar | 559 |

KhyatiSoneji | 501 |

Aman___Jain | 496 |

blackshadows | 5335 |

Ibrahim Nash | 5223 |

akhayrutdinov | 5111 |

mb1973 | 4929 |

Quandray | 4567 |

Login to report an issue on this page.