#include<bits/stdc++.h>
#define ll long long
#define ull unsigned long long
using namespace std;
int main(){
// freopen("input.txt", "r", stdin);
// freopen("output.txt", "w", stdout);
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int a, b, c, ans = 400, x = 360, y = 360, z = 360;
cin >> a >> b >> c;
for (int i = 0; i <= 360; i++){
int p, q, r;
p = i - a;
q = i - b;
r = i - c;
if (abs(p + q + r) < ans){
ans = abs(p + q + r);
x = p, y = q, z = r;
}
}
cout << x << " " << y << " " << z << endl;
}