import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while (sc.hasNext()) {
String cryptStr = sc.nextLine();
String decryptStr = sc.nextLine();
StringBuilder cryptBuilder = new StringBuilder();
char[] cryptChars = cryptStr.toCharArray();
for (char cryptChar : cryptChars) {
if (Character.isLetter(cryptChar)) {
if (cryptChar >= 'a' && cryptChar <= 'z') {
if (cryptChar == 'z') {
cryptBuilder.append('A');
} else {
cryptBuilder.append(Character.toUpperCase(((char)(cryptChar + 1))));
}
} else {
if (cryptChar == 'Z') {
cryptBuilder.append('a');
} else {
cryptBuilder.append(Character.toLowerCase(((char)(cryptChar + 1))));
}
}
} else {
if (cryptChar >= '0' && cryptChar <= '9') {
if (cryptChar == '9') {
cryptBuilder.append('0');
} else {
cryptBuilder.append((char)(cryptChar + 1));
}
} else {
cryptBuilder.append(cryptStr);
}
}
}
System.out.println(cryptBuilder.toString());
StringBuilder decryptStrBuilder = new StringBuilder();
char[] decryptChars = decryptStr.toCharArray();
for (char decryptChar : decryptChars) {
if (Character.isLetter(decryptChar)) {
if (decryptChar >= 'a' && decryptChar <= 'z') {
if (decryptChar == 'a') {
decryptStrBuilder.append('Z');
} else {
decryptStrBuilder.append(Character.toUpperCase(((char)(decryptChar - 1))));
}
} else {
if (decryptChar == 'A') {
decryptStrBuilder.append('z');
} else {
decryptStrBuilder.append(Character.toLowerCase(((char)(decryptChar - 1))));
}
}
} else {
if (decryptChar >= '0' && decryptChar <= '9') {
if (decryptChar == '0') {
decryptStrBuilder.append('9');
} else {
decryptStrBuilder.append((char)(decryptChar - 1));
}
} else {
decryptStrBuilder.append(decryptChar);
}
}
}
System.out.println(decryptStrBuilder.toString());
}
}
}