sebi and the highway

#include
using namespace std;
int main()
{
int a ;cin>>a;
while(a–)
{
long double speed , sg ,fg , d, t ; cin>>speed>>sg>>fg>>d>>t; long double x = speed (t/3600);
long double v= (x+ ((50
d)/1000)) / (t/3600); long double j=2; long double q=0,h=0;
if(fg==sg)
cout<<“DRAW”<<endl;
else if (fg>sg)
{
q=(fg+sg)/j;
if(v>q)
cout<<“FATHER”<<endl;
else if (v==q)
cout<<“DRAW”<<endl;
else
cout<<“SEBI”<<endl;
}
else if (sg>fg)
{
h=(sg+fg)/j ;
if(v>h)
cout<<“SEBI”<<endl;
else if (v==h)
cout<<“DRAW”<<endl;
else
cout<<“FATHER”<<endl;
}

}

}