#include <iostream>
using namespace std;

int main() {
    int a1, a2, a3;
    cin >> a1 >> a2 >> a3;

    int diff = a2 - a1;
    int ratio = a2 / a1;

    if (a3 - a2 == diff) {
        // 等差数列
        int next1 = a3 + diff;
        int next2 = next1 + diff;
        int next3 = next2 + diff;
        cout << next1 << " " << next2 << " " << next3 << endl;
    } else if (a3 / a2 == ratio) {
        // 等比数列
        int next1 = a3 * ratio;
        int next2 = next1 * ratio;
        int next3 = next2 * ratio;
        cout << next1 << " " << next2 << " " << next3 << endl;
    }

    return 0;
}    
/**************************************************************
	Problem: 1051
	User: linmiaoling
	Language: C++
	Result: Accepted
	Time:8 ms
	Memory:2072 kb
****************************************************************/