#include<stdio.h>
#include<string.h>
int main()
{
char arr1[1000]="";
scanf("%s",arr1);
int len1=strlen(arr1);
for(int i=0;i<len1;i++)
{
if(isupper(arr1[i]))
{
arr1[i]=tolower(arr1[i]);
if(arr1[i]=='z')
arr1[i]='a';
else
arr1[i]+=1;
}
else if(islower(arr1[i]))
{
arr1[i]=toupper(arr1[i]);
if(arr1[i]=='Z')
arr1[i]='A';
else
arr1[i]+=1;
}
else if(isdigit(arr1[i]))
{
if(arr1[i]=='9')
arr1[i]='0';
else
arr1[i]+=1;
}
}
char arr2[1000]="";
scanf("%s",arr2);
int len2=strlen(arr2);
for(int i=0;i<len2;i++)
{
if(isupper(arr2[i]))
{
arr2[i]=tolower(arr2[i]);
if(arr2[i]=='a')
arr2[i]='z';
else
arr2[i]-=1;
}
else if(islower(arr2[i]))
{
arr2[i]=toupper(arr2[i]);
if(arr2[i]=='A')
arr2[i]='Z';
else
arr2[i]-=1;
}
else if(isdigit(arr2[i]))
{
if(arr2[i]=='0')
arr2[i]='9';
else
arr2[i]-=1;
}
}
printf("%s\n",arr1);
printf("%s\n",arr2);
return 0;
}
#include<string.h>
int main()
{
char arr1[1000]="";
scanf("%s",arr1);
int len1=strlen(arr1);
for(int i=0;i<len1;i++)
{
if(isupper(arr1[i]))
{
arr1[i]=tolower(arr1[i]);
if(arr1[i]=='z')
arr1[i]='a';
else
arr1[i]+=1;
}
else if(islower(arr1[i]))
{
arr1[i]=toupper(arr1[i]);
if(arr1[i]=='Z')
arr1[i]='A';
else
arr1[i]+=1;
}
else if(isdigit(arr1[i]))
{
if(arr1[i]=='9')
arr1[i]='0';
else
arr1[i]+=1;
}
}
char arr2[1000]="";
scanf("%s",arr2);
int len2=strlen(arr2);
for(int i=0;i<len2;i++)
{
if(isupper(arr2[i]))
{
arr2[i]=tolower(arr2[i]);
if(arr2[i]=='a')
arr2[i]='z';
else
arr2[i]-=1;
}
else if(islower(arr2[i]))
{
arr2[i]=toupper(arr2[i]);
if(arr2[i]=='A')
arr2[i]='Z';
else
arr2[i]-=1;
}
else if(isdigit(arr2[i]))
{
if(arr2[i]=='0')
arr2[i]='9';
else
arr2[i]-=1;
}
}
printf("%s\n",arr1);
printf("%s\n",arr2);
return 0;
}