for i in range(int(input())):print("b"if input()[i]=="a"else"a",end="")