#include<bits/stdc++.h>
using namespace std;
#define fast ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0);
#define ll long long int
#define YES cout<<"YES\n"
#define NO cout<<"NO\n"
#define endl "\n"
vector<int> takeVectorInput(int n){
vector<int>v(n);
for(auto &ele:v)cin>>ele;
// vector<int>v(n+1);
// for(int i=1;i<=n;++i) {
// cin>>v[i];
// }
return v;
}
void solve(){
int a,b,c;
cin>>a>>b>>c;
cout<<120-a<<" "<<120-b<<" "<<120-c<<endl;
}
signed main(){
fast
int t=1;
// cin>>t;
while(t--){
solve();
}
}