#include<stdio.h> #include<string.h> #define MAX 200020 char s[MAX],ss[MAX*2],str[2]; int p[MAX*2]; int chance(char s) { return (s- str[0] + 26) % 26 + 'a'; } int min(int a,int b){return a>b?b:a;} int main() { int i,id,mx,max,n,j,ans,m; while(scanf("%s%s",str,s)!=EOF) { ss[0]='$'; n=strlen(s); for(i=0;i<n;i++) { ss[2*i+1]='#'; ss[2*(i+1)]=s[i]; } ss[2*i+1]='#'; ss[2*(i+1)]='