x-y p-|q-r|