for i in range(int(input())):print("god"+"".join(input().split()[1:]))