0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-30 16:36:26 +00:00
OI-codes/AtCoder/ABC219/B/B.cpp

15 lines
207 B
C++

#include <bits/stdc++.h>
using namespace std;
string s[4], t;
int main() {
cin >> s[1] >> s[2] >> s[3] >> t;
for (auto c : t) {
cout << s[c - '0'];
}
cout << endl;
return 0;
}