C.cpp 323 B

12345678910111213141516171819
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. int main() {
  4. int n;
  5. cin >> n;
  6. while (n--) {
  7. int x;
  8. cin >> x;
  9. if (x % 2 == 0) {
  10. cout << x - 4 << " " << 4 << endl;
  11. } else {
  12. cout << x - 9 << " " << 9 << endl;
  13. }
  14. }
  15. return 0;
  16. }