//wasted a hell lot of time on this one //Silly Submission :/ #include using namespace std; #define MAX 1000000007 #define ll long long int main() { string s; cin>>s; ll int t, l, r; cin>>t; while(t--) { ll int ans = 0; cin>>l>>r; for(int ii = 1; ii<=( (r-l)+ 1); ii++) { //cout<<"-----------------For len = "<1) { cc = cc + 2; } else { cc++; } } if(cc) { ans = cc; } } //cout<<"ans at i = "<