Problem:


  MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});

長方形 

  アイヅ放送協会の教育番組(ＡＨＫ教育)では、子ども向けの工作番組「あそんでつくろ」を放送しています。今日は棒で長方形を作る回ですが、用意した４本の棒を使って長方形ができるかを確かめたいと思います。ただし、棒は切ったり折ったりしてはいけません。

４本の棒の長さが与えられるので、それらすべてを辺とする長方形が作れるかどうか判定するプログラムを作成せよ。

Input

  入力は以下の形式で与えられる。

e1 e2 e3 e4

  入力は１行からなり、各棒の長さを表す整数 ei (1 ≤ ei ≤ 100) が与えられる。

Output

長方形を作成できる場合には「yes」を、作成できない場合には「no」を出力する。ただし、正方形は長方形の一種なので、正方形の場合でも「yes」と出力する。

Sample Input 1

1 1 3 4

Sample Output 1

no

Sample Input 2

1 1 2 2

Sample Output 2

yes

Sample Input 3

2 1 1 2

Sample Output 3

yes

Sample Input 4

4 4 4 10

Sample Output 4

no



Sample input:
1 1 3 4


Sample output:
no

Submission status: Wrong Answer

Solution code:
a = list(map(int, input().split()))
print('yes' if ((a[0] in a) and (a[1] in a) and (a[2] in a) and (a[3] in a)) else 'no')

Submission status: Wrong Answer

Solution code:
a = input().split()
print('yes' if ((a.pop() in a) and (a.pop() in a)) else 'no')

Submission status: Wrong Answer

Solution code:
a, b, c, d = sorted(map(int, input().split()))
print("YES" if a == b and c == d else "NO")

Submission status: Wrong Answer

Solution code:
lst=list(input().split())
if lst[0]==lst[1] and lst[2]==lst[3]:
  print('yes')
else:
   print('no')

Submission status: Wrong Answer

Solution code:
e = sorted(map(int, input().split()))
print("yes"*(e[0]==e[1])*(e[2]==e[3])+"no"*((e[0]!=e[1])+(e[2]!=e[3])))

Submission status: Accepted

Solution code:
a = input().split()
print('yes' if ((a.pop() in a) and ((a.pop() in a) or (a.pop() in a))) else 'no')

Submission status: Accepted

Solution code:
print('yes' if len(set(input().split())) <= 2 else 'no')

Submission status: Accepted

Solution code:
a,b,c,d=map(int,input().split())
if a==b and c==d :
  print('{}'.format('yes'))
elif a==c and b==d:
  print('{}'.format('yes'))
elif a==d and b==c:
  print('{}'.format('yes'))
else:
  print('{}'.format('no'))

Submission status: Accepted

Solution code:
Hen = list(map(int,input().split()))
Hen = sorted(Hen)
if Hen[0] == Hen[1] and Hen[2] ==Hen[3]:
    print("yes")
else:
    print("no")

Submission status: Accepted

Solution code:
a, b, c, d = sorted(map(int, input().split()))
print("yes" if a == b and c == d else "no")

Submission status: Accepted

Solution code:
e = list(map(int, input().split()))
e.sort()

if e[0] == e[1] and e[2] == e[3]:
    print("yes")
else:
    print("no")

Submission status: Accepted

Solution code:
a,b,c,d=sorted(map(int,input().split()))
if a==b and c==d:print("yes")
else:print("no")

Submission status: Accepted

Solution code:
rec = sorted(list(map(int, input().split())))
print("yes" if rec[0]==rec[1] and rec[2]==rec[3] else "no")

Submission status: Accepted

Solution code:
a,b,c,d=sorted(map(int,input().split()))
print(['no','yes'][a==b and c==d])

Submission status: Accepted

Solution code:
inpt = map(int, raw_input().split())
inpt.sort()

if inpt[0] == inpt[1] and inpt[2] == inpt[3]:
	print 'yes'
else:
	print 'no'

Submission status: Accepted

Solution code:
ls = list(map(int, input().split()))
ls.sort()
if ls[0] == ls[1] and ls[2] == ls[3]:
    print('yes')
else:
    print('no')

Submission status: Accepted

Solution code:
lst=list(input().split())
lst.sort()
if lst[0]==lst[1] and lst[2]==lst[3]:
  print('yes')
else:
   print('no')

Submission status: Accepted

Solution code:
e = sorted(map(int, input().split()))
print("yes" if e[0] == e[1] and e[2] == e[3] else "no")

Submission status: Accepted

Solution code:
def main():
    e = list(map(int, input().split()))
    e_set = list(set(e))

    if len(e_set) == 1:
        print("ok")
    else:
        f = True
        for i in range(len(e_set)):
            cnt = 0
            for j in range(len(e)):
                if e_set[i] == e[j]:
                    cnt += 1
            if cnt != 2:
                f = False
                break
        if f == False:
            print("no")
        else:
            print("yes")

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
es = [int(e) for e in input().split()]
es.sort()

if es[0] == es[1] and es[2] == es[3]:
    print("yes")
else:
    print("no")

Submission status: Accepted

Solution code:
a = sorted(map(int,input().split()))
print("yes" if a[0] == a[1] and a[2] == a[3] else "no")

Submission status: Accepted

Solution code:
lst = sorted(list(map(int, input().split())))
if lst[0] == lst[1] and lst[2] == lst[3]:
  print("yes")
else:
  print("no")

Submission status: Accepted

Solution code:
a,b,c,d=map(int,input().split())
if a==b and c==d or a==c and b==d or a==d and b==c:
    print("yes")
else:
    print("no")

Submission status: Accepted

Solution code:
a, b, c, d = map(int, input().split())
if a == b and c == d or a == c and b == d or a == d and b == c:
    print("yes")
else:
    print("no")

Submission status: Accepted

Solution code:
a,b,c,d=(int(x) for x in input().split())

if a==b and c==d:
    print('yes')
elif a==c and b==d:
    print('yes')
elif a==d and b==c:
    print('yes')
else:
    print('no')

Submission status: Accepted

Solution code:
a,b,c,d = map(int,input().split())
mylist =[]
z = []
mylist.append(a)
mylist.append(b)
mylist.append(c)
mylist.append(d)
z = sorted(mylist)
if z[0]==z[1] and z[2] == z[3]:
    print("yes")
else:
    print("no")

Submission status: Accepted

Solution code:
e1,e2,e3,e4=map(int,input().split())
if e1==e2 and e3==e4:
    print('yes')
elif e1==e3 and e2==e4:
    print('yes')
elif e1==e4 and e2==e3:
    print('yes')
elif e1==e2==e3==e4:
    print('yes')
else:
    print('no')

Submission status: Accepted

Solution code:
e1,e2,e3,e4=map(int,input().split())

if e1==e2 and e3==e4:
    print("yes")
elif e1==e3 and e2==e4:
    print("yes")
elif e1==e4 and e2==e3:
    print("yes")
elif e1==e2==e3==e4:
    print("yes")
else :
    print("no")

Submission status: Accepted

Solution code:
a,b,c,d=map(int,input().split())

if (a==b and c==d) or (a==c and b==d) or (a==d and b==c):
    print("yes")
else:
    print("no")

Submission status: Accepted

Solution code:
a,b,c,d=map(int,input().split())

if (a == b and c == d) or (a == c and b == d) or (a == d and b == c):
    print('yes')
else:
    print('no')

Submission status: Accepted

Solution code:
e1,e2,e3,e4=map(int,input().split())
if e1==e3 and e2==e4:
    print('yes')
elif e1==e2 and e3==e4:
    print('yes')
elif e4==e1 and e2==e3:
    print('yes')
elif e1==e2==e3==e4:
    print('yas')
else:
    print('no')

Submission status: Accepted

Solution code:
a,b,c,d=map(int,input().split())
if a==c and b==d or a==b and c==d or a==d and b==c:print("yes")
else:print("no")

Submission status: Accepted

Solution code:
e1,e2,e3,e4 = map(int,input().split())

if(e1 == e2 and e3 == e4):
    print("yes")
elif(e2 == e3 and e1 == e4):
    print("yes")
elif(e1 == e3 and e2 == e4):
    print("yes")
else:
    print("no")

Submission status: Accepted

Solution code:
a, b, c, d = map(int, input().split())
if a == b and c == d or a == c and b == d or a == d and b == c:
    print("yes")
else:
    print("no")

Submission status: Accepted

Solution code:
e1,e2,e3,e4=map(int,input().split())

if e1==e2:
    if e3==e4:
        print("yes")
    else:
        print("no")
elif e1==e3:
    if e2==e4:
        print("yes")
    else:
        print("no")
else:
    if e2==e3:
        print("yes")
    else:
        print("no")

Submission status: Accepted

Solution code:
e1,e2,e3,e4 = map(int,input().split())
if e1 == e2 and e3 == e4:
    print('yes')
elif e1 == e3 and e2 == e4:
    print('yes')
elif e1 == e4 and e2 == e3:
    print('yes')
else:
    print('no')

Submission status: Accepted

Solution code:
a,b,c,d=map(int,input().split())
if a==b and c==d or a==c and b==d or a==d and b==c:
    print('yes')
else:
    print('no')

Submission status: Accepted

Solution code:
e1,e2,e3,e4=map(int,input().split())

if e1==e2 and e3==e4:
    print('yes')
elif e1==e3 and e2==e4:
    print('yes')
elif e1==e4 and e2==e3:
    print('yes')
else:
    print('no')

Submission status: Accepted

Solution code:
e_1,e_2,e_3,e_4=map(int,input().split())
if e_1==e_2 and e_3==e_4 :
    print("yes")
elif e_1==e_3 and e_2==e_4 :
    print("yes")
elif e_1==e_4 and e_2==e_3 :
    print("yes")
else:
    print("no")

Submission status: Accepted

Solution code:
e1,e2,e3,e4=map(int,input().split())
if (e1==e2 and e3==e4) or (e1==e3 and e2==e4) or (e1==e4 and e2==e3) :
    print('yes')
else :
    print('no')

Submission status: Accepted

Solution code:
e1,e2,e3,e4=map(int,input().split())

if e1==e2 and e3==e4:
    print('yes')
elif e1==e3 and e2==e4:
    print('yes')
elif e1==e4 and e2==e3:
    print('yes')
elif e1==e2==e3==e4:
    print('yes')
else:
    print('no')

Submission status: Accepted

Solution code:
a, b, c, d, = map(int, input().split()) 

if a==b and c==d:
    print('yes')

elif b==c and a==d:
    print('yes')

elif a==c and b==d:
    print('yes')
    
else:
    print('no')

Submission status: Accepted

Solution code:
e1,e2,e3,e4=map(int,input().split())
if e1==e2 and e3==e4:
    print("yes")
elif e1==e3 and e2==e4:
    print("yes")
elif e1==e4 and e2==e3:
    print("yes")
elif e1==e2 and e1==e3 and e1==e4:
    print("yes")
else:
    print("no")

Submission status: Accepted

Solution code:
a,b,c,d=map(int,input().split())
 
n=4
x=[a,b,c,d]

for j in range(n-1,1,-1):
    for i in range(j):
        if x[i]>x[i+1]:
            x[i], x[i+1] = x[i+1], x[i]
            
if x[0]==x[1] and x[2]==x[3]:
    print('yes')
else:
    print('no')

Submission status: Accepted

Solution code:
a,b,c,d=map(int,input().split())
if a==b and c==d:
    print("yes")
elif a==c and b==d:
    print("yes")
elif a==d and b==c:
    print("yes")
else:
    print("no")

Submission status: Accepted

Solution code:
e1,e2,e3,e4=map(int,input().split())
if (e1==e2 and e3==e4):
    print('yes')
elif (e1==e3 and e2==e4):
    print('yes')
elif (e1==e4 and e2==e3):
    print('yes')
else:
    print('no')

Submission status: Accepted

Solution code:
a,b,c,d = map(int,input().split())
if a==b and c==d:
    print('yes')
elif a==c and b==d:
    print('yes')
elif a==d and b==c:
    print('yes')
elif a==b==c==d:
    print('yes')
else:
    print('no')

Submission status: Accepted

Solution code:
e1,e2,e3,e4 = sorted([int(s) for s in input().split()])

if e1==e2 and e3==e4:
    print('yes')
else:
    print('no')

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!

e1,e2,e3,e4 = map(int,input().split())

if(e1 == e2 and e3 == e4):
    print("yes")
elif(e2 == e3 and e1 == e4):
    print("yes")
elif(e1 == e3 and e2 == e4):
    print("yes")
else:
    print("no")

Submission status: Accepted

Solution code:
a,b,c,d = map(int,input().split())
if a==b:
    if c==d:
        print("yes")
    else:
        print("no")
elif b==c:
    if a==d:
        print("yes")
    else:
        print("no")
elif c==d:
    if a==b:
        print("yes")
    else:
        print("no")
elif a==d:
    if b==c:
        print("yes")
    else:
        print("no")
else:
    print("no")

Submission status: Accepted

Solution code:
e1,e2,e3,e4=map(int,input().split())
if (e1==e2 and e3==e4) or (e1==e3 and e2==e4) or (e1==e4 and e2==e3):
    print('yes')
else:
    print('no')

Submission status: Accepted

Solution code:
e1,e2,e3,e4 = map(int,input().split())
if e1==e2 and e3==e4:
    print("yes")
elif e1==e3 and e2==e4:
    print("yes")
elif e1==e4 and e2==e3:
    print("yes")
else:
    print("no")

Submission status: Accepted

Solution code:
e1,e2,e3,e4=map(int,input().split())

if e1==e2 and e3==e4 or e1==e3 and e2==e4 or e1==e4 and e2==e3 :
    print("yes")
else :
    print("no")

Submission status: Accepted

Solution code:
a, b, c, d = map(int, input().split())

if(a == b) and (c == d):
    print("yes")
elif(a == c) and (b == d):
    print("yes")
elif(a == d) and (b == c):
    print("yes")
else:
    print("no")

Submission status: Accepted

Solution code:
e1, e2, e3, e4=map(int, input().split())
if e1 == e2 and e3 == e4:
  print("yes")
elif e1 == e3 and e2 == e4:
  print("yes")
elif e1 == e4 and e2 == e3:
  print("yes")
else:
  print("no")

Submission status: Accepted

Solution code:
e1, e2, e3, e4 = map(int,input().split())

if e1 == e2 and e3 == e4:
    print('yes')
elif e2 == e3 and e4 == e1:
    print('yes')
elif e3 == e1 and e2 == e4:
    print('yes')
else:
    print('no')

Submission status: Accepted

Solution code:
a,b,c,d = map(int,input().split())
if a == b and c == d or a == c and b == d or a == d and b == c:
    print('yes')
else:
    print('no')

Submission status: Accepted

Solution code:
e_1,e_2,e_3,e_4=map(int,input().split())
if e_1==e_2 and e_3==e_4:
    print("yes")
elif e_1==e_3 and e_2==e_4:
    print("yes")
elif e_1==e_4 and e_2==e_3:
    print("yes")
else:
    print("no")

Submission status: Accepted

Solution code:
e1, e2, e3, e4 = map(int, input().split())
if e1 == e2 and e3 == e4 or e1 == e3 and e2 == e4 or e1 == e4 and e2 == e3 :
    print("yes")
else :
    print("no")

Submission status: Accepted

Solution code:
a = list(map(int,input().split()))
a.sort()
if a[0]==a[1] and a[2]==a[3] :
    print("yes")
else :
    print("no")

Submission status: Accepted

Solution code:
a,b,c,d=map(int,input().split())
if a==b and c==d or a==c and b==d or a==d and b==c:
    print('yes')
else:
    print('no')

Submission status: Accepted

Solution code:
a,b,c,d=map(int, input().split())
if a == b and c == d :
    print("yes")
elif a == c and b == d :
    print("yes")
elif a == d and b == c :
    print("yes")
else :
    print("no")

Submission status: Accepted

Solution code:
e1,e2,e3,e4=map(int,input().split())
if e1==e2 and e3==e4:
    print('yes')
elif e1==e3 and e2==e4:
    print('yes')
elif e1==e4 and e2==e3:
    print('yes')
elif e1==e2==e3==e4:
    print('yes')
else:
    print('no')

Submission status: Accepted

Solution code:
e1,e2,e3,e4=map(int,input().split())
if e1==e2 and e3==e4:
    print('yes')
elif e2==e3 and e1==e4:
    print('yes')
elif e3==e1 and e2==e4:
    print('yes')
else:
    print('no')

Submission status: Accepted

Solution code:
e1,e2,e3,e4 = map(int,input().split())

if e1==e2 and e3==e4:
    print("yes")
elif e1==e3 and e2==e4:
    print("yes")
elif e1==e4 and e2==e3:
    print("yes")
else:
    print("no")

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
x = sorted(map(int,input().split()))
if x[0]==x[1] and x[2]==x[3]:
    print("yes")
else:
    print("no")

Submission status: Accepted

Solution code:
e1 , e2 , e3 , e4 =map(int,input().split())
if e1==e2 and e3==e4:
    print("yes")
elif e2==e3 and e1==e4:
    print("yes")
elif e1==e3 and e2==e4:
    print("yes")
else:
    print("no")

Submission status: Accepted

Solution code:
e1,e2,e3,e4 = map(int,input().split())
if e1==e2 and e3==e4:
    print('yes')
elif e1==e3 and e2==e4:
    print('yes')
elif e1==e4 and e2==e3:
    print('yes')
elif e1==e2==e3==e4:
    print('yes')
else:
    print('no')

Submission status: Accepted

Solution code:
e1,e2,e3,e4=map(int,input().split())
if e1 == e2 and e3 == e4:
    print("yes")
elif e1 == e3 and e2 == e4:
    print("yes")
elif e1 == e4 and e2 == e3:
    print("yes")
else:
    print("no")

Submission status: Accepted

Solution code:
e1,e2,e3,e4=(int(x) for x in input().split())

if 1<=e1<=100 and 1<=e2<=100 and 1<=e3<=100 and 1<=e4<=100:
    if e1==e2 and e3==e4 or e1==e3 and e2==e4 or e1==e4 and e2==e3:
        print("yes")
        
    else:
        print("no")

Submission status: Accepted

Solution code:

a,b,c,d=map(int,input().split())
if a==b and c==d:
    print("yes")
elif a==c and b==d:
    print("yes")
elif a==d and b==c:
    print("yes")
else:
    print("no")

Submission status: Accepted

Solution code:
e1,e2,e3,e4=sorted(input().split())
if e1==e2 and e3==e4:
    print("yes")
else:
    print("no")

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
a,b,c,d=map(int,input().split());

if a==b and c==d:
    print("yes")
    
elif a==c and b==d:
    print("yes")

elif b==c and a==d:
    print("yes")

else:
    print("no")

Submission status: Accepted

Solution code:
e1,e2,e3,e4=map(int,input().split())

if e1==e2 and e3==e4:
    print("yes")
elif e1==e3 and e2==e4:
    print("yes")
elif e1==e4 and e2==e3:
    print("yes")
else:
    print("no")

Submission status: Accepted

Solution code:
e1,e2,e3,e4=map(int,input().split())
if e1==e2 and e3==e4:
    print("yes")
elif e1==e3 and e2==e4:
    print("yes")
elif e1==e4 and e2==e3:
    print("yes")
else:
    print("no")

Submission status: Accepted

Solution code:
e1,e2,e3,e4=map(int,input().split())
if e1==e3 and e2==e4:
    print('yes')
elif e1==e2 and e3==e4:
    print('yes')
elif e4==e1 and e2==e3:
    print('yes')
elif e1==e2==e3==e4:
    print('yes')
else:
    print('no')

Submission status: Accepted

Solution code:
s = input().split()
for j in range(len(s)):
  for k in range(j-1,-1,-1):
    if s[k] >= s[k+1]:
      s[k],s[k+1] = s[k+1],s[k]
if s[1] == s[0]:
  if s[2] == s[3]:
    print("yes")
  else:
    print("no")
else:
  print("no")

Submission status: Accepted

Solution code:
e1,e2,e3,e4=map(int,input().split())# Your code here=map(int,input().split())
if e1==e2 and e3==e4:
    print('yes')
elif    e1==e3 and e2==e4:
    print('yes')
elif    e1==e4 and e2==e3:
    print('yes')
else:
    print('no')

Submission status: Accepted

Solution code:
e1,e2,e3,e4=map(int,input().split())
if e1==e2 or e1==e3 or e1==e4:
    f1=True
else:
    f1=False
if e2==e1 or e2==e3 or e2==e4:
    f2=True
else:
    f2=False
if e3==e1 or e3==e2 or e3==e4:
    f3=True
else:
    f3=False
if e4==e1 or e4==e2 or e4==e3:
    f4=True
else:
    f4=False
if f1==True and f2==True and f3==True and f4==True:
    print("yes")
else:
    print("no")

Submission status: Accepted

Solution code:
a,b,c,d=map(int,input().split())
if (a==b and c==d) or (a==c and b==d) or (a==d and b==c):
    print("yes")
else:
    print("no")

Submission status: Accepted

Solution code:
e1,e2,e3,e4=map(int,input().split())
if e1==e2 and e3==e4 or e1==e3 and e2==e4 or e1==e4 and e2==e3:
    print("yes")
else:
    print("no")

Submission status: Accepted

Solution code:
a,b,c,d=map(int,input().split())

if (a==b and c==d)or(a==c and b==d)or(a==d and b==c):
    print("yes")

else:
    print("no")

Submission status: Accepted

Solution code:
    
a, b, c, d = sorted(map(int, input().split()))
print("yes" if a == b and c == d else "no")

Submission status: Accepted

Solution code:
a,b,c,d=list(map(int,input().split()))

if a==b and c==d:
    print("yes")
    
elif a==c and b==d:
    print("yes")

elif a==d and b==c:
    print("yes")
    
else :
    print("no")

Submission status: Accepted

Solution code:
a , b , c , d = list(map(int,input().split()))
if a == b and c == d :
    print( "yes" )
elif a == c and b == d :
    print( "yes" )
elif a == d and b == c :
    print( "yes" )
else :
    print( "no" )

Submission status: Accepted

Solution code:
e1,e2,e3,e4 = map(int,input().split())
if e1==e2:
    if e3==e4:
        print("yes")
    else:
        print("no")
elif e1==e3:
    if e2==e4:
        print("yes")
    else:
        print("no")
elif e1==e4:
    if e2==e3:
        print("yes")
    else:
        print("no")
else:
    print("no")

Submission status: Accepted

Solution code:
e1,e2,e3,e4 = map(int,input().split())
if e1 == e3 and e2 == e4:
    print('yes')
elif e1 == e2 and e3 == e4:
    print('yes')
elif e1 == e4 and e2 == e3:
    print('yes')
else:
    print('no')

Submission status: Accepted

Solution code:
a,b,c,d = map(int, input().split())
if a==b:
    if c==d:
        print('yes')
    else:
        print('no')
elif a==c:
    if b==d:
        print('yes')
    else:
        print('no')
else:
    if b==c:
        print('yes')
    else:
        print('no')

Submission status: Accepted

Solution code:
a,b,c,d=map(int,input().split())
if (a==b and c==d) or (a==c and b==d) or (a==d and b==c) :
    print('yes')
else : print('no')

Submission status: Accepted

Solution code:
e1,e2,e3,e4 = map(int,input().split())
if e1==e2 and e3==e4 or e1==e3 and e2==e4 or e1==e4 and e2==e3:
    print("yes")
else:
    print("no")

Submission status: Accepted

Solution code:
a,b,c,d=input().split()
a=int(a)
b=int(b)
c=int(c)
d=int(d)
if a==b and c==d:
    print("yes")
elif a==c and b==d:
    print("yes")
elif a==d and b==c:
    print("yes")
else:
    print("no")

Submission status: Accepted

Solution code:
a, b, c, d = map(int, input().split())
if (a == b and c == d) or (a == c and b == d) or (a == d and b == c) or a == b == c == d:
  print("yes")
else:
  print("no")

Submission status: Accepted

Solution code:
# coding: utf-8
a,b,c,d = map(int,input().split())

if (((a==b and c==d) or (a==c and b==d))or (a==d and b==c)):
    print("yes")
else:
    print("no")

Submission status: Accepted

Solution code:
e1,e2,e3,e4=sorted(input().split())
if e1==e2 and e3==e4:
    print("yes")
else:
    print("no")

Submission status: Accepted

Solution code:
a=list(map(int,input().split()))
a=sorted(a)
if a[0]==a[1] and a[2]==a[3]:
    print("yes")
else:
    print("no")

Submission status: Accepted

Solution code:
e1,e2,e3,e4=map(int,input().split())
if e1==e2 and e3==e4:
    print("yes")
elif e2==e3 and e1==e4:
    print("yes")
elif e1==e3 and e2==e4:
    print("yes")
elif e1==e2==e3==e4:
    print("yes")
else:
    print("no")

Submission status: Accepted

Solution code:
a,b,c,d=map(int,input().split())

if a==b and c==d :
    print('yes')
elif a==c and b==d :
    print('yes')
elif a==d and b==c:
    print('yes')
else :
    print('no')

Submission status: Accepted

Solution code:
e1,e2,e3,e4=map(int,input().split())

i=0

while i<3:
    if e1>e2:
        e1,e2=e2,e1
    if e2>e3:
        e2,e3=e3,e2
    if e3>e4:
        e3,e4=e4,e3
    i+=1
    
if e1==e2:
    if e3==e4:
        print("yes")
    else:
        print("no")
else:
    print("no")

Submission status: Accepted

Solution code:
e1,e2,e3,e4 = map(int,input().split())
if e1 == e2 and e3 == e4 or e1 == e3 and e2 == e4 or e1 == e4 and e2 == e3:
    print("yes")
else:
    print("no")

Submission status: Accepted

Solution code:
a,b,c,d=map(int,input().split())
if a==b:
    if c==d:
        print("yes")
    else:
        print("no")
elif a==c:
    if b==d:
        print("yes")
    else:
        print("no")
elif a==d:
    if b==c:
        print("yes")
    else:
        print("no")
else:
    print("no")

Submission status: Accepted

Solution code:
e1,e2,e3,e4= map(int,input().split())

if e1 == e2 and e3 == e4:
    print("yes")
elif e1 == e3 and e2 == e4:
    print("yes")
elif e1 == e4 and e2 == e3:
    print("yes")
else:
    print("no")

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!

e1, e2, e3, e4 = map(int, input().split())
if ((e1 == e2) and (e3 == e4)) or ((e1 == e3) and (e2 == e4)) or ((e1 == e4) and (e2 == e3)):
   print("yes")
else:
   print("no")

Submission status: Accepted

Solution code:
e1,e2,e3,e4=map(int,input().split())
if e1==e2 and e3==e4 or e1==e3 and e2==e4 or e1==e4 and e2==e3:
    print("yes")
else:
    print("no")

Submission status: Accepted

Solution code:
e1,e2,e3,e4=map(int,input().split())
if e1==e2 and e3==e4 :
    print("yes")
elif e1==e3 and e2==e4 :
    print("yes")
elif e1==e4 and e2==e3 :
    print("yes")
else:
    print("no")

Submission status: Accepted

Solution code:
e1,e2,e3,e4=map(int,input().split())
if(e1==e2)&((e2==e3==e4)or(e3==e4)):
    print("yes")
elif(e2==e3)&((e3==e1==e4)or(e1==e4)):
    print("yes")
elif(e3==e4)&((e4==e1==e2)or(e1==e2)):
    print("yes")
elif(e4==e1)&((e1==e2==e3)or(e2==e3)):
    print("yes")
else:
    print("no")

Submission status: Accepted

Solution code:
e1, e2, e3, e4 =map(int, input().split())

if  e1==e2 and e3==e4:
    print('yes')
elif e1==e3 and e2==e4:
    print('yes')
elif e1==e4 and e2==e3:
    print('yes')
else:
    print('no')

Submission status: Accepted

Solution code:
a,b,c,d=map(int,input().split())
if (a==b and c==d)or(b==c and a==d):
    print("yes")
elif a==b==c==d:
    print("yes")
else:
    print("no")

Submission status: Accepted

Solution code:
e1,e2,e3,e4=map(int,input().split())

if (e1==e2 and e3==e4) or (e1==e3 and e2==e4) or (e1==e4 and e2==e3):
    print ("yes")
else:
    print("no")

Submission status: Accepted

Solution code:
a,b,c,d =map(int,input().split())
if a==b:
    if c==d:
        print('yes')
    else:
        print('no')
elif b==c:
    if d==a:
        print('yes')
    else:
        print('no')
elif c==d:
    if a==b:
        print('yes')
    else:
        print('no')
elif d==a:
    if b==c:
        print('yes')
    else:
        print('no')
else:
    print('no')

Submission status: Accepted

Solution code:
a,b,c,d=map(int,input().split())
if a==b and c==d :
    print("yes")
elif a==c and b==d:
    print("yes")
elif a==d and b==c:
    print("yes")
else:
    print("no")

Submission status: Accepted

Solution code:
e1,e2,e3,e4=map(int,input().split())

if e1==e2 and e3==e4:
    print('yes')
elif e1==e3 and e2==e4:
    print('yes')
elif e1==e4 and e3==e2:
    print('yes')
else:
    print('no')

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
e1,e2,e3,e4=map(int,input().split())

if e1==e2 and e3==e4:
    print('yes')
elif e1==e3 and e2==e4:
    print('yes')
elif e1==e4 and e2==e3:
    print('yes')
else:
    print('no')

Submission status: Accepted

Solution code:
e1,e2,e3,e4=map(int,input().split())
if e1==e2:
    if e3==e4:
        print("yes")
    else:
        print("no")
elif e1==e3:
    if e2==e4:
        print("yes")
    else:
        print("no")
elif e1==e4:
    if e3==e2:
        print("yes")
    else:
        print("no")
else:
    print("no")

Submission status: Accepted

Solution code:
e1,e2,e3,e4= map(int,input().split())
if ((e1==e2 and e3==e4) or (e1==e3 and e2==e4) or (e1==e4 and e3==e2) or (e3==e2 and e1==e4)):
    print("yes")
else:
    print("no")

Submission status: Accepted

Solution code:
e1,e2,e3,e4=(int(x) for x in input().split())
if 1<=e1<=100 and  1<=e2<=100 and 1<=e3<=100 and 1<=e4<=100:
   if e1==e2 and e3==e4 or e1==e4 and e2==e3:
      print("yes")
   else:
      print("no")
else:
   pass

Submission status: Accepted

Solution code:
# coding: utf-8

E = list(map(int,input().split()))

E.sort()

if E[0]==E[1] and E[2]==E[3]:
    print('yes')
else:
    print('no')

Submission status: Accepted

Solution code:
e1,e2,e3,e4 = map(int,input().split())
if (e1==e2 and e3==e4) or (e2==e3 and e1==e4) or (e1==e3 and e2==e4):
    print("yes")
else:
    print("no")

Submission status: Accepted

Solution code:
a,b,c,d=map(int,input().split())
if a==b and c==d or a==c and b==d or a==d and b==c:
    print("yes")
else :
    print("no")

Submission status: Accepted

Solution code:
a,b,c,d = map(int,input().split())

if a==b and c==d:
    print("yes")
elif a==c and b==d:
    print("yes")
elif a==d and b==c:
    print("yes")
else:
    print("no")

Submission status: Accepted

Solution code:
e1 ,e2, e3, e4=map(int, input().split())
if (e1==e2 and e3==e4) or (e1==e4 and e2==e3) or (e2==e4 and e3==e1):
    print("yes")
else:
    print("no")

Submission status: Accepted

Solution code:
e1,e2,e3,e4=map(int,input().split())
if e1==e2 and e3==e4:
    print("yes")
elif e1==e3 and e2==e4:
    print("yes")
elif e1==e4 and e3==e2:
    print("yes")
else:
    print("no")

Submission status: Accepted

Solution code:
e_1,e_2,e_3,e_4=map(int,input().split())

if e_1!=e_2!=e_3!=e_4:
    print('no')
elif e_1==e_2==e_3==e_4:
    print('yes')
elif (e_1==e_2 and e_3==e_4) or (e_1==e_3 and e_2==e_4) or (e_1==e_4 and e_2==e_3):
    print('yes')
else:
    print('no')

Submission status: Accepted

Solution code:
e1,e2,e3,e4=map(int,input().split())
if e1==e2==e3==e4:
    print('yes')
elif e1==e2 and e3==e4:
    print('yes')
elif e1==e3 and e2==e4:
    print('yes')
elif e1==e4 and e2==e3:
    print('yes')
else:
    print('no')

Submission status: Accepted

Solution code:
e1,e2,e3,e4=map(int,input().split())
if (e1==e2 and e3==e4) or (e1==e3 and e2==e4) or (e1==e4 and e2==e3):
  print("yes")
else:
  print("no")

Submission status: Accepted

Solution code:
a,b,c,d=map(int,input().split())
if a==b and c==d:
    print('yes')
elif a==c and b==d:
    print('yes')
elif a==d and b==c:
    print('yes')
elif a==b==c==d:
    print('yes')
else:
    print('no')

Submission status: Accepted

Solution code:
e1, e2, e3, e4, = (int(x) for x in input().split())

if (e1==e2 and e3==e4) or (e1==e3 and e2==e4) or (e1==e4 and e2==e3):
    print('yes')
else:
    print('no')

Submission status: Accepted

Solution code:
num = list(map(int,input().split()))
num.sort()
if num[0] == num[1] and num[2] ==num[3]:
    print("yes")
else :
    print("no")

Submission status: Accepted

Solution code:
e1,e2,e3,e4=map(int,input().split())
if e1==e2 and e3==e4:
    print("yes")
elif e1==e3 and e2==e4:
    print("yes") 
elif e1==e4 and e2==e3:
    print("yes")
else:
    print("no")

Submission status: Accepted

Solution code:
a,b,c,d=map(int,input().split())
if (a==b and c==d):
    print("yes")
elif (a==c and b==d):
    print("yes")
elif (a==d and b==c):
    print("yes")
else: 
    print("no")

Submission status: Accepted

Solution code:
a,b,c,d = map(int,input().split())
if a==b and c==d:
    print("yes")
elif a==c and b==d:
    print("yes")
elif a==d and b==c:
    print("yes")
else:
    print("no")

Submission status: Accepted

Solution code:
a,b,c,d=(int(x) for x in input().split())
a,b,c,d=sorted([a,b,c,d])
if a==b and c==d:
    print("yes")
else:
    print("no")

Submission status: Accepted

Solution code:
e1, e2, e3, e4 = map(int,input().split())

if e1 == e2:
    if e3 == e4:
        print('yes')
    else:
        print('no')
elif e1 == e3:
    if e2 == e4:
        print('yes')
    else:
        print('no')
elif e1 == e4:
    if e2 == e3:
        print('yes')
    else:
        print('no')
else:
    print('no')

Submission status: Accepted

Solution code:
e_1, e_2, e_3, e_4 = map(int, input().split())

if e_1 == e_2 and e_3 == e_4:
    print("yes")
elif e_1 == e_3 and e_2 == e_4:
    print("yes")
elif e_1 ==e_4 and e_2 == e_3:
    print("yes")
else:
    print("no")

Submission status: Accepted

Solution code:
e1, e2, e3, e4 = map(int, input().split())
if e1 == e2 and e3 == e4:
    print("yes")
elif e1 == e3 and e2 == e4:
    print("yes")
elif e1 == e4 and e2 == e3:
    print("yes")
else:
    print("no")

Submission status: Accepted

Solution code:
e1,e2,e3,e4 = map(int, input().split())
if e1 == e2 and e3 == e4:
    print("yes")
elif e1 == e3 and e2 == e4:
    print("yes")
elif e1 == e4 and e2 == e3:
    print("yes")
else:
    print("no")

Submission status: Accepted

Solution code:
list=sorted(map(int,input().split()))
if list[0] ==list[1] and list[2]==list[3]:
    print("yes")
else:
    print("no")

Submission status: Accepted

Solution code:
e1 , e2 , e3 , e4 = map(int , input() . split())
if (e1 == e2) & ((e2 == e3 == e4) or (e3 == e4)) :
     print('yes')
elif (e2 == e3) & ((e3 == e1 == e4) or (e1 == e4)) :
     print('yes')
elif (e3 == e4) & ((e4 == e1 == e2) or (e1 == e2)) :
     print('yes')
elif (e4 == e1) & ((e1 == e2 == e3) or (e2 == e3)) :
     print('yes')
else :
     print('no')

Submission status: Accepted

Solution code:
e1, e2, e3, e4 = map(int, input().split())
if e2 < e1: e1,e2 = e2,e1
if e4 < e3: e3,e4 = e4,e3
if e3 < e1: e1,e3 = e3,e1
if e4 < e2: e2,e4 = e4,e2
if e3 < e2: e2,e3 = e3,e2

if e1 == e2 and e3 == e4:
    print('yes')
else:
    print('no')

Submission status: Accepted

Solution code:
a,b,c,d=map(int,input().split())
if a==b and b==c and c==d:
    print('yes')
elif a==b and c==d:
    print('yes')
elif a==c and b==d:
    print('yes')
elif a==d and b==c:
    print('yes')
else:
    print('no')