- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
a=int(input())
b=int(input())
c=int(input())
d=int(input())
x=a%2
y=b%2
z=c%2
f=d%2
if x==1 and y==1 and z==1 and f==1:
print('YES')
elif x==1 and y==1 and z==0 and f==0:
print('YES')
elif x==0 and y==0 and z==1 and f==1:
print('YES')
elif x==1 and y==0 and z==1 and f==0:
print('YES')
elif x==0 and y==1 and z==0 and f==1:
print('YES')
elif x==1 and y==1 and z==0 and f==1:
print('NO')
elif x==1 and y==1 and z==1 and f==0:
print('NO')
elif x==0 and y==0 and z==1 and f==0:
print('NO')
elif x==0 and y==0 and z==0 and f==1:
print('NO')
elif x==1 and y==0 and z==1 and f==1:
print('NO')
elif x==1 and y==0 and z==0 and f==1:
print('YES')
elif x==0 and y==1 and z==0 and f==0:
print('NO')
elif x==1 and y==0 and z==0 and f==1:
print('YES')
else:
print('YES')