#include using namespace std; using ll=long long; using ld=long double; using P=pair; using V=vector; #define rep(i,n) for(ll i=0;i> _n >> q; while(n<=_n) n*=2; V a(_n); rep(i,_n){ cin >> a[i]; update(i,(a[i]==1)); } rep(i,q){ int t,x,y; cin >> t >> x >> y; if(t==1) update(x-1,(y==1)); else if(query(x,y,0,0,n)%2) cout << "S" << endl; else cout << "F" << endl; } }