-----Input-----

The input consists of a single string of uppercase letters A-Z. The length of the string is between 1 and 10 characters, inclusive.


-----Output-----

Output "YES" or "NO".


-----Examples-----
Input
NEAT

Output
YES

Input
WORD

Output
NO

Input
CODER

Output
NO

Input
APRILFOOL

Output
NO

Input
AI

Output
YES

Input
JUROR

Output
YES

Input
YES

Output
NO

Difficulty: interview

Starter code:

Solutions:
p = "AEFHIKLMNTVWXYZ"
q = "BCDGJOPQRSU"

word = input()
x, y = 0, 0
for w in word:
    if w in p:
        x += 1
    else:
        y += 1

if x == 0 or y == 0:
    print("YES")
else:
    print("NO")


NEAT = 'AEFHIKLMNTVWXYZ'
a = input()
print('YES' if all(x in NEAT for x in a) or all(x not in NEAT for x in a) else 'NO')


lin = set(list("AEFHIKLMNTVWXYZ"))
cur = set(list("BCDGJOPQRSU"))
s = set(list(input()))
if lin | s == lin or cur | s == cur:
    print("YES")
else:
    print("NO")

neats = 'AEFHIKLMNTVWXYZ'
s = input()
un, n = 0, 0
for c in s:
	if c not in neats:
		un += 1
	else:
		n += 1
print('YES' if un == 0 or n == 0 else 'NO')

n=input()
s='AEFHIKLMNTVWXYZ'
t='BCDGJOPQRSU'
f1=0
f2=0
for i in s:
	if i in n:f1=1
for i in t:
	if i in n:f2=1
if f1+f2==1:print('YES')
else:print('NO')

a = "AEFHIKLMNTVWXYZ"
b = "BCDGJOPQRSU"

s = input()

ina = True
inb = True

for x in s:
    if x not in a:
        ina = False
    if x not in b:
        inb = False

if ina or inb:
    print("YES")
else:
    print("NO")

curved = 'QRUOPJGDSCB'
s = input()
ctr = 0
for i in s:
    if i in curved:
        ctr += 1
if ctr == 0 or ctr == len(s):
    print("YES")
else:
    print("NO")

s = str(input())
straight = ["A", "E", "F", "H", "I", "K", "L", "M", "N", "T", "V", "W","X", "Y", "Z"]
bendy = [i for i in "ABCDEFGHIJKLMNOPQRSTUVWXYZ" if i not in straight]
ans=0
for i in s:
    if i in straight:
        ans+=1
if ans % len(s) == 0:
    print("YES")
else:
    print("NO")

s  = list(input())
L = ['A','E','F','H','I','K','L','M','N','T','V','W','X','Y','Z']
C = ['B','C','D','G','J','O','P','Q','R','S','U']
total = 0
for i in s:
    if i in L:
        total += 1
    if i in C:
        total += 2
if total == len(s) or total == len(s)*2:
    print("YES")
else:
    print("NO")

lin = set(list('WETYIAFHKLZXVNM'))
s = input()
print('YES' if len(set(list(s)).intersection(lin)) in [len(set(list(s))), 0] else 'NO')


a = input()
print(('NO', 'YES')[sum(x in 'AEFHIKLMNTVWXYZ' for x in a) in (0, len(a))])


n, cnt = input(), 0
for i in n:
    if i in set('AEFHIKLMNTVWXYZ'):
        cnt += 1
print('YES' if cnt == 0 or cnt == len(n) else 'NO')


s=input()
T='AEFHIKLMNTVWXYZ'
ok1=1
ok2=1
for i in s:
    if i not in T:
        ok1=0
    else:
        ok2=0
print(["NO","YES"][ok1 or ok2])

a=input();print(('NO','YES')[sum(x in'AEFHIKLMNTVWXYZ'for x in a)in(0,len(a))])

s  = list(input())
L = ['A','E','F','H','I','K','L','M','N','T','V','W','X','Y','Z']
C = ['B','C','D','G','J','O','P','Q','R','S','U']
total = 0
for i in s:
    if i in L:
        total += 1
    if i in C:
        total += 2
if total == len(s) or total == len(s)*2:
    print("YES")
else:
    print("NO")

def f(s):
    ok = set('AEFHIKLMNTVWXYZ')
    cnt = 0
    for i in s:
        if i in ok:
            cnt += 1
    return cnt == 0 or cnt == len(s)


print("YES" if f(input()) else "NO")

NEAT="AEFHIKLMNTVWXYZ"
a=input()

if all(x in NEAT for x in a) or all(x not in NEAT for x in a) :
               print("YES")
else:
               print("NO")

def main():
    a = set('AEFHIKLMNTVWXYZ')
    b = set('BCDGJOPQRSU')
    w = list(input())
    in_a = False
    in_b = False
    for l in w:
        in_a = in_a or l in a
        in_b = in_b or l in b

    if in_a and in_b:
        print('NO')
    else:
        print('YES')


def __starting_point():
    main()

__starting_point()

ll = ['A','E','F','H','I','K','L','M','N','T','V','W','X','Y','Z']
s = input()
f1 = 0
f2 = 0
for i in range(len(s)):
     f1 = 0
     for j in range(15):
          if (s[i] == ll[j]):
               f1 = 1
               if (not(i)):
                    f2 = 1
               else:
                    if (not(f2)):
                         print("NO")
                         return
     if(not(f1)):
          if(not(i)):
               f2 = 0
          else:
               if(f2):
                    print("NO")
                    return
print("YES")


l = ['A', 'E', 'F', 'H', 'I', 'K', 'L', 'M', 'N', 'T', 'V', 'W', 'X', 'Y', 'Z']
s = input()
a = 0
for i in s:
    if i in l:
        a += 1
if a == len(s) or a == 0:
    print('YES')
else:
    print('NO')

clean = "AEFHIKLMNTVWXYZ"
string = input()
sum_ = 0
for i in string:
	if i in clean:
		sum_ +=1
if(sum_ == len(string) or sum_ == 0):
	print("YES")
else:
	print("NO")

zw=[True,False,False,False,True,True,False,True,True,False,True,True,True,True,False,False,False,False,False,True,False,True,True,True,True,True]
h=True
s=input()
b=zw[ord(s[0])-65]
for i in s:
  if b!=zw[ord(i)-65]:
    h=False
    break
if h:
  print("YES")
else:
  print("NO")

a=input();print(('NO','YES')[sum(x in'AEFHIKLMNTVWXYZ'for x in a)in(0,len(a))])

s = input()
a = {'A', 'E', 'F', 'H', 'I', 'K', 'L', 'M', 'N', 'T', 'V', 'W', 'X', 'Y', 'Z'}
b = {'B', 'C', 'D', 'G', 'J', 'O', 'P', 'Q', 'R', 'S', 'U'}
print('YES' if (all(c in a for c in s) or all(c in b for c in s)) else 'NO')