Given a quadratic equation in the form **ax ^{2} + bx + c**. The task is to find the

**Input: **

First line of input contains an integer, the number of test cases **T**. Each test case should contain three positive numbers **a, b and c** in the same line seperated by space.

**Output: **

If roots of equations exits, then print the two roots separated by space (Higher valued root should be printed before lower valued). Else if a = 0, then print "Invalid" as equation is not quadratic. If roots are imaginary, then print "Imaginary"

**Constraints:**

1 <= T <= 50

1 <= a <= 10^{3}

1 <= b <= 10^{3}

1 <= c <= 10^{3}

**Example:**

**Input:**

3

1 -2 1

1 -7 12

1 4 8

**Output:**

1 1

4 3

Imaginary

**Explanation:
Testcase 1: **Roots of equation x

BadiMehnatLagtiHaiEasySawalMe | 480 |

Jihye Sofia Seo | 187 |

RohitBattu | 176 |

MaaChudaApniBadiMehnatLagtiHaiEasySawal | 173 |

piyushmittal25 | 172 |

AdityaSharma16 | 490 |

BadiMehnatLagtiHaiEasySawalMe | 480 |

saumitra13325 | 452 |

blackshadows | 430 |

ashujack | 401 |

blackshadows | 5188 |

akhayrutdinov | 5099 |

Ibrahim Nash | 5071 |

Quandray | 4354 |

sanjay05 | 3668 |

Login to report an issue on this page.