text = list(input())
for i in range(len(text)):
if text[i] == "а":
text[i] = "б"
print("".join(text))
text = list(input())
for i in range(len(text)):
if text[i] == "а":
text[i] = "б"
print("".join(text))