Input (grade 12): Izanagi followed her there and upon his return he washed himself, creating Amaterasu, Susanoo, and Tsukuyomi in the process.
Output (grade 12): Izanagi followed her there and when he returned, he washed himself, creating Amaterasu, Susanoo, and Tsukuyomi.