import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); // Java 没有 while True,用 while(sc.hasNext()) while (sc.hasNext()) { int n = sc.nextInt(); int k = sc.nextInt(); int x = sc.nextInt(); // 第一种情况:从 1 开始,区间 [1, k] if (k / x == n) { System.out.println("1 " + k); } // 第二种情况:从 x 开始,区间 [x, x + k - 1] else if ((x + k - 1) / x == n) { System.out.println(x + " " + (x + k - 1)); } else { System.out.println(-1); } } } }