// Author: Shawn Das Shachin-->(shawn_das)
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
#define pb push_back
#define mod 1000000007
#define srt(v) sort(v.begin(),v.end())
#define rsrt(v) sort(v.rbegin(),v.rend())
#define OPTIMIZE_IO ios::sync_with_stdio(false); cin.tie(nullptr);
void solve(){
int a,b,c;
cin>>a>>b>>c;
int av=(a+b+c)/3;
cout<<av-a<<" "<<av-b<<" "<<av-c<<endl;
}
int main() {
OPTIMIZE_IO;
int t=1;
//cin>>t;
while(t--){
solve();
}
return 0;
}