#include <bits/stdc++.h>
using namespace std;
const double PI = acos(-1.0);
const int INF = 1e9;
const int MOD = 1e9 + 7;
const int M = INF;
const double RRR = 180.0 / PI;
vector<vector<int> > g;
vector<int> used;
vector<int> p;
int main() {
  double TIME_START = clock();
  int a, b, c;
  cin >> a >> b >> c;
  int ans1 = 0, ans2 = 0, ans3 = 0;
  vector<pair<int, int> > mas(3);
  mas[0] = make_pair(a, 1);
  mas[1] = make_pair(b, 2);
  mas[2] = make_pair(c, 3);
  while (1) {
    sort(mas.begin(), mas.end());
    if (mas[1].second + mas[2].second == 3) {
      ans1++;
    }
    if (mas[1].second + mas[2].second == 5) {
      ans2++;
    }
    if (mas[1].second + mas[2].second == 4) {
      ans3++;
    }
    mas[1].first--;
    mas[2].first--;
    if (mas[0].first == 0 && mas[1].first == 0 && mas[2].first == 0) {
      break;
    }
    if (mas[0].first < 0 || mas[1].first < 0 || mas[2].first < 0) {
      cout << "Impossible" << endl;
      return 0;
    }
  }
  cout << ans1 << " " << ans2 << " " << ans3 << endl;
  return 0;
}
