https://robocontest.uz/tasks/1122
n=input()
l=len(n)
b=True
for i in n:
if int(i)%2==0:
b=False
if l%2==1 and b:
print("YES")
else:
print("NO")
n=input()
l=len(n)
b=True
for i in n:
if int(i)%2==0:
b=False
if l%2==1 and b:
print("YES")
else:
print("NO")