#include using namespace std; using ll = long long; const int INF = 1e+9; const ll LINF = (ll)pow(10,18); int main(){ int n; cin >> n; string s,t; cin >> s >> t; int q; cin >> q; char u,y; int x; for(int i=0; i> u >> x >> y; if(u == 'S') s[x-1] = y; else t[x-1] = y; if(s > t) cout << '>' << endl; else if(s < t) cout << '<' << endl; else cout << '=' << endl; } }