Use integer division in parent().