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: 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')
elif e_1 == e_2 == e_3 ==e_4:
    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:
#小さい順に並べて入力
i_list = sorted(list(map(int,input().split())))

#2辺が同じであればyesそれいがいはnoを出力
if i_list[0] == i_list[1] and i_list[2] == i_list[3]: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:
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:
e1,e2,e3,e4=list(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")
elif e2==e3:
    if e1==e4: print("yes")
    else: print("no")
elif e2==e4:
    if e1==e3: print("yes")
    else: print("no")
elif e3==e4:
    if e1==e2: 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 ) 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==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==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==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) or (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:
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:
# coding: utf-8
# Your code here!
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:
a,b,c,d =input().split()
if int(a)==int(b) and int(c)==int(d) : print("yes")
elif int(c)==int(b) and int(a)==int(d) : print("yes")
elif int(c)==int(a) and int(b)==int(d) : print("yes")
else : print("no")

Submission status: Accepted

Solution code:
e1,e2,e3,e4=input().split()
e1=int(e1)
e2=int(e2)
e3=int(e3)
e4=int(e4)
if e1==e2 and e1==e3 and e1==e4:
    print("yes")
elif 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")
elif e3==e2:
    if e1==e4:
        print("yes")
    else:
        print("no")
elif e4==e2:
    if e3==e1:
        print("yes")
    else:
        print("no")
elif e3==e4:
    if e1==e2:
        print("yes")
    else:
        print("no")
else:
    print("no")

Submission status: Accepted

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

e = set(E)
e_list = list(e)

if len(e) == 2 :
    if E.count(e_list[0]) == 2 :
        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 or a == c and b == d or a == d and b == c:
  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:
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:
a,b,c,d=sorted(map(int,input().split()))
print(['no','yes'][a==b and c==d])

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:
lis = list(map(int,input().split()))

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

Submission status: Accepted

Solution code:
#!usr/bin/env python3
from collections import defaultdict
from collections import deque
from heapq import heappush, heappop
import sys
import math
import bisect
import random
def LI(): return list(map(int, sys.stdin.readline().split()))
def I(): return int(sys.stdin.readline())
def LS():return list(map(list, sys.stdin.readline().split()))
def S(): return list(sys.stdin.readline())[:-1]
def IR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = I()
    return l
def LIR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = LI()
    return l
def SR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = S()
    return l
def LSR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = LS()
    return l
sys.setrecursionlimit(1000000)
mod = 1000000007

#A
def A():
    e = LI()
    d = defaultdict(int)
    for i in e:
        d[i] += 1
    for i in d.values():
        if i != 2:
            print("no")
            break
    else:
        print("yes")
    return

#B
def B():
    return

#C
def C():
    return

#D
def D():
    return

#E
def E():
    return

#F
def F():
    return

#G
def G():
    return

#H
def H():
    return

#I
def I_():
    return

#J
def J():
    return

#Solve
if __name__ == "__main__":
    A()

Submission status: Accepted

Solution code:
a = [int(i) for i in 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: Runtime Error

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

Submission status: Runtime Error

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