

The first line contains an Integer 't' which denotes the number of test cases or queries to be run. Then the test cases follow.
The first and the only line of input of each test case contains an integer, as described in the task.
For each test case, the first and the only line of output prints the Birth type if valid otherwise prints "Invalid".
Birth types if valid are "Lower", "Middle", "Upper", "Side Lower" and "Side Upper".
The output of every test case is printed in a separate line.
You are not required to print anything explicitly. It has already been taken care of.
1 <= T <= 20
1 <= N <= 100
where N is the input berth seat number.
Check if seat number is valid seat number or not(i.e in range of 1 to 72).