#include

#include

using namespace std;

int main()

{

int t; // no. of test cases

cin>>t;

```
while(t--){
int n; //inputs
float t1,v1,v2,t2;
cin>>n>>v1>>v2;
t1= (sqrt(2)*n)/v1;
t2=(2*n)/v2;
if(t1>t2){
cout<<"stairs"<<endl;
}
else
{
cout<<"elevator"<<endl;
}
}
```

return 0;

}