Two Divides in One Function