#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(){
/*freopen(".in","r",stdin);
freopen(".out","w",stdout);*/
string s,t,s1,t1;
ll q,l1,l2,r1,r2;
cin>>s>>t>>q;
for(int i=1;i<=q;i++){
cin>>l1>>r1>>l2>>r2;
for(int j=l1-1;j<=r1-1;j++) s1=s1+s[j];
for(int j=l2-1;j<=r2-1;j++) t1=t1+t[j];
ll l=min(s1.size(),t1.size());
for(int j=0;j<l;j++){
if(s1[j]<t1[j]) cout<<"yifusuyi"<<endl;
else if(s1[j]>t1[j]) cout<<"erfusuer"<<endl;
}
if(s1==t1) cout<<"ovo"<<endl;
s1=t1="";
}
return 0;
}
有关注