#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
#define fastIO() ios_base::sync_with_stdio(0), cin.tie(0);
#define endl '\n'
#define ll long long
#define pb push_back
#define ub upper_bound
#define lb lower_bound
#define fin freopen("input.txt", "r", stdin)
#define fout freopen("output.txt", "w", stdout)
#define pi pair<ll, ll>
#define M (ll)(1e9 + 7)
int main(){
fastIO()
ll a,b,c;
cin>>a>>b>>c;
cout<<120-a<<" "<<120-b<<" "<<120-c<<endl;
}