#include using namespace std; int n,x[1000],y[1000]; int main(){ cin>>n; for(int i=0;i>x[i]>>y[i]; } int ans=y[0]-x[0]; for(int i=0;i0)cout<