print+(($&+$_)/$'|0)-(($`+$_-1)/$'|0),$/for<>=~/ .* /-$'..0