for pos in range(1, len(word)):
    if word[pos] in VOWELS_Y:
        pos += 1 if word[pos] == 'u' and word[pos - 1] == "q" else 0
        piggyfied.append(word[pos:] + word[:pos] + "ay")
        break

return " ".join(piggyfied)
