Chef has been working in a restaurant which has  N  floors. He wants to minimize the time it takes him to go from the N-th floor to ground floor. He can either take the elevator or the stairs. 
The stairs are at an angle of 45 degrees and Chef's velocity is V1 m/s when taking the stairs down. The elevator on the other hand moves with a velocity V2 m/s. Whenever an elevator is called, it always starts from ground floor and goes to N-th floor where it collects Chef (collecting takes no time), it then makes its way down to the ground floor with Chef in it.  

The elevator cross a total distance equal to N meters when going from N-th floor to ground floor or vice versa, while the length of the stairs is sqrt(2) * N because the stairs is at angle 45 degrees.

Chef has enlisted your help to decide whether he should use stairs or the elevator to minimize his travel time. Can you help him out?

-----Input-----
The first line contains a single integer T, the number of test cases. Each test case is described by a single line containing three space-separated integers N, V1, V2. 

-----Output-----
For each test case, output a single line with string Elevator or Stairs, denoting the answer to the problem.

-----Constraints-----
- 1 ≤ T ≤  1000 
- 1 ≤ N, V1, V2 ≤  100 

-----Example-----
Input:
3
5 10 15
2 10 14
7 14 10

Output:
Elevator
Stairs
Stairs

Difficulty: interview

Starter code:

Solutions:
n=int(input())
l=[]
for i in range(0,n):
 a,b,c=map(int,input().split())
 n1=(2**0.5)*(a/b)
 n2=2*(a/c)
 if n1>n2:
  l.append("Elevator")
 else:
  l.append("Stairs")
for i in l:
 print(i)

n=int(input())
l=[]
for i in range(0,n):
 a,b,c=list(map(int,input().split()))
 n1=(2**0.5)*(a/b)
 n2=2*(a/c)
 if n1>n2:
  l.append("Elevator")
 else:
  l.append("Stairs")
for i in l:
 print(i)



import math
for _ in range(int(input())):
 a = list(map(int, input().split()))
 steps = a[0]
 stairs_speed = a[1]
 elevators_speed = a[2]
 stairs_distance = math.sqrt(2) * steps
 elevators_distance = steps + steps
 stairs_time = stairs_distance / stairs_speed
 elevators_time = elevators_distance / elevators_speed
 if stairs_time < elevators_time:
  print("Stairs")
 else:
  print("Elevator")

import math
for _ in range(int(input())):
 a = list(map(int, input().split()))
 steps = a[0]
 stairs_speed = a[1]
 elevators_speed = a[2]
 stairs_distance = math.sqrt(2) * steps
 elevators_distance = steps + steps
 stairs_time = stairs_distance / stairs_speed
 elevators_time = elevators_distance / elevators_speed
 if stairs_time < elevators_time:
  print("Stairs")
 else:
  print("Elevator")

# cook your dish here
import math
for i in range(int(input())):
 n,v1,v2=list(map(int, input().split()))
 t=((math.sqrt(2)*n)/v1)
 e=((2*n)/v2)
 if e<t:
  print("Elevator")
 else:
  print("Stairs")


import math
for i in range(int(input())):
 n,v1,v2=list(map(int, input().split()))
 time_stairs=((math.sqrt(2)*n)/v1)
 time_elevator=((2*n)/v2)
 if time_elevator<time_stairs:
  print("Elevator")
 else:
  print("Stairs")
 


import math
try:
 t = int(input())
 for i in range(t):
  x = list(map(int,input().split()))
  y = x[2]/(math.sqrt(2)*x[1])
  if y>1:
   print("Elevator")
  else:
   print("Stairs")
except:
 pass

# cook your dish here
for i in range(int(input())):
 L=list(map(int,input().split()))
 if (((2**0.5)*L[0])/L[1])<2*(L[0]/L[2]):
  print("Stairs")
 else:
  print("Elevator")

for _ in range(int(input())):
 n,v1,v2=map(int,input().split())
 if (n/v1)<=((2**0.5)*n/v2):
  print('Stairs')
 else:
  print('Elevator')

# cook your dish here
import math
for t in range(int(input())):
 n,v1,v2=list(map(int,input().split()))
 t2=(2*n)/v2
 t1=(math.sqrt(2)*n)/v1
 if t1<=t2:
  print("Stairs")
 else:
  print("Elevator")
  


# cook your dish here
try:
 from math import sqrt
 for _ in range(int(input())):
  floor, vel1, vel2 = map(int,input().rstrip().split())
  if (sqrt(2)*floor)/vel1 < (2*floor)/vel2:
   print('Stairs')
  else:
   print('Elevator')
except:
 pass

# cook your dish here
import math
for t in range(int(input())):
 n,v1,v2=map(int,input().split())
 t2=(2*n)/v2
 t1=(math.sqrt(2)*n)/v1
 if t1<=t2:
  print("Stairs")
 else:
  print("Elevator")

# cook your dish here
import math
for t in range(int(input())):
 n,v1,v2=list(map(int,input().split()))
 t2=(2*n)/v2
 t1=(math.sqrt(2)*n)/v1
 if t1<=t2:
  print("Stairs")
 else:
  print("Elevator")
  


import math
t=int(input())
for i in range (t):
 n,v1,v2=list(map(int,input().split()))
 x=v1*math.sqrt(2)*n
 y=v2*n
 if x<y:
  print("Elevator")
 else:
  print("Stairs")


# cook your dish here
import math
T=int(input())
for i in range(T):
 n,v1,v2=list(map(int,input().split()))
 x=v1*math.sqrt(2)*n
 y=v2*n
 if x<y:
  print("Elevator")
 else:
  print("Stairs")


import math
T=int(input())
for i in range(T):
 data=input().split(" ")
 elev=int(data[0])
 str=math.sqrt(2)*int(data[0])
 if(str*int(data[1]))>(elev*int(data[2])):
  print("Stairs")
 else:
  print("Elevator")


# cook your dish here
for _ in range(int(input())):
 n,v1,v2=list(map(int,input().split()))
 t1=(n/v1)
 t2=((2**0.5)*n/v2)
 if t1>t2:
  print('Elevator')
 else:
  print('Stairs')

# cook your dish here
import math
for _ in range(int(input())):
 n,v1,v2=map(int,input().split())
 x=(2*n)/v2
 y=(math.sqrt(2)*n)/v1
 if x>y:
  print("Stairs")
 else:
  print("Elevator")

# cook your dish here
d = 2**0.5
for _ in range(int(input())):
 a,b,c = map(int,input().split())
 e = (2*a)/c
 s = (d*a)/b
 if e<s:
  print("Elevator")
 else:
  print("Stairs")

# cook your dish here
import math
t= int(input())
for i in range(0, t):
 n, v1, v2 = input().split()
 n = int(n)
 v1 = int(v1)
 v2 = int(v2)
 time1 = n/v2 * 2
 time2 = math.sqrt(2) * n / v1
 if time1 <= time2:
  print("Elevator")
 else:
  print("Stairs")


import math
t= int(input())
for i in range(0, t):
 n, v1, v2 = input().split()
 n = int(n)
 v1 = int(v1)
 v2 = int(v2)
 time1 = n/v2 * 2
 time2 = math.sqrt(2) * n / v1
 if time1 <= time2:
  print("Elevator")
 else:
  print("Stairs")


import numpy as np
t = int(input())
ans = []
for i in range(t):
 n,v1,v2 = [int(x) for x in input().split()]
 tc=(np.sqrt(2)*n*1000)/v1;
 te=(2*n*1000)/v2;
 if tc>te:
  ans.append("Elevator")
 elif tc<te:
  ans.append("Stairs")
for i in range(t):
 print(ans[i])

T=int(eval(input("")))
for i in range(T):
 n,v1,v2=list(map(int,input("").split(" ")))
 t1=2**0.5*n/v1
 t2=2*n/v2
 if t1>t2:
  print("Elevator")
 else:
  print("Stairs")



t = int(input())
for i in range(t):
 nums = [int(x) for x in input().strip().split(' ')]
 stairs = (((2**0.5)*nums[0])/nums[1])
 elevator = (((2)*nums[0])/nums[2])
 if stairs <= elevator :
  print('Stairs')
 else:
  print('Elevator')

import math
t = int(input())
for i in range(t):
 N,V1,V2=map(int,input().split())
 t1 = (math.sqrt(2) * N)/V1
 t2 = (2*N/V2)

 if(t1<t2):
  print("Stairs")
 else:
  print("Elevator")