Decode the Mad man
arr=list("qwertyuiop[]asdfghjkl;'zxcvbnm,./")
while 1:
try:
a=list(input())
for i in range(len(a)):
a[i]=a[i].lower()
for j in range(len(arr)):
if a[i]==arr[j]:
a[i]=arr[j-2]
for i in a:
print(i,end="")
print()
except:
break
Common Permutation
while 1:
try:
a=list(input())
b=list(input())
a=sorted(a)
ans=[]
for i in a:
if i in b and i!=' ':
ans.append(i)
b.remove(i)
for i in ans:
print(i,end="")
print()
except:
break