/*
* @author:- SYEDA SADIATUL JANNAT TUSHI
* date & time :2024-12-24 08:50:49
* BANGLADESH , SYLHET.
*/
#include <bits/stdc++.h>
using namespace std;
#define endl '\n'
#define ll long long
#define vi vector<ll>
#define pii pair<ll,ll>
#define vii vector<pii>
#define sz(x) (int)x.size()
#define be(x) x.begin(), x.end()
#define srt(v) sort(v.begin(),v.end())
#define rsrt(v) sort(v.rbegin(),v.rend())
#define fl(i, a, b) for(ll i = (a); i < (b); i++)
#define print(v) for(auto e:v) cout<<e<<" "; cout<<endl;
#define InShaAllah ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0);
int main() {
InShaAllah
ll a,b,c;
cin>> a>> b>>c;
cout<< 120-a<<" "<<120-b<<" "<<120-c<<endl;
return 0;
}