#include <bits/stdc++.h>
using namespace std;
int main() {
  unsigned long long int t, n1, k1, nb, kb;
  cin >> t;
  while (t--) {
    unsigned long long int a, b, c;
    cin >> a >> b >> c;
    n1 = a;
    k1 = c;
    nb = a * b;
    kb = c;
    if (n1 < k1) cout << "1 ";
    if (n1 >= k1) cout << "-1 ";
    if (nb > kb) cout << b << endl;
    if (nb <= kb) cout << "-1" << endl;
  }
  return 0;
}
