#include // #include #define rng(a) a.begin(),a.end() #define rrng(a) a.rbegin(),a.rend() #define INF 2000000000000000000 #define ll long long #define ld long double #define pll pair using namespace std; templatebool chmax(T &a, const T &b) { if (abool chmin(T &a, const T &b) { if (b> A; string S; cin >> S; for (ll i = 0; i < S.size(); ++i) { if ('0' <= S.at(i) && S.at(i) <= '9') { S.at(i) = A.at(S.at(i) - '0'); } } cout << S << "\n"; }