#include <iostream>
using namespace std;
int main()
{
string s1;
while (cin >> s1)
{
for (int i = 0; i < s1.length(); i++)
{
if (s1[i] >= 'a' && s1[i] <= 'y')
{
s1[i] = s1[i] - 31;
}
else if (s1[i] == 'z')
{
s1[i] = 'A';
}
else if (s1[i] >= 'A' && s1[i] <= 'Y')
{
s1[i] = s1[i] + 33;
}
else if (s1[i] == 'Z')
{
s1[i] = 'a';
}
else if (s1[i] >= '0' && s1[i] <= '8')
{
s1[i] = s1[i] + 1;
}
else if (s1[i] == '9')
{
s1[i] = '0';
}
}
cout << s1 << endl;
string s2;
cin >> s2;
for (int i = 0; i < s2.length(); i++)
{
if (s2[i] >= 'b' && s2[i] <= 'z')
{
s2[i] = s2[i] - 33;
}
else if (s2[i] == 'a')
{
s2[i] = 'Z';
}
else if (s2[i] >= 'B' && s2[i] <= 'Z')
{
s2[i] = s2[i] + 31;
}
else if (s2[i] == 'A')
{
s2[i] = 'z';
}
else if (s2[i] >= '1' && s2[i] <= '9')
{
s2[i] = s2[i] - 1;
}
else if (s2[i] == '0')
{
s2[i] = '9';
}
}
cout << s2 << endl;
}
return 0;
}
04-26
522
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)