2 lines
91 B
Python
2 lines
91 B
Python
a = sorted(list(map(int, input().split())))
|
|
print(*[a[ord(c) - ord('A')] for c in input()]) |