#include<bits/stdc++.h>
using namespace std;
#define int long long
#define pb push_back
#define endl '\n'
#define pp pair<int,pair<int,int>>
#define asort(a,n) sort(a,a+n)
#define arsort(a,n) sort(a,a+n,greater<int>())
#define arrout(a,n) for(int i=1;i<=n;i++)cout<<a[i]<<" ";
#define vcout(v) for(auto i:v)cout<<i<<endl;
#define vsort(v) sort(v.begin(),v.end())
#define vrsort(v) sort(v.rbegin(),v.rend());
#define pqr priority_queue<int,vector<int>,greater<int>>
#define debug cout<<"HERE"<<endl;
#define ff first
#define ss second
void edm()
{
ios::sync_with_stdio(false);cin.tie(nullptr);cout.tie(nullptr);
#ifndef ONLINE_JUDGE
freopen("input.txt","r",stdin);
freopen("output.txt","w",stdout);
#endif
}
void solve()
{
for(int i=0;i<3;i++)
{
int a;cin>>a;
cout<<120-a<<endl;
}
}
int32_t main()
{
//edm();
int t = 1;
//cin >> t;
for(int i=1;i<=t;i++)
{
solve();
}
}