第一道测试不过但是能提交的题//1. 输入,区间长度k,n个x的倍数的n,正整数x.
//2. 如果不存在n个x的倍数,输出 -1 否则输出两个正整数
#include <bits/stdc++.h>
using namespace std;

int main() {
    long long n, k, x;
    cin >> n >> k >> x;
    if (k >= x * n - x + 1 && k <= x * n + x - 1) {
        int long long more = k - x * n + x - 1;
        int long long lerf_more = more / 2;
        int long long right_more = more - lerf_more;
        cout << x - lerf_more << ' ' << n* x + right_more;
    } else cout << -1;
}
// 64 位输出请用 printf("%lld")
// 64 位输出请用 printf("%lld")