func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     ios_base::sync_with_stdio(false);     int n, m;     cin >> n >> m;     vector<int> cnt(n + 1, false), idx(n + 1), ans(m + 1), b(m + 1);     for (int i = 1; i <= n; i++) {       int x;       cin >> x;       cnt[x]++;       idx[x] = i;     }     for (int i = 1; i <= m; i++) {       cin >> b[i];       if (!cnt[b[i]]) {         cout <<  Impossible  << endl;         return 0;       }     }     for (int i = 1; i <= m; i++) {       if (cnt[b[i]] > 1) {         cout <<  Ambiguity  << endl;         return 0;       }       ans[i] = idx[b[i]];     }     cout <<  Possible  << endl;     for (int i = 1; i <= m; i++) cout << ans[i] <<    ;     cout << endl;     return 0;   }   