#include <bits/stdc++.h>
using namespace std;
map<int, int> mint;
map<int, string> mstr;
set<int> sint;
int a[500], chk = 1;
int main() {
  ios::sync_with_stdio(0);
  char str[500];
  int k = 0, n, l = 0, i, j, x;
  a[k++] = 1;
  char c;
  while (cin >> c && c != '=') {
    if (c == '+') {
      a[k++]++;
      chk++;
    } else if (c == '-') {
      a[k++]--;
      chk--;
    }
    str[l++] = c;
  }
  str[l++] = '=';
  cin >> n;
  for (i = 0; i < k; i++) {
    while (chk < n && a[i] < n && a[i] > 0) chk++, a[i]++;
    while (chk > n && a[i] < 0 && a[i] > -n) chk--, a[i]--;
  }
  if (chk != n)
    cout << "Impossible\n";
  else {
    cout << "Possible\n";
    for (i = 0, x = 0; i < l; i++) {
      if (str[i] == '?') {
        if (a[x] < 0) a[x] = -a[x];
        cout << a[x] << " ";
        x++;
      } else {
        cout << str[i];
        cout << " ";
      }
    }
    cout << n << "\n";
  }
  return 0;
}
