12 lines
207 B
Python
12 lines
207 B
Python
t = int(input())
|
|
for _ in range(t):
|
|
n = int(input())
|
|
out = ""
|
|
if n % 2 == 1:
|
|
out = "O"
|
|
if (n**0.5) % 1 == 0:
|
|
out += "S"
|
|
if out == "":
|
|
out = "EMPTY"
|
|
print(out)
|