Given a number N. Find the values of a and b such that a/b is the largest proper fraction and a + b = N. Following are constraints for fraction.
The first line consists of an integer T i.e number of test cases. The first and only line of each test case consists of an integer N.
Print the values of a and b with spaces in between.
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.