#include<iostream>
#include<stdlib.h>
#include<math.h>
#include<stdio.h>
#include<algorithm>
#include<queue>
#include<string.h>
#include<stack>
#include<math.h>
#include<string>
#include<stdlib.h>
#include<list>
#include<vector>
using namespace std;
int main()
{
int i,j,k;
int n;
cin>>n;
while (n--)
{
int a,b,c;
int A,B,C;
cin>>A>>B>>C;
cin>>a>>b>>c;
if (A>a)
{
cout<<"First"<<endl;
continue;
}
if (A<a)
{
cout<<"Second"<<endl;
continue;
}
A=B;
a=b;
if (A>a)
{
cout<<"First"<<endl;
continue;
}
if (A<a)
{
cout<<"Second"<<endl;
continue;
}
A=C;
a=c;
if (A>a)
{
cout<<"First"<<endl;
continue;
}
if (A<a)
{
cout<<"Second"<<endl;
continue;
}
cout<<"Same"<<endl;
}
}