#include<iostream>
#include<deque>
using namespace std;

int main(){
	deque <char> s;
	char c;
	int r=0;
	while((c=getchar())!='\n'){
		if(c=='R'){
			r^=1;
			continue;
		}
		if(r==0){
			if(s.empty()) s.push_back(c);
			else{
				if(c==s.back()) s.pop_back();
				else s.push_back(c);
			}
		}else{
			if(s.empty()) s.push_front(c);
			else{
				if(c==s.front()) s.pop_front();
				else s.push_front(c);
			}
		}
	}
	if(!r){
		while(!s.empty()){
			printf("%c",s.front());
			s.pop_front();
		}
	}else{
		while(!s.empty()){
			printf("%c",s.back());
			s.pop_back();
		}
	}
}



#include<bits/stdc++.h>
using namespace std;
int main()
{
  long long t;
  cin>>t;
  while(t--){
  long long n;
    cin>>n;
    if(n%2==1) cout<<"Odd"<<endl;
    else if(n%4==0) cout<<"Even"<<endl;
    else cout<<"Same"<<endl;
  }
  return 0;
}