#include #include #include using namespace std; int main(){ int n; cin>>n; vector a(n); for(int i=0;i>x>>y; a[i]=y-x; } sort(a.begin(),a.end()); if(a[0]==a[n-1]){ cout<