#include <bits/stdc++.h>
using namespace std;
void rip() {
  cout << "Impossible";
  exit(0);
}
int main() {
  int A, B, C;
  cin >> A >> B >> C;
  int a = A, b = B, c = C;
  vector<int> v = {a, b, c};
  sort(v.begin(), v.end());
  a = v[0];
  b = v[1];
  c = v[2];
  if (a == 0) rip();
  int ab = 0, bc = 0, ac = 0;
  int x = b - a;
  c -= x;
  b -= x;
  bc += x;
  assert(a == b);
  if (c % 2) rip();
  x = c / 2;
  a -= x;
  b -= x;
  c -= 2 * x;
  ac += x;
  bc += x;
  assert(c == 0);
  if (a < 0 || b < 0) rip();
  x = a;
  a -= x;
  b -= x;
  ab += x;
  assert(a == 0 && b == 0);
  if (A <= B && B <= C)
    cout << ab << " " << bc << " " << ac;
  else if (A <= C && C <= B)
    cout << ac << " " << bc << " " << ab;
  else if (B <= A && A <= C)
    cout << ab << " " << ac << " " << bc;
  else if (C <= A && A <= B)
    cout << bc << " " << ac << " " << ab;
  else if (B <= C && C <= A)
    cout << ac << " " << ab << " " << bc;
  else
    cout << bc << " " << ab << " " << bc;
}
