0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-12-18 16:51:59 +00:00
OI-codes/AtCoder/ABC219/B/B.cpp

15 lines
207 B
C++
Raw Normal View History

#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;
}