Read problem statements in [Bengali], [Mandarin Chinese], [Russian], and [Vietnamese] as well.

Chef has three socks in his drawer. Each sock has one of 10 possible colours, which are represented by integers between 1 and 10. Specifically, the colours of the socks are A, B, and C.

Chef has to wear two socks which have the same colour. Help Chef find out if that is possible or not.

------ Input Format ------ 

The first and only line of the input contains three space-separated integers A, B and C.

------ Output Format ------ 

Print a single line containing the string "YES" if it is possible for Chef to wear two socks with the same colour or "NO" if it is impossible (without quotes).
You may print each character of each string in uppercase or lowercase (for example, the strings "yEs", "yes", "Yes" and "YES" will all be treated as identical).

------ Constraints ------ 

$1 ≤ A, B, C ≤ 10$

------ subtasks ------ 

Subtask #1 (100 points): original constraints

----- Sample Input 1 ------ 
5 4 3
----- Sample Output 1 ------ 
NO
----- explanation 1 ------ 
Since there are no two socks with the same colour, Chef cannot wear a pair of socks with the same colour.

----- Sample Input 2 ------ 
5 5 5
----- Sample Output 2 ------ 
YES
----- explanation 2 ------ 
Since all three socks have the same colour, Chef can wear a pair of socks with the same colour.

Difficulty: EASY

Solutions:
(a, b, c) = map(int, input().split())
if a == b or b == c or c == a:
	print('YES')
else:
	print('NO')


x = list(map(int, input().split()))
a = x[0]
x.remove(a)
if a in x:
	print('YES')
else:
	print('NO')


a = input()
b = a.split()
if b[0] == b[1] or b[0] == b[2] or b[2] == b[1]:
	print('YES')
else:
	print('NO')


(m, n, o) = map(int, input().split())
if m == n or m == o or o == n:
	print('YES')
else:
	print('NO')


a = list(input().split(' '))
if a[0] != a[1] and a[1] != a[2] and (a[0] != a[2]):
	print('NO')
else:
	print('YES')


(x, y, z) = list(map(int, input().split()))
if x == y or y == z or x == z:
	print('YES')
else:
	print('NO')


m = list(map(int, input().split()))
if len(set(m)) <= 2:
	print('YES')
else:
	print('NO')


a = list(map(int, input().split()))
res = ''
for i in a:
	if a.count(i) >= 2:
		res = 'YES'
	else:
		res = 'NO'
print(res)


l = map(int, input().split())
if len(set(l)) == 3:
	print('NO')
else:
	print('YES')


import statistics
a = list(map(int, input().split()))
if a.count(statistics.mode(a)) > 1:
	print('YES')
else:
	print('NO')


(A, B, C) = map(int, input().split())
if A == B or B == C or C == A:
	print('YES')
else:
	print('NO')


t = list(map(int, input().split()))
flag = 0
for i in range(len(t)):
	if t.count(t[i]) >= 2:
		flag = 1
		break
if flag == 0:
	print('NO')
else:
	print('YES')


(aaaaa, bbbbbb, dddccccccccc) = input().split()
aaaaa = int(aaaaa)
bbbbbb = int(bbbbbb)
dddccccccccc = int(dddccccccccc)
if aaaaa == bbbbbb or aaaaa == dddccccccccc or bbbbbb == dddccccccccc:
	print('YES')
else:
	print('NO')


(A, B, C) = map(int, input().split())
lst = []
lst.append(A)
lst.append(B)
lst.append(C)
if lst.count(A) >= 2 or lst.count(B) >= 2 or lst.count(C) >= 2:
	print('YES')
else:
	print('NO')


def vap(x, y, z):
	if x != y and y != z and (z != x):
		print('NO')
	else:
		print('YES')
(a, b, c) = map(int, input().split())
ans = vap(a, b, c)


n = 3
l = list(map(int, input().split()))[:3]
for x in l:
	if l.count(x) >= 2:
		print('YES')
		break
	else:
		print('NO')
		break


def code():
	colors = list(map(str, input().split(' ')))
	value = 'NO'
	for c in colors:
		if colors.count(c) > 1:
			value = 'YES'
	print(value)
code()


import math

def solution():
	pass
T = 1
for _ in range(T):
	(A, B, C) = map(int, input().split())
	if A == B or B == C or A == C:
		print('YES')
	else:
		print('NO')


(A, B, C) = map(int, input().split())
l = []
l.extend([A, B, C])
l.sort()
if l[0] == l[1] or l[1] == l[2]:
	print('YES')
else:
	print('NO')


(a, b, c) = map(int, input().split())
if a == b and a == c:
	print('YES')
elif b == a and b == c:
	print('yes')
elif c == a or c == b:
	print('YES')
else:
	print('NO')