一个类似于古典密码学的加密体系,按照题目的要求一步一步进行模拟即可

s = input()
string = input()
alpha = "abcdefghijklmnopqrstuvwxyz"
m = []
res = ""
for i in range(len(s)):
    if s[i] not in m:
        m.append(s[i])
for j in alpha:
    if j not in m:
        m.append(j)
for k in string:
    if k.islower():
        res += m[alpha.index(k)]
    else:
        res += m[alpha.index(k)]
print(res)

#牛客春招刷题训练营# + 链接