def A():
N = int(input())
S = input()
if N == 1:
print("Yes")
else:
print("Yes" if len(set(S[0::2])) == 1 and len(set(S[1::2])) == 1 else "No")
test_all(A)
def A2():
N = int(input())
S = input()
if N == 1:
print("Yes")
else:
print(
"Yes"
if len(set(S[0::2])) == 1
and len(set(S[1::2])) == 1
and len(set(S[:2])) == 2
else "No"
)
test(A2, wa_case)
test_all(A2)
def D():
import math
N, M = map(int, input().split())
if N * N < M:
print(-1)
# exit()
return
if M <= n: print(m) # exit() return x="float(" inf")" rootm="int(M" ** (1 2)) for a in range(math.ceil(m n), + 1): b, m="divmod(M," a) if 0: * (b 1)) print(x)< py-cell>
test_all(D)
def D():
import math
N, M = map(int, input().split())
if N * N < M:
print(-1)
# exit()
return
if M <= n: print(m) # exit() return x="float(" inf")" rootm="int(M" ** (1 2)) for a in range(math.ceil(m n), + 2): b, m="divmod(M," a) if 0: * (b 1)) print(x)< py-cell>
test_all(D)
def D():
import math
N, M = map(int, input().split())
if N * N < M:
print(-1)
# exit()
return
if M <= n: print(m) # exit() return x="float(" inf")" rootm="int(M" ** (1 2)) for a in range(math.ceil(m n), n + 1): b, m="divmod(M," a) if 0:> (b + 1):
break
X = min(X, a * (b + 1))
print(X)
test_all(D)