text: #include <bits/stdc++.h>
  
  using namespace std;
  
  int main() {
      ios_base::sync_with_stdio(false);
      cin.tie(0); cout.tie(0);
  
      int A, B;
      cin >> A >> B;
      if (A % 3 == 0 || B % 3 == 0 || (A + B) % 3 == 0) {
          cout << "Possible" << endl;
      } else {
          cout << "Impossible" << endl;
      }
  
      return 0;
  }