That’s generally the right idea.
Hint 1: Gel gb svaq n pbasvthengvba bs gur wryyvrf juvpu ernpurf sebz n pryy arkg gb gur ybjre yvsg gb gur hccre yvsg.
Hint 2: Abgr gung ng gur cbvag jurer lbhe pbagencgvba ernpurf gur hccre yvsg, vg’f bxnl sbe cnegf bs vg gb qebc gb gur tebhaq sybbe (gurl whfg unir gb or fhccbegrq ba gur cerivbhf ghea).
Hint 3: Erzrzore fbzr bs gur zber fhecevfvat zrpunavpf lbh’ir yrnearq guebhtubhg gur tnzr.