Cast Cut Your Losses by paying ({4} magic symbol) ({U} magic symbol) ({U} magic symbol) , causing the player enchanted by Fraying Sanity to mill half their library, rounded down.
At the beginning of your end step, Fraying Sanity triggers, causing the player to mill the rest of their library.