I don't know how well this would work but wouldn't you just do a x y problem? ((((((((((X-1)/5)-1)/5)-1)/5)-1)/5)-1)/5)=y

I have no clue if it would work as I just pulled it out of my ass but it kind of looks right

EDIT: Upon looking at what I typed it is bizull[img]/xxx.gif[/img][img]/xxx.gif[/img][img]/xxx.gif[/img][img]/xxx.gif[/img]z.